Skip to content

Latest commit

 

History

History
176 lines (131 loc) · 4.37 KB

notes-kelvin.md

File metadata and controls

176 lines (131 loc) · 4.37 KB

Kelvin notes

2024-01-08, Fail2ban update

Updated /etc/fail2ban/jail.d/defaults-debian.conf:

+[DEFAULT]
+banaction = nftables
+banaction_allports = nftables[type=allports]
+backend = systemd
+
+ [sshd]
+  enabled = true
+  -maxretry = 10
+  -bantime = 86400
+  

2023-03-22, Remove homeassistant docker

Moving to a dedicated NUC

docker ps # Find the name of the docker
docker stop homeassistant # Stop the docker container
docker rm homeassistant # Remove the docker container

2022-dec-20, Joplin

Installed joplin server using https://hub.docker.com/r/joplin/server and the docker compose file:

Ended up not deploying and using MS onedrive instead.

2022-dec-04, moved away from rsync to rclone

Moved away from backing up websites using rsync to rclone as one.com increased prices of accessing using SSH, but not SFTP.

The backup is now done monthly by running rclone-backup-website.sh through crontab. 00 3 1 * * /home/tjansson/bin/rclone-backup-website.sh

The rsnapshot backup also does no longer directly backup website, but used the local copies.

2022-oct-22, home-assistant as VM

So as it can be seen in https://www.home-assistant.io/installation the container version of home-assistant does not support all the functionality, but I have kept it for now as the kvm setup is a bit involved at the moment as I need bios changes.

docker run -d \
  --name homeassistant \
  --privileged \
  --restart=unless-stopped \
  -e TZ=Europe/Copenhagen \
  -v /etc/home-assistant/:/config \
  --network=host \
  ghcr.io/home-assistant/home-assistant:stable

Things to setup

  • Roborock
  • Landroid
  • Temperature sensors
  • Spotify
  • Control heating system
  • Wallbox/Monta
  • Weather
  • Electricity price, nordpool, el-pricer

2022-oct-21, home-assistant in container

After reinstalling docker using https://docs.docker.com/engine/install/debian/ docker system prune -af was needed to clean up old images.

https://www.home-assistant.io/installation/linux

docker run -d \
  --name homeassistant \
  --privileged \
  --restart=unless-stopped \
  -e TZ=Europe/Copenhagen \
  -v /etc/home-assistant:/config \
  --network=host \
  ghcr.io/home-assistant/home-assistant:stable

Access: http://192.168.0.160:8123/

Setup: HACS with https://hacs.xyz/docs/setup/download for container

2022-jul-29, more apt issues

The problem seems to be libsvtav1enc0

sudo apt remove libsvtav1enc0 libavif14 libavif-dev  libgd-dev

2022-jul-9

More apt issues removed more unused packages

 sudo apt remove libfreerdp2-2 libfreerdp-client2-2 libfreerdp-server2-2  gnome-remote-desktop  gnome-control-center
 libavcodec59

2022-jul-7

Problems with apt, uninstalled unneeded libs. Fixed with as sudo dpkg --configure -a, sudo apt-get install -f didn't work

sudo dpkg --remove --force-remove-reinstreq libavcodec59 libavformat59 libgegl-0.4-0 gimp libgimp2.0 xsane
libchromaprint-tools picard

Also saw this message, will monitor

plexmediaserver was not running
/root/restart-plex.sh: line 7: service: command not found

2022-jun-17

Disabled powertop auto application again. Did make a difference and munin revealed higher utilization

2022-jun-12

  • Removed syncthing and openipmi. Not used and causing wakeups
  • Applied power-saveing.md auto powertop application
  • Removed preload

2022-may-30, netdata

Disabled netdata alltogether as it is waking the server and is not used.

sudo service netdata stop # Kill it now
sudo systemctl disable netdata # Stop from running at boot

2022-may-30, x2goserver

Disabled netdata spamming apache acces_log:

sudo /etc/netdata/edit-config python.d/apache.conf

Commented out all the logging. Munin monitoring is enough

2022-may-30, x2goserver

Not used anymore.

sudo service x2goserver stop # Kill it now
sudo systemctl disable x2goserver # Stop from running at boot

2022-may-30, avahi-daemon

Was taking up way to much CPU and not used

sudo service avahi-daemon stop # Kill it now
sudo systemctl disable avahi-daemon # Stop from running at boot

2022-may-30, gkrellmd

I am not using it anymore and have disabled it:

sudo service gkrellmd stop # Kill it now
sudo systemctl disable gkrellmd # Stop from running at boot