Debian GNU/Linux เป็นระบบปฏิบัติการที่สามารถติดตั้งซอฟแวร์ที่ถูกทดลองใช้งาน
และแก้ไขข้อบกพร่องแล้ว นำมาจัดเก็บไว้ในเซิฟเวอร์ทั้ง http และ ftp ไฟล์ที่กำหนดเซิฟเวอร์
เพื่อติดตั้ง อัพเกรดแพคเกจ ซอฟท์แวร์ คือ /etc/apt/source.list โดยชื่อเซิฟเวอร์สามารถ
กำหนดได้ทั้งเซิฟเวอร์ที่ตั้งอยู่ในประเทศไทย และต่างประเทศ
หลังการติดตั้ง ผู้เขียนขอแนะนำให้ผู้บริหารระบบทั้งหลายเพิ่มเติม แก้ไขเซิฟเวอร์ในไฟล์
ดังกล่าว ดังนี้
1. สำรองไฟล์เดิมไว้ โดยคัดลอกไว้ในชื่อใหม่ โดย superuser (root) ดังตัวอย่าง
root@debian7:~# cd /etc/apt/ --> คำสั่งเปลี่ยนไดเรคทอรี่
root@debian7:/etc/apt# cp sources.list sources.list.bak --> คำสั่งคัดลอกไฟล์
source.list เป็นไฟล์ source.list.bak
2. เพิ่มชื่อเซิฟเวอร์ และยกเลิกการติดตั้งจาก CD ดังต่ออย่าง การแก้ไขสามารถใช้ editor
ที่ท่านถนัดใช้งาน ในที่นี้ผู้เขียนขอแนะนำการใช้ pico เป็น editor
#
# deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official i386 CD Binary-1 20130504-15:20]/ wheezy main --> ยกเลิกการใช้ CD
#deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official i386 CD Binary-1 20130504-15:20]/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
# wheezy-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
deb http://ftp.debian.org/debian/ wheezy-updates main
deb-src http://ftp.debian.org/debian/ wheezy-updates main
deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.us.debian.org/debian/ wheezy main
deb http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ wheezy-updates main
deb http://deb.opera.com/opera wheezy non-free
3. หลังการแก้ไข ให้อัพเดทข้อมูลด้วยคำสั่ง aptitude update
ไม่มีความคิดเห็น:
แสดงความคิดเห็น