manishmarahatta / my-config

Some handy :wrench: and fun config :balloon:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

my-config

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.

timezone

When the servers and you are few degrees of longitude away!

root@host # timedatectl set-timezone Asia/Kathmandu

Hostname

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

get machine info

root@host # dmidecode | grep "System Information" -A20

Keymap

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.

Swappiness

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

About

Some handy :wrench: and fun config :balloon:

License:MIT License


Languages

Language:Shell 84.8%Language:CSS 10.4%Language:Makefile 4.8%