หน้าเว็บ

About me

Hi, I'm cheer. My interest relates to artificial intelligence, machine learning, computer vision, network communication, security algorithm.

วันอังคารที่ 20 กรกฎาคม พ.ศ. 2553

How to install Windows on Netbook via thumb drive

What you will need:

  • Microsoft Windows XP intstallation files on a CD / DVD / Image
  • Another PC running Microsoft Windows XP or Vista
  • USB_PREP8 Download:Google,2shared.com
  • PeToUSB Download:Official site
  • Bootsect.exe Download:Google ,2shared.com
  • A USB stick large enough to hold the install files and possibly the Asus EEE PC drivers. In this tutorial a SanDisk Cruzer 4GB is used.
Use a 4 GB if you want to copy the Asus EEE PC Driver DVD. 1 Gigabyte is enough for XP install files only.

Preparing the Bootable USB flash drive

Extract USB_prep8 and PeToUSB.
Copy or move the file PeToUSB.exe from the PeToUSB folder to the USB_prep8folder. Your usb_prep8 folder should look like this:

image1

Double click the Command Script named usb_prep8.cmd. The command prompt window will look like this:

image2
Insert your USB-flash drive and press any key:

PeToUSB Flash stick settings
Make sure you have the right USB-stick selected. In the image above you see [SanDisk Cruzer USB Device 4025Mb [E:\]] Selected. Cross the “Quick Format” if you want to save some time (marked in red).

Click on Start. In the dialog box saying “Continue?”, click Yes:
Klick Yes to continue

Another dialog box appears, click Yes:
Click Yes

When the format is complete (probably immediately) you will get this:

image6

Click Ok.

Extract bootsect.zip to a folder of your choice. (In this example i useC:\bootsect\).
Open a command prompt (on XP click Start->Run and type “cmd”):
image7

Navigate to the directory where you extracted BootSect.exe using the “cd” command (this example uses folder c:\bootsect):

cd \bootsect\bootsect [Enter]
image8a

Then type:
bootsect /nt52 E: [Enter]

image8

This writes a bootable bootsector to your USB flash drive. Do not have any windows open displaying the contents of the USB drive. Bootsect.exe needs exclusive access to the USB disk and you will not be able to write a correct bootsector.

Close this command prompt. (Do not close the other running usbprep8).

The usbprep8 command line window should now look like this:

image9

Press enter, if it does not look like the window above.

Now we need to supply information for 1-3 in the image above.

Press 1 + [Enter] - Browse for the location of your Windows XP setup files (Your CD/DVD rom). A dialog box will appear:

image10

Select your source for the Windows XP install files (CD/DVD drive) and press OK.

Press 2 +[Enter] - enter a drive letter that is not currently in use. In this example we use T:\

Press 3 + [Enter] - enter the drive letter of your USB flash drive. You can use explorer to check.

Press 4 + [Enter] - To continue with the script.

After a short while the script will ask if you wish to format the drive T:

image12

Press Y + [Enter]. ( This is just a temporary drive to hold the windowsinstallation files)

When the formatting is done, Press enter to continue. You should now see the script copying files. When it has finished you should see this:
image131

You guessed it. Press any key to continue.

The script should copy a few files.

A popup asking if you want to “copy TempDrive Files to USB-Drive in about 15 minutes = Yes” should appear:

image14

Click Yes. The script starts copying files. This takes a while, so go get a cup of coffee or something.

Once it is done, a popup will ask you “Would you like USB-stick to be Preferred Boot Drive U:”:
image15

Select Yes.

Select Yes to unmount the Virtual drive.

Close the usbprep8 command line window and any others you have left open. You might want to copy drivers from your Asus EEE support DVD to the USB stick.

Now we are done with preparing the USB-flash drive. Next step is to make the correct changes to BIOS.

BIOS settings

Turn on your EEE PC. When the screen below turns up, hit [F2]:

startup

You should now be in the BIOS.

