a few updates for public keys and installations

This commit is contained in:
2023-01-16 06:50:49 +02:00
parent dac30a4184
commit 8d83a318e0

View File

@@ -4,6 +4,7 @@ saret ALL=(ALL) NOPASSWD:ALL
EOF EOF
fi fi
if [ "$(ls /home |grep saret)" != "saret" ]; then if [ "$(ls /home |grep saret)" != "saret" ]; then
sed -i "s/main$/main contrinb non-free/g" /etc/apt/sources.list
sudo apt -y update sudo apt -y update
sudo apt -y install wget nano curl zsh git lsb-release htop apt-transport-https xorg slim ncdu sshpass fish btop sudo apt -y install wget nano curl zsh git lsb-release htop apt-transport-https xorg slim ncdu sshpass fish btop
passwd root -d passwd root -d
@@ -15,15 +16,15 @@ if [ "$(ls /home |grep saret)" != "saret" ]; then
mkdir /SSH mkdir /SSH
chown $username:$username /SSH -R chown $username:$username /SSH -R
chmod au+xwr /SSH -R chmod au+xwr /SSH -R
curl -sSL "https://www.googleapis.com/drive/v3/files/1T9QJRJf-PudtnOc_LWWlcaGzmlFetj8l?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >/SSH/DebianMachine.pub mkdir -p /home/saret/.ssh 2>/dev/null
curl -sSL "https://www.googleapis.com/drive/v3/files/1etRrxKbD57DCyZiqhA7uOMWHzHAsclyQ?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >/SSH/WindowsMachine.pub chown saret:saret /home/saret/.ssh -R
curl -sSL "https://www.googleapis.com/drive/v3/files/1qPxPILbk9X2wK4nbXnyGCOZs-jjq6NXZ?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >/SSH/DebianMachine touch /home/saret/.ssh/authorized_keys
curl -sSL "https://www.googleapis.com/drive/v3/files/10y_s7IHOyqqUfdWB-HwRfYOy2EGlEAro?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >/SSH/WindowsMachine # Debian Machine
curl -sSL "https://www.googleapis.com/drive/v3/files/10Danv9wAuMkx2A24WV3x1ZKTpE7DXbww?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >/SSH/Phoney curl -sSL "https://gist.githubusercontent.com/1kamma/5c283f4fdeff2d5a6e6e97b310f3bc8b/raw/5216f05644e6924ff8c33b0123643dc1ed90ce2f/DebianMachine.pub" >>/home/saret/.ssh/authorized_keys
curl -sSL "https://www.googleapis.com/drive/v3/files/10JLW5RoDHibs5swUr6XOCrWSXy2RzUuh?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >/SSH/Phoney.pub # Windows Machine
sshpass -p "qwerty" ssh-copy-id -i /SSH/DebianMachine.pub -o StrictHostKeyChecking=no saret@$HOSTNAME curl -sSL "https://gist.githubusercontent.com/1kamma/5c283f4fdeff2d5a6e6e97b310f3bc8b/raw/72eefec64df079cd4fe07e0b723ccdc02d4c1141/WindowsMachine.pub" >>/home/saret/.ssh/authorized_keys
sshpass -p "qwerty" ssh-copy-id -i /SSH/WindowsMachine.pub -o StrictHostKeyChecking=no saret@$HOSTNAME # Phoney
sshpass -p "qwerty" ssh-copy-id -i /SSH/Phoney.pub -o StrictHostKeyChecking=no saret@$HOSTNAME curl -sSL "https://gist.githubusercontent.com/1kamma/5c283f4fdeff2d5a6e6e97b310f3bc8b/raw/8ac7c2cc43a0421646eb10351d08aa8d19c274e2/phoney.pub" >>/home/saret/.ssh/authorized_keys
sudo reboot sudo reboot
su $username su $username
fi fi
@@ -36,7 +37,7 @@ EOF
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AD5F235DF639B041 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AD5F235DF639B041
sudo apt-get update sudo apt-get update
sudo apt-get install -y google-drive-ocamlfuse sudo apt-get install -y google-drive-ocamlfuse
curl -s https://notesalexp.org/debian/alexp_key.asc | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/alexp_key.gpg --import curl -s https://notesalexp.org/debian/alexp_key.asc | sudo gpg --armor --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/alexp_key.gpg --import
sudo chmod a+r /etc/apt/trusted.gpg.d -R sudo chmod a+r /etc/apt/trusted.gpg.d -R
sudo apt-get update -oAcquire::AllowInsecureRepositories=true sudo apt-get update -oAcquire::AllowInsecureRepositories=true
sudo apt-get -y install notesalexp-keyring -oAcquire::AllowInsecureRepositories=true sudo apt-get -y install notesalexp-keyring -oAcquire::AllowInsecureRepositories=true