This commit is contained in:
2024-07-19 16:08:35 +01:00
parent c7665f33f5
commit aa5bfa524c
5 changed files with 37 additions and 9 deletions

View File

@@ -5,26 +5,34 @@ Welcome to homesrv01.dev.lan git page.
## OS
Currently hosted on a proxmox ubuntu container.
``` bash
# cat /etc/pve/lxc/105.conf
arch: amd64
cmode: shell
cores: 2
features: fuse=1,keyctl=1,nesting=1
hostname: homesrv01
memory: 2000
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
onboot: 1
ostype: ubuntu
swap: 4000
protection: 1
rootfs: local-lvm:vm-105-disk-0,size=32G
swap: 1500
unprivileged: 1
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.cgroup2.devices.allow: c 188:* rwm
lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file
```
```bash
# lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic
Description: Ubuntu 24.04 LTS
Release: 24.04
Codename: noble
# uname -r
6.8.4-3-pve
@@ -119,10 +127,25 @@ services/nginx/docker-run.sh
### code-server
#### Setup & Update
``` bash
services/code-server/docker-run.sh
```
ssh alias for host access
``` bash
#On code-server
#/root/.ssh/config
Host host
HostName homesrv01.dev.lan
User USERNAME
RemoteCommand cd ~/repos/homesrv01.dev.lan; exec bash --login
RequestTTY yes
```
### home assistant
[Git Repo](https://git.limbosolutions.com/marcio.fernandes/homeAssistant)
@@ -160,6 +183,9 @@ cd services
mkdir lms
cd lms
git glone https://git.limbosolutions.com/marcio.fernandes/lms .
```
### Mosquitto

View File

@@ -3,7 +3,7 @@ scriptPath="$(dirname "$(readlink -f "$0")")"
doWork(){
apt update -y
apt upgrade -y
$scriptPath/../services/portainer/docker-run.sh
#$scriptPath/../services/portainer/docker-run.sh
$scriptPath/../services/promtail/docker-run.sh
$scriptPath/../services/telegraf/docker-run.sh
$scriptPath/../services/code-server/docker-run.sh

View File

@@ -1,9 +1,11 @@
#! /bin/bash
scriptPath="$(dirname "$(readlink -f "$0")")"
currentPath=$PWD
cd $scriptPath
docker-compose pull
docker-compose up --force-recreate --build -d
cd $currentPath

View File

@@ -33,7 +33,7 @@ server {
location ^~ /lms/ {
proxy_pass http://homesrv01.dev.lan:9000/;
proxy_pass http://localhost:9000/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

View File

@@ -7,4 +7,4 @@ scriptPath="$(dirname "$(readlink -f "$0")")"
docker run -dt -p 10300:10300 \
--name wyoming-faster-whisper \
-v ${scriptPath}//volumes/data:/data rhasspy/wyoming-whisper \
--model tiny-int8 --language pt
--model tiny.en --language en --beam-size 2