Implemented ssh management

This commit is contained in:
Kevin Veen-Birkenbach [aka. Frantz]
2019-09-30 16:13:26 +02:00
parent 87e433dd2e
commit edd18db933
3 changed files with 30 additions and 5 deletions

View File

@@ -8,6 +8,17 @@ echo "Synchronizing programing languages..."
sudo pacman --needed -S jdk11-openjdk python php
echo "Synchronizing administration tools..."
sudo pacman --needed -S htop tree git base-devel yay make gcc cmake
ssh_key_path="$HOME/.ssh/id_rsa"
if [ ! -f "$ssh_key_path" ]; then
echo "SSH key $ssh_key_path doesn't exists!"
if [ ! -f "./data$ssh_key_path" ]; then
echo "Importing ssh key from data..."
bash ./scripts/export-data-to-system.sh
else
echo "Generating ssh key"
ssh-keygen -t rsa -b 4096 -C "$USER@$HOSTNAME"
fi
fi
echo "Synchronizing gui tools..."
sudo pacman --needed -S gnome-shell-extensions
echo "Install NASA picture of the day GNOME extension..."