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: dapper-drake, dell, ubuntu
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: edgy-eft, ubuntu, vhcs2
Jan 05
Begin to use AJAX with signup form, I found that my function have some error with IE (innerHTML), cannot delete node or replace text in element id (but just work with Firefox). Then I use moo.ajax to replace that function and below code is work for IE (v.6 and later) and Firefox.
Include this javascript in header
Use this function to post and get reply from server
function ajax_req() {
new ajax('check.php', { postBody: pars, onComplete: chState });
}
function chState(request) {
var rs=request.responseText;
alert(rs);
}
Useful links
written by Mr-San
\\ tags: ajax, moofx
Nov 30
It’s not difficult but make sure about some config in your application before doing them. Because Ubuntu will not support Breezy-Badgers in 6 months, but Dapper Drake is LTS (Long Term Support) it suitable for server.
My step is
- backup old sources.list : cp /etc/apt/sources.list /etc/apt/sources.list.breezy
- change sourcelist to
deb http://th.archive.ubuntu.com/ubuntu/ dapper main restricted
deb-src http://th.archive.ubuntu.com/ubuntu/ dapper main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://th.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src http://th.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
## Uncomment the following two lines to add software from the ‘universe’
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://th.archive.ubuntu.com/ubuntu/ dapper universe multiverse
deb-src http://th.archive.ubuntu.com/ubuntu/ dapper universe multiverse
## Uncomment the following two lines to add software from the ‘backports’
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://th.archive.ubuntu.com/ubuntu/ dapper-backports main restricted univer se multiverse
deb-src http://th.archive.ubuntu.com/ubuntu/ dapper-backports main restricted un iverse multiverse
deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu dapper-security universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security universe multiverse
- use apt-get update : to update list file
- use apt-get dist-upgrade : to upgrade your server to dapper (beware need dist-upgrade not upgrade)
- reboot your system
After this process may check your application, just run fine or not.
written by Mr-San
\\ tags: breezy-badger, dapper-drake, server, ubuntu
Nov 25
In some cases, your web server have attacked by someone how to resolve this problem?
Use mod_evasive to resolve this problem
When mod_evasive detects attack, it will create hash table and deny that ip following :
- Requesting the same page more than a few times per second
- Making more than 50 concurrent requests on the same child per second
- Making any requests while temporarily blacklisted (on a blocking list)
You can get this module via : http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz
Continue reading »
written by Mr-San
\\ tags: apache, dos-attack, mod-evasive