# These are the default runlevels in Slackware:
# 0 = halt
# 1 = single user mode
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (default Slackware runlevel)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot
# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault: <--改成id:4:initdefault:
修改/etc/rc.d/rc.modules,片断如下:
#### APM support ###
# APM is a BIOS specification for saving power using several different
# techniques. This is mostly useful for battery powered laptops.
/sbin/modprobe apm
然后再它的前面在加两行,如下:
if [ "$SHELL" = "/bin/bash" ]; then
PS1=$'[\\u@\\h \\W]\\$'
改完后是这样的
# Set a default shell prompt:
#PS1='`hostname`:`pwd`# '
if [ "$SHELL" = "/bin/bash" ]; then
PS1=$'[\\u@\\h \\W]\\$ '
elif [ "$SHELL" = "/bin/pdksh" ]; then
PS1='! $ '
其它的内容就不要动了,如果您对此比较熟悉,想怎么改就怎么改。看您喜欢了,不过这也有一个规则。
将gnome编码都改成gbk
把/etc/profile.d/lang.sh改成如下样子:
#!/bin/sh
# Set the system locale (default C is the same as en_US):
#export LANG=C
export LANG=zh_CN.gbk
export LC_ALL=zh_CN.gbk
export G_BROKEN_FILENAMES=1
export XMODIFIERS=@im=fcitx
# This setting has been reported to fix some cut and paste
# problems with GTK2. If you experience this, try it:
#export LANG=en_US.ISO8859-1