Monthly Archives: July 2008

Setting up an OpenVPN

This tutorial will illustrate how to install OpenVPN on a Linux box using Fedora 9 as a server and using Windows XP as your client PC. This is totally free and you will be able to connect to your Virtual Private Network (VPN) all around the world with no problem.


  1. Open up “Terminal
  2. Become a super user type “su
  3. Now your password
  4. Type “yum install openvpn
  5. Copy the RSA keys to the openvpn folder
    cp -R /usr/share/openvpn/easy-rsa/ /etc/openvpn
    cd /etc/openvpn/easy-rsa/2.0/
  6. Make a directory for your keys
    mkdir /etc/openvpn/keys
  7. Edit “vars” by typing
    nano vars
  8. Set the parameters for KEY_COUNTRY, KEY_PROVINCE, KEY_CITY, KEY_ORG and KEY_MAIL as desired
  9. add this new line “export KEY_DIR="/etc/openvpn/keys"
  10. Initialize PKI
    . ./vars
  11. Clean
  12. Build CA
  13. Build server key
    ./build-key-server server

    Answer “y“, then “y

  14. Generate certificates for your clients
    ./build-key client1

    Answer “y“, then “y

    NOTE: If you want to add future users.
    do a “source ./vars” THEN build your key

  15. Generate Diffie Hellman parameters
  16. Copy server configuration files and edit
    cp /usr/share/doc/openvpn-2.1/sample-config-files/server.conf /etc/openvpn/
    cd /etc/openvpn
    nano server.conf
  17. Go to these lines and edit them
    cert keys/server.crt
    key keys/server.key
    dh keys/dh1024.pem

    if you want to have your VPN being route to your LAN then take out ; from push “route” and change to the current settings of your LAN

  18. You are almost done. 😉 Now start your OpenVPN server
    service openvpn start
    chkconfig openvpn on
  19. To setup the client. Go to your windows machine and you will go to this site and download their GUI and install it, once you are done come back and finish this 😀
  20. Download the ca.crt, client1.crt and client1.key to the windows machine from your linux box.  insert these files in “C:\Program Files\OpenVPN\config“.
  21. Copy the sample file from “C:\Program Files\OpenVPN\sample-config\client.ovpn” and paste it on “C:\Program Files\OpenVPN\config
  22. Now edit your client.ovpn and configure it.  Open “Notepad“.
  23. Edit “remote my-server-1 1194” where my-server-1 is going to be the ip address of your server
  24. Edit
    ca ca.crt
    cert client.crt
    key client.key

    where these now are going to be
    ca ca.crt
    cert client1.crt
    key client1.key

  25. Take out ; for the ns-cert-type server
  26. And that’s it.  you should be able to connect to your server and to others computers in that LAN.  Congrats.  If you wan to test your connection “ping 10.8.0.” which it is your VPN server.

If you are having any trouble with the connection please make sure that your firewall is allowing port 1194.  If you are behind a NAT also make sure that you are allowing that port.

NOTE: This tutorial worked for me but it might not work for you. So it is not grantee.  Do it at your own risk.

Send SMS messages using your email

I found out couple of days ago that you could send text messages for free.  YES FOR FREE!!! no need to open an account (unless you don’t have a email address).  The only thing that you will need to do is to replace mobilenumber with the actual number that you are sending the text message to and then hit send.

  • T-Mobile:
  • Virgin Mobile:
  • Cingular:
  • Sprint:
  • Verazion:
  • Nextel:

New facebook redesign lauches today

After five months Facebook finally finishes their new web design wich is going be launched today.

What’s new:

  • Menu Bar
  • Mini-Feed and Wall are now under the wall tab
  • A new “Bio” box
  • Complete rearrangement of tabs for your wall, info, photos, and apps
  • Facebook Apps are now found in the “Boxes” tab
  • Users can add extra tabs
  • Use your webcam to take a photo or record a video to add to your collection or post on the Wall of your friends

Upgrading Fedora 8 to Fedora 9

