Second Steps (Buster)

From Hexwiki
Revision as of 21:29, 12 March 2021 by Vekseid (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

After we're finished with IPMI.

  • Setup private key in ~/.ssh/authorized_keys for admin account

I have grown used to vim, lately, so:

  • apt-get install vim vim-doc exuberant-ctags
    • Heretics may substitute this with their inferior editor of choice
  • update-alternatives --config editor
  • Set PasswordAuthentication no in /etc/ssh/sshd_config
  • systemctl restart ssh
  • After verifying I can sign in, I set the admin's password to something incomprehensible.
  • /etc/vim/vimrc
    • I turn on most every option, except for compatible, ignorecase, and smartcase. I also add set hlsearch to add search highlighting. If you want to change the length of a tab (rather useful on console):
set tabstop=4
set shiftwidth=4

  • I uncomment set mouse in /etc/nanorc as well. I sometimes am training people and teaching both vim and some other arcane topic at the same time is usually rather much.
  • /etc/resolv.conf
search invalid
nameserver ::1
  • Localhost (we'll setup unbound in a bit), Cloudflare, and Google. If your host provides their own DNS servers, those will be slightly better.