Set Java Application Timezone
Setting an Environment Variable
Install and Configure Fail2ban on Ubuntu
Install from the default Ubuntu repositories
MongoDB Group By Aggregate
Single Field Group By & Count:
Get Real Client IP When Using LXD to Forward Port
By default, the LXD port forwarding is non-nat mode. It will lost client ip information. In order to transmit client information, we need to add parameter nat=true
. It requires the container has a static IP address.
How to set metric in OS moderated with NetworkManager
Ubuntu 20.04 desktop is using NetworkManager. Here is how to change the metric on CLI.
Change Snaps Installation and Data Directories
The problem is snaps packages is using the folders /var/lib/snapd
and /var/snap
by default. It may eat root space if we install too many packages. We can use mount --bind
to move them to a big disk or partition.
The original script is from https://askubuntu.com/questions/1029562/move-snap-packages-to-another-location-directory
Fix MobaXterm X11 proxy Unsupported authorisation protocol
The error happened when I use sudo virt-manager
.
Ubuntu rename account
sudo usermod -md /home/NewHome -l NewName OldName
sudo groupmod -n NewGroupName OldGroupName
Sync a fork of a repository to keep it up-to-date with the upstream repository
- Configuring a remote for a fork