Use the arrow keys to navigate to the Boot section of the bios.

Select Hard disk drives as in the image below and hit Enter.
Asus Bios

Press the + (plus) key to make the USB stick the first drive:
bios-boot-hard-disk-drives

Exit and save the changes:
bios-exit-save

Booting your Asus EEE PC into XP install

*IMPORTANT* Do not remove the USB-stick at any part of the installation process of Windows XP.

Reboot your EEE. You should be presented with the following screen:
first-boot
Select the bottom alternative (as in the image above) titled
“1.TXT Mode Setup Windows XP, Never unplug your USB-drive until After Logon”

From here on the Windows XP setup is pretty straight forward except for the partitioning…

Preparing partitions on the EEE XP Install

When you reach the partitioning portion of the setup you will see something similar to this:
partitioning-before

In order to install Windows XP on your Asus EEE, you need to delete each and every one of the partitions.

When done it should look like this:
partitioning-after

Recreate one primary partition on your Asus EEE and PC and format it using NTFS.

Once the text mode portion of the XP install is done, you will see this screen when booting up:
second-boot

This time select the top alternative titled:
“2. GUI Mode Setup Windows XP. Continue setup + Start XP.”

Complete the GUI part of the setup as usual. Once the GUI part is done and your EEE reboots, again select the top alt. “2. GUI Mode…”.

Now you should boot up at a normal Windows XP desktop. You can remove the usb flash drive if you wish.

วันพุธที่ 14 กรกฎาคม พ.ศ. 2553

Joomla Ref : Module Name

For example,
  1. Main Menu
  2. Login
  3. User Menu
  4. Polls
  5. Who's Online
  6. Advertisement
  7. Newsflash
  8. Top Menu
  9. Banner
  10. Search
  11. Popular
  12. Latest News
  13. Breadcrumbs
  14. Syndicate

Joomla Ref : Position Name

  1. left
  2. right
  3. top
  4. bottom
  5. inset
  6. banner
  7. header
  8. footer
  9. newsflash
  10. legals
  11. pathway
  12. breadcrumb
  13. toolbar
  14. cpanel
  15. user1
  16. user2
  17. user3
  18. user4
  19. user5
  20. user6
  21. user7
  22. user8
  23. user9
  24. advert1
  25. advert2
  26. advert3
  27. icon
  28. debug
  29. search
  30. syndicate

วันจันทร์ที่ 12 กรกฎาคม พ.ศ. 2553

CMS : Joomla under Ubuntu

Joomla is one of the most powerful open source CMS. CMS, content management system, is a system allows user to easily manage their article by well-organized structure. Moreover, CMS itself often show you the way to customize CMS to fabulous website. For all of that, you may see from the Internet by googling it.

Alright, I now show you the way to install Joomla under Ubuntu OS

INSTALL
1. make sure that all basic web server software are well installed
2. download package from its official website www.joomla.org [I really recommend for newbie to start on stable version only, otherwise goahead on beta version by simple SVN, check it out !!!]

3. unpackage it

tar xvfz Joomla_x.x.x-Stable-.....tar.gz -C /var/www//

4. create empty file "configuration.php" in order to CMS installer could create configuration information for us

nano configuration.php

5. privilege it for all

chmod 777 configuration.php

6. restart apache once again

/etc/init.d/apache2 restart

7. type "http://localhost//", you will see what installer will do for you step by step

วันอาทิตย์ที่ 11 กรกฎาคม พ.ศ. 2553

Ubuntu Apache2

You may need to know a new apache

1.

"httpd.conf" is changed to "apache2.conf"

and there are further configuration files split in sub directories like.

mods-enabled/ --> for modules
sites-enabled/ --> for virtual hosts

2. document root = /var/www
3. apache program command

/etc/init.d/apache2 start|stop|restart

Ubuntu Apache+PHP+MySQL Installation

INSTALL

1. aptitude mysql-server mysql-client

At this time, you will be asked for mysql root user's password

