# Speed boost Ubuntu
# Paste this line in terminal:
sudo sed -i s/PRELINKING\=unknown/PRELINKING\=yes/g /etc/default/prelink; sudo /etc/cron.daily/prelink
# Paste this in /etc/sysctl.conf:
net.core.rmem_default = 524288
net.core.rmem_max = 524288
net.core.wmem_default = 524288
net.core.wmem_max = 524288
net.ipv4.tcp_wmem = 4096 87380 524288
net.ipv4.tcp_rmem = 4096 87380 524288
net.ipv4.tcp_mem = 524288 524288 524288
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_ecn = 0
net.ipv4.route.flush = 1
vm.swappiness=5
vm.vfs_cache_pressure=50
# read current value
# The value is also located in /proc/sys/vm/swappiness
# to activattry ane: sudo sysctl -p
sysctl vm.swappiness
# Move /tmp to RAM
# Paste this line in /etc/fstab:
tmpfs /tmp tmpfs defaults,noexec,nosuid 0 0
# Make all startup programs visible in the menu, so they can easily be disabled
# This doesn't enable or disable modules or services
sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop
# Firefox
# Increase speed
# about:config
- network.http.pipelining > Make it True
- network.http.pipelining.maxrequests > Make it 8 or 10
- network.http.proxy.pipelining > Make it True
- network.dns.disableIPv6 > Make it True
# Move chromium-browser cache to /tmp
# In /etc/chromium-browser/default
# Change this:
CHROMIUM_FLAGS=""
# To this:
CHROMIUM_FLAGS="--disk-cache-dir=/tmp/chromium --disk-cache-size=314572800"