Advanced Search
Search Results
26 total results found
Docker
Barrier
Server
Nextcloud
Linux
ddclient
Bookstack
proxmox
Rocketchat
Useful commands
How to check logs To view the last logs entries of a given container, run the following command: docker logs --tail 50 --follow --timestamps container_name
Common issues
Mouse uncontrollably spins in games This usually happens in games and no matter what you change you can't play. The solution is to tick the "Use relative mouse moves" in the server advanced settings and add a hotkey where you "Lock cursor to screen". You can...
CPU Pinning
How to do CPU pinning (work in progress) Create a file under /etc/pve/qemu-server/$vmid.cpuset for the VM which you want to set the CPU pinning for. Examples: 0-1 0-1,6-7 Depending on your CPU topology assign the proper cores to your VM. You can find out ...
Proxmox GPU Passthrough
GPU Passthrough This configuration worked for me, you might need to change things around Keep in mind I have an AMD CPU and Nvidia GPU, if you have other config, you might have to use different commands After upgrading Proxmox to 7.2, passthrough wasn't wor...
Useful Proxmox commands
Useful Proxmox commands/scripts pct cpusetsPrints the assigned CPU sets to the LXC containers. systemctl status <VMID>.scopeDisplays the process of a specific VM lscpu -ePrints CPU topologyMore details qm showcmd <VMID>Displays the command that Proxm...
ZFS pool
ZFS Pool couldn't be mounted If after a system update the ZFS pool can't be mounted, the issue could be the corrupted ZFS cache.To fix that run the following commands: # First create a backup mv /etc/zfs/zpool.cache /etc/zfs/zpool.cache.bkp # Enable rel...
Nextcloud knowhow
How to share a local folder if Nextcloud is installed using snap? Install the External Storage app then make sure snap has access to removable media. ie run this command:sudo snap connect nextcloud:removable-media
Resetting GPU
Keep in mind I haven't yet tested this with AMD card Hookscript example: #!/bin/bash if [ $2 == "pre-start" ] then echo "gpu-hookscript: Resetting GPU for Vitual Machine $1" echo 1 > /sys/bus/pci/devices/0000\:07\:00.0/remove echo 1 > /sys...
Setting up Home Assistant
Create a normal Linux VM for Home Assistant, but there are some exceptions to the normal procedure: Don't create a disk, not needed since we are going to use the one downloaded from Home Assistant's website Make sure the BIOS id OVMF (UEFI) Also un-tick...
Common issues
Shared drive is not mounted even though it's setup in fstab Usually it's coupled with this error message when starting or shutting down the system: Dependency failed for Remote File Systems The issue is that when the system tries to mount the shared drive, ...
Commands
Extend partition size If the partition size was changed in Proxmox, then after the resize on the UI, restart the VM Get PV (Physical Volume) name (Ex: /dev/sda1) sudo pvs Resize the PV sudo pvresize /dev/sda1 Get root logical volume name (Filesys...
Setting up email sending
create a backup of your postfix config: cp /etc/postfix/main.cf /etc/postfix/main_bak.cf open /etc/postfix/main.cf add the following rows (make sure none of the rows are duplicated) #mydestination = $myhostname, server.local, localhost.local, , localhost ...
Setting it up on ubuntu with Namecheap
This guide assumes that you have an account on Namecheap already with a domain and dynamic DNS enabled. Install ddclient: sudo apt install ddclient No need to fill out properly the forms while setting it up, we will change the configuration files anyway I...
Common commands/issues
Upgrade major version Make sure you are on the latest version within the current major version: snap refresh rocketchat-server Then switch to the next major "track" snap refresh rocketchat-server --channel=4.x/stable Source: htt...
Updating
It's assumed that Bookstack was installed by the Ubuntu script. Very important, as always backup your Bookstack instance by default Bookstack is installed under /var/www/bookstack, if that wasn't changed, then go there try to pull the latest changes: git ...
Setup Access Control Lists (ACL)
ACL can be used to provide additional permissions to the file system. If not installed run the following command: sudo apt install acl There are two commands: setfacl to set acl and getfacl to get acl permissions To get acl of a folder: getfacl ~/test it ...
Securing SSH with public keys
Securing keys with YubiKey Make sure you use on both your client and server at least version 8.2 of OpenSSH, because previous versions do not support 2FA with hardware security keys: ssh -V Check if OpenSSH can generate U2F keys: ssh-keygen --help and you...