บันทึก customize debian
Submitted by wd on Mon, 2006-11-13 08:35
แก้ default shell
เดเบียนใช้ /bin/sh เป็น default shell
แต่ /bin/bash ใช้งานสะดวกกว่า
แก้ default editor
เดเบียนใช้ nano เป็น default editor แต่เรานิยมใช้ vi
แก้ /etc/profile ให้มีตัวแปร EDITOR
แก้ default vi
เดเบียนใช้ nvi เป็น default vi
แต่เราต้องการ syntax color เลยเปลี่ยนมาใช้ vim
vim syntax color
ปกติ vim จะไม่ทำ syntax color
แก้ /etc/vim/vimrc.local
ถ้าต้องการใช้ sudo
แก้ไขไฟล์ /etc/sudoers ลบคอมเมนต์หน้าบรรทัดนี้
ปรับตั้ง Proxy (ถ้าใช้พร๊อกซี่)
ปรับตั้งภาษาไทย
update 50-07-07
- ติดตั้งแพกเกจที่ใช้บ่อย
- มี vim, less, screen
# aptitude install vim-full less screen
แต่ /bin/bash ใช้งานสะดวกกว่า
# usermod -s /bin/bash user1
แก้ /etc/profile ให้มีตัวแปร EDITOR
# vi /etc/profile... EDITOR="/usr/bin/vi" export EDITOR ...
ปรับปรุง: จาก debianclub.com: system-wide default editor
# update-alternatives --config editor
<<<--- เลือกหมายเลขหน้า vim
แต่เราต้องการ syntax color เลยเปลี่ยนมาใช้ vim
# aptitude install vim-full
แก้ /etc/vim/vimrc.local
# vi /etc/vim/vimrc.local... syntax on
%sudo ALL=NOPASSWD: ALL
ถ้าเราชื่อ user1 ใช้คำสั่ง usermod แก้ให้เราอยู่ในกลุ่ม sudo ด้วย
# usermod -g sudo user1
System -> Preference -> Network Proxyแก้ไข wgetrc ให้ใช้งาน wget ผ่านพร๊อกซี่ได้
$ sudo vi /etc/wgetrc
...
http_proxy = http://proxy.example.com:8080/
ftp_proxy = http://proxy.example.com:8080/
...
System -> Preferenct -> Keyboard
TAB Layouts -> Add -> Thailand
TAB Layout Options -> Group Shift/Lock behavior -> Alt+Shift changes group.ให้แสดงสถานะของภาษาบนพาเนล
คลิกขวาที่พาเนล Add to Panel -> Keyboard Indicator -> Add
ติดตั้ง libthai
$ sudo aptitude install libthai0
ติดตั้งฟอนต์ไทย
$ sudo aptitude install ttf-thai-tlwg otf-thai-tlwg
- Printer-friendly version
- Login or register to post comments
- 3692 reads







Recent comments
18 weeks 1 day ago
37 weeks 16 hours ago
47 weeks 2 days ago
1 year 9 weeks ago
1 year 13 weeks ago
1 year 13 weeks ago
1 year 13 weeks ago
1 year 13 weeks ago
1 year 14 weeks ago
1 year 14 weeks ago