BBS水木清华站∶精华区

发信人: NextStep (NeXT~计划中...), 信区: Linux 
标  题: Linux Tips 
发信站: BBS 水木清华站 (Wed Sep 17 09:06:28 1997) 
 
 
一.更改 ls 时的颜色 
 
 
可修改/etc/DIR_COLORS 
颜色:绿色--->可执行档 
蓝色--->目录 
红色--->压缩档 
浅蓝色->连结档 
灰色--->一般档(没有定义的档) 
 
 
二.更改 linux 的 welcome 画面 
 
local login:    /etc/issue 
network login:  /etc/issue.net 
 
由其它机器连进来看到的画面要编 issue.net 
若是console要看,则编 issue 
两个档都放在 /etc 
然后把/etc/rc.d/rc.S 里的这些 mark 起来 
 
# Setup the /etc/issue and /etc/motd to reflect the current kernel level: 
# THESE WIPE ANY CHANGES YOU MAKE TO /ETC/ISSUE AND /ETC/MOTD WITH EACH 
# BOOT. COMMENT THEM OUT IF YOU WANT TO MAKE CUSTOM VERSIONS. 
 
#echo > /etc/issue 
#echo Welcome to Linux `/bin/uname -a | /bin/cut -d\  -f3`. >> /etc/issue 
#echo >> /etc/issue 
#echo "`/bin/uname -a | /bin/cut -d\  -f1,3`. (POSIX)." > /etc/motd 
 
 
三.萤幕保护时间的设定 
 
 
/etc/rc.d/rc.M  内容如下: 
 
# Tell the viewers what's going to happen... 
echo "Going multiuser..." 
 
# Screen blanks after 15 minutes idle time. 
/bin/setterm -blank 15 
 
 
============================================================================ 
 
X window 下 
 
Put the next two line in your .xinitrc  (15 mins to turn off your monitor) 
 
xset s 300 
xset s power 600 900 
 
   用ms-windows时只要过壹段时间不动就会自动run萤幕保护程式, 
   linux可以吗? 
 
S3 的 X 有这个功能. 在 XF86Config 加: 
 
Section "Device" 
    Identifier  "s3-Virge" 
    VendorName  "Winfast" 
    BoardName   "s3-Virge" 
    VideoRam    2048 
    Option      "power_saver" 
### ^^^^^^^^^^^^^^^^^^^^^^^^^^ 
### 加这一行 
EndSection 
 
Section "Screen" 
    Driver      "accel" 
    Device      "s3-Virge" 
    Monitor     "mag17" 
 
    BlankTime 5 
    SuspendTime 15 
    OffTime 30  
### ^^^^^^^^^^^^^^ 
### 加这三行 
 
另外用 xset 也可以变更这三个参数, 例如 
    xset s 300 5 s blank s power 900 1800 
 
-- 
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 162.105.184.91] 

BBS水木清华站∶精华区