debian: Customize Sid

 

Customize Sid Desktop

สมมุติว่าติดตั้งเดเบียนจาก debootstrap พร้อมทั้งทำ apt-proxy ไว้เรียบร้อยแล้ว

แก้ไข source.list และปรับปรุงแพกเกจ
# vi /etc/apt/source.list
deb	http://server1.example.com:9999/debian main contrib non-free
deb-src	http://server1.example.com:9999/debian main contrib non-free
deb	http://server1.example.com:9999/debian-multimedia main

# aptitude update
# aptitude dist-upgrade

เก็บตกแพกเกจที่จำเป็นเบื้องต้น
# aptitude install ssh vim-full less screen

ปรับแต่ง vimrc ปริยาย (ดู vi โดยย่อ ประกอบ)
# vi /etc/vim/vimrc.local

set tabstop=4
set expandtab
set autoindent
set smartindent
set nu!
syntax on

ปรับ vim ให้เป็น editor ปริยาย
# update-alternatives --config editor

เลือกหมายเลขหน้า vim-full
สร้างผู้ใช้ชั่วคราว
# useradd temp1
# passwd temp1
ติดตั้ง Gnome
# aptitude install gnome xorg

ถ้ามีผู้ใช้หลายคน ควรปรับค่าปริยายของ Gnome
ปรับภาษาไทย ตาม gnome: เกร็ดการปรับตั้งค่าคีย์บอร์ดภาษาไทย
# gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.defaults \
--type list --list-type string \
--set /desktop/gnome/peripherals/keyboard/kbd/layouts [us,th]
# gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.defaults \
--type list --list-type string \
--set /desktop/gnome/peripherals/keyboard/kbd/options ["grp grp:alt_shift_toggle"]

ยกเลิกการล๊อกจอภาพ
# gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.defaults \
--type bool \
--set /apps/gnome-screensaver/lock_enabled false

ปรับเรื่องรหัสอักขระตอนเมานต์ usb กับ cdrom ทำให้เป็น utf8 อัตโนมัติ
# gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.defaults \
--type list --list-type string \
--set /system/storage/default_options/iso9660/mount_options [uid=,utf8,iocharset=utf8]
# gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.defaults \
--type list --list-type string \
--set /system/storage/default_options/udf/mount_options [uid=,utf8,iocharset=utf8]
# gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.defaults \
--type list --list-type string \
--set /system/storage/default_options/vfat/mount_options [shortname=lower,uid=,utf8,iocharset=utf8]

ติดตั้งแพกเกจกันเหนียวอื่น ๆ
# aptitude install smbfs
สร้างผู้ใช้
สมมุติว่าผู้ใช้ชื่อ user1 จะให้อยู่ในกลุ่ม mygroup
ของระบบคือ
# useradd -m -g mygroup -G lp,dialout,cdrom,floppy,audio,video,plugdev,lpadmin -s /bin/bash user1
# passwd user1

-m คือให้ยึดโครงสร้างไดเรกทอรี่ /home/user1 ตามแบบโครงสร้างใน /etc/skel
-g คือกลุ่มหลัก
-G คือกลุ่มที่ผู้ใช้คนนี้จะเข้าไปเป็นสมาชิก
-s คือเปลี่ยนเชลล์ จาก /bin/sh ไปเป็น /bin/bash ซึ่งปรับแต่งได้มากกว่า

ของ samba คือ
# smbpasswd -a -s user1

ปรับแก้ sudo
# vi /etc/sudoers
...
%mygroup    ALL=(ALL) ALL
..
ภาษาไทย
# aptitude install libthai0 ttf-thai-tlwg otf-thai-tlwg

หรือพม่า
# aptitude install ttf-sil-paduak

หรือลาว
# aptitude install ttf-lao

หรือเขมร
# aptitude install ttf-khmeros

ถ้าเราอยู่หลัง proxy ควรปรับตั้งให้ wget ใช้สำหรับดาวน์โหลดได้
# vi /etc/wgetrc
...
http_proxy = http://server1.example.com:8080/
ftp_proxy = http://server1.example.com:8080/
...
ตัวติดตั้งแพกเกจของ Gnome
# aptitude install gdebi
บราวเซอร์ ปกติ epiphany ใช้งานได้ดีและเร็วอยู่แล้ว แต่หากต้องการความสามารถเพิ่ม อาจติดตั้ง iceweasel เพิ่มได้
# aptitude install iceweasel flashplugin-nonfree
ออฟฟิศ
# aptitude install openoffice.org
มัลติมีเดีย
# aptitude install mplayer xmms gxine vlc audacity toolame k3b w32codecs
การทำงานเกี่ยวกับภาพ
# aptitude install imagemagick jhead libjpeg-progs
MSN
# aptitude install pidgin

เมื่อเรียบร้อยแล้วก็ให้เริ่ม gdm ใหม่ได้เลย
# /etc/init.d/gdm restart

ผู้ใช้ที่ได้ล๊อกอินเข้าไป คงเหลือเพียงเพิ่มสถานะของภาษาลงบนพาเนล
คลิกขวาบนพาเนล -> Add to Panel -> Keyboard Indicator -> Add
แล้วก็จะสามารถทำงานได้ทันทีครับ

ฝากเสริมด้านเดสก์ทอปให้ด้วยนะครับ

 

Syndicate

Subscribe to Syndicate

Who's online

There are currently 0 users online.