SSH a guest server in VirtualBox by port-forwarding.

Come back to Ubuntu server on VirtualBox again… Last week, I joined a training of ‘Internet GIS Technology and Web Map Server Development’ .. So this week I really need to install some software in my server.

Normally, I have installed the VirtualBox in my laptop.. So today, I just download a Ubuntu OS and install it!!

I tried to use a Ubuntu desktop 11.04 first but it was very slow (lacking).. then I decided to re-install Ubuntu OS again by using server version .. Yes, it was better.. !!! ..

I don’t know why it is very slow.. I dedicated 1.5GB of memory .. You know, I’m very impressive the Ubuntu version 9.10.. anyway, the change is normal!!

Continue reading

How do configure the OpenVPN client on Windows OS.

Previous post, I posted how do configure the OpenVPN client on Ubuntu and this post I will show to do like that but configure it on Windows.

1. You must download OpenVPN Client for windows from : http://openvpn.se/download.html and install it.

2. Download this configure file : OpenVPN Client for Windows

3. After you downloaded ,this file must be edited by change IP/HostName of OpenVPN server to your OpenVPN server such as :

:
:
# You can have multiple remote entries
# to load balance between the servers.
remote YOUR.IP.OpenVPN.Server 1194
# Keep trying indefinitely to resolve the
# host name of the OpenVPN server. Very useful
# on machines which are not permanently connected
# to the internet such as laptops.
:
:

4. Download cacert.pem from OpenVPN Server. (Admin can help you).

5. Put them(openvpn-client.ovpn
and cacert.pem) in path c:\Program Files\Openvpn\config\

6. Right-click the OpenVPN Client Icon in the taskbar and select Connect

How do configure the OpenVPN client on Ubuntu.

After I installed Endian Firewall. I enabled OpenVPN service and I want to connect to private network by OpenVPN Client. And this is workaround :

1. Download file cert.pem from OpenVPN Server. (System Admin can help you.)

2. Install OpenVPN Client.

# sudo apt-get install openvpn

3. If you put your cert.pem on this path /home/your_account_name/openvpn-client/cert.pem when you connect by OpenVPN client you must use this command :

# sudo openvpn –client –pull –comp-lzo –nobind –dev tap0 –ca /home/your_account_name/openvpn-client/cert.pem –auth-user-pass –remote Your_IP_Of_OpenVPN_Server

** This command has one line.

4. It’s complete.

A new year resolution.

วันนี้เป็นวันแรก ที่ได้เรียนภาษาอังกฤษกับ Glen ดีครับ ชอบๆๆ

หัวข้อวันนี้ ก็ พูดคุยกัน ประมาณ 2 หัวข้อ คือ

  1. A new year resolution.
  2. Where did you go in happy new year and what did you do in that day?

หัวข้อที่ 1 ก็ประมาณว่า ในปีใหม่ปีนี้คุณตั้งใจที่จะทำอะไร เป็นพิเศษมั๊ย ไหน ลองเล่ามาดิ

  • I resolve to save my money.
  • I resolve to cooking skill.
  • I resolve to manage my time.
  • I resolve to better English skill.
  • I resolve to talk to someone more gentle.

Continue reading

Clone disk by CloneZilla.

ผมมีปัญหากับการ Clone disk ทั้งลูกเป็นอย่างมาก เพราะไอ้เครื่อง Laptop ทีผมดูแล มันต้องลง ทั้ง Windows XP (ถูกกฏหมาย) กับ Ubuntu เวลาผม Ghost ด้วย Norton Ghost 2003 (พันทิพ) มันจะ Restore ไม่ได้ ก็เลยต้องงม หาโปรแกรมมาช่วย ตั้งนาน และแล้วผมก็เจอครับ สวรรค์บรรดาร โปรแกรมที่มีชื่อว่า CloneZilla ครับ
Continue reading

How to rewrite MBR [Master Boot Record].

My problem happen from :

1. Install Windows XP.

2. Ghost full haddisk which name of this image is XP-Only.img .
3. Resize&Create parttion on harddisk for prepare installation Ubuntu OS.
4. Install Ubuntu on new partition.

5. Ghost full harddisk to image backup which name of this image is XP-Ubuntu.img . It can full backup.
6. Test to restore image backup to harddisk by image XP-Ubuntu.img which it can not restore , it’s crash. So that you can not start it again.
7. Restore image XP-Only.img again which this image has Windows XP only that you can restore.

8. After you restore completed , you can not start. You found blank screen.

How to fix :

Continue reading

How to install phpMyAdmin – 2.11.3 on CentOS 5.

After , I installed PHP5, Apache2 and MySQL completed. I want to maintain MySQL service by phpMyAdmin program. This is solution of how to install phpMyAdmin 2.11.3 on CentOS 5.

  1. $ su -
  2. # cd /var/www/html
  3. # wget -c http://prdownloads.sourceforge.net/phpmyadmin/
    phpMyAdmin-2.11.3-english.tar.gz?download
  4. # tar xvfz phpMyAdmin-2.11.3-english.tar.gz
  5. # mv phpMyAdmin-2.11.3-english phpmyadmin
  6. # cd phpmyadmin
  7. # cp config.sample.inc.php config.inc.php
  8. # vi config.inc.php
    :
    $cfg['Servers'][$i]['auth_type'] = ‘http‘; # default is cookies
    :
  9. # service httpd restart

You can test by open phpmyadmin by this link :

http://your.domain.com/phpmyadmin/

You should be find pop up for insert your user name and password.

How to set line output when you display information on Switch&Router.

How to set line output when you display information on Switch&Router.

Thanks, P’ Berm so much. I have a problem when I use command “show running-config” on my Switch, many data show in my monitor . So I want to config my Switch to display information from my input number of line per when I press space bar on my keyboard.

  1. SW1#configure terminal
  2. SW1(config)#line console 0
  3. SW1(config)#length 10 <- number of line
  4. SW1(config)#end
  5. SW1#write