刷字体缓存
fc-cache -fv
## desible ipv6
sudo sed -ie '/net-pf-10/d' /etc/modprobe.d/aliases
sudo sh -c 'echo "alias net-pf-10 off" >> /etc/modprobe.d/aliases'
sudo sed -ie '/ipv6/d' /etc/modprobe.d/aliases
sudo sh -c 'echo "alias ipv6 off" >> /etc/modprobe.d/aliases '
## desible ipv4.tcp_ecn
sudo sed -ie '/net.ipv4.tcp_ecn/d' /etc/sysctl.conf
sudo sh -c 'echo "net.ipv4.tcp_ecn = 0" >> /etc/sysctl.conf '
/etc/ppp/options
lcp-echo-failure 15
防止 ADSL 掉线
sudo gedit /etc/network/interfaces
复制下面内容完全复盖即可
# /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth1
# The primary network interface
iface eth1 inet static
address 10.0.0.139
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 211.162.32.1 211.162.32.20
dns-nameservers 是你的dns服务器地址,如果有路由器的同志可以打开路由器设置看看,把路由器上的默认dns服务器贴上。
sudo apt-get install pppoe
sudo pon dsl-provider
plog
dsl-provider
ifconfig