Last night I just got finish upgrading my Fedora box from Fedora 8 to Fedora 9. It took me about 1 hour the whole process of downloading the packages and installing them. I did it though the terminal because I don’t have a DVD ROM on that machine and I though that was the best way. I mean I could just format the whole drive but I would need to setup my configurations again and I didn’t wanted to do that. So this tutorial will illustrate how to upgrade your Fedora box from 8 to 9 using the terminal.


  1. Go to the “Terminal
  2. Type “su” to become a super user
  3. Now do a “yum update” to install all the packages needed
  4. Now do a “yum clean all” to clean all packages no needed
  5. Now do steps 3 and 4 again. Just to make sure that we have the latest packages
  6. Run the following command on your box “rpm -Uhv
  7. Next do a “yum clean all
  8. Now do “yum -y update“. This will actually install all the packages needed in order to have your box upgraded from Fedora 8 to Fedora 9.

I had some problems with with my XAMPP when it was going to load.

root@localhost]# /opt/lampp/lampp start
cat: error while loading shared libraries: cannot open shared object file: No such file or directory
/bin/sh: error while loading shared libraries: cannot open shared object file: No such file or directory
Starting XAMPP for Linux ...
/bin/bash: error while loading shared libraries: cannot open shared object file: No such file or directory
/bin/bash: error while loading shared libraries: cannot open shared object file: No such file or directory
/bin/bash: error while loading shared libraries: cannot open shared object file: No such file or directory
/bin/bash: error while loading shared libraries: cannot open shared object file: No such file or directory
/bin/bash: error while loading shared libraries: cannot open shared object file: No such file or directory
XAMPP for Linux started.

I resolved this error by doing this…

  1. Go to your XAMPP root folder
  2. Type “cp lampp bk-lampp
  3. Type “cat lampp.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > lampp
  4. Type “./lampp start
  5. Then if you get the following error
    ./lampp: line 94: syntax error near unexpected token `fi'
    ./lampp: line 94: `fi'
  6. Type “gedit lampp
  7. Before line 93 insert “echo "XAMPP is working"
  8. Now run “./lampp start

That should take care of that problem and everything should work perfectly.


XAMPP is an application that it would help you to facilitate the hassle of installing Apache web server, MySQL, Perl and PHP individually. This tutorial will show you step by step on how to install XAMPP in Lunix and have it auto started with your computer. This tutorial was tested on Ubunut and Fedora. Replace x.x.x for the XAMPP version.


  1. Go to and download “XAMPP Linux x.x.x”
  2. Open up the “Termial
  3. Become a root user bu typing “su
  4. Type the administrator password
  5. Go to where the file “xampp-linux-x.x.x.tar.gz” is downloaded
  6. Extract the files by typing this “tar xvfz xampp-linux-1.6.7.tar.gz -C /opt

Now XAMPP will be under “/opt/lampp” folder. In order to run XAMPP you will need to run this… “/opt/lampp/lampp start” as a root. If you want to stop it just replace start for stop.

To test whether your server is up go and open your web browser and type “http://localhost“. If it works you are now good to go to the next step.

This step is setting up XAMPP security. In order to do that being the root type “/opt/lampp/lampp security“.

To remove XAMPP from your system type “rm -rf /opt/lampp

If you want to have XAMPP starting with your machine when it turns on follow this steps.

  1. Find out your default runlevel type “egrep :initdefault: /etc/inittab
    You should no see a line containing a number between two colons. In most cases 3 or 5 (2 if you’re using Debian).
  2. Go into the directory which configures this runlevel. If for example your runlevel is 3, then you have to change directory into the “/etc/rc.d/rc3.d” directory.If your system didn’t provide /etc/rc.d/rc3.d please try also /etc/init.d/rc3.d and /etc/rc3.d.
  3. Now setup XAMPP to start when your computer turns on type”ln -s /opt/lampp/lampp S99lampp
    ln -s /opt/lampp/lampp K01lampp

    Now XAMPP should start and stop automatically if you boot or shutdown your machine.

And that’s it.  Hopefully you had success like I did 😛