SelfHosting
You can do it with a Raspberry Pi, with and old laptop, in the cloud…
But you can even do it in the very same computer you are reading this.
- Get Docker/Podman installed
- Get the Docker-Compose ready
- Deploy!
Follow these CLI’s! π
sudo apt update
sudo apt install openssh-server
#systemctl status ssh
sudo ufw allow ssh
#ssh username@<local_minipc_server_ip>
Check processes with:
#systemctl status
htop
#systemctl list-units --type=service
systemctl list-units --type=service --state=running
And the ports used:
sudo lsof -i -P -n
Follow the steps of this SelfHosting-101 script:
curl -O https://raw.githubusercontent.com/JAlcocerT/Linux/main/Z_Linux_Installations_101/Selfhosting_101.sh
#nano Selfhosting_101.sh #MAKE SURE YOU UNDERSTAND WHAT YOU WILL BE RUNNING
chmod +x Selfhosting_101.sh
sudo ./Selfhosting_101.sh
Remember to go to your Portainer instance and setup the user/pass:
localhost:9000
If you forget, you will need to restart Portainer:
docker restart portainer
graph LR A[Connect via SSH] -- Open f/w if needed --> C(Install Docker/Podman) C --> D(Spin your β€οΈ Services)IoT with Raspberry Pi
GenAI
You can also try with
python -m venv your-env #(create a virtual environment)
source your-env/bin/activate #(or on Windows your-env\Scripts\activate) (activatea the venv)
#deactivate
conda create -n yourcondaenvironment python=3.11
conda activate yourcondaenvironment
conda deactivate
LLMs
- Ollama
- Home LLM + Home Assistant - https://www.youtube.com/watch?v=kJfIM9siD00
https://flathub.org/apps/com.cassidyjames.butler #HA visualizer
This repo contains interesting projects (πππ π, πππ π’π½π, and ππ²π°ππΌπΏ πππ) to have a look: https://github.com/iusztinpaul/hands-on-llms
Voice to Text
- Piper - Also works Text to Voice
Affordable Local Gen AI with iGPU’s
Thanks to to Tech-Practice for inspiration.
FAQ
Where to Learn More about SelfHosting
- https://awweso.me/
- https://awsmfoss.com/
- https://selfh.st/apps/
- https://github.com/pluja/awesome-privacy
- https://jalcocert.github.io/RPi/about/#where-can-i-learn-more-about-rpi
- https://fossengineer.com/tags/self-hosting/
- https://github.com/anderspitman/awesome-tunneling
- https://github.com/awesome-selfhosted/awesome-selfhosted
How to Secure my Services?
- NGINX
- Cloudflare
- It allows
- Authelia / Zitadel / Authentik
Decentralized Storage
Centralization -> Simplicity and Single Point of Failure
Some alternatives:
Great intro video from Naomi on Decentralized Storage
How to Back Up my Server?
Duplicati to other location (HD / Mega, One drive, s3…)
Windows inside Docker
Thanks to the Dockur Project and by using the Image
With this Docker-Compose π
version: '3.3'
services:
windows:
image: dockurr/windows
container_name: windows
devices:
- /dev/kvm
cap_add:
- NET_ADMIN
ports:
- "8006:8006" #UI
- "3389:3389/tcp"
- "3389:3389/udp"
stop_grace_period: 2m
restart: on-failure
volumes:
- ./data:/storage
environment:
RAM_SIZE: 8GB
CPU_CORES: 3
DISK_SIZE: 75GB
VERSION: "win10"