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.

  1. Get Docker/Podman installed
  2. Get the Docker-Compose ready
  3. Deploy!
Follow these CLI’s to SelfHost! πŸš€
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 PiIoT with Raspberry Pi
Linux will onboard you to the IoT and Embedding World. Are you ready to take the first step?

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
ℹ️
The ML Compilation for LLMs project aims to spread the development and deployment of AI Models.
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

Affordable Local Gen AI with iGPU’s

Thanks to to Tech-Practice for inspiration.


FAQ

Where to Learn More about SelfHosting
How to Secure my Services?

Decentralized Storage

  • Centralization -> Simplicity and Single Point of Failure

  • Some alternatives:

    • IPFS - an open system to manage data without a central server
    • Filecoin - an open-source cloud storage marketplace, protocol, and incentive layer.

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"