From aa5bfa524c3d41fec97e4a6ef09a83223da67006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Fri, 19 Jul 2024 16:08:35 +0100 Subject: [PATCH] chamges --- README.md | 38 ++++++++++++++++--- scripts/auto-update.sh | 2 +- services/code-server/docker-run.sh | 2 + services/nginx/volumes/nginx_conf/has.conf | 2 +- services/wyoming-faster-whisper/docker-run.sh | 2 +- 5 files changed, 37 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 637e07a..138dcbe 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/scripts/auto-update.sh b/scripts/auto-update.sh index d01501b..3672136 100755 --- a/scripts/auto-update.sh +++ b/scripts/auto-update.sh @@ -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 diff --git a/services/code-server/docker-run.sh b/services/code-server/docker-run.sh index 99ecf2e..ad8c1ba 100755 --- a/services/code-server/docker-run.sh +++ b/services/code-server/docker-run.sh @@ -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 diff --git a/services/nginx/volumes/nginx_conf/has.conf b/services/nginx/volumes/nginx_conf/has.conf index e96b4d1..5315a18 100644 --- a/services/nginx/volumes/nginx_conf/has.conf +++ b/services/nginx/volumes/nginx_conf/has.conf @@ -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; diff --git a/services/wyoming-faster-whisper/docker-run.sh b/services/wyoming-faster-whisper/docker-run.sh index 6e8a655..304f405 100755 --- a/services/wyoming-faster-whisper/docker-run.sh +++ b/services/wyoming-faster-whisper/docker-run.sh @@ -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