2. aptitude apache2
3. aptitude php5 libapache2-mod-php5
4. /etc/init.d/apache2 restart - to finish installation

Note : You may get this error

"apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName"

This is because of doing unable to define host name

Sol : "nano /etc/hosts"

127.0.0.1 localhost.local localhost
127.0.1.1 .local

Then, save it and restart apache

Installation software in Linux

Some may get puzzled when to install softwares in Linux OS. No matter distribution is, we simply get software's installation guide, normally named "INSTALL"; hence, we open terminal, then execute following command "nano /INSTALL". You will see what to do to install that software.

What's in "/INSTALL"
1. software dependencies
2. setup guide
3. disclaimer

Among Linux distribution, there are so many easy-to-use and well-facilitating software managements such as
- yum in FreeBSD/xBSD
- apt-get / aptitude in Ubuntu

RapidSVN installation

RapidSVN is svn client for linux OS. It is much identical to tortoiseSVN widely used in Windows user

INSTALL

apt-get install rapidsvn

or

aptitude install rapidsvn

Subversion Tutorial

หลังจากที่ สร้าง svn repository ในบทความนี้จะแนะนำการใช้งาน svn เบื้องต้น โดยจะประกอบด้วยคำสั่ง import, checkout, commit

อนุญาตให้ users สามารถเขียนไฟล์ใน repository ได้

ก่อนที่ users สามารถที่จะใส่ไฟล์เข้าไปใน repository ที่ root เป็นคนสร้างไว้ ต้องเปลี่ยน permission ของไดเร็คทอรีที่สร้างขึ้นก่อน ในที่นี้คือ /var/svn/test_svn/

[root@svn ~]# cd /var/svn/

[root@svn svn]# chmod -R g+w test_svn/
[root@svn svn]# chgrp -R users test_svn/
[root@svn svn]# ls -l

total 4
drwxrwxr-x 7 root users 4096 2008-11-27 23:37 test_svn

svn import – เริ่มต้นใส่ข้อมูล

ทดสอบโดยใช้ user01 เขียนโปรแกรมขึ้นมาเก็บไว้ในไดเร็คทอรี my-scripts/ และในนี้มีไฟล์ที่สร้างขึ้นสองไฟล์ คือ index.php และ README

[user01@svn ~]$ ls -lR my-scripts/

my-scripts/:
total 8
-rw-r--r-- 1 user01 users 25 2008-11-27 23:51 index.php
-rw-r--r-- 1 user01 users 7 2008-11-27 23:51 README

ตัวอย่างไฟล์ที่สร้างขึ้น

[user01@svn ~]$ cat my-scripts/index.php

echo "hello";
?>

ใช้คำสั่ง svn import เพื่อใส่ไฟล์ที่สร้างขึ้นเข้าไปใน repository ได้ ดังตัวอย่าง

[user01@svn ~]$ svn import my-scripts file:///var/svn/test_svn/my-scripts -m "Initial import"

Adding my-scripts/index.php
Adding my-scripts/README
Committed revision 1.

คำอธิบาย

  • my-scripts ส่วนแรกเป็นการระบุไดเร็คทอรี ที่เราเพิ่งสร้างไฟล์ขึ้น
  • my-scripts อันหลังจะเป็นการระบุชื่อที่เก็บไว้ใน repository
  • ออปชั่น -m เป็นคำอธิบายในการเปลี่ยนแปลงข้อมูลใน repository เพื่อการอ้างอิงย้อนหลังได้
  • file:///var/svn/test_svn ระบุที่อยู่ของ repository โดยเริ่มต้นเราจะทดสอบบน local disk ข้อสังเกต มีเครื่องหมาย / สามอัน

หลังจากที่ import ไฟล์เข้าไปแล้ว แนะนำให้เก็บสำรอง ไฟล์ดั้งเดิมเอาไว้ก่อน ในตัวอย่างนี้จะเปลี่ยนชื่อเป็น .bak

