chamges
This commit is contained in:
38
README.md
38
README.md
@@ -5,26 +5,34 @@ 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
|
||||||
cores: 2
|
cores: 2
|
||||||
features: fuse=1,keyctl=1,nesting=1
|
features: fuse=1,keyctl=1,nesting=1
|
||||||
hostname: homesrv01
|
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
|
onboot: 1
|
||||||
ostype: ubuntu
|
ostype: ubuntu
|
||||||
swap: 4000
|
protection: 1
|
||||||
rootfs: local-lvm:vm-105-disk-0,size=32G
|
rootfs: local-lvm:vm-105-disk-0,size=32G
|
||||||
|
swap: 1500
|
||||||
unprivileged: 1
|
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
|
```bash
|
||||||
# lsb_release -a
|
# lsb_release -a
|
||||||
|
|
||||||
Distributor ID: Ubuntu
|
Distributor ID: Ubuntu
|
||||||
Description: Ubuntu 23.10
|
Description: Ubuntu 24.04 LTS
|
||||||
Release: 23.10
|
Release: 24.04
|
||||||
Codename: mantic
|
Codename: noble
|
||||||
|
|
||||||
# uname -r
|
# uname -r
|
||||||
6.8.4-3-pve
|
6.8.4-3-pve
|
||||||
@@ -119,10 +127,25 @@ 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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
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
|
### home assistant
|
||||||
[Git Repo](https://git.limbosolutions.com/marcio.fernandes/homeAssistant)
|
[Git Repo](https://git.limbosolutions.com/marcio.fernandes/homeAssistant)
|
||||||
|
|
||||||
@@ -160,6 +183,9 @@ cd services
|
|||||||
mkdir lms
|
mkdir lms
|
||||||
cd lms
|
cd lms
|
||||||
git glone https://git.limbosolutions.com/marcio.fernandes/lms .
|
git glone https://git.limbosolutions.com/marcio.fernandes/lms .
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Mosquitto
|
### Mosquitto
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ scriptPath="$(dirname "$(readlink -f "$0")")"
|
|||||||
doWork(){
|
doWork(){
|
||||||
apt update -y
|
apt update -y
|
||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
$scriptPath/../services/portainer/docker-run.sh
|
#$scriptPath/../services/portainer/docker-run.sh
|
||||||
$scriptPath/../services/promtail/docker-run.sh
|
$scriptPath/../services/promtail/docker-run.sh
|
||||||
$scriptPath/../services/telegraf/docker-run.sh
|
$scriptPath/../services/telegraf/docker-run.sh
|
||||||
$scriptPath/../services/code-server/docker-run.sh
|
$scriptPath/../services/code-server/docker-run.sh
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
scriptPath="$(dirname "$(readlink -f "$0")")"
|
scriptPath="$(dirname "$(readlink -f "$0")")"
|
||||||
currentPath=$PWD
|
currentPath=$PWD
|
||||||
|
|
||||||
cd $scriptPath
|
cd $scriptPath
|
||||||
docker-compose pull
|
docker-compose pull
|
||||||
docker-compose up --force-recreate --build -d
|
docker-compose up --force-recreate --build -d
|
||||||
|
|
||||||
cd $currentPath
|
cd $currentPath
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ server {
|
|||||||
|
|
||||||
|
|
||||||
location ^~ /lms/ {
|
location ^~ /lms/ {
|
||||||
proxy_pass http://homesrv01.dev.lan:9000/;
|
proxy_pass http://localhost:9000/;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ scriptPath="$(dirname "$(readlink -f "$0")")"
|
|||||||
docker run -dt -p 10300:10300 \
|
docker run -dt -p 10300:10300 \
|
||||||
--name wyoming-faster-whisper \
|
--name wyoming-faster-whisper \
|
||||||
-v ${scriptPath}//volumes/data:/data rhasspy/wyoming-whisper \
|
-v ${scriptPath}//volumes/data:/data rhasspy/wyoming-whisper \
|
||||||
--model tiny-int8 --language pt
|
--model tiny.en --language en --beam-size 2
|
||||||
|
|||||||
Reference in New Issue
Block a user