c7665f33f5204a9cbec74c2df61bbd222afa665a
homesrv01.dev.lan
Welcome to homesrv01.dev.lan git page.
OS
Currently hosted on a proxmox ubuntu container.
# cat /etc/pve/lxc/105.conf
arch: amd64
cores: 2
features: fuse=1,keyctl=1,nesting=1
hostname: homesrv01
memory: 2000
onboot: 1
ostype: ubuntu
swap: 4000
rootfs: local-lvm:vm-105-disk-0,size=32G
unprivileged: 1
```bash
# lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic
# uname -r
6.8.4-3-pve
Development / Maintenance Environment
Currently using docker code server as an editor.
But doing this way, it is important to remember that editing files, git commands and control is done in VS CODE on the Development machine, but the execution of commands must be done over ssh.
setup
apt update -y && apt upgrade -y
apt install curl -y
apt install git -y
curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh
docker run hello-world && docker info
apt install sshfs
fstab
#/etc/fstab
#sshfs#media@nas.lan:/home/media /mnt/media@sshfs:nas.lan fuse defaults,_netdev,allow_other,follow_symlinks 0 0
ssh
#/etc/ssh/sshd_config
PermitRootLogin no
systemctl restart ssh
Update
scripts/auto-update.sh
cron
ln -s $PWD/scripts/auto-update.sh /etc/cron.daily/auto-update
Services
External volumes
docker volume create --driver local --opt type=none --opt device=/home/admin/repos --opt o=bind hostfs_home_admin_repos
docker volume create --driver local --opt type=none --opt device=/mnt/media@sshfs:nas.lan --opt o=bind music
docker volume create --driver local --opt type=none --opt device=/ --opt o=bind hostfs
Portainer
for more information check
Setup & Update
services/portainer/docker-run.sh
Promtail
Setup & Update
services/promtail/docker-run.sh
telegraf
Setup & Update
services/telegraf/docker-run.sh
nginx
Setup & Update
services/nginx/docker-run.sh
code-server
Setup & Update
services/code-server/docker-run.sh
home assistant
for setup execute on portainer docker compose then mount on code server
- has_config:/config/workspace/host/repos/homesrv01.dev.lan/services/has/volumes/config
on code server from repo root folder
cd services
mkdir has
cd has
git glone ssh://git@git.limbosolutions.com:2222/marcio.fernandes/homeAssistant.git .
LMS
for setup execute on portainer docker compose then mount on code server
on code server from repo root folder
cd services
mkdir lms
cd lms
git glone https://git.limbosolutions.com/marcio.fernandes/lms .
Mosquitto
for setup execute on portainer docker compose then mount on code server
- mosquitto_config:/config/workspace/host/repos/homesrv01.dev.lan/services/mosquitto/volumes/config
- mosquitto_data:/config/workspace/host/repos/homesrv01.dev.lan/service/mosquitto/volumes/data
on code server from repo root folder
cd services
mkdir mosquitto
cd mosquitto
git glone ssh://git@git.limbosolutions.com:2222/marcio.fernandes/mosquitto.git .
wyoming-faster-whisper
https://github.com/home-assistant/addons/blob/master/whisper/DOCS.md
Setup & Update
services/wyoming-faster-whisper/docker-run.sh
wyoming-piper
Setup & Update
services/wyoming-piper/docker-run.sh
Description
Languages
JSON
100%