Sep 22

เจอปัญหาอีกแล้วครับ จากการติดตั้ง Ubuntu 7.04 Feisty Fawn เกิดจากระหว่าง Setup แล้วจะไปหยุด ตอน update-manager-core ที่ 85% นานมากๆๆ ทนไม่ไหว เลยไปหาๆ พบวิธีแก้ดังนี้

#login to tty2 (Ctrl-Alt-F2)
#kill pid id of apt-get update
ps awx|grep -i apt
kill (PID of apt)

หลังจากนั้น กลับมาที่ tty1 ตามปกติ (Ctrl-Alt-F1) ก็จะติดตั้งได้ต่อไป

written by Mr-San \\ tags: , , , ,

Apr 29

มี Course Training ภายใน GITS ก็เลยได้ทดสอบ Compile ด้วย Source ของ PHP บน Ubuntu อันนี้ก็ถือว่าเป็น สรุปละกันเพราะ มีปัญหาที่ต้องติดตั้งเพิ่มหลายจุดเหมือนกัน ก่อนหน้านี้เคยทำสำหรับ Freebsd ไว้แล้วที่ ลอง compile PHP ด้วย port ของ FreeBSD

ขั้นแรก ติดตั้ง Package ที่จำเป็นต่อการ compile ก่อน
apt-get install build-essential bison checkinstall fakeroot
apt-get install flex libgd2-xpm libgd2-xpm-dev libxml2 libxml2-dev libbz2-dev libpng12-0 libpng12-dev libfreetype6 libfreetype6-dev libcurl3 libcurl3-devlibjpeg62 libjpeg62-dev

ต่อจากนั้นก็ เริ่ม compile เลยครับ
./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-zlib \
--with-bz2 \
--with-gd \
--enable-gd \
--enable-gd-native-ttf \
--with-jpeg-dir \
--with-png-dir \
--with-ttf \
--with-freetype-dir \
--with-iconv \
--enable-track-vars \
--with-gettext \
--enable-trans-id \
--with-cpdflib \
--enable-mbstring \
--with-openssl
กรณี ต้องการใช้ร่วมกับ mysql ให้เพิ่ม --with-mysql
กรณี ต้องการใช้ร่วมกับ curl ให้เพิ่ม --with-curl

แล้วก็อย่าลืมเพิ่มบรรทัด ของ PHP ใน httpd.conf ด้วยนะครับ
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

ที่เหลือก็ php.ini แก้ไขตามต้องการครับ ตอนนี้ default จะอยู่ที่ /usr/local/lib/php.ini

written by Mr-San \\ tags: , , ,

Jan 25

Problem again, as I think it’s easy it will be late. This problem about setting up Ubuntu 6.06.1 on Dell PowerEdge 2950.

เจอปัญหาอีกแล้ว นึกว่าจะติดตั้งได้ไว (ปัญหาในการทำ computer 1 ข้อ ก็คือ อะไรที่คิดว่าน่าจะเสร็จได้ไว มักจะมีปัญหาทำให้ล่าช้าทุกครั้ง) เป็นปัญหาการติดตั้ง Ubuntu 6.06.1 บน Dell PowerEdge 2950

Dell PowerEdge 2950 (as in x9xx series) used PERC5/i then ubuntu’s kernel don’t have megaraid_sas in this version (2.6.15). When you setup will see more drive than you think
ex. if your server have 3 HD it will shown 4 HD (the last drive as RAID)
but you can install ubuntu in it but when restart, you found Grub loading error 21.

ปัญหาเกิดจาก Dell PowerEdge 2950 (ใน series นี้น่าจะเป็นหมด) ใช้ PERC 5/i ซึ่ง kernel ของ Ubuntu ไม่มี module นี้ ทำให้มองเห็น RAID ต่างๆที่กำหนดไว้ เพิ่มมาอีก 1 drive เช่น มี HD 3 ตัว จะเท่ากับว่ามี HD 4 ตัวรวม RAID ซึ่งถ้าทำ RAID 5 ควรจะเห็น HD เพียงแค่ ตัวเดียว ซึ่งทำให้หลังจากติดตั้ง Ubuntu เสร็จจะไม่สามารถ boot ได้ และจะขึ้น Grub loading error 21 ไม่ว่าจะทำไงก็จะ error ทุกครั้งเศร้า

This problem solve by Robert (ubuntuforums.org) but I change it to my setting :

ปัญหานี้ มีวิธีแก้ไขเขียนโดย คุณ Robert (ubuntuforums.org) ซึ่งขอปรับให้เข้ากับที่ใช้กับผมเอง
- HD เป็น SATA 3 ตัว ทำ RAID 5
Continue reading »

written by Mr-San \\ tags: , ,

Jan 11

On the old post with Vhcs2 and Ubuntu Dapper Drake, Now a day it’s necessary to up them again but http://wael.nasreddine.com website has down. Then I see the article that use with Ubuntu Edgy Eft, then need to upgrade Ubuntu, let’s upgrade with below instruction

คราวก่อนลง Vhcs2 บน Ubuntu Dapper Drake ไปแล้ว คราวนี้ จำเป็นต้องใช้มันก็เลยจะลงอีกรอบ แต่ website ที่ vhcs.sh เกิด down ซะก่อน เลยต้องมีการเปลี่ยนแผน หาไปหามา ก็เลยเห็นมีบทความ Vhcs2 บน Ubuntu Edgy Eft เลยทำการ Upgrade Ubuntu ซะเลย วิธีการก็ง่ายๆ

sed 's/\sdapper/ edgy/g/ -i /etc/apt/source.list
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get -f install
sudo dpkg --configure -a

How to check Ubuntu version?
วิธีการตรวจสอบ Ubuntu version
sudo lsb_release -a

Partition size (note for forgotten)
Partition ที่ควรต้องแบ่ง (จดไว้กันลืม)

/usr : 500M
/var : 500M
/boot : 150M
/tmp : 1G

and install instruction at
ส่วนขั้นตอนการทำก็ตามนี้เลย
http://vhcs.net/new/modules/newbb/viewtopic.php?topic_id=7116&forum=2&post_id=33421#forumpost33421

used with eaccelerator at
เพิ่มเติมอีกนิด อยากให้ php ใช้ eaccelerator ด้วย ก็ทำตามนี้เลย
http://www.debianadmin.com/php-cache-accelerators-with-installation-tutorials.html

, That’s done.
แค่นี้ก็น่าจะสมบูรณ์แล้ว เป็นอันจบพิธี

written by Mr-San \\ tags: , ,

Dec 20

Many editor on Ubuntu such as vim, ed, nano. But default editor is nano. I need to change to vim or anything else. The easiest way is use update-alternatives, which can config anything in /etc/alternatives/. Then can change default editor with

sudo update-alternatives --config editor

Here’s example when you run this command

There are 3 alternatives which provide `editor’.

Selection Alternative
———————————————–
*+ 1 /bin/nano
2 /bin/ed
3 /usr/bin/vim

Press enter to keep the default[*], or type selection number: 3

You can select with type number and then enter to change it.

written by Mr-San \\ tags: , ,