Update README.md
This commit is contained in:
413
README.md
413
README.md
@@ -1,216 +1,197 @@
|
|||||||
# homesrv01.dev.lan
|
# homesrv01.dev.lan
|
||||||
|
|
||||||
Welcome to homesrv01.dev.lan git page.
|
Welcome to homesrv01.dev.lan git page.
|
||||||
|
|
||||||
## OS
|
## OS
|
||||||
|
|
||||||
Currently hosted on a proxmox ubuntu container.
|
Currently hosted on a proxmox ubuntu container.
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
# cat /etc/pve/lxc/105.conf
|
# cat /etc/pve/lxc/105.conf
|
||||||
arch: amd64
|
arch: amd64
|
||||||
cmode: shell
|
cmode: shell
|
||||||
cores: 2
|
cores: 2
|
||||||
features: fuse=1,keyctl=1,nesting=1
|
features: fuse=1,keyctl=1,nesting=1
|
||||||
hostname: homesrv01
|
hostname: homesrv01
|
||||||
memory: 1500
|
memory: 1500
|
||||||
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.1.2,hwaddr=42:F5:02:BC:77:81,ip=192.168.1.252/24,ip6=dhcp,type=veth
|
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.1.2,hwaddr=42:F5:02:BC:77:81,ip=192.168.1.252/24,ip6=dhcp,type=veth
|
||||||
onboot: 1
|
onboot: 1
|
||||||
ostype: ubuntu
|
ostype: ubuntu
|
||||||
protection: 1
|
protection: 1
|
||||||
rootfs: local-lvm:vm-105-disk-0,size=32G
|
rootfs: local-lvm:vm-105-disk-0,size=32G
|
||||||
swap: 1500
|
swap: 1500
|
||||||
unprivileged: 1
|
unprivileged: 1
|
||||||
lxc.cgroup2.devices.allow: c 189:* rwm
|
lxc.cgroup2.devices.allow: c 189:* rwm
|
||||||
lxc.mount.entry: usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_c0e8eeb4b38ded118e7c06f6b86ce6f8-if00-port0 dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_c0e8eeb4b38ded118e7c06f6b86ce6f8-if00-port0 none bind,optional,create=file
|
lxc.mount.entry: usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_c0e8eeb4b38ded118e7c06f6b86ce6f8-if00-port0 dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_c0e8eeb4b38ded118e7c06f6b86ce6f8-if00-port0 none bind,optional,create=file
|
||||||
lxc.cgroup2.devices.allow: c 188:* rwm
|
lxc.cgroup2.devices.allow: c 188:* rwm
|
||||||
lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file
|
lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# lsb_release -a
|
# lsb_release -a
|
||||||
Distributor ID: Ubuntu
|
Distributor ID: Ubuntu
|
||||||
Description: Ubuntu 24.04 LTS
|
Description: Ubuntu 24.04 LTS
|
||||||
Release: 24.04
|
Release: 24.04
|
||||||
Codename: noble
|
Codename: noble
|
||||||
|
|
||||||
# uname -r
|
# uname -r
|
||||||
6.8.4-3-pve
|
6.8.4-3-pve
|
||||||
```
|
```
|
||||||
|
|
||||||
## Development / Maintenance Environment
|
## Development / Maintenance Environment
|
||||||
|
|
||||||
Currently using docker code server as an editor.
|
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.**
|
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
|
## setup
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
apt update -y && apt upgrade -y
|
apt update -y && apt upgrade -y
|
||||||
apt install curl -y
|
apt install curl -y
|
||||||
apt install git -y
|
apt install git -y
|
||||||
curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh
|
curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh
|
||||||
docker run hello-world && docker info
|
docker run hello-world && docker info
|
||||||
apt install sshfs
|
apt install sshfs
|
||||||
apt install ansible
|
apt install ansible
|
||||||
```
|
```
|
||||||
|
|
||||||
## fstab
|
## fstab
|
||||||
|
|
||||||
```
|
```
|
||||||
#/etc/fstab
|
#/etc/fstab
|
||||||
#sshfs#media@nas.lan:/home/media /mnt/media@sshfs:nas.lan fuse defaults,_netdev,allow_other,follow_symlinks 0 0
|
#sshfs#media@nas.lan:/home/media /mnt/media@sshfs:nas.lan fuse defaults,_netdev,allow_other,follow_symlinks 0 0
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## ssh
|
## ssh
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#/etc/ssh/sshd_config
|
#/etc/ssh/sshd_config
|
||||||
PermitRootLogin no
|
PermitRootLogin no
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
systemctl restart ssh
|
systemctl restart ssh
|
||||||
```
|
```
|
||||||
|
|
||||||
## Update
|
## Update
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
scripts/auto-update.sh
|
scripts/auto-update.sh
|
||||||
```
|
```
|
||||||
cron
|
cron
|
||||||
```bash
|
```bash
|
||||||
ln -s $PWD/scripts/auto-update.sh /etc/cron.daily/auto-update
|
ln -s $PWD/scripts/auto-update.sh /etc/cron.daily/auto-update
|
||||||
```
|
```
|
||||||
|
|
||||||
## Services
|
## Services
|
||||||
|
|
||||||
### External volumes
|
### 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=/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=/mnt/media@sshfs:nas.lan --opt o=bind music
|
||||||
docker volume create --driver local --opt type=none --opt device=/ --opt o=bind hostfs
|
docker volume create --driver local --opt type=none --opt device=/ --opt o=bind hostfs
|
||||||
```
|
```
|
||||||
|
|
||||||
### Portainer
|
### Portainer
|
||||||
|
|
||||||
mantained by ansible myInfra.docker.portainer role
|
mantained by ansible myInfra.docker.portainer role
|
||||||
|
|
||||||
### Promtail
|
### Promtail
|
||||||
|
|
||||||
mantained by ansible myInfra.docker.promtail role
|
mantained by ansible myInfra.docker.promtail role
|
||||||
|
|
||||||
### Telegraf
|
### Telegraf
|
||||||
|
|
||||||
#### Setup & Update
|
#### Setup & Update
|
||||||
|
|
||||||
mantained by ansible myInfra.docker.telegraf role
|
mantained by ansible myInfra.docker.telegraf role
|
||||||
|
|
||||||
### nginx
|
### nginx
|
||||||
|
|
||||||
#### Setup & Update
|
#### Setup & Update
|
||||||
``` bash
|
``` bash
|
||||||
services/nginx/docker-run.sh
|
services/nginx/docker-run.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
### code-server
|
### code-server
|
||||||
|
|
||||||
#### Setup & Update
|
#### Setup & Update
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
services/code-server/docker-run.sh
|
services/code-server/docker-run.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### home assistant
|
### home assistant
|
||||||
[Git Repo](https://git.limbosolutions.com/marcio.fernandes/homeAssistant)
|
[Git Repo](https://git.limbosolutions.com/marcio.fernandes/homeAssistant)
|
||||||
|
|
||||||
[from dev machine](services/has/README.md)
|
[from dev machine](services/has/README.md)
|
||||||
|
|
||||||
|
|
||||||
for setup execute on portainer docker compose then mount on code server
|
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
|
- has_config:/config/workspace/host/repos/homesrv01.dev.lan/services/has/volumes/config
|
||||||
```
|
```
|
||||||
|
|
||||||
on code server from repo root folder
|
on code server from repo root folder
|
||||||
|
|
||||||
```
|
```
|
||||||
cd services
|
cd services
|
||||||
mkdir has
|
mkdir has
|
||||||
cd has
|
cd has
|
||||||
git glone ssh://git@git.limbosolutions.com:2222/marcio.fernandes/homeAssistant.git .
|
git glone ssh://git@git.limbosolutions.com:2222/marcio.fernandes/homeAssistant.git .
|
||||||
```
|
```
|
||||||
|
|
||||||
### LMS
|
### LMS
|
||||||
[Git Repo](https://git.limbosolutions.com/marcio.fernandes/lms)
|
[Git Repo](/marcio.fernandes/lms)
|
||||||
|
|
||||||
[from dev machine](services/lms/README.md)
|
### Mosquitto
|
||||||
|
|
||||||
|
[Git Repo](https://git.limbosolutions.com/marcio.fernandes/mosquitto)
|
||||||
for setup execute on portainer docker compose then mount on code server
|
|
||||||
```
|
[from dev machine](services/mosquitto/README.md)
|
||||||
```
|
|
||||||
|
|
||||||
on code server from repo root folder
|
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
|
||||||
cd services
|
- mosquitto_data:/config/workspace/host/repos/homesrv01.dev.lan/service/mosquitto/volumes/data
|
||||||
mkdir lms
|
```
|
||||||
cd lms
|
|
||||||
git glone https://git.limbosolutions.com/marcio.fernandes/lms .
|
on code server from repo root folder
|
||||||
|
|
||||||
|
```
|
||||||
|
cd services
|
||||||
```
|
mkdir mosquitto
|
||||||
|
cd mosquitto
|
||||||
### Mosquitto
|
git glone ssh://git@git.limbosolutions.com:2222/marcio.fernandes/mosquitto.git .
|
||||||
|
```
|
||||||
[Git Repo](https://git.limbosolutions.com/marcio.fernandes/mosquitto)
|
|
||||||
|
|
||||||
[from dev machine](services/mosquitto/README.md)
|
## wyoming-faster-whisper
|
||||||
|
|
||||||
|
https://github.com/home-assistant/addons/blob/master/whisper/DOCS.md
|
||||||
for setup execute on portainer docker compose then mount on code server
|
|
||||||
```
|
#### Setup & Update
|
||||||
- mosquitto_config:/config/workspace/host/repos/homesrv01.dev.lan/services/mosquitto/volumes/config
|
``` bash
|
||||||
- mosquitto_data:/config/workspace/host/repos/homesrv01.dev.lan/service/mosquitto/volumes/data
|
services/wyoming-faster-whisper/docker-run.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
on code server from repo root folder
|
## wyoming-piper
|
||||||
|
|
||||||
```
|
#### Setup & Update
|
||||||
cd services
|
``` bash
|
||||||
mkdir mosquitto
|
services/wyoming-piper/docker-run.sh
|
||||||
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
|
|
||||||
``` bash
|
|
||||||
services/wyoming-faster-whisper/docker-run.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
## wyoming-piper
|
|
||||||
|
|
||||||
#### Setup & Update
|
|
||||||
``` bash
|
|
||||||
services/wyoming-piper/docker-run.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user