323 lines
13 KiB
HTML
323 lines
13 KiB
HTML
<!--
|
||
title: Transfer of proxmox.odt
|
||
description:
|
||
published: 1
|
||
date: 2024-01-31T21:24:19.603Z
|
||
tags:
|
||
editor: ckeditor
|
||
dateCreated: 2024-01-28T18:51:43.046Z
|
||
-->
|
||
|
||
<h1>Header</h1>
|
||
<p>Your content here</p>
|
||
<p> </p>
|
||
<h2>Grafana</h2>
|
||
<p>http://192.168.178.63:3000</p>
|
||
<p>admin, admin → borabora</p>
|
||
<p><br> </p>
|
||
<p><a href="https://www.derekseaman.com/2023/04/home-assistant-installing-grafana-lxc.html">https://www.derekseaman.com/2023/04/home-assistant-installing-grafana-lxc.html</a></p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<h2>InfluxDB LXC</h2>
|
||
<p>http://192.168.178.64:8086</p>
|
||
<p>version 2 and Telegraf installed</p>
|
||
<p><br> </p>
|
||
<p>nano /etc/influxdb/influxdb.conf</p>
|
||
<p>nano /etc/telegraf/telegraf.conf</p>
|
||
<p><br> </p>
|
||
<p><a href="https://www.derekseaman.com/2023/04/home-assistant-installing-influxdb-lxc.html">https://www.derekseaman.com/2023/04/home-assistant-installing-influxdb-lxc.html</a></p>
|
||
<p>http://192.168.178.68:8888</p>
|
||
<p>If you don’t know the IP of your container type >>ip a</p>
|
||
<p><br> </p>
|
||
<p><a href="https://www.influxdata.com/downloads/">https://www.influxdata.com/downloads/</a></p>
|
||
<p>root, salzbrezel</p>
|
||
<p>wget https://dl.influxdata.com/chronograf/releases/chronograf_1.10.2_amd64.deb</p>
|
||
<p><br> </p>
|
||
<p>homeassistant, savemydata</p>
|
||
<p> </p>
|
||
<p> </p>
|
||
<p><br> </p>
|
||
<h2>Wiki.js LXC</h2>
|
||
<p>https://tteck.github.io/Proxmox/</p>
|
||
<p>http://192.168.178.26:3000/, borabora, <a href="mailto:boraers@gmail.com">boraers@gmail.com</a></p>
|
||
<p>https://wiki.mywiki.com</p>
|
||
<p><br> </p>
|
||
<p>diagrams can be created by inserting “diagram” from the left panel on Markdown pages</p>
|
||
<p><br> </p>
|
||
<h3>Backing up all pages on github</h3>
|
||
<p>how to access the file system of a proxmox container?</p>
|
||
<p><br> </p>
|
||
<p><a href="https://www.reddit.com/r/Proxmox/comments/fap1wx/beginner_question_where_are_container_filesystems/">https://www.reddit.com/r/Proxmox/comments/fap1wx/beginner_question_where_are_container_filesystems/</a></p>
|
||
<p>find / -size +500M -ls</p>
|
||
<p>/var/lib/lxc/103/rootfs/</p>
|
||
<p><br> </p>
|
||
<p>lvdisplay</p>
|
||
<p>/dev/pve/vm-103-disk-0</p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p>using github:</p>
|
||
<p><a href="https://docs.requarks.io/storage/git">https://docs.requarks.io/storage/git</a></p>
|
||
<p>ssh-keygen -t rsa -b 4096</p>
|
||
<p>/root/.ssh/id_rsa</p>
|
||
<p>Your identification has been saved in /root/.ssh/id_rsa</p>
|
||
<p>Your public key has been saved in /root/.ssh/id_rsa.pub</p>
|
||
<p>The key fingerprint is:</p>
|
||
<p>SHA256:JmrdPXntGuqgopWrbAquqhZIGuy5rdo2vGLr/BHm3k4 root@wikijs</p>
|
||
<p>The key's randomart image is:</p>
|
||
<p>+---[RSA 4096]----+</p>
|
||
<p>| |</p>
|
||
<p>| |</p>
|
||
<p>|. |</p>
|
||
<p>|.o |</p>
|
||
<p>|=..o . S |</p>
|
||
<p>|o+o .+ + . . . |</p>
|
||
<p>|..+o=E. o + o . |</p>
|
||
<p>|=**+=. . . + o |</p>
|
||
<p>|#@XBo+. .o ... |</p>
|
||
<p>+----[SHA256]-----+</p>
|
||
<p><br> </p>
|
||
<p>>>nano /root/.ssh/id_rsa.pub</p>
|
||
<p><a href="https://unix.stackexchange.com/questions/122795/long-line-wrapping-in-nano">https://unix.stackexchange.com/questions/122795/long-line-wrapping-in-nano</a></p>
|
||
<p>!!complicated copy procedure: esc → shift+4 → mar everything with mouse → Alt+6 or right mouse!!</p>
|
||
<p>ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCy/UxBIoWGzWnRmHnLn89TwruJ3srW3ZeYPdUta5+Mv4l78IJsT+qIxyevQTH08kSktCz+J1M4aJSOXEpLdZmiy92kV5auFASNGbkwVKT9rV1+JihxZS14v3bcggOm8qfZZLDa/Wk54pcEvJOOuuZyjZpULAiaXtOUtIptd6Dt2jOHVnfuFRmqcNDokTJe6x/CCLcifcBb6W8GS2RbIORk/U4LMxqe+aXjdKwd6d3ksGq+nCzkRLgQ18h8ZnFrdFaq12ApP6xVmsZgM4aydWj7Y73j5Me0vJD1QltQGjb5sDOXJ3C3ZI8Oxnmaj+UWbwGXWEm5JlSuqqIdAjQCf8yWtfdQnxLtKa0zAtjt4YblD/l1zaOWg4+DxShMQ5qRPg3uHRxW0XBmGR7GTtjloFg6It4IUym+0g33JLlsQITVj9t5XAUFP6o5oTaFwvRT+wkUM/J4B4xkdeR9mha7Sxf8HjVThfrOBadqco37MuLRIGe76jQfglrn5w3AxyFFC4spd5CuFjdq+8vjxYYMnDorSSA5lHVpzswkd6UhJHgHD1L3lFEOkEK88k6D0nGMnj/S3N9ybdKWgaAy4vBYFj1FaAzsdh7p6trnSY9O+vPdA6lmZbFg89UDkmqnyu0mKUa/BSz5YtuqUNSqFRigmz6abq4fQ8fycmzLbaQsuCqJ3Q== root@wikijs</p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p>TARGET CONFIGURATION</p>
|
||
<p></p>
|
||
<p>Authentication Type</p>
|
||
<p>ssh</p>
|
||
<p>Use SSH for maximum security.</p>
|
||
<p></p>
|
||
<p>Repository URI</p>
|
||
<p>git@github.com:BoraEr90/WikiJS.git</p>
|
||
<p>Git-compliant URI (e.g. git@github.com:org/repo.git for ssh, https://github.com/org/repo.git for basic)</p>
|
||
<p></p>
|
||
<p>Branch</p>
|
||
<p>main</p>
|
||
<p>The branch to use during pull / push</p>
|
||
<p></p>
|
||
<p>SSH Private Key Mode</p>
|
||
<p>path</p>
|
||
<p>SSH Authentication Only - The mode to use to load the private key. Fill in the corresponding field below.</p>
|
||
<p></p>
|
||
<p>A - SSH Private Key Path</p>
|
||
<p>/root/.ssh/id_rsa</p>
|
||
<p>SSH Authentication Only - Absolute path to the key. The key must NOT be passphrase-protected. Mode must be set to path to use this option.</p>
|
||
<p></p>
|
||
<p>B - SSH Private Key Contents</p>
|
||
<p>SSH Authentication Only - Paste the contents of the private key. The key must NOT be passphrase-protected. Mode must be set to contents to use this option.</p>
|
||
<p>Some hosts requires SSL certificate checking to be disabled. Leave enabled for proper security.</p>
|
||
<p></p>
|
||
<p>Username</p>
|
||
<p>Basic Authentication Only</p>
|
||
<p></p>
|
||
<p>Password / PAT</p>
|
||
<p>Basic Authentication Only</p>
|
||
<p></p>
|
||
<p>Default Author Email</p>
|
||
<p>boraers@gmail.com</p>
|
||
<p>Used as fallback in case the author of the change is not present.</p>
|
||
<p></p>
|
||
<p>Default Author Name</p>
|
||
<p>BoraEr90</p>
|
||
<p>Used as fallback in case the author of the change is not present.</p>
|
||
<p></p>
|
||
<p>Local Repository Path</p>
|
||
<p>/root/repo</p>
|
||
<p>Path where the local git repository will be created.</p>
|
||
<p></p>
|
||
<p>Git Binary Path</p>
|
||
<p>Optional - Absolute path to the Git binary, when not available in PATH. Leave empty to use the default PATH location (recommended).</p>
|
||
<p>SYNC DIRECTION</p>
|
||
<p>Choose how content synchronization is handled for this storage target.</p>
|
||
<p>Bi-directional</p>
|
||
<p>In bi-directional mode, content is first pulled from the storage target. Any newer content overwrites local content. New content since last sync is then pushed to the storage target, overwriting any content on target if present.</p>
|
||
<p>Push to target</p>
|
||
<p>Content is always pushed to the storage target, overwriting any existing content. This is safest choice for backup scenarios.</p>
|
||
<p>Pull from target</p>
|
||
<p>Content is always pulled from the storage target, overwriting any local content which already exists. This choice is usually reserved for single-use content import. Caution with this option as any local content will always be overwritten!</p>
|
||
<p>SYNC SCHEDULE</p>
|
||
<p>For performance reasons, this storage target synchronize changes on an interval-based schedule, instead of on every change. Define at which interval should the synchronization occur.</p>
|
||
<p>Every</p>
|
||
<p>5</p>
|
||
<p>Minute(s)</p>
|
||
<p>0</p>
|
||
<p>Hour(s)</p>
|
||
<p>0</p>
|
||
<p>Day(s)</p>
|
||
<p>0</p>
|
||
<p>Month(s)</p>
|
||
<p>0</p>
|
||
<p>Year(s)</p>
|
||
<p>Currently set to every 5 minutes.</p>
|
||
<p>The default is every 5 minutes.</p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<h3>using self-hosted gitea</h3>
|
||
<p><a href="https://www.reddit.com/r/wikijs/comments/uyfjlz/help_cannot_use_storage_targets/">https://www.reddit.com/r/wikijs/comments/uyfjlz/help_cannot_use_storage_targets/</a></p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p><a href="https://www.youtube.com/watch?v=NaKExFTCKtg">https://www.youtube.com/watch?v=NaKExFTCKtg</a></p>
|
||
<p><br> </p>
|
||
<p>192.168.178.79</p>
|
||
<p>attention: DHCP to be activated manually!</p>
|
||
<p><br> </p>
|
||
<p>root, mygit90</p>
|
||
<p><br> </p>
|
||
<p>#Install git</p>
|
||
<p>apt update && apt install git -y</p>
|
||
<p>#Get the correct download link for the latest version</p>
|
||
<p>wget https://dl.gitea.com/gitea/1.21.4/gitea-1.21.4-linux-amd64</p>
|
||
<p>#Move the binary to bin</p>
|
||
<p>mv gitea* /usr/local/bin/gitea</p>
|
||
<p>#Make executable</p>
|
||
<p>chmod +x /usr/local/bin/gitea</p>
|
||
<p>#Ensure it works</p>
|
||
<p>gitea --version</p>
|
||
<p>#Create the user/group for gitea to operate as</p>
|
||
<p>adduser --system --group --disabled-password --home /etc/gitea gitea</p>
|
||
<p>#Config directory was created by adduser</p>
|
||
<p>#Create directory structure (mountpoint should be /var/lib/gitea)</p>
|
||
<p>mkdir -p /var/lib/gitea/{custom,data,log}</p>
|
||
<p>chown -R gitea:gitea /var/lib/gitea/</p>
|
||
<p>chmod -R 750 /var/lib/gitea/</p>
|
||
<p>chown root:gitea /etc/gitea</p>
|
||
<p>chmod 770 /etc/gitea</p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p>checking permission:</p>
|
||
<p>ls -l</p>
|
||
<p>/var/lib/gitea/lost+found</p>
|
||
<p><br> </p>
|
||
<p>rmdir /var/lib/gitea/</p>
|
||
<p>rm -r -f /var/lib/gitea/</p>
|
||
<p><br> </p>
|
||
<p>lsof +D /var/lib/gitea/</p>
|
||
<p><br> </p>
|
||
<p>umount /var/lib/gitea</p>
|
||
<p><br> </p>
|
||
<p>lsof +D /var/lib/gitea | awk '{print $2}' | tail -n +2 | xargs -r kill -9</p>
|
||
<p><br> </p>
|
||
<p><strong>need to delete the Linux lost+found directory to avoid issues with changing permissions:</strong></p>
|
||
<p><a href="https://www.baeldung.com/linux/lost-found-directory">https://www.baeldung.com/linux/lost-found-directory</a></p>
|
||
<p>find "-iname" lost+found -type d -exec rm -r "{}" \;</p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p>nano /etc/systemd/system/gitea.service</p>
|
||
<p>→ copy code from aforementioned instruction webpage</p>
|
||
<p><br> </p>
|
||
<p>ip a</p>
|
||
<p>192.168.178.79/24</p>
|
||
<p>fe80::be24:11ff:fee4:4091/64</p>
|
||
<p><br> </p>
|
||
<p>systemctl daemon-reload</p>
|
||
<p>systemctl enable --now gitea</p>
|
||
<p><br> </p>
|
||
<p>→ configure via web gui: <a href="http://192.168.178.79:3000/">http://192.168.178.79:3000/</a></p>
|
||
<p><br> </p>
|
||
<p>admin_bora, <a href="mailto:boraers@gmail.com">boraers@gmail.com</a>, mygit90</p>
|
||
<p><br> </p>
|
||
<p>after isntallation: <a href="http://192.168.178.79:80/">http://192.168.178.79:80/</a></p>
|
||
<p><br> </p>
|
||
<p><a href="http://192.168.178.79:3000/admin_bora/WikiJS.git">http://192.168.178.79:3000/admin_bora/WikiJS.git</a></p>
|
||
<p><br> </p>
|
||
<p>gitea@192.168.178.79:admin_bora/WikiJS.git</p>
|
||
<p>instead of git@github.com:BoraEr90/WikiJS.git</p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p>TARGET CONFIGURATION</p>
|
||
<p></p>
|
||
<p>Authentication Type</p>
|
||
<p>basic</p>
|
||
<p>Use SSH for maximum security.</p>
|
||
<p></p>
|
||
<p>Repository URI</p>
|
||
<p>http://192.168.178.79:80/admin_bora/WikiJS.git</p>
|
||
<p>Git-compliant URI (e.g. git@github.com:org/repo.git for ssh, https://github.com/org/repo.git for basic)</p>
|
||
<p></p>
|
||
<p>Branch</p>
|
||
<p>main</p>
|
||
<p>The branch to use during pull / push</p>
|
||
<p></p>
|
||
<p>SSH Private Key Mode</p>
|
||
<p>path</p>
|
||
<p>SSH Authentication Only - The mode to use to load the private key. Fill in the corresponding field below.</p>
|
||
<p></p>
|
||
<p>A - SSH Private Key Path</p>
|
||
<p>/root/.ssh/id_rsa</p>
|
||
<p>SSH Authentication Only - Absolute path to the key. The key must NOT be passphrase-protected. Mode must be set to path to use this option.</p>
|
||
<p></p>
|
||
<p>B - SSH Private Key Contents</p>
|
||
<p>SSH Authentication Only - Paste the contents of the private key. The key must NOT be passphrase-protected. Mode must be set to contents to use this option.</p>
|
||
<p>Some hosts requires SSL certificate checking to be disabled. Leave enabled for proper security.</p>
|
||
<p></p>
|
||
<p>Username</p>
|
||
<p>admin_bora</p>
|
||
<p>Basic Authentication Only</p>
|
||
<p></p>
|
||
<p>Password / PAT</p>
|
||
<p>mygit90</p>
|
||
<p>Basic Authentication Only</p>
|
||
<p></p>
|
||
<p>Default Author Email</p>
|
||
<p>boraers@gmail.com</p>
|
||
<p>Used as fallback in case the author of the change is not present.</p>
|
||
<p></p>
|
||
<p>Default Author Name</p>
|
||
<p>admin_bora</p>
|
||
<p>Used as fallback in case the author of the change is not present.</p>
|
||
<p></p>
|
||
<p>Local Repository Path</p>
|
||
<p>/root/repo</p>
|
||
<p>Path where the local git repository will be created.</p>
|
||
<p></p>
|
||
<p>Git Binary Path</p>
|
||
<p>Optional - Absolute path to the Git binary, when not available in PATH. Leave empty to use the default PATH location (recommended).</p>
|
||
<p>SYNC DIRECTION</p>
|
||
<p>Choose how content synchronization is handled for this storage target.</p>
|
||
<p>Bi-directional</p>
|
||
<p>In bi-directional mode, content is first pulled from the storage target. Any newer content overwrites local content. New content since last sync is then pushed to the storage target, overwriting any content on target if present.</p>
|
||
<p>Push to target</p>
|
||
<p>Content is always pushed to the storage target, overwriting any existing content. This is safest choice for backup scenarios.</p>
|
||
<p>Pull from target</p>
|
||
<p>Content is always pulled from the storage target, overwriting any local content which already exists. This choice is usually reserved for single-use content import. Caution with this option as any local content will always be overwritten!</p>
|
||
<p>SYNC SCHEDULE</p>
|
||
<p>For performance reasons, this storage target synchronize changes on an interval-based schedule, instead of on every change. Define at which interval should the synchronization occur.</p>
|
||
<p>Every</p>
|
||
<p>5</p>
|
||
<p>Minute(s)</p>
|
||
<p>0</p>
|
||
<p>Hour(s)</p>
|
||
<p>0</p>
|
||
<p>Day(s)</p>
|
||
<p>0</p>
|
||
<p>Month(s)</p>
|
||
<p>0</p>
|
||
<p>Year(s)</p>
|
||
<p>Currently set to every 5 minutes.</p>
|
||
<p>The default is every 5 minutes.</p>
|
||
<p><br> </p>
|
||
<figure class="image"><img src="file:///tmp/lu84201fjdf.tmp/lu84201fkbw_tmp_11fce3e5bceb2438.png"></figure>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<figure class="image image-style-align-left image_resized" style="width:36.53%;"><img src="file:///tmp/lu84201fjdf.tmp/lu84201fkbw_tmp_8cda42542491ee35.png">
|
||
<figcaption>pic</figcaption>
|
||
</figure>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p> </p>
|
||
<p> </p>
|
||
<p><br> </p>
|
||
<p><br> </p>
|
||
<p> </p>
|