[user01@svn ~]$ mv my-scripts my-scripts.bak

[user01@svn ~]$ ls -l
total 4
drwxr-xr-x 2 user01 users 4096 2008-11-27 23:51 my-scripts.bak

svn checkout – ดึงไฟล์ออกมาจาก repository

ใช้คำสั่ง svn checkout เพื่อดึงไฟล์ที่ต้องการออกมา โดยต้องระบุ path ให้ถูกต้อง ตามที่ระบุไว้ตอนที่ import เข้าไป

[user01@svn ~]$ svn checkout file:///var/svn/test_svn/my-scripts

A my-scripts/README
A my-scripts/index.php
Checked out revision 1.
[user01@svn ~]$ ls -l

total 8
drwxr-xr-x 3 user01 users 4096 2008-11-28 00:03 my-scripts
drwxr-xr-x 2 user01 users 4096 2008-11-27 23:51 my-scripts.bak

เราจะได้ไดเร็คทอรี่ และไฟล์ที่เราเพิ่งใส่เข้าไปกลับคืนมา ในที่นี้คือ my-scripts

ลองตรวจสอบไฟล์ที่อยู่ในนี้ จะเห็นว่ามี ไดเร็คทอรี่ พิเศษเพิ่มเติมขึ้นมา ชื่อว่า .svn/ โดยจะเป็นส่วนที่เก็บคอนฟิกและการตรวจสอบการเปลี่ยนแปลงไฟล์ของ subversion ห้ามลบทิ้ง

[user01@svn ~]$ cd my-scripts

[user01@svn my-scripts]$ ls -la
total 20
drwxr-xr-x 3 user01 users 4096 2008-11-28 00:03 .
drwx------ 6 user01 users 4096 2008-11-28 00:03 ..
-rw-r--r-- 1 user01 users 25 2008-11-28 00:03 index.php
-rw-r--r-- 1 user01 users 7 2008-11-28 00:03 README
drwxr-xr-x 6 user01 users 4096 2008-11-28 00:03 .svn
[user01@svn my-scripts]$ ls -l .svn/

total 24
-r--r--r-- 1 user01 users 438 2008-11-28 00:03 entries
-r--r--r-- 1 user01 users 2 2008-11-28 00:03 format
drwxr-xr-x 2 user01 users 4096 2008-11-28 00:03 prop-base
drwxr-xr-x 2 user01 users 4096 2008-11-28 00:03 props
drwxr-xr-x 2 user01 users 4096 2008-11-28 00:03 text-base
drwxr-xr-x 5 user01 users 4096 2008-11-28 00:03 tmp

svn info – ตรวจสอบเวอร์ชั่นของไฟล์

ใช้คำสั่ง svn info เพื่อตรวจสอบเวอร์ชั่น (Revision) และข้อมูลการเปลี่ยนแปลงล่าสุดของไฟล์ได้

[user01@svn my-scripts]$ svn info

Path: .
URL: file:///var/svn/test_svn/my-scripts
Repository Root: file:///var/svn/test_svn
Repository UUID: 1b23135d-c21e-4acd-826f-e74e671c30c9
Revision: 1
Node Kind: directory
Schedule: normal
Last Changed Author: user01
Last Changed Rev: 1
Last Changed Date: 2008-11-27 23:56:16 +0700 (Thu, 27 Nov 2008)

svn status – ตรวจสอบสถานะการแก้ไขไฟล์

ทดลองแก้ไขไฟล์ index.php ในที่นี้จะแก้เป็น

[user01@svn my-scripts]$ cat index.php

echo "hello";

echo "world";
echo "test subversion";
?>

ใช้คำสั่ง svn status เพื่อตรวจสอบการแก้ไข

[user01@svn my-scripts]$ svn status

M index.php

