configuration, scripts, and project log for my house NAS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Shoofle cdedab1819 changed work log to readme 3 years ago
backups.service added a backup service to back gliese 180 a to gliese 180 b 3 years ago
backups.timer added a backup service to back gliese 180 a to gliese 180 b 3 years ago
cygnus.service added a backup service to back gliese 180 a to gliese 180 b 3 years ago
cygnus.timer think i got the timer running daily at midnight 3 years ago
index.html Prior work 3 years ago
readme.md changed work log to readme 3 years ago
ssh_auriga_tunnel.service fixed up the reverse tunnel with auriga so that it starts only after sshd 3 years ago
update_fortune.py reordering some comments 3 years ago

readme.md

Cygnus!

This is a log of the things I've configured on my house NAS and general purpose house server, Cygnus. This probably won't be terribly useful to anyone other than me.


enable ssh use usermod to rename pi to cygnus make a shoofle user, add her to sudoers with usermod, move the ssh pubkey over

set up samba set up a samba password for the cygnus user maybe, so that i can get into the cygnus home folder install nginx?

added the following lines to /etc/fstab to get 55 cancri b and ct chameleontis b to mount!!!

#okay let's go into the scary realm PARTUUID=9eb03fc3-01 /media/55\040Cancri\040B vfat auto,exec,rw,sync,nouser 0 0 PARTUUID=acafe9ba-747a-42dc-bd3e-3d6cf775a523 /media/CT\040Chameleontis\040b ntfs auto,exec,rw,sync,nouser 0 0 changed this later so that it mounted Gliese 180 a/b to /mnt/sthose, might eventually move them to /media, whatever

now editing the /etc/samba/smb.conf or whatever to reflect the new locations of those folders

gotta install fuse and ntfs-3g with apt-get

make sure that at least the relevant parts of the data store are chmod 777 because they need access from the guest user

installed nginx! wrote a little landing page letting people know what cygnus is.

installed smartmontools for monitoring drive healt

installed fortune-mod so i can get fortunes

installed python-is-python3 and python3-pip so that i can have python working better

wrote the service and timer files for updating the fortune, then symlinked them into /etc/systemd/system/ if i want to restart them i can do systemctl restart cygnus, and perhaps if i want to reload the config file i do systemctl daemon-reload? oh also remember systemctl list-timers

minor note but in the scripts to be run by the system, make sure that things don't depend on environment variables and such unless you really want it. for example use the explicit full path to a program instead of just fortune use /usr/games/fortune because the environment configures where to look for executables.

installed yt-dl (through apt) and then yt-dlp because yt-dl didn't work https://github.com/yt-dlp/yt-dlp#installation

symlinked the ssh tunnel service into /etc/systemd/system/ so that i get an always-on ssh tunnel!!!

finally realized i never did systemctl enable cygnus.timer --now so the timer never started which is why my daily task hasn't been running. remedied.

installed mlocate so i can search for things

gotta make it so that it rsyncs things regularly. hrm. apparently that's rsync -av "/so/urce" "/desti/nation". added a backups.service and backups.timer that should be good enough for this purpose. let's try it. gonna ln -s them into /etc/systemd/system