From deff071e9cc1727f359ed36287301764be8821c0 Mon Sep 17 00:00:00 2001 From: Administrator Date: Thu, 1 Feb 2024 21:40:52 +0100 Subject: [PATCH] docs: update test_transfer_odt_4 --- test_transfer_odt_4.md | 175 +++++++++++++++++++++++++---------------- 1 file changed, 109 insertions(+), 66 deletions(-) diff --git a/test_transfer_odt_4.md b/test_transfer_odt_4.md index ec20307..6e05c1f 100644 --- a/test_transfer_odt_4.md +++ b/test_transfer_odt_4.md @@ -2,15 +2,13 @@ title: transfer proxmox - HTML to Markdown description: published: 1 -date: 2024-02-01T19:42:31.508Z +date: 2024-02-01T20:40:47.101Z tags: editor: markdown dateCreated: 2024-02-01T19:16:08.517Z --- -# Title -Some text here @page { size: 8.27in 11.69in; margin: 0.79in } p { line-height: 115%; margin-bottom: 0.1in; background: transparent } h1 { margin-bottom: 0.08in; background: transparent; page-break-after: avoid } h1.western { font-family: "Liberation Sans", sans-serif; font-size: 18pt; font-weight: bold } h1.cjk { font-family: "Noto Sans CJK SC"; font-size: 18pt; font-weight: bold } h1.ctl { font-family: "Lohit Devanagari"; font-size: 18pt; font-weight: bold } h2 { margin-top: 0.14in; margin-bottom: 0.08in; background: transparent; page-break-after: avoid } h2.western { font-family: "Liberation Serif", serif; font-size: 18pt; font-weight: bold } h2.cjk { font-family: "Noto Serif CJK SC"; font-size: 18pt; font-weight: bold } h2.ctl { font-family: "Lohit Devanagari"; font-size: 18pt; font-weight: bold } pre { background: transparent } pre.western { font-family: "Liberation Mono", monospace; font-size: 10pt } pre.cjk { font-family: "Noto Sans Mono CJK SC", monospace; font-size: 10pt } pre.ctl { font-family: "Liberation Mono", monospace; font-size: 10pt } h3 { margin-top: 0.1in; margin-bottom: 0.08in; background: transparent; page-break-after: avoid } h3.western { font-family: "Liberation Sans", sans-serif; font-size: 14pt; font-weight: bold } h3.cjk { font-family: "Noto Sans CJK SC"; font-size: 14pt; font-weight: bold } h3.ctl { font-family: "Lohit Devanagari"; font-size: 14pt; font-weight: bold } a:link { color: #000080; text-decoration: underline } code.western { font-family: "Liberation Mono", monospace } code.cjk { font-family: "Noto Sans Mono CJK SC", monospace } code.ctl { font-family: "Liberation Mono", monospace } a:visited { color: #800000; text-decoration: underline } @@ -18,9 +16,13 @@ Some text here Marked text Marked text - -Proxmox +

+ + + + +# Proxmox @@ -64,7 +66,7 @@ lxc-info -n 111 -# avoid suspending after closing laptop lid +## avoid suspending after closing laptop lid [https://www.reddit.com/r/Proxmox/comments/kxdjrc/i\_am\_running\_proxmox\_on\_a\_thinkpad\_laptop\_how\_can/](https://www.reddit.com/r/Proxmox/comments/kxdjrc/i_am_running_proxmox_on_a_thinkpad_laptop_how_can/) @@ -87,7 +89,7 @@ Uncomment the line about HandleLidSwitch=suspend and change suspend to ignore - +

# Nextcloud @@ -116,11 +118,11 @@ figure out IP address: ip addr >> eth0@if12 \>> http://\[CONTAINER\_IP\]:9000 -http://192.168.178.23:9000 +http://192.168.178.23:9000 - +

**in portainer:** @@ -147,9 +149,9 @@ volumes: environment: -\- MYSQL\_ROOT\_PASSWORD=password +\- MYSQL\_ROOT\_PASSWORD=password -\- MYSQL\_PASSWORD=password +\- MYSQL\_PASSWORD=password \- MYSQL\_DATABASE=nextcloud @@ -177,7 +179,7 @@ volumes: environment: -\- MYSQL\_PASSWORD=password +\- MYSQL\_PASSWORD=password \- MYSQL\_DATABASE=nextcloud @@ -194,7 +196,7 @@ environment: - +