ผลลัพธ์ที่ได้จากคำสั่ง svn status จะแสดงรายชื่อไฟล์ที่มีการเปลี่ยนแปลง พร้อมทั้งตัวอักษรย่อ เช่น

  • M ไฟล์มีการแก้ไข
  • A ไฟล์ถูกสร้างขึ้นมาใหม่
  • D ไฟล์ถูกลบไป
  • ? ยังไม่มีข้อมูลของไฟล์

svn commit – ปรับปรุงการแก้ไขไฟล์เข้าไปใน repository

หลังจากที่แก้ไขไฟล์ต่างๆ เสร็จเรียบร้อย ใช้คำสั่ง svn commit เพื่อใส่ข้อมูลการเปลี่ยนแปลง กลับเข้าไปใน repository อีกครั้ง ระบุออปชั่น ‘-m’ เพื่อใส่คำอธิบายการแก้ไข

[user01@svn my-scripts]$ svn commit -m "added more lines"

Sending index.php
Transmitting file data .
Committed revision 2.

svn add – เพิ่มไฟล์ใหม่

หากต้องการสร้างไฟล์ใหม่ขึ้นมา ก็สามารถสร้างได้ตามปกติ แล้วใช้คำสั่ง svn add เพื่อเพิ่มไฟล์ใหม่นี้เข้าไปใน repository

[user01@svn my-scripts]$ ls -l

total 12
-rw-r--r-- 1 user01 users 63 2008-11-28 00:10 index.php
-rw-r--r-- 1 user01 users 40 2008-11-28 00:16 new-file1.php
-rw-r--r-- 1 user01 users 7 2008-11-28 00:03 README
[user01@svn my-scripts]$ svn status

? new-file1.php
[user01@svn my-scripts]$ svn add new-file1.php

A new-file1.php
[user01@svn my-scripts]$ svn commit -m "added a new file 1"

Adding new-file1.php
Transmitting file data .
Committed revision 3.

svn delete – ลบไฟล์ออก

หากต้องการลบไฟล์ สามารถทำได้โดยใช้คำสั่ง svn delete ไฟล์จะถูกลบออกทั้งจาก ไดเร็คทอรี และจาก repository

[user01@svn my-scripts]$ svn delete new-file1.php

D new-file1.php
[user01@svn my-scripts]$ svn commit -m "deleted a new file 1"

Deleting new-file1.php
Committed revision 4.

[user01@svn my-scripts]$ ls -l
total 8
-rw-r--r-- 1 user01 users 63 2008-11-28 00:10 index.php
-rw-r--r-- 1 user01 users 7 2008-11-28 00:03 README

คำแนะนำการ commit

จะเห็นว่ากการ commit แต่ละครั้ง ตัวเลข Revision จะเพิ่มทีละหนึ่ง ซึ่งอาจเกินความจำเป็นและจะยากต่อการอ้างอิงเพื่อดึงข้อมูลย้อนหลัง (revert) คำแนะนำคือ ให้ commit หลังจากที่ปรับปรุงโปรแกรมไปพอสมควร เช่นแก้ไขปัญหาที่เกิดขึ้นจบไป หรืออาจจะวันละครั้ง ใส่คำอธิบายหรือเหตุผลของการเปลี่ยนแปลง และให้แน่ใจว่าสิ่งที่แก้ไขไปนั้นโปรแกรมสามารถรันได้โดยไม่มีข้อผิดพลาด แล้วค่อย commit กลับเข้าไปใน repository เผื่อว่าเวลามาดึงข้อมูลย้อนหลังจะได้นำมาใช้งานได้เลย


credit : http://spalinux.com/2008/11/basic_using_subversion

Shift Switcher in Compiz

rich effect in switching application on the current workspace by Compiz... Gosh !! its ever fabulous

1. system > preferences > compizconfig settings manager
2. select "window management"
3. select "shift switcher"

Note: After you finished 3rd step, you may see alert window noticing you that shortcut-key may duplicate for different effect. In window information, they ask you whether you prefer to terminate the previous effect using this shortcut-key in order to "shift switcher" will be free to use that shortcut-key

Ubuntu Compiz

