Skip to content

Instantly share code, notes, and snippets.

@khiemdoan
Last active September 21, 2020 04:17
Show Gist options
  • Save khiemdoan/6cf389e32355c34e758ede3787142409 to your computer and use it in GitHub Desktop.
Save khiemdoan/6cf389e32355c34e758ede3787142409 to your computer and use it in GitHub Desktop.

Linux configs

Hardware clock in local time

sudo timedatectl set-local-rtc 1 --adjust-system-clock

Increasing the amount of inotify watchers

If you are running Debian, RedHat, or another similar Linux distribution, run the following in a terminal:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

If you are running ArchLinux, run the following command instead (see here for why):

echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment