Linux
18 pagesManaging Login Sessions
List sessions loginctl list-sessions Kill a session loginctl terminate-session <session> Lock session loginctl lock-session
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…
XenOrchestra Update
Change to the XenOrchestraInstallerUpdater dirctory and run sudo ./xo-install.sh --update
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…
Cloudflare
version: "3.9" services: tunnel: container_name: cloudflared-tunnel image: cloudflare/cloudflared restart: unless-stopped command: tunnel run environment: - TUNNEL_TOKEN=token................
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:…
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…
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…
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…
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…
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…
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…
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/*…
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%…
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…
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
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…
Updating container using docker-compose
docker compose pull docker compose up -d --remove-orphans docker image prune To list all containers: docker ps -a