Monday, April 18, 2011

reinstall grub

1. Boot Linux จาก  Live CD Distro ต่าง ๆ เช่น Ubuntu Live, Knoppix, Mepis, etc.

2. เมื่อบูตแล้วให้เปิด terminal ขึ้นมา แล้วเปลี่ยนสิทธิ์ให้เป็น root ("su" for non-Ubuntu distro หรือ "sudo -i" for Ubuntu).

3. พิมพ์ "grub" เพื่อเข้าโปรแกรม grub

##>grub

4. จากนั้นใช้คำสั่ง "find /boot/grub/stage1" เพื่อค้นหา grub bootloader จาก harddisk จะเจอผลลัพธ์ประมาณว่า "(hd0,1)"

grub > find /boot/grub/stage1
grub > (hd0,3)  

5. พิมพ์ "root (hd0,3)" .
grub > root (hd0,3)

6. จากนั้นก็พิมพ์ "setup (hd0,3)" เพื่อ reinstall grub กลับเข้าไป
grub > setup (hd0,3)

7. ออกจาก grub โดยพิมพ์ "quit"

grub> quit

8. Restart เครื่อง แล้วเอาแผ่น CD ออกด้วย เพียงเท่านี้เราก็จะได้ grub กลับมา

คัดลอกจาก http://clusterkit.co.th/techblog/content_view.php?blog_id=00017

Monday, April 11, 2011

Comparison of Linux distributions

Fedora
- i386
- rpm
instability, but is great for those that always want the latest and greatest software on their system

OpenSuse 11.4
- i686
ระบบจัดการแพคเกจสามารถทำงานได้เร็วขึ้น โดยใช้โปรแกรม Zsync (โหลดเฉพาะส่วนที่เปลี่ยนแปลง)
http://opensuse-guide.org/codecs.php
http://www.blognone.com/news/22326
http://www.susethailand.com/suseforum/
ภาษาไทย?
ซึ่งถึงแม้ Ubuntu จะไม่เบาที่สุด แต่ก็ Light Weight กว่า OpenSUSE เยอะ ที่มา
เอา HAL ออก มีโปรแกรม update driver เข้ามาแทน ซึ่งสนับสนุนการค้นหา Driver อย่าง Wireless ของ Broadcom ที่มา
http://thaiopensource.org/howto/เพิ่ม-repository-จาก-community-ให้-opensuse
http://en.opensuse.org/Hardware_requirements
http://bsmith1012.blogspot.com/2011/03/opensuse-114-repositories.html


Debian
-i386
จะแยกซอฟต์แวร์ต่าง ๆ ออกเป็นสามส่วน คือ main, contrib และ non-free
โดยส่วน main จะเป็นระบบหลักที่ประกอบด้วยซอฟต์แวร์เสรีล้วน ๆ
ส่วน non-free คือซอฟต์แวร์ที่ใช้สัญญาอนุญาตที่ไม่เสรี
และส่วน contrib คือส่วนของซอฟต์แวร์ที่โดยตัวของมันเองใช้สัญญาอนุญาตแบบเสรี แต่จำเป็นต้องใช้สิ่งที่อยู่ใน non-free ประกอบการทำงาน
http://debianclub.org/node/606
http://desktoplinuxreviews.com/2011/02/12/debian-6-squeeze/6/
- มี mirror ที่ไทยเหมือนกัน http://www.debian.org/mirror/list
และ http://debianclub.org/mirrors

Ubuntu
- i386
- มี Server อยู่ในไทย -> Download เร็ว
รุ่นของ Ubuntu ที่มี LTS หรือ Long Term Support ห้อยท้าย หมายถึงรุ่นที่ Canonical สนับสนุนดูแล ออก patch มาอุดรูรั่วด้านความปลอดภัย นานกว่ารุ่นธรรมดา
เช่น 12.04 LTS 5 ปี
ในระยะเวลา 2 ปีแรก Ubuntu 12.04 LTS จะได้รับอัพเดตการสนับสนุนฮาร์ดแวร์ใหม่ๆ ผ่านทาง SRU (Stable Release Updates) และรุ่นย่อย (12.04.1) หลังจากนั้นก็จะเหลือแค่การดูแลเรื่องความปลอดภัย

Arch
- i686
-
https://wiki.archlinux.org/index.php/Arch_Compared_to_Other_Distributions


Slackware is another distro that deserves mention in this context. As compared to Arch Linux, Slackware Linux provides more stable packages and is thus more conservative.
However, Arch Linux provides a more usable package management system that takes care of dependencies.

Mandriva
ดิสโทรสัญชาติฝรั่งเศส
เป้าเจาะตลาดเดสก์ท็อปในประเทศกำลังพัฒนา
จะออกรุ่นเดสก์ท็อปปีละ 1 ครั้ง และมีระยะเวลาสนับสนุน 18 เดือน โดยรุ่นนี้เป็นการเตรียมพร้อมสำหรับแนวทางใหม่ และจะมี Mandriva Desktop 2011 LTS ที่ระยะเวลาสนับสนุนนาน 3 ปี
หยุดสนับสนุนตัวจัดการเดสก์ท็อปแบบอื่นๆ ออกทั้งหมด เหลือเพียง KDE4 เท่านั้น
ref
http://www.blognone.com/news/25982/mandriva-desktop-2011-พร้อมเปลี่ยนระบบออกรุ่นเป็น-1-รุ่นต่อปี
http://www.blognone.com/news/18686/ทีมพัฒนา-mandriva-แยกตัวไปสร้างดิสโทรใหม่-mageia

Mageia
fork ออกมาจาก mandriva
เป็นดิสโทรของชุมชนที่ไม่มีบริษัทใดบริษัทหนึ่งหนุนหลัง (ลักษณะเดียวกับ Debian)
ตัวองค์กรจะไม่แสวงผลกำไร


Endian Firewall Community
http://www.endian.com/us/community/overview/
http://www.endian.com/us/community/feature-comparison/
Endian Firewall Community (EFW) is a "turn-key" linux security distribution.
EFW is .... a complete, secure and stable firewall exclusively from Open Source software.

The features include a stateful packet inspection firewall, application-level proxies for various protocols (HTTP, FTP, POP3, SMTP) with antivirus support, virus and spam-filtering for email traffic (POP and SMTP), content filtering of Web traffic and a "hassle free" VPN solution (based on OpenVPN).

Based on Red Hat Enterprise Linux (http://distrowatch.com/table.php?distribution=endian)


Src:
http://www.labnol.org/software/best-linux-distros/12757/
http://www.frihost.com/forums/vt-103177.html
www.blognone.com/news/27187/ubuntu-1204-lts-รุ่นเดสก์ทอปจะขยายเวลาสนับสนุนเป็น-5-ปี

more:
http://lifehacker.com/5889950/how-to-find-the-perfect-linux-distribution-for-you