X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=buster%2Fsetup_scripts%2Fsetup_home.sh;h=4bd06efa8e300e518544ab891a375618002fd8d1;hb=ece3948dbaa9b9732b705b1273c26d2a142d1724;hp=4a9303dcbc7ffc82a19e562441713466526e0882;hpb=72d0c7ff45225d7e122f752a95b24a126d5545ff;p=config diff --git a/buster/setup_scripts/setup_home.sh b/buster/setup_scripts/setup_home.sh index 4a9303d..4bd06ef 100755 --- a/buster/setup_scripts/setup_home.sh +++ b/buster/setup_scripts/setup_home.sh @@ -28,10 +28,22 @@ ensure_repo() { repo_name="${1}" if [ ! -d "${public_repos_dir}/${repo_name}" ]; then cd "${public_repos_dir}" - git clone https://plomlompom.com/repos/clone/${repo_name} + git clone plom@plomlompom.com:/var/public_repos/${repo_name} fi } +# Set up iniitial non-public parts of infrastructure: SSH authentication. +cd "${dir_secrets}" +mkdir -p "${ssh_dir}" +echo "Setting up .ssh" +cp id_rsa ~/.ssh +stty -echo +ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub +stty echo +eval $(ssh-agent) +ssh-add +ssh-keyscan -H "plomlompom.com" >> ~/.ssh/known_hosts + # Clone config to copy dotfiles etc. from it. cd mkdir -p "${public_repos_dir}" @@ -42,14 +54,8 @@ cd "${setup_scripts_dir}" # Set up native messenger for tridactyl. curl -fsSl https://raw.githubusercontent.com/tridactyl/tridactyl/78e662efefd1f4af2bdb2a53edecf03b535b997b/native/install.sh | bash -# Set up non-public parts of infrastructure. +# Set up further non-public parts of infrastructure. cd "${dir_secrets}" -mkdir -p "${ssh_dir}" -echo "Setting up .ssh" -cp id_rsa ~/.ssh -stty -echo -ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub -stty echo script -c 'gpg --import secret_keys.asc' /dev/null tar xf borg_keyfiles.tar mkdir -p "${borgkeys_dir}" @@ -92,4 +98,4 @@ if [ -f "${HOME}/${authinfo_file}" ]; then fi # Final note on how to integrate tridactyl. -echo "TODO: As tridactyl user, don't forget to do :source on the first Firefox run and then re-start." +echo "TODO: As tridactyl user, don't forget to do :source on the first Firefox run, wait a little while (Tridactyl needs to walk through all commands in the .tridactylrc) and then re-start."