Skip to content

Instantly share code, notes, and snippets.

@mzaidannas
mzaidannas / ubuntu_setup.sh
Last active December 11, 2024 11:06
Ubuntu Initial Setup
#!/usr/bin/env bash
# Configure some system specifications
sudo usermod -G input -a $USER
# Max number of files (Required by services like docker/jvm)
sudo sysctl -w fs.inotify.max_user_watches=524288
sudo sysctl -w vm.max_map_count=262144
# Better swap if system have a lot of unused memory
sudo sysctl -w vm.swappiness=10
sudo sysctl -w vm.vfs_cache_pressure=100