lwc:linux:setup

This is an old revision of the document!


apt update
apt upgrade
export NU=USER
adduser $NU
usermod -aG sudo $NU
  • sudo apt install emacs-nox
  • if root has correct public cert:
    • sudo cp /root/.ssh/authorized_keys ~/.ssh/. && chown $USER:$USER 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.conf and change PasswordAuthentication from yes to no
  • sudo systemctl restart sshd.service
  • lwc/linux/setup.1632183751.txt.gz
  • Last modified: 2021/09/20 19:22
  • by John Harrison