How to optimize Ubuntu and linux

08.07.2009 by admin - 0 Comment
Posted in linux

Now,It’s very late in china.I look a blog post just moment.so many things you must ask:”how to….?”so many how to can make you to study more.

so many people ask me:how to or how to .I tell them. or is very easy.but you allways ask youself.how to Solve this problem.

now,we are start study How to and .

1.how to do Open the web so slowly in or .

you can install dnsmasq
you can ask google more about dnsmasq.

sudo apt-get install dnsmasq

how to set the dnsmasq.conf

sudo gedit /etc/dnsmasq.conf

and find this code

#resolv-file=

Replacement

resolv-file=/etc/resolv.dnsmasq.conf
sudo cp /etc/resolv.conf /etc/resolv.dnsmasq.conf

how to Editor resolv.conf

sudo gedit /etc/resolv.conf

and add

nameserver 127.0.0.1

now ,you can restart your or .

2.how to swappiness

How do view your or default swappiness

sysctl -q vm.swappiness

I suggest that you modify swappiness to 10.

sudo sysctl vm.swappiness=10