Difference between revisions of "Second Steps (Buster)"

From Hexwiki
Jump to navigation Jump to search
 
Line 11: Line 11:
 
* systemctl restart ssh
 
* systemctl restart ssh
 
* After verifying I can sign in, I set the admin's password to something incomprehensible.
 
* 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
 +
  
* '''/etc/vim/vimrc'''
 
** I turn on most every option, except for skip-defaults, compatible, ignorecase, and smartcase. I also add ''set hlsearch'' to add search highlighting.
 
 
* 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.
 
* 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.
  

Latest revision as of 01:29, 13 March 2021

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
nameserver 1.1.1.1
nameserver 8.8.8.8
  • Localhost (we'll setup unbound in a bit), Cloudflare, and Google. If your host provides their own DNS servers, those will be slightly better.