sudo wget -c https://gist.github.com/1261754 \ -O /etc/network/if-up.d/100Mbs && chmod +x $_
- Instale também extensões para otimizar o cache do dns do firefox https://addons.mozilla.org/pt-br/firefox/addon/speed-dns/
- Instale o programa dnsmasq (otimiza o cache de dns),
- configure o arquivo /etc/sysctrl.conf
- Utilize sistemas de arquivos temporários na memória
- Instale o programa preload (precarregamento de programas)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# script to perform full duplex to your netcard (linux) | |
# save in /etc/network/if-up.d/full-duplex && chmod +x them | |
# author: Sergio Luiz Araujo Silva | |
# download: wget -c https://raw.github.com/1261754 -O /etc/network/if-up.d/100Mbs | |
# where is ethtool ? | |
#ETHTOOL=`command -v ethtool` || { echo "I require ethtool but it's not installed. Aborting." >&2; exit 1; } | |
# discover default netcard | |
DEV="`/sbin/route -n | awk '/UG/ {print $NF}'`" | |
ethtool -s "$DEV" autoneg off && ethtool -s "$DEV" speed 100 duplex full |