Tuesday, December 08, 2009

Create openVPN client at Ubuntu 9.10

there is 2 ways to make openvpn connection, using pkcs file and from network manager (using cert, ca and key file)

in my case, i am using openvpn server running at IPCOP. You can see the manual from here.

the first, using PKCs file;
1. install openvpn from synaptec package manager
2. download file pkcs file and configuration from your ipcop machine to /etc/openvpn on zip fle. and you will get 2 file, example con1.p12 and con2ipcop.opvn.
3. copy both of file to /etc/openvpn
4. rename file con2ipcop.opvn to con2ipcop.conf
5. open terminal run the below command
$sudo /etc/openvpn/opevpn con2ipcop.conf
6. you have connected to vpn server and press Crtl+c to close connection

the second, using network manager

1. extrak pkcs file to cert and key file with following command;

openssl pkcs12 -nocerts -in con1.p12 -out userkey.pem
openssl pkcs12 -nokeys -clcerts -in con1.p12 -out usercert.pem
openssl pkcs12 -nokeys -cacerts -in con1.p12 -out userca.pem

2. put the file from step 1 to network manager as following picture

3. ready to go.

Thursday, December 03, 2009

Change Default OS at Ubuntu 9.10

If you have dual OS and want to change to WINDOWS as default OS, follow the below step;

1. See the first screen at your PC or LAPTOP. how many line in the boot screen
in my case, i have 7 line, the 1 line is ubuntu and the 7 line is windows XP.

2. open terminal and run the below command;
$sudo gpedit /etc/default/grub


in my case i change to number 6 if you have 4 line in boot screen so you must change to 3 as follow GRUB_DEFAULT=3

save and close your editor

3. run this command
$ sudo update-grub

then your default os will cahnge to windows.

nice to see you all.