Some Handy and Fun configuration of mine!
DISCLAIMER Author will be not responsible for the harm cause done by using this configuration, Make Sure You have the backup before applying these settings
Please don’t use this setting blindly, if you are looking default behavious and settings, it might not act like what you want because its specially tailored for my needs.
When the servers and you are few degrees of longitude away!
root@host # timedatectl set-timezone Asia/Kathmandu
I wonder why people just name their host as their name, choose the proper hostname, can save you from disaster.. like production machine or testing.
it can be easily changed on live without changing hostname.
root@host # hostnamectl set-hostname myhostname
root@host # dmidecode | grep "System Information" -A20
yeah I use dvorak! you might not want to copy this!
localectl set-keymap --no-convert keymap
which changes and creates /etc/vconsole.conf
file for persistance.
The Linux kernel provides a tweakable setting that controls how often the swap file is used, called swappiness
A swappiness setting of zero means that the disk will be avoided unless absolutely necessary (you run out of memory), while a swappiness setting of 100 means that programs will be swapped to disk almost instantly.
$ cat /proc/sys/vm/swappiness 60
for persistance change add
vm.swappiness = 10
to /etc/sysctl.conf
as root and reboot
You can also change the value while your system is still running
sysctl vm.swappiness=10