Tools for Tinkers
Tools for Tinkers
Whatever you plan to Selfhost, there will be a moment that you will be looking for:
- HTTPs and SSL Setup
- Monitoring Servers
- Benchmarking Hardware
Learn the concepts and tools to SelfHost confortable
Containerized Selfhosted Apps for your Server
ℹ️
Great Reference for ideas: https://github.com/awesome-selfhosted/awesome-selfhosted
General SelfHosted Resources
FAQ
How to mount external drives consistently? 🚀
lsblk #list them again
lsblk -f /dev/sda1 /dev/sdb2 #see the format and the UUID of a couple of blocks
df -h /dev/sda1 #you will see if its mountedsudo apt install ntfs-3g
sudo nano /etc/fstab #forever
UUID=some-uuid /mnt/data_ntfs_500 ntfs-3g defaults,uid=1000,gid=1000,umask=0022 0 1
UUID=some-uuid-of-your-drive /mnt/ext4_mount_point_folder ext4 defaults 0 1For one time:
sudo mkdir -p /mnt/data_ntfs_500
sudo mount -t ntfs /dev/sda1 /mnt/data_ntfs_500/ #example with ntfs
sudo mkdir -p /mnt/data_ext_2tb
sudo mount -t ext4 /dev/sdb2 /mnt/data_ext_2tb/ #example with ntfsScreen Rotation? 🚀
xrandr --output HDMI-A-0 --rotate normal
xrandr --output HDMI-A-0 --rotate rightSpecially when tinkering with VPNs, you will want to know:
Whats my Local IP? 🚀
ifconfig
#ifconfig eth0 | grep -A 10 "<global>" #check mac, and transfered packages
ifconfig eth0 | grep "inet " | awk '{ print $2 }' #if ETH Connected - SEE THE LOCAL IP
#ifconfig tailscale0 | grep "inet " | awk '{ print $2 }' #for TailscaleHomeLab Commands
PRO SelfHosting and HomeLab CLI 🚀
df -h
#du -sh . #space under current folderhtop
#btop- Whats taking that much space?
#sudo du -ahx / | sort -rh | head -n 50
sudo du -ahx . | sort -rh | head -n 50 #from current folder and below- I want to clean old container stuff
#df -h
#docker system df #see how much docker artifacts are using
docker stop $(docker ps -a -q) #stop all
#docker volume rm $(docker volume ls -q | grep -v '^portainer_data$') #rm all volumes but portainer
#docker system df #similar to df -h but for container resources
#docker image prune -a
#docker builder prune -a --force
#docker system prune --all --volumes #just clean all...
docker builder prune
#docker system prune -a
docker volume prune
docker image prune -a- Stop all containers, but portainer:
#docker ps -a -q --filter 'name=!portainer'
docker ps -q | grep -v portainer | xargs docker stop- How much resources are those containers cosuming?
docker-compose stats
#sudo docker stats 7dfdfce97523
#sudo docker stats nextcloud
#docker stats typebot-builder typebot-viewer typebot-db
docker stats $(docker ps --filter "name=typebot" --format "{{.Names}}")
#docker stats -aInspiration for a HomeLab?
Created a repository with clean compose files for anyone to try these services: https://github.com/JAlcocerT/Home-Lab/
See this folder for stacks on what im Selfhosting at a certain month/year.