lwc:linux:setup

apt update
apt upgrade
export NU=USER
adduser $NU
usermod -aG sudo $NU
  • sudo apt install emacs-nox
  • if root has correct public cert:
    • mkdir -p ~/.ssh && sudo cp /root/.ssh/authorized_keys ~/.ssh/. && sudo chown $USER:$USER ~/.ssh/authorized_keys
  • otherwise:
    • mkdir .ssh && chdir .ssh && emacs -nw authorized_keys
    • add public rsa
  • logout, login to test that cert is working
  • sudo emacs -nw /etc/ssh/sshd_config and change PasswordAuthentication from yes to no
  • sudo systemctl restart sshd.service
  • in home directory
    git clone https://whyameye@bitbucket.org/whyameye/.emacs.d.git
  • lwc/linux/setup.txt
  • Last modified: 2021/10/19 20:06
  • by John Harrison