Shell script training.

เสาร์อาทิตย์ที่ผ่าน มาก็ได้มีโอกาส กลับไปมหาวิทยาลัย ที่พิษณุโลกมาครับ กลับไปคราวนี้ก็มีภาระกิจสำคัญคือ “การกลับไปสอน Shell Script ให้กับรุ่นน้องที่ มหาวิทยาลัย ก็ผ่านมาได้ด้วยดีครับ น้องๆ ก็โอเค ตั้งใจเรียนกันทุกคน

มาถึงวันนี้ก็เลยถือโอกาส เอาตารางที่ได้เอาไปสอน น้องๆ มา Post เก็บได้ พร้อม กับ Slide ที่เอาไปสอนในครั้งนี้ด้วย

Continue reading

How to install VirtualBox on Ubuntu 8.04.

1. Download VirtualBox progrom from : http://www.virtualbox.org/download/1.5.6/

2. Install this program by double click

3. Modified group for current account by this command

sudo usermod -G vboxusers -a aoddy

4. Change permission for file /dev/vboxdrv by :

sudo chmod 777 /dev/vboxdrv

5.  Install vboxdriver by

sudo /etc/init.d/vboxdrv setup

6. Start virtualbox. :D

How to migrate Thunderbird’s data&profile from Ubuntu to Windows.

1. Prepare data for migration on Ubuntu.

$ cd ~
$ tar cvfz mozilla-thunderbird-[YYYYMMDD].tgz .mozilla-thunderbird

* YYYYMMDD such as 20080525 (2008 May, 28th)
** Be careful in front of “mozilla-thunderbird” has dot (.) .
2. Copy file backup (mozilla-thunderbird-[YYYYMMDD].tgz) from Ubuntu to Windows

3. Extract backup file.

Continue reading

How to backup your thunderbird profile&data on Ubuntu.

Backup
1.  Please check your Thunderbird profile directory by this command.

$ ls -la * | grep .mozilla-thunderbird
-rw-r–r–  1 sketkeaw sketkeaw 32053404 2008-05-30 10:59 mozilla-thunderbird.tgz

2. Start backup

$ cd ~
$ tar cvfz mozilla-thunderbird-[YYYYMMDD].tgz .mozilla-thunderbird

** YYYYMMDD such as 20080525 (2008 May, 28th)

3. Backup completed !!!.

Continue reading

Cannot run flash player on firefox [Ubuntu 7.10 64 Bit].

Today , I find big bug in Firefox . It cannot run flash application so I try to root cause of this problem from command ‘dmesg’ and I find :

[ 8706.315022] npviewer.bin[7535]: segfault at 0000000000000035 rip 00000000f7ac02f6 rsp 00000000f5aa2d90 error 4
[ 8706.315628] npviewer.bin[7522]: segfault at 0000000000000000 rip 00000000f77afba8 rsp 00000000ffad3070 error

Continue reading

How to Rip MP3 using Sound Juicer.

ต้องการ Rip ไฟล์ CD ให้กลายเป็น MP3 บน Ubuntu สุด Love ปรากฏว่า เจ้า Ubuntu มันมีโปรแกรม มาให้อยู่แล้ว นั่นก็คือ Sound Juicer เพียงแต่ว่าเวลา Rip มาแล้ว File Output เป็น .ogg ผมก็เลยต้องมา หาวิธี Rip มันออกมาเป็น MP3 ครับ

ก็ทำตามนี้ครับ…

Continue reading

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.