User Tools

Site Tools


sysadminery:linux_boilerplate

This is an old revision of the document!


install

  1. make your password something terrible like “temp” - terminal emulators accept keypresses for weird-ass symbols pretty well, but most things don't cooperate with password managers.
  2. apt-get install sudo
  3. usermod -a -G sudo adam
  4. find /etc/ssh/sshd_config, set PasswordAuthentication to yes
  5. sudo service ssh restart
  6. login as ssh, fix passwords (for both self and root!)
  7. setup pubkey login
  8. sudo apt-get install vim

cooperate with nas

  1. at time of writing, my nasbox follows the file access/organization strategy of “heap (none)”. so there's /mnt/pool1/exchange, mode 775, owned by group 1024: exchangers.
  2. groupadd -g 1024 exchangers
    usermod -a -G exchangers adam
  3. you'll need some kind of program to mount NFS shares. on debian 11, apt-get install nfs-common
  4. make the target directory. I've been using /srv/gusion.
  5. now you can edit /etc/fstab:
    gusion.lan:/mnt/pool1/exchange	/srv/gusion	nfs	defaults	0	0
  6. sudo mount -a

kodi

it's in apt
once you've mounted gusion, just go to videos and add a source.

remote:

join the wireguarden

raspberry pi

BEFORE FIRST BOOT

mount the boot partition.

1) make yourself a user

echo "myuser:$(echo 'mypassword' | openssl passwd -6 -stdin)" > userconf

2) enable ssh

touch ssh

yes, that's all. really. blank file.

3) if you want wifi:

make wpa_supplicant.conf.

if it's wpa3/wpa2 mixed:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

network={
   ssid="Your network name/SSID"
   psk="Your WPA security key"
   key_mgmt=WPA-PSK-SHA256
   ieee80211w=2
}

if it's just wpa2, remove the ieee80211w=2 line

sysadminery/linux_boilerplate.1716220274.txt.gz · Last modified: 2024/05/20 15:51 by adam