มกราคม 2008


step 1: ในไฟล์ fstab ให้แก้ตรงไฟล์ซิสเต็มของ windows ที่เป็น ntfs ให้เป็น ntfs-3g ครับ

เช่น

# /dev/sda1
UUID=3CB860D4B8608DE8   /media/NTFS1    ntfs    defaults,nls=utf8,umask=007,gid=46    0       1

แก้เป็น

# /dev/sda1
UUID=3CB860D4B8608DE8   /media/NTFS1  ntfs-3g   defaults,nls=utf8,umask=007,gid=46    0       1

step 2: ยกเลิกการ mount partition ของ windows ทั้ง 3

 $sudo umount /dev/sda1
 $sudo umount /dev/sda5
 $sudo umount /dev/sda6

step 3: mount partition ใหม่ทั้งหมด

 $sudo mount -a

* -a  =  all file system(in fstab)

*ปล. ลองลง ntfs-config ดูครับ แล้วจะไม่ต้องมานั่งแก้ไฟล์ fstab เองแบบ manual

Powered by ScribeFire.

ปกติ​แล้ว​ Ubuntu Gutsy ​จะ​มี​ Java SDK ​ที่​เป็น​เวอร์ชั่นของ​ GNU ​ซึ่ง​ถ้า​ลองตรวจสอบเวอร์ชั่นของ​ Java ​แล้ว​จะ​ได้​ผลลัพธ์ดังนี้

atthakorn@chaos:~$ java -version
java version "1.5.0" gij (GNU libgcj) version 4.2.1 (Ubuntu 4.2.1-5ubuntu5)
Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

แต่​ถ้า​เรา​ต้อง​การเปลี่ยนมา​ใช้​ SDK ​ของ​ Sun ​สามารถ​ทำ​ได้​โดย​สั่ง​ install sun-java6-jdk ​ผ่าน​ terminal ​ดังนี้

atthakorn@chaos:~$ sudo aptitude install sun-java6-jdk

แล้ว​ ​ก็​ให้​ตอบตกลงไปเรื่อย​ ​ๆ​ ​จนกระทั่งการ​ download ​และ​ install ​เสร็จ​ default jvm ​ตอนนี้​ยัง​คง​เป็น​ของ​ gcj ​อยู่​ ​ให้​ใช้​คำ​สั่งเพื่อดูชื่อ​ jvm ​ทั้ง​หมด​ใน​เครื่องเรา​เป็น​อันดับแรก

atthakorn@chaos:~$ sudo update-java-alternatives -l
java-6-sun 63 /usr/lib/jvm/java-6-sun
java-gcj 1042 /usr/lib/jvm/java-gcj

จาก​นั่น​ให้​ทำ​การอัพเดท​ java-6-sun ​เป็น​ default jvm ​โดย​ใช้​คำ​สั่ง

atthakorn@chaos:~$ sudo update-java-alternatives -s java-6-sun

และ​ทำ​การเพิ่มบรรทัดของ​ /usr/lib/jvm/java-6-sun ​ไว้​บนสุด​ใน​ไฟล์​ /etc/jvm ​ดังนี้

atthakorn@chaos:~$ cat /etc/jvm
# This file defines the default system JVM search order. Each
# JVM should list their JAVA_HOME compatible directory in this file.
# The default system JVM is the first one available from top to
# bottom.
/usr/lib/jvm/java-6-sun
/usr/lib/jvm/java-gcj
/usr/lib/jvm/ia32-java-1.5.0-sun
/usr/lib/jvm/java-1.5.0-sun
/usr

ลองตรวจสอบ​ version java ​อีกครั้ง​ ​จะ​พบว่าตอนนี้​ default jvm ​ใน​เครื่องเรา​เป็น​ java 6 ​เรียบร้อย​แล้ว

atthakorn@chaos:~$ java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode)

Powered by ScribeFire.

1. ​เริ่มแรก​ต้อง​ติดตั้ง​ java ​ก่อนครับ
    1.1 $ sudo apt-get install sun-java6-jdk ​รอ​ใช้​การติดตั้งเสร็จ
    1.2 set JAVA_HOME
        $ sudo gedit /etc/bash.bashrc
        เพิ่ม​ 2 ​บรรทัดนี้ต่อไฟล์​เดิมที่มี​ ​แล้ว​ save
            JAVA_HOME=”/usr/lib/jvm/java-version”
            export JAVA_HOME
    1.3 ​ทดลอง
        $ java -version
                java version “1.6.0_03&Prime
                Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
                Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
        ถ้า​ขึ้นแบบนี้ก็​ OK ​ครับ
    1.4 reboot ​เครื่องสักครั้งก็ดีครับ
2. ​ติดตั้ง​ Netbeans download ​ได้​ที่​ www.netbeans.org
    2.1 ​เปลี่ยนสิทธิของไฟล์​ netbeans-6.0-linux.sh
        $ chmod +x netbeans-6.0-linux.sh
    2.2 ​จาก​นั้น​ก็
        $ ./netbeans-6.0-linux.sh
    2.3 ​โปรแกรมก็​จะ​ขึ้นตัวติดตั้งมา​ให้​ ​ไม่​ยากครับ​ next ​อย่างดียวใคร​จะ​ประ​แต่ง​ ​อะ​ไรก็ทำ​ได้​ครับ

