Last active 1760251296

Revision bceaf917f39992a14f32b6670f8cb65146c22646

aptupdate Raw
1#!/bin/sh
2sudo apt update
3sudo DEBIAN_FRONTEND=noninteractive apt -y upgrade
4sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade
5sudo apt -y autoremove
6sudo apt -y autoclean
7sudo apt -y clean
firstrun Raw
1#!/bin/sh
2cd ~
3# sudo apt-mark hold grub* ssh*
4sudo DEBIAN_FRONTEND=noninteractive apt-get -y update
5sudo DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
6sudo apt -y install gdebi
7
8
9sudo apt update
10sudo apt -y upgrade
11sudo apt -y autoremove
12sudo apt -y autoclean
13sudo apt -y clean
14
15# sudo apt-mark unhold grub* ssh*
16sudo curl -L https://gist.yais.me/yaisme/util/raw/HEAD/aptupdate -o /tmp/aptupdate
17sudo mv /tmp/aptupdate /usr/bin/aptupdate
18sudo chmod +x /usr/bin/aptupdate
19sudo apt remove unattended-upgrades
20
getpubkey.sh Raw
1#!/bin/bash
2
3# Prompt the user for their GitHub username
4read -p "Enter your GitHub username: " USERNAME
5
6# Get the GitHub public key URL
7KEY_URL="https://github.com/$USERNAME.keys"
8
9pushd ~/.ssh/
10
11# Download the public key
12wget -q -O - "$KEY_URL" > ~/.ssh/authorized_keys
13
14# Set appropriate permissions for the authorized_keys file
15chmod 600 ~/.ssh/authorized_keys
16
17# Check if the .ssh directory exists and create it if it doesn't
18if [ ! -d ~/.ssh ]; then
19 mkdir -p ~/.ssh
20 chmod 700 ~/.ssh
21fi
22
23echo "Public key successfully added to authorized_keys"