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:
    • 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_conf and change PasswordAuthentication from yes to no
  • sudo systemctl restart sshd.service
  • copy .emacs and .emacs/d from somewhere else…

To set up with AWS SES follow these directions but use port 2587 instead of 587 on Linode as 587 is blocked

  • postfix should be set up with no configuration. When you do this, there are instructions given at the end to copy some sort of sample configuration.
  • to reconfigure: sudo dpkg-reconfigure postfix
  • to reload the settings: sudo postfix stop; sudo postfix start; sudo postfix reload
  • when testing tail -f /var/log/mail.log is your friend
  • lwc/linux/setup.1632261330.txt.gz
  • Last modified: 2021/09/21 16:55
  • by John Harrison