# Homeassistant VM @@ -223,11 +225,11 @@ Test, bora samba share: homeassistant, sharemyHA, WORKGROUP -[smb://](smb://192.168.178.43/)[1](smb://192.168.178.43/)[92.168.178.43](smb://192.168.178.43/) +[smb://192.168.178.43](smb://192.168.178.43/) - +

network storage on fritz.nas @@ -245,7 +247,7 @@ Password: - +

configure static IP address: @@ -257,13 +259,13 @@ in Fritzbox: 192.168.178.43 - +

deConz: ConbeeIII, testtest - +

[smb://fritz.nas](smb://fritz.nas/) @@ -271,6 +273,8 @@ homeassistant, \*\*\*, WORKGROUP + +

# MQTT Broker [https://smarthomescene.com/guides/how-to-separate-zigbee2mqtt-from-home-assistant-in-proxmox/](https://smarthomescene.com/guides/how-to-separate-zigbee2mqtt-from-home-assistant-in-proxmox/) @@ -285,7 +289,7 @@ http://192.168.178.80:1883 -sudo mosquitto\_passwd -c /etc/mosquitto/passwd root +sudo mosquitto\_passwd -c /etc/mosquitto/passwd root @@ -303,7 +307,7 @@ sudo /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf - +

**do not forget:** @@ -323,7 +327,7 @@ topic\_pub = f"homeassistant/sensor/node\_{node.nodeNumber}/state" - +

add new user: @@ -333,14 +337,15 @@ sudo mosquitto\_passwd -c /etc/mosquitto/passwd note4 note4 - + +

**attention**: when migrating HAOS, the user/pswd of mqtt must be identical for correct operation of Tasmota, Shelly and Mycropython devices - +

## Wiki.js LXC https://tteck.github.io/Proxmox/ @@ -353,8 +358,9 @@ https://wiki.mywiki.com diagrams can be created by inserting “diagram” from the left panel on Markdown pages - + +

### Backing up all pages on github how to access the file system of a proxmox container? @@ -377,9 +383,9 @@ lvdisplay - +

-using github: +using github: [https://docs.requarks.io/storage/git](https://docs.requarks.io/storage/git) @@ -432,6 +438,7 @@ ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCy/UxBIoWGzWnRmHnLn89TwruJ3srW3ZeYPdUta5+M +

TARGET CONFIGURATION @@ -579,7 +586,7 @@ The default is every 5 minutes. - +

### using self-hosted gitea @@ -603,6 +610,8 @@ root, mygit90 +

+ #Install git apt update && apt install git -y @@ -643,7 +652,8 @@ chmod 770 /etc/gitea - + +

checking permission: @@ -669,7 +679,9 @@ umount /var/lib/gitea lsof +D /var/lib/gitea | awk '{print $2}' | tail -n +2 | xargs -r kill -9 - + + +

**need to delete the Linux lost+found directory to avoid issues with changing permissions:** @@ -683,7 +695,7 @@ find "-iname" lost+found -type d -exec rm -r "{}" \\; - +

nano /etc/systemd/system/gitea.service @@ -729,7 +741,7 @@ instead of git@github.com:BoraEr90/WikiJS.git - +

TARGET CONFIGURATION @@ -887,7 +899,7 @@ The default is every 5 minutes. - +

### markdown syntax [https://www.markdownguide.org/tools/wiki-js/](https://www.markdownguide.org/tools/wiki-js/) @@ -915,7 +927,7 @@ convert doc and odt to markdown: use pandox - +

## deCONZ LXC http://192.168.178.70 @@ -926,19 +938,19 @@ ConbeeIII, borabora - +

[https://tisgoud.nl/2020/08/conbee-in-home-assistant-on-proxmox/](https://tisgoud.nl/2020/08/conbee-in-home-assistant-on-proxmox/) \>>lsusb -deCONZ shows up as ‘Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)’. Notice the ID of the device ‘ID 0403:6015’. +deCONZ shows up as ‘Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)’. Notice the ID of the device ‘ID 0403:6015’. \>>qm list 101 proxmoxhaos -\>>qm set 101 -usb0 host=0403:6015 +\>>qm set 101 -usb0 host=0403:6015 @@ -950,33 +962,34 @@ ID: /dev/serial/by-id/usb-dresden\_elektronik\_ConBee\_III\_DE03188934-if00-port - + +

[https://wiki.fhem.de/wiki/Conbee/deCONZ\_im\_Proxmox\_LXC-Container\_(Tutorial)](https://wiki.fhem.de/wiki/Conbee/deCONZ_im_Proxmox_LXC-Container_(Tutorial)) \>>ls /dev/ttyUSB\* -/dev/ttyUSB0 +/dev/ttyUSB0 \>>lsusb Bus 002 Device 002: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO) -\>>ls -l /dev/bus/usb/002/002 +\>>ls -l /dev/bus/usb/002/002 -crw-rw-r-- 1 root root 189, 8 Jan 21 19:54 /dev/bus/usb/002/002 +crw-rw-r-- 1 root root 189, 8 Jan 21 19:54 /dev/bus/usb/002/002 \>> cd /etc/pve/local/lxc/ -\>> nano .conf +\>> nano \.conf -lxc.cgroup.devices.allow: c 189:\* rwm +lxc.cgroup.devices.allow: c 189:\* rwm -lxc.mount.entry: /dev/bus/usb/002/002 dev/bus/usb/002/002 none bind,optional,create=file +lxc.mount.entry: /dev/bus/usb/002/002 dev/bus/usb/002/002 none bind,optional,create=file lxc.cgroup.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 LXC>>sudo reboot now @@ -992,7 +1005,7 @@ LXC>>ls -l /dev/ttyUSB0 node>>nano /etc/udev/rules.d/50-lxcusb.rules -SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", GROUP="users", MODE="0666" +SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", GROUP="users", MODE="0666" LXC>>sudo systemctl enable deconz @@ -1001,13 +1014,15 @@ LXC>>sudo systemctl enable deconz - +

## Deconz in Ubuntu VM bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/vm/ubuntu-vm.sh)" +

+ root, borabora 192.168.178.76 @@ -1016,7 +1031,7 @@ root, borabora - +

https://phoscon.de/en/conbee/install#ubuntu @@ -1027,7 +1042,7 @@ https://phoscon.de/en/conbee/install#ubuntu - +

## Grafana http://192.168.178.63:3000 @@ -1035,6 +1050,7 @@ http://192.168.178.63:3000 admin, admin → borabora +

[https://www.derekseaman.com/2023/04/home-assistant-installing-grafana-lxc.html](https://www.derekseaman.com/2023/04/home-assistant-installing-grafana-lxc.html) @@ -1043,12 +1059,12 @@ admin, admin → borabora - +

## InfluxDB LXC -http://192.168.178.64:8086 +~~http://192.168.178.64:8086~~ -version 2 and Telegraf installed +~~version 2~~ and Telegraf installed @@ -1079,7 +1095,7 @@ homeassistant, savemydata - +

## Mariadb LXC http://192.168.178.65 @@ -1087,6 +1103,7 @@ http://192.168.178.65 adminer installed +

The subsequent step involves executing the included security script. This script modifies certain default options that are less secure. Our purpose for running it is to prevent remote root logins and eliminate unnecessary database users. @@ -1095,6 +1112,7 @@ Run the security script: +

\>>mysql\_secure\_installation @@ -1126,18 +1144,18 @@ Reload privilege tables now? \[Y/n\] y +

We will create a new account called admin with the same capabilities as the root account, but configured for password authentication. - \>>mysql Prompt will change to MariaDB \[(none)\]> - +

Create a new local admin (Change the username and password to match your preferences) @@ -1148,6 +1166,8 @@ Create a new local admin (Change the username and password to match your prefere \>>CREATE USER 'admin'@'localhost' IDENTIFIED BY 'salzbrezel'; + +

Give local admin root privileges (Change the username and password to match above) @@ -1156,6 +1176,8 @@ Give local admin root privileges (Change the username and password to match abov \>>GRANT ALL ON \*.\* TO 'admin'@'localhost' IDENTIFIED BY 'salzbrezel' WITH GRANT OPTION; + +

Now, we'll give the user admin root privileges and password-based access that can connect from anywhere on your local area network (LAN), which has addresses in the subnet 192.168.100.0/24. This is an improvement because opening a MariaDB server up to the Internet and granting access to all hosts is bad practice.. Change the username, password and subnet to match your preferences: @@ -1164,6 +1186,8 @@ Now, we'll give the user admin root privileges and password-based access that ca \>>GRANT ALL ON \*.\* TO 'admin'@'192.168.178.%' IDENTIFIED BY 'salzbrezel' WITH GRANT OPTION; + +

Flush the privileges to ensure that they are saved and available in the current session: @@ -1172,6 +1196,8 @@ Flush the privileges to ensure that they are saved and available in the current \>>FLUSH PRIVILEGES; + +

command below this, exit the MariaDB shell: @@ -1180,6 +1206,8 @@ command below this, exit the MariaDB shell: \>>exit + +

Log in as the new database user you just created: @@ -1188,6 +1216,8 @@ Log in as the new database user you just created: \>>mysql -u admin -p + +

Create a new database: @@ -1196,6 +1226,8 @@ Create a new database: \>>CREATE DATABASE homeassistant; + +

command below this, exit the MariaDB shell: @@ -1204,10 +1236,13 @@ command below this, exit the MariaDB shell: \>>exit + +

⚠️ Reboot the lxc +

Checking status. @@ -1216,11 +1251,13 @@ Checking status. \>>systemctl status mariadb + +

Change the recorder: db\_url: in your HA configuration.yaml -Example: +**Example:** @@ -1228,13 +1265,13 @@ Example: recorder: -db\_url: mysql://admin:salzbrezel@192.168.178.65:3306/homeassistant?charset=utf8mb4 +db\_url: mysql://admin:salzbrezel@192.168.178.65:3306/homeassistant?charset=utf8mb4 ⚙️ Adminer is a full-featured database management tool -Adminer Interface: 192.168.178.65/adminer/ +Adminer Interface: 192.168.178.65/adminer/ @@ -1244,7 +1281,7 @@ Adminer Interface: 192.168.178.65/adminer/ - +

[https://smarthomescene.com/guides/moving-home-assistants-database-to-mariadb-on-proxmox/](https://smarthomescene.com/guides/moving-home-assistants-database-to-mariadb-on-proxmox/) @@ -1272,8 +1309,8 @@ This setting essentially tells Proxmox that the MariaDB LXC needs to be started - +

## AdGuard Home LXC [http://192.168.178.](http://192.168.178.67:3000/)[6](http://192.168.178.67:3000/)[7:3000](http://192.168.178.67:3000/) @@ -1281,12 +1318,14 @@ This setting essentially tells Proxmox that the MariaDB LXC needs to be started admin, salzbrezel +

AdGuard Home Setup Interface: IP:3000 (After Setup use only IP) (For the Home Assistant Integration, use port 80 not 3000) +

127.0.0.1 @@ -1303,12 +1342,13 @@ fe80::be24:11ff:fee1:a5a9%eth0 - +

## Frigate [https://www.homeautomationguy.io/blog/running-frigate-on-proxmox](https://www.homeautomationguy.io/blog/running-frigate-on-proxmox) +

http://192.168.178.69:9000 @@ -1319,7 +1359,7 @@ admin, takesomepics - +

## VS Code Server https://www.kentoseth.com/posts/2021/may/28/how-to-install-visual-studio-codevscode-inside-an-lxc-container/ @@ -1331,7 +1371,7 @@ https://www.kentoseth.com/posts/2021/may/28/how-to-install-visual-studio-codevsc - +

# Nginx Proxy Manager LXC bash -c "$(wget -qLO - [https://github.com/tteck/Proxmox/raw/main/ct/nginxproxymanager.sh](https://github.com/tteck/Proxmox/raw/main/ct/nginxproxymanager.sh))" @@ -1348,7 +1388,7 @@ forwardmyports00 - +

**add to configuration.yaml** @@ -1362,7 +1402,7 @@ trusted\_proxies: - +

[https://peyanski.com/home-assistant-remote-access-using-nginx/](https://peyanski.com/home-assistant-remote-access-using-nginx/) @@ -1379,7 +1419,7 @@ trusted\_proxies: - +

# GPU underclock & undervolt [https://graphicsreport.com/how-to-underclock-gpu/](https://graphicsreport.com/how-to-underclock-gpu/) @@ -1391,6 +1431,7 @@ trusted\_proxies: +

[https://wiki.archlinux.org/title/NVIDIA/Tips\_and\_tricks#Enabling\_overclocking](https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Enabling_overclocking) @@ -1437,9 +1478,11 @@ The documentation of Coolbits can be found in /usr/share/doc/nvidia/html/xconfig - +

[https://devicetests.com/ubuntu-20-04-gpu-fan-control](https://devicetests.com/ubuntu-20-04-gpu-fan-control) + +

## Understanding Coolbits Coolbits is a feature provided by NVIDIA that allows users to manipulate several advanced properties of the NVIDIA graphics driver. These properties include GPU clock offsets, memory transfer rate offsets, and fan speed control. The value of Coolbits is a sum of its component bits in the binary numeral system. For example, a Coolbits value of 4 enables manual GPU fan control.