Added CT's NodeJS, NodeRed, z2mqtt & nextcloud

This commit is contained in:
2021-09-28 02:06:22 +00:00
parent 57c54aaa07
commit cc6f043f9e
14 changed files with 486 additions and 20 deletions

View File

@@ -33,29 +33,33 @@ This can be done on a Minimal debian CT (make sure to enable nesting) on the new
| ddns | Alpine | DDNS client configured for OVH/OVH-Cloud |
| transfersh | Alpine | transfer.sh instance |
| iscsi | Alpine | iSCSI server |
| z2mqtt | Alpine | Mqtt bridges for Zigbee and ZWave |
| nodered | Alpine | Node-Red |
| nodejs | Alpine | Basic nodejs install with pm2 |
## TODO
**Begin original list**
Hass+Mqtt
Z2mqtt+zw2mqtt
SMB
Hass
Mqtt
SMB
Nextcloud
Nextcloud
AptCacherNG
NodeRed
AptCacherNG
~Unifi~ Not supported in debian 11
~Unifi~ Not supported in debian 11
Docker
MailBackup*
~FileShelter~ Not supported in debian 11 /transfer.sh As alternative
~FileShelter~ Not supported in debian 11 /transfer.sh As alternative
WS(x2go-xfce)
**End original list**
@@ -93,13 +97,13 @@ Then select the created credential and click save
## colabora
* Update the configuration in /etc/loolwsd/loolwsd.xml and reload the service `systemctl restart loolwsd`
## jellyfin
* To set-up the system follow the inital set-up wizard on http://<ip>:8096
* To set-up the system follow the inital set-up wizard on http://`<ip>`:8096
## domoticz
* Avalible on http://<ip>:8080
* Avalible on http://`<ip>`:8080
## transfersh
* Avalible on http://<ip>:8080
* Avalible on http://`<ip>`:8080
## omadaV3
* To set-up the system follow the inital set-up wizard on http://<ip>:8088
* To set-up the system follow the inital set-up wizard on http://`<ip>`:8088
## docker
* Run the FistRun scipt in the container `ash /opt/Setup/Scripts/FirstRun.sh`
This container can be set up in two ways
@@ -113,7 +117,7 @@ This container can be set up in two ways
modprobe target_core_mod
printf "#Load iSCSI module at boot\ntarget_core_mod" > /etc/modules-load.d/iSCSI-target.conf
```
* Add the following to /etc/pve/lxc/<CT-ID>.conf
* Add the following to /etc/pve/lxc/`<CT-ID>`.conf
```
lxc.apparmor.profile: unconfined
```
@@ -127,6 +131,43 @@ create <iqn for this server,Example:(iqn.2021-09.lan.test:host)>
exit
```
## z2mqtt
**Do not start this container after cration, follow these steps first**
* Recomended to give CT 1-2GB of RAM (Required for updating)
### In Proxmox
* Add the folling to `/etc/udev/rules.d/99-CustomHome.rules`
```
KERNEL=="ttyUSB[0-9]*", MODE="0666"
KERNEL=="ttyACM[0-9]*", MODE="0666"
SUBSYSTEM=="tty", ACTION=="change", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="16a8", SYMLINK+="ttyACM-Zigbee"
SUBSYSTEM=="tty", ACTION=="add", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="16a8", SYMLINK+="ttyACM-Zigbee"
SUBSYSTEM=="tty", ACTION=="change", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", SYMLINK+="ttyACM-Zwave"
SUBSYSTEM=="tty", ACTION=="add", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", SYMLINK+="ttyACM-Zwave"
```
* Run `udevadm trigger`
* Add the folling to /etc/pve/lxc/`<CT-ID>`.conf
```
lxc.cgroup2.devices.allow: c 166:* rwm
lxc.mount.entry: /dev/ttyACM-Zigbee dev/ttyACM-Zigbee none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM-Zwave dev/ttyACM-Zwave none bind,optional,create=file
```
* Zigbee2mqtt avalible on http://`<ip>`:5002
* ZWave2mqtt avalible on http://`<ip>`:8091
* in the ZWave2mqtt web ui set the Zwave serial port to /dev/ttyACM-Zwave
* If a `Cannot lock port` error shows, please reboot the CT, if that does not fix it try rebooting the Proxmox server
## nodered
* Avalible on http://`<ip>`:1880
## nextcloud
**MountPoint for data folder `/var/nextcloud`**
1. Edit the parameters in the FistRun script in the container `vi /opt/Setup/Scripts/FirstRun.sh`
2. Run the FistRun scipt in the container `ash /opt/Setup/Scripts/FirstRun.sh`
3. Avalible on http://`<ip>`
# Further CT documentation
## iscsi
@@ -143,17 +184,17 @@ exit
### Add Drive
#### In Proxmox
* Create LVM Volume (Avalible @ /dev/<poolName>/<VolumeName>)
* Create LVM Volume (Avalible @ /dev/`<poolName>`/`<VolumeName>`)
```
lvcreate --name <name> --size <VolumeSize>G <PoolName>
```
* Create ZFS Volume (Avalible @ /dev/<poolName>/<VolumeName>)
* Create ZFS Volume (Avalible @ /dev/`<poolName>`/`<VolumeName>`)
```
zfs create -o volblocksize=32k -V <VolumeSize>G <poolName>/<VolumeName>
zfs set sync=disabled <poolName>/<VolumeName>
```
* Get id by using ls -l /dev/<devicename>
* Add the folling to /etc/pve/lxc/<CT-ID>.conf
* Get id by using ls -l /dev/`<devicename>`
* Add the folling to /etc/pve/lxc/`<CT-ID>`.conf
```
lxc.cgroup2.devices.allow: b <id>:<Subid> rwm
lxc.mount.entry: /dev/<devicename> dev/<device> none bind,optional,create=file