-
bash / terminal history
Claude managed to give me this which seems to work ok: Add this to your go file (which runs on every boot): Edit /boot/config/go: bash nano /boot/config/goAdd these lines at the end: bash # Persist bash history ln -sf /boot/config/bash_history /root/.bash_history touch /boot/config/bash_historySave and exit (Ctrl+X, Y, Enter) Make the initial history file: bash touch /boot/config/bash_history ln -sf /boot/config/bash_history /root/.bash_historyHow it works/boot is your USB flash drive, which persists across reboots This creates a symbolic link from /root/.bash_history (the default history location in RAM) to a file on your USB The go file recreates this link on every boot Your command history is now saved to the USB automatically
-
ajb3932 changed their profile photo
-
[Support] jasonbean - Apache Guacamole
After updating my container which has been working fine for almost 2 years I now get an RDP Client error when connecting to my windows VM. guacd[1861]: INFO: Loading keymap "base" guacd[1861]: INFO: Loading keymap "en-gb-qwerty" guacd[1861]: INFO: Connected to RDPDR 1.13 as client 0x0003 guacd[1861]: INFO: RDP server closed/refused connection: Upstream error. guacd[1861]: INFO: Internal RDP client disconnected guacd[1861]: INFO: User "redacted" disconnected (0 users remain) guacd[1861]: INFO: Last user of connection "redacted" disconnected guacd[25]: INFO: Connection "redacted" removed. guacd[25]: INFO: Creating new client for protocol "rdp" guacd[25]: INFO: Connection ID is "redacted" guacd[1987]: INFO: No security mode specified. Defaulting to security mode negotiation with server. guacd[1987]: INFO: Resize method: none guacd[1987]: INFO: No clipboard line-ending normalization specified. Defaulting to preserving the format of all line endings. guacd[1987]: INFO: User "redacted" joined connection "redacted" (1 users now present) guacd[1987]: INFO: Loading keymap "base" guacd[1987]: INFO: Loading keymap "en-gb-qwerty" guacd[1987]: INFO: Connected to RDPDR 1.13 as client 0x0003 guacd[1987]: INFO: RDP server closed/refused connection: Upstream error. guacd[1987]: INFO: Internal RDP client disconnected Nothing on the VM side has changed. Has anyone seen this before or can help me?
-
Update Docker XML from script
I've figured it out. Probably a hacky way round but still. I enabled 'Template Authoring Mode' and grabbed the docker command, then update the xml to keep it in line with the docker command that will be run. ... if [ "$oldport" != "$gluetunport" ]; then docker stop qbitorrent docker rm qbitorrent sed -i 's/${oldport}/${gluetunport}/g' my-qbittorrent.xml /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker create --name='qbittorrent' .... fi ... Maybe this will help someone in the future.
-
ajb3932 started following Update Docker XML from script
-
Update Docker XML from script
I have Gluetun VPN set up with port forwarding enabled and a Qbittorrent container which uses the Gluetun and uses the port that has been forwarded. Sometimes when the Gluetun container restarts the port forward changes and I have to manually update the Qbt config from the UI to match the new port. I have a user script that lets me know when the port changes and what the port is but I wondered if I could go one step further and use sed to update the Qbittorrent xml with the new port forward and restart the container. Something like: ... if [ "$oldport" != "$gluetunport" ]; then sed -i 's/${oldport}/${gluetunport}/g' my-qbittorrent.xml docker run .... fi ... Is this recommended/advised or is there is an easier way? How would I rebuild the docker container with the new xml? Thanks