แค่นี้ก็​เสร็จครับ

ปัญหาการ Install flash plugin ของ Firefox บน Ubuntu  ซึ่งมีข้อผิดพลาดในการทำ md5 checksum เสร็จดังนี้

Flasherror1

ทำให้ flash player ไม่สามารถ Install ได้ตามปกติ ค้นข้อมูลในเว็บไซต์อยู่นานจึงพบวิธีแก้สองวิธีคือ

  1. ทำการติดตั้งแบบ Manual ตามวิธีของ Adobe
  2. Install โดยใช้ Unofficial package

แต่วิธีที่ง่ายที่สุดคือวิธีที่สอง ซึ่งพิมพ์ไม่กี่คำสั่งก็จะได้ Flash plugin มาใช้งานอย่างง่ายๆ ลองทำตามขั้นตอนนี้กันนะครับ

1. ทำการดาวโหลด Unofficial package จากลิงค์ข้างล่างนี้

wget http://launchpadlibrarian.net/10761023/flashplugin-nonfree_9.0.115.0ubuntu2_i386.deb

2. ทำการติดตั้งแบบ local ของ debian package โดยคำสั่ง

sudo dpkg -i flashplugin-nonfree_9.0.115.0ubuntu2_i386.deb

3. Restart โปรแกรม Firefox หนึ่งที เท่านี้ Flash player ก็พร้อมใช้งานกับ Firefox แล้วครับ

ที่มา? – http://www.tombuntu.com

Q. How do I install Flash Player for Firefox web browser?

A. Type the following two commands to install flash player:

$ apt-get install flashplugin-nonfree
$ sudo update-flashplugin

Restart the firefox. Some people may find voice is not working with
newly installed flash player. Type following commands to solve this
problem (thanks to macewan.org):

$ sudo apt-get install alsa-oss

$ gksudo gedit /etc/firefox/firefoxrc

Find line that read as FIREFOX_DSP and set to:
FIREFOX_DSP="aoss"

Save and close the file.

Close Firefox and restart it again.

Powered by ScribeFire.

ก่อนอื่นเลยเราก็ต้องมีแผ่น OEM เสียก่อน จากนั้นก็นำแผ่นใส่เครื่องเล่น แล้ว Copy Cd ลง HDD

จากนั้นก็แตกไฟล์นี้ไปลงที่ \i386

File Attachment: CorpFilesXP.zip (13025 KB)

เท่านี้ Cd OEM ของเราก็จะกลายเป็น Volume License CD แล้ว จากนั้นก็ทำต่อด้วย nLiteOS ก็จะได้เป็นแผ่นสมบูรณ์แบบ

ทดสอบ BlogJet กับภาษาไทยครับท่าน

I have installed an interesting application – BlogJet. It’s a cool Windows client for my blog tool (as well as for other tools). Get your copy here: http://blogjet.com

“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination.” — Albert Einstein

Vmware server comes with the nifty vmware-cmd utility. It allows an administrator to perform various operations on a virtual machine from Linux command line / shell prompt such as:

=> Stop / Start VM

=> Get VM status

=> Setup variables

=> Powerdown VM and much more

Task: Lists the virtual machines on the local server

You can list all servers and config file, enter:
# vmware-cmd -l
Output:

/nas/vms/Ubuntu/Ubuntu.vmx/nas/vms/FreeBSD/FreeBSD.vmx/nas/vms/OpenBSD/OpenBSD.vmx/nas/vms/Debian4/Debian4.vmx/nas/vms/CentOS5/CentOS5.vmx

Turn on VM / Power up VPS

Just pas start option to vmware-cmd,
# vmware-cmd /nas/vms/FreeBSD/FreeBSD.vmx start

To stop VM/VPS, enter:
# vmware-cmd /nas/vms/FreeBSD/FreeBSD.vmx stop

To reset VM/VPS, enter:
# vmware-cmd /nas/vms/FreeBSD/FreeBSD.vmx reset

To suspend VM/VPS, enter:
# vmware-cmd /nas/vms/FreeBSD/FreeBSD.vmx suspend

Find out if OpenBSD VM is on or off:
# vmware-cmd /disk2.vmware/vms/OpenBSD/OpenBSD.vmx getstate
Output:

getstate() = off

vmware-cmd offers other options, please consult VMWARE documentation for more information.

Powered by ScribeFire.

ติดตั้ง package ที่จำเป็นดังนี้

aptitude install linux-headers-`uname -r` build-essential

aptitude install xinetd

aptitude install libx11-6 libx11-dev libxtst6 xlibs-dev libxrender-dev

หลังจากนั้นก็ติดตั้ง vmware ตามปกติ

เมื่อติดตั้ง server เสร็จ ก็เลือกลง console ตามสะดวก ไม่ว่าจะเป็น windows หรือ linux

อ้อ ลืม port สำหรับติดต่อระหว่าง server กับ console คือ 902

Powered by ScribeFire.