How to change the DNS setting?
Answer:
1. Edit the /etc/resolv.conf file, assume Debian/Ubuntu
sudo vi /etc/resolv.conf
2. Add or replace, e.g. using Google Public DNS servers
nameserver 8.8.8.8
nameserver 8.8.4.4
3. Done.
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to change the DNS setting?
Answer:
1. Edit the /etc/resolv.conf file, assume Debian/Ubuntu
sudo vi /etc/resolv.conf
2. Add or replace, e.g. using Google Public DNS servers
nameserver 8.8.8.8
nameserver 8.8.4.4
3. Done.
A better alternative to top
Answer:
It is the htop : http://htop.sourceforge.net
To install under Ubuntu
# sudo apt-get install htop
Install APC for PHP on Ubuntu
Answer:
APC is a very fast byte-code caching module for PHP. (It will become part of PHP6 in the future). By installing it, the performance of your PHP codes can be speed up by 200-300%.
To install it under Ubuntu,
# sudo apt-get install php-apc
Then restart Apache,
# sudo /etc/init.d/apache2 restart
Search for a software/package to install using aptitude
Answer:
To search for a software/package to install under Debian/Ubuntu is easy with aptitude
# sudo aptitude search php5-xdebug
i php5-xdebug - Xdebug Module for PHP 5
Search for a software/package to install using apt-cache
Answer:
To search for a software/package to install under Debian/Ubuntu is easy with apt-cache
# sudo apt-cache search php5-xdebug
php5-xdebug - Xdebug Module for PHP 5