Compiz is a software introducing ubuntu desktop user an amazing graphic user effect plugable in GNOME

INSTALL

1. system > administration > hardware driver
2. เลือก card จอเครื่องนั้นๆ ex. NVIDIA accelerated graphics driver (version current)
3. กด activate
4. เปิด terminal

aptitude install compizconfig-settings-manager compiz-fusion-plugins-extra

วันเสาร์ที่ 10 กรกฎาคม พ.ศ. 2553

Things should be done after Ubuntu Lucid installation

0. update source

- nano /etc/apt/sources.list

add sources into this file

- system > administrator > software sources > other softwares


1. เลือก repository ที่โหลดไวที่สุด

เนื่องจากเราโปรแกรมต่างๆของ ubuntu นั้นส่วนมากจะต้องติดตั้งผ่าน apt-get ฉะนั้นแล้วเราต้องเลือก repository ที่ของไทยเราเพื่อการโหลด packet ต่างๆที่ไวขึ้น ให้ไปที่ System > Administration > Software sources

2. ติดตั้ง driver การ์ดจอก่อนเลยครับ เพื่อจะได้เล่น Compiz fusion ได้

ถึงแม้ ubuntu จะจับยัด driver ต่างๆมาให้พร้อมแล้ว แต่ก็ไม่ได้ใส่ driver การ์ดจอมาให้ครับ ฉะนั้นเราก็ต้องติดตั้งเพิ่มโดยการไปที่ System > Administration > Hardware Drivers เพื่อทำการโหลด driver มาติดตั้ง

3. ติดตั้ง Compiz fusion เพื่อใช้งาน Desktop 3D

Compiz fusion จะทำให้ ubuntu ของเราดูน่าใช้งานมากยิ่งขึ้นใครนึกไม่ออกว่าเป็นยังไงลอง search youtube ดูครับ

sudo aptitude install compizconfig-settings-manager compiz-fusion-plugins-extra

4. ติดตั้ง packet สำหรับเล่นไฟล์ mp3, mp4 และมีเดียต่างๆ

ด้วย ubuntu restricted extras เราจะไม่ต้องค่อยนั่งไล่ลง code เล่นไฟล์มีเดียต่างๆให้เมื่อยตุ่ม

sudo aptitude install ubuntu-restricted-extras

5. ติดตั้ง theme เพิ่มเติม

ubuntu lucid ได้มี theme มาพร้อมให้แล้วบางส่วนแต่อาจยังไม่ถูกใจหลายๆคน สามารถหาเพิ่มเติมได้จาก gnome-look.org หรือ

sudo aptitude install community-themes

6. ติดตั้ง Ubuntu Tweak

Ubuntu Tweak เป็นซอฟแวร์ที่ไว้ปรับแต่งระบบของ ubuntu ร่วมทั้งยังสามารถติดตั้งซอฟแวร์ตัวอื่นๆเพิ่มเติมได้อีกด้วย ใช้แทน Ubuntu Software Center ได้เลยทีเดียวครับ ซึ่งจะคล้ายๆของ Tweak UI ทางฝั่ง windows นั้นเอง

sudo add-apt-repository ppa:tualatrix/ppa
sudo aptitude update && sudo aptitude install ubuntu-tweak

7. เพิ่ม repository "Medibuntu"

เป็นแหล่งดาวน์โหลดแพกเกจที่เน้นสำหรับงานบันเทิงของ Ubuntu ทำให้เราสามารถติดตั้งโปแกรมต่างๆ ได้ง่ายขึ้น เช่น Google earth, Opera , Sun Java ,Acrobat Reader และ อื่นๆ อีกมากมาย

sudo add-apt-repository ppa:medibuntu-maintainers/ppa
sudo aptitude update

8. ติดตั้ง VLC และ SMplayer ไว้เล่นไฟล์หนัง

