My Notes

Linux

18 pages

Managing Login Sessions

List sessions loginctl list-sessions Kill a session loginctl terminate-session <session> Lock session loginctl lock-session

Jun 22, 2025

Updating a docker container running on QNAP using SSH

SSH enabled on your QNAP NAS Open Container Station. Navigate to the Containers tab. Click on the target container to view details. Locate the…

May 28, 2025

XenOrchestra Update

Change to the XenOrchestraInstallerUpdater dirctory and run sudo ./xo-install.sh --update

Oct 9, 2024

Kiosk Machine

This is a work in progress i.e. I am starting with a locked-down account and working towards a final kiosk deployment. Two scripts will…

Sep 26, 2024

Cloudflare

version: "3.9" services: tunnel: container_name: cloudflared-tunnel image: cloudflare/cloudflared restart: unless-stopped command: tunnel run environment: - TUNNEL_TOKEN=token................

Jun 7, 2024

Your URLS

version: '3.1' services: yourls: image: yourls restart: always ports: - 8080:80 volumes: - /home/sysadmin/yourls:/var/www/html environment: YOURLS_DB_PASS: dbpwd YOURLS_SITE: https://192.168.20.40:8080/ YOURLS_USER: osgadmin YOURLS_PASS: yourlspwd mysql:…

Jun 7, 2024

Paperless: ProtonMail Bridge

Source code: shenxn/protonmail-bridge-docker: ProtonMail IMAP/SMTP Bridge Docker container (github.com) Change to the Paperless docker directory sudo docker compose down sudo docker run --rm -it…

May 31, 2024

Changing VM disk size

Change the size in XoA. Run lsblk to check it is there. Boot to GParted and resize partition. Then sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv…

May 9, 2024

Connecting Ubuntu Desktop 22.04 to a Meraki VPN

Add repository for installing network-manager-l2tp sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp sudo apt-get update Install network-manager-l2tp sudo apt-get install network-manager-l2tp sudo apt-get install network-manager-l2tp-gnome Configure the network…

Apr 22, 2024

Troubleshooting Docker

Check Environment Variables Inside the Container: sudo docker exec -it container-name env Review Logs: sudo docker logs container-name sudo docker-compose up -d && sudo…

Apr 6, 2024

How do you use (run/install) an AppImage?

AppImages do not need to be installed. They are a self-contained app that simply needs to be made executable and then run. As nothing…

Mar 27, 2024

How do I set permissions on all directories and files on a Linux system?

To change all the directories to 755 (drwxr-xr-x): find /opt/lampp/htdocs -type d -exec chmod 755 {} \; To change all the files to 644…

Mar 27, 2024

How to find a file containing a particular text string

Search all subfirectories recursively grep -r "redeem reward" /home/tom/ To display only fines names, add -H option, or $ grep -H -R vivek /etc/*…

Mar 27, 2024

How to batch-resize images using ImageMagick

open terminal and cd into the directory containing your photos and execute below command mkdir photos-Optimized;for photos in *.JPG;do convert -verbose "$photos" -quality 85%…

Mar 27, 2024

Managing Disks and Space

Disk Info df -h : displays the information of device name, total blocks, total disk space, used disk space, available disk space and mount…

Mar 27, 2024

Resyncing ISO location on XCP-NG server

List sources: xe sr-list type=iso Resync/scan for ISOs: xe sr-scan uuid=29c2e9f4-6157-17b4-d176-3a87337ae08b List DVDs: xe cd-list

Mar 27, 2024

Setting up Apache Guacamole using Docker

Visit: https://github.com/boschkundendienst/guacamole-docker-compose Follow instructions which in short are: If you want to add TOTP then do the following: After adding the above extension, restart…

Mar 27, 2024

Updating container using docker-compose

docker compose pull docker compose up -d --remove-orphans docker image prune To list all containers: docker ps -a

Mar 27, 2024