Proxmox things to do

Much is inspired by TailScale and their Video Channel.

Things to do Before the install

  • Run pweb as the webserver on the sever small to have access to all the needed files. The command is copyparty runing on port 80 on /usr/local/bin
  • Proxmox install Image and to follow insallation, I use a JetKVM that already has the image on it.
  • Give it a fixed IP of 192.168.1.2

Most used scripts

apt install curl 📋
curl small/proxmox_start | bash 📋
curl small/run.sh | bash 📋
  • curl : curl is needed for the rest
  • prox_new : Configuration after the first install for the host
  • proxmox_start : Run on the host right after installing an LXC
  • run.sh : Run on the LXC after proxmos_start on the hist

Extra links.

What to install and set?

  • Set GITHUB key
  • Upddate PVE:Script Local (Is on port 3000)
  • SearchNXG, Immage (with syncthing), ntfy, emby, adguard, unbound, homeassiastant, yt-dlp-webui. transmission, Navidrome,
  • Configure the backup. Set backup for homeassistant

Home Assistant

Install Tailscale via Settings, Add Ons. In Configurations, add the following via 3 dots and yamls

share_homeassistant: disabled
accept_routes: false
advertise_exit_node: false
snat_subnet_routes: false
advertise_connector: false

Some extra info

  • Install nfs-cmmon and bindfs.
  • Mount on /data
  • mkdir /data-remap
  • bindfs --force-user=100000 --force-group=100000 /data /data-remap
  • In script : Mount read only pct set 114 -mp0 /data-remap,mp=/data,ro=1
  • In script : Mount RW pct set 114 -mp0 /data-remap,mp=/data
  • in script : pct set 114 –dev0 /dev/net/tun
  • in script : pct set 114 –features keyctl=1,nesting=1
  • Edit /ect/locale.gen by commenting out the current one and uncomment en_GB.UTF-8 and run locale-gen:w
  • Info

Lines for /etc/fstab :

data:/data /data nfs default,_netdev 0 0
/data /data-remap fuse.bindfs force-user=100000,force-group=100000 0 0

Tailscale on JetKVM

  • Enable Developers mode via Settings, Advanced
  • Kopy the content from the client from .ssh/id.
  • On the client ssh root@<IP adress Jes-KVM> and exit.
  • Next on the client : ssh root@<IP adress Jes-KVM>
  • On the Jet-KVM mkdir -p /etc/ssl/certs/
  • Then : wget --no-check-certificate -O /etc/ssl/certs/ca-certificates.crt https://curl.se/ca/cacert.pem
  • Then ln -sf /etc/ssl/certs/ca-certificates.crt /etc/ssl/cert.pem
  • Logout
  • curl -fsSL https://jetkvm.com/install-tailscale.sh | sh -s -- <jetkvm_ip>
  • After that tailscale update, reboot and run tailscale with ssh and whatever else.

Home Assistant run curl links

  • houghi -> Advanced Mode on.
  • Install File Editor
  • Edit config.yaml
rest_command:
  call_tv_page:
    url: "http://server/tv"
    method: GET

  • Restart
  • Check Developers Tools -? Actios, pull down and go to call_tv_page
  • Settings -> Automation > + Create Automation -> Set Time > search fo call_tv_page
$output = shell_exec('ssh -t user@server command');
echo "<pre>$output</pre>";

Add Squirellmail somehow