เนื่องจาก Tottem ที่ ubuntu ให้มานั้นไม่สามารถตอบสนองตัณหาการดูหนังของเราได้หมดฉะนั้นเราต้องหา โปรแกรมตัวอื่นมาช่วยผมจึงแนะนำ vlc และsmplayer ครับ

sudo aptitude install vlc mozilla-plugin-vlc smplayer


credit : http://www.ubuntuclub.com/node/1968

file repository of apt-get

File downloaded by apt-get command is stored in "/var/cache/apt/archives"

วันพุธที่ 7 กรกฎาคม พ.ศ. 2553

SVN with XAMP on Ubuntu [file protocol]

1. install libraries

aptitude install libapache2-svn
aptitude install subversion

2. copy dav config to XAMP config

mv /etc/apache2/mods-enabled/dav_svn.conf /opt/lampp/etc/

note : /opt = location where you extracted XAMP to ;for example,
"tar xvfz xamp-x.x.x.tar.gz -C /opt"

3. edit dav_svn.conf by adding the following configuration

DAV SVN
SVNPath $home/svn/
AuthType Basic
AuthName "Subversion repository"
AuthUserFile etc/svn-password.pass
require valid-user

4. create repository exactly to what you declared in dav_svn.conf

cd $home
svnadmin create svn

5. create project directory under repository

svn mkdir file:///home//svn/
cd $home/svn
mkdir --> empty directory and nothing but help you recognize the referent name linked to

6. Here, we are ready to use SVN. An example would show below

- To load original files into SVN repository

cd /opt/lampp/htdocs/myweb
svn import file:///home//svn/


- To use it, we simply check them out from SVN repository like this

mkdir /opt/lampp/htdocs/myweb_mimic
cd /opt/lamp/htdocs/myweb_mimic
svn checkout file:///home//svn/
7. Now that you once did setting up SVN, you'd better keen with it by
  • checkin
  • checkout
  • commit
  • merge
  • reverse
so on and so forth.

Finally, this may be the most simple setting-up guide by using "file:///" protocol. I wish to have a chance to show you how to SVN on "http://" protocol as well


Here is useful website

pfSense OS : Distro for Internet Cafe

pfSense is an open source customized distribution of FreeBSD tailored for use as a firewall and router. More intriguingly, it natively includes a long list of related features and a package system allowing further expandability without adding bloat and potential security vulnerabilities to the base distribution. Here is network diagram for pfSense ideally,



XAMPP in Ubuntu

XAMPP for Linux,once called LAMPP, is what developer need. By facility it provides, linux developer does not have to get complicated tasks by doing installation servers such as web server, database server, etc in order to simulate their own laptop or personal computer as server. Frankly, we mostly agreed that XAMPP on Windows has been widely succeeded. All right, Im goin to show you step-by-step installation guide.

1. Download file

wget http://kent.dl.sourceforge.net/sourceforge/xampp/xampp-linux-1.7.3a.tar.gz

2. Unpack it

tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt

3. there you go! that's all you need to do to perfectly complete installation is start XAMPP

/opt/lampp/lampp start|stop|restart

apt-get Vs aptitude

apt-get and aptitude are achieving the same things; that is, fetching package from various sources and managing those files like install, uninstall, reinstall, or even check file. Indeed, we, beginner, could be easily puzzled which to use; however, we should not waste our time on seeking the answer of why do we choose one instead of another one? All of that is the one obvious difference is

apt-get : manually manage package. You have to specify explicitly what package you are concerning.

aptitude : more intelligent one to apt-get, it handles dependencies automatically.

วันอังคารที่ 6 กรกฎาคม พ.ศ. 2553

SVN set up & simple usage

1. apt-get install subversion
2. apt-get install libapache2-svn
3. nano /etc/apache2/mods-enabled/dav_svn.conf


DAV svn
SVNParentPath /home/svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/subversion/dav_svn.passwd
#AuthzSVNAccessFile /etc/subversion/dav_svn.authz
Require valid-user


4. htpasswd -cm /etc/subversion/dav_svn.passwd zmc1

