Sunday, March 02, 2008
misc linux configurations
- .serverauth.xxx files in /home directory: // xserver will generate annoying .serverauth files when starting. To avoid this, run
sudo vi /usr/bin/startx
look for xserverauthfile=xxx and replace xxx with $XAUTHORITY
- configure "vi" editor:
// configure vi
// to permanently enable some useful options in vi, create .exrc file in home directory
vi .exrc
// then write
"set verbose // write an error message instead of simply bipping when sthg is wrong -- i've commented out this line, because one side effect is that each time you open a file, you need to confirm with Enter, which I find quite annoying
set showmode // display the current editing mode
set number // number on the lines
// to see additional option, in vi write ":set all"
src on .exrc file: http://grox.net/doc/unix/exrc.php
[timezone & daylight saving:]
If you've got a problem with timezone and daylight saving, read http://www.debian.org/doc/manuals/system-administrator/ch-sysadmin-time.html
http://www.debian-administration.org/articles/213
sudo apt-get install rdate tzdata
sudo dpkg-reconfigure tzdata (==> then select your correct time zone)
sudo rdate -n europe.pool.ntp.org (==> you need to synchronize so that your hour delay will not be kept at reboot)
sudo shutdown -r now
information: use rdate instead of ntpdate package, the later will set an automatic synchronization at startup !
sudo vi /usr/bin/startx
look for xserverauthfile=xxx and replace xxx with $XAUTHORITY
- configure "vi" editor:
// configure vi
// to permanently enable some useful options in vi, create .exrc file in home directory
vi .exrc
// then write
"set verbose // write an error message instead of simply bipping when sthg is wrong -- i've commented out this line, because one side effect is that each time you open a file, you need to confirm with Enter, which I find quite annoying
set showmode // display the current editing mode
set number // number on the lines
// to see additional option, in vi write ":set all"
src on .exrc file: http://grox.net/doc/unix/exrc.php
[timezone & daylight saving:]
If you've got a problem with timezone and daylight saving, read http://www.debian.org/doc/manuals/system-administrator/ch-sysadmin-time.html
http://www.debian-administration.org/articles/213
sudo apt-get install rdate tzdata
sudo dpkg-reconfigure tzdata (==> then select your correct time zone)
sudo rdate -n europe.pool.ntp.org (==> you need to synchronize so that your hour delay will not be kept at reboot)
sudo shutdown -r now
information: use rdate instead of ntpdate package, the later will set an automatic synchronization at startup !