Category Archives: linux

Install an OpenVPN server and connect to it on windows

Follow the tutorial on linode to install openvpn: http://library.linode.com/networking/openvpn/debian-6-squeeze Attention: Both openvpn and dnsmasq shall be installed on the server. And on the file /etc/openvpn/server.conf, the following line must be exist and not commented : push “redirect-gateway def1″ By default … Continue reading

Posted in linux, security, troubleshooting | Leave a comment

How to install a network HP printer on Arch linux

The printer package does not work as it should be on my arch for HP laser jet P2035n. It costs me some hour to get it to work. Here’s the steps. 1). Install cups service pacman -S cups cups-pdf hplip … Continue reading

Posted in linux, troubleshooting | Tagged | Leave a comment

Could not chdir to home directory /home/USER: Permission denied

We changed the home folder to /data/home/USER. When I ssh to our centos server. It shows error “Could not chdir to home directory /home/USER: Permission denied”, however loggin ok. I must manually run cd ~ to go to the home … Continue reading

Posted in linux, troubleshooting | 3 Comments

fetchmail configuration file

fetchmail is a mail-retrieval and forwarding utility; it fetches mail from remote mailservers and forwards it to your local (client) machine’s delivery system. You can then handle the retrieved mail using normal mail user agents such as mutt(1), elm(1) or … Continue reading

Posted in linux | Leave a comment

Build a serious WordPress server for high traffic website with nginx

Deploy multiple nginx instance on 1 server for load balance When building WordPress for high traffic website, we maintain and restart the web server frequently for better SEO  and better user experience; but we don’t want to interrupt user’s visiting. … Continue reading

Posted in design, linux, server | Tagged , , , | 1 Comment

Suffered by wordpress permanent links in nginx

I installed wordpress several month ago by default. The page links were in default format like /blog/p?101. After some posts written I realized that these format is not friendly to search engine. So I decided to change the permalinks format … Continue reading

Posted in linux, server | Tagged | Leave a comment

Setup your cloud server in 3 minutes with Xen 4.1 on Ubuntu 11.10

Ubuntu support xen officially since 11.10. It is really easy to install the packages. Although some issues should be fixed manually, it is a painless experience. Here’s the steps to setup your cloud server in 3 minutes with Xen 4.1 … Continue reading

Posted in cloud, linux, virtualization | 52 Comments

How to automate virtual machine creation and runing on virtualbox by command line

Many times we need to create a linux virtual machine by command line. It is very useful for batch vm operation, automation, regression test, integration test… Here’s the steps to create a functional linux virtual machine (works on windows host … Continue reading

Posted in linux, virtualization | Tagged , , , , | 2 Comments

How to start with wireless network on Debian squeeze

How to automatically keep an active network always on desktop, && use wireless network sudo apt-get install network-manager sudo apt-get install wicd sudo apt-get install firmware-iwlwifi Option 1: sudo apt-get install network-manager-gnome To use network-manager-gnome in Xfce (or Gnome) you … Continue reading

Posted in linux | 2 Comments

How to fix battery indication in debian squeeze on Acer Aspire

Problem:   acpi could not detect battery status, and shows unkown battery as: $acpi Battery 0: Unknown, 0% Firstly, if you are on Acer Aspire xxxx (mine is Aspire 4745G), you need to upgrade the bios to a new version (such … Continue reading

Posted in linux | Leave a comment