Ubuntu Pastebin

Paste from MonkeyDust at Wed, 19 Aug 2015 14:35:54 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Paste this line in terminal:
sudo apt-get install preload;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

# 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"
Download as text