STORY of AODDY. » Posts in category 'linux'

How to find out your server can run 64 bit Kernel or not.

You can see detail in file /proc/cpuinfo. If you find “lm” (long mode) flag that mean your server can run 64 bit Kernal :D.
Read more »

Tags:,

How to enable USB drive in VMware server.

หลังจากที่ ติดตั้ง VMWare server บน Ubuntu 7.10 ก็พบกับปัญหาว่า VMware มันไม่เห็น USB ของ Thumb drive ผมก็เลยต้องมาวิธี Fix

1. เข้าไปแก้ไขไฟล์ /etc/init.d/mountdevsubfs.sh ตั้งแต่บรรทัดที่ 42 - 45 โดยการ Uncomment ออก ก็จะได้ดังนี้

:
mkdir -p /dev/bus/usb/.usbfs
domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount –rbind /dev/bus/usb /proc/bus/usb
:

2. แก้ไขไฟล์ /etc/fstab โดยเพิ่ม

:
usbfs /proc/bus/usb usbfs auto 0 0
:

ไว้ที่บรรทัดสุดท้ายของ ไฟล์ /etc/fstab

3. Start service โดยใช้ command ดังนี้

sudo /etc/init.d/mountdevsubfs.sh start
Tags:

How to upgrade Zimbra 4.5.9 to 5.0.2 .

These are steps for upgrade Zimbra 4.5.9 to 5.0.2.

1. Download new version from www.zimbra.com

[root@mail] # mkdir Program; cd Program
[root@mail] # wget -c http://files.zimbra.com/downloads/5.0.2_GA/\
zcs-5.0.2_GA_1975.RHEL5.20080130221917.tgz

2. Unzip new software.

[root@mail] # tar xvfz zcs-5.0.2_GA_1975.RHEL5.20080130221917.tgz

Read more »

Tags:,

How to create new CA on Zimbra 5.0 .

After I started my Zimbra server, I had alerte from my server. It told me about my CA was mismatch with my domain. This is example alert :

If you want to create new CA for your Zimbra server , you can follow these steps :

Read more »

Tags:,

How to fix problem when linux guest on vmware has run time fast than host.

I have one server, it is installed CentOS5. After I installed Vmware Server program, I installed new Linux guest virtual machine which it is CentOS5 ,too.

I found this problem when I started it (Linux guest) about 3 days, I found it had shift time.

I try to find root cause of this problem. Ohhh I found.

Read more »

Tags:,

How to redirect http to https on Zimbra server.

I want to redirect from http to https when I type URL in browser . And this is solution :

[root@zimbra] # su - zimbra
[zimbra@zimbra] $ zmtlsctl mixed
[zimbra@zimbra] $ zmcontrol stop
[zimbra@zimbra] $ zmcontrol start

Work more !! :D

Tags:,

How to set datetime in Linux system by command line

Yesterday, I found problem about date&time system on Linux server virtual machine on VMServer. That virtual machine has shifted time by automatic and this is example how to use command line set date&time in Linux server. Read more »

Tags:, ,

Clone disk by CloneZilla.

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

Tags:, ,

How to install PHP5,Apach2.2,MySQL5 by manual compile.

ได้รับมอบหมายให้ Install OS พร้อม Software จำพวก Apache, PHP5 แล้วก็ MySQL5 เริ่มแรกเราก็ไปหา source file มาก่อน เตรียมๆ เอาไว้ ดังนี้

  1. Apache 2.2
  2. MySQL 5.0.37
  3. PHP 5.2.1

ลำดับการติดตั้ง ก็ตามนี้ครับ

  1. การติดตั้ง Apache 2.2
  2. การติดตั้ง MySQL 5.0.37 : http://laffers.net/howtos/howto-install-mysql
  3. การติดตั้ง PHP 5.2.1

Read more »

Tags:, ,

Count files in sub directory.

ครับตามชื่อ หัวข้อ ผมต้องการนับว่าใน Current Directory ที่ผมอยู่มีไฟล์ทั้งหมดกี่ไฟล์ และถ้าใน Current Directory มี Subdirectory แล้วก็ใน Subdirectory มีไฟล์ซ่อนอยู่ ก็ให้นับรวมมาด้วย โดยไม่นับรวม Subdirectory นั้นๆ คำสั่งเป็นดังนี้
# find . -type f
./a.txt
./b.txt
./aa/aa.txt
./bb/bb.txt
# find . -type f | wc -l
4

เป็นอันเสร็จพิธี…ที่มาก็มาจากเจ้ Goo นั้นแหละครับผม

Tags:
© 2008 STORY of AODDY. is powered by WordPress