password : ******
re-type password : ******

5. nano /etc/subversion/dav_svn.authz

[groups]
developer = tee, pond


[test:/]
@developer = rw
testuser = r

[test:/doc]
@developer = rw
testuser = rw
* = r

6. mkdir /home/svn/
7. svnadmin create /home/svn/test
8. chown -R www-data: /home/svn/test
9. /etc/init.d/apache2 restart


SVN Server Setup

1. create directory in SVN server

svn mkdir http://localhost/svn/test/trunk
svn mkdir http://localhost/svn/test/branches
svn mkdir http://localhost/svn/test/tags

2. import project to SVN server directory (trunk)

svn import / http://localhost/svn/test/trunk

3. retrieve project from SVN server directory (trunk)

svn checkout http://localhost/svn/test/trunk //trunk

4. change owner to apache(www-data) in order to let apache can update files automatically

chown -R www-data: //trunk

5. activate auto-update for working directory

cp /home/svn/test/hooks/post-commit.tmpl /home/svn/test/hooks/post-commit
chmod +x /home/svn/test/hooks/post-commit
nano /home/svn/test/hooks/post-commit

add the following command at the bottom of this file

/usr/bin/svn update //trunk

6. hidden .svn file in working directory to web user

nano /etc/apache2/apache2.conf

/.svn/">
Order deny,allow
Deny from all




SVN Client Setup

1 Check out

$ svn checkout http://[ตรงนี้ใส่ ip หรือ host name ของ server]/svn/test/trunk/ //trunk


Credit :
1. http://www.ubuntuclub.com/node/1513
2. http://alephzarro.com/blog/2007/01/07/installation-of-subversion-on-ubuntu-with-apache-ssl-and-basicauth/
2.

Add new source to APT in Ubuntu

  1. "gksu gedit /etc/apt/sources.list"
  2. add whatever sources you have
  3. update apt to get to know new available sources by "aptitude update"

วันเสาร์ที่ 3 กรกฎาคม พ.ศ. 2553

iPhone tethering on Ubuntu(10.04 Lucid)

Ive done experiment engineering tethering on Koala as well, yet it's, however, kind of waste of time , too many error, too many dependency. After my last energy burned, I decided stepping up to Lucid without second thought. Bingo !! I unfortunately faced with boot loader malfunction, which make me go crazy for a day.
Therefore, anyone who are reading this article please forgot upgrading plan for a while. All right I gotta take you guys to the core of the intention, internet tethering on Ubuntu at this moment. I lists steps below
  1. add 2 information in system/admin/software sources
    deb http://ppa.launchpad.net/pmcenery/ppa/ubuntu lucid main
    deb-src http://ppa.launchpad.net/pmcenery/ppa/ubuntu lucid main

  2. apt-get update
  3. apt-get upgrade
  4. apt-get install git-core
  5. apt-get install libusb-dev libusb
  6. apt-get install libtool automake autoconf git-core swig build-essential python-dev libusbmuxd-dev libglib2.0-dev libgnutls-dev libplist-dev libplist++-dev libplist++1 libzip-dev libclutter-1.0-dev libclutter-gtk-0.10-dev intltool
  7. cd libimobiledevice --> โหลดเอาจาก web http://www.libimobiledevice.org/
  8. cd ../
  9. git clone git://github.com/dgiagio/ipheth.git
  10. cd ipheth/ipheth-pair
  11. ./configure
  12. make
  13. make install
  14. cd ../
  15. cd ipheth/ipheth-driver
  16. make
  17. insmod ipheth.ko


  • http://ubuntuforums.org/showthread.php?t=1471018

Ubuntu 10.04 (Lucid)

security changes
  • disable root account by default
To enable it...
A@B$ sudo passwd root
[sudo] password for A: ....
Enter net UNIX password: ....
ReType new Unix password: ....
passwd: password updated successfully

วันพฤหัสบดีที่ 1 กรกฎาคม พ.ศ. 2553