Friday, June 17, 2011

Free Fast Public DNS

If you experience a slow internet response, your DNS (Domain Name System) may have outage. You can use the follow free fast public DNS below to improve the speed and more security.

Google Public DNS:
8.8.8.8
8.8.4.4

* OpenDNS:
208.67.222.222
208.67.220.220

Level-Three GTEI Public DNS:
4.2.2.1
4.2.2.2
4.2.2.3
4.2.2.4
4.2.2.5
4.2.2.6

* Norton DNS by Symantec:
198.153.192.1
198.153.194.1

* ScrubIT DNS:
67.138.54.100
207.225.209.66

DNS Advantage:
156.154.70.1
156.154.71.1

* In additon to block the bad sites that are potentially harmful to your computer, OpenDNS, NortonDNS and ScrubIT DNS allow you to set your owm content filtering policy.

Friday, June 10, 2011

Install WordPress 3.1.3 on Ubuntu 11.04

WordPress is web application you can use to create a beautiful blog or website. This is an open source software. You can get it free at http://wordpress.org/download/ . Before you install WordPress on Ubuntu 11.04 (Natty Narwhal), make sure you already install on your Linux machine: Apache, MySQL and PHP (LAMP).

1. Unzip wordpress-3.1.3.zip to a specified.

2. Make the virtual path for Apache web server:
sudo gedit /etc/apache2/httpd.conf
add a new line:
Alias /wordpress /home/yourusername/wordpress
and
restart sudo /etc/init.d/apache2 restart

3. Type http://127.0.0.1/wordpress/readme.html on your browser to read some instruction.

4. Create MySQL database and user for WordPress

mysql -u root -p
mysql> use mysql;
mysql> create database wordpress;
mysql> INSERT INTO user (Host,User,Password) VALUES('localhost','wpuser',PASSWORD('wppass'));
mysql> grant all privileges on wordpress.* to wpuser@localhost;
mysql> flush privileges;
mysql> exit;

5. chmod -c 777 -R ~/wordpress

6. Type http://127.0.0.1/wordpress/wp-admin/install.php to install.
If you got this error message: "Error establishing a database connection", make sure user name and password are correct. It took me almost an hour to figure it out. For some reason, my MySQL password for wpuser@localhost is empty instead of a specified password that I set when I create a MySQL user account.

Wednesday, June 1, 2011

Running ASP.net on Ubuntu 11.04 using Apache 2 web server

1.1 Install the mod_mono packages:
sudo apt-get install libapache2-mod-mono mono-apache-server2

1.2 Install the mono development tools packages:
sudo apt-get install mono-devel (optional)

2. Enable the Apache module:
sudo a2enmod mod_mono_auto

3. Restart Apache: sudo /etc/init.d/apache2 restart

To test your setup, you can create a test page with the following content anywhere that Apache can see (i.e. /var/www/test.aspx)

References:
https://help.ubuntu.com/community/ModMono
http://www.mono-project.com/Mod_mono
http://ubuntuexperiment.wordpress.com/2009/01/29/running-aspnet-applications-in-ubuntu-using-modmono/
http://thelinuxexperiment.com/uncategorized/setting-up-an-ubuntu-based-asp-net-server-with-mono/
http://www.hbyconsultancy.com/blog/install-asp-net-3-5-environment-for-ubuntu-maverick-10-10.html