这篇文章主要是写给自己看的,以方便查看。另外linux环境配置复杂,个人的情况不同很难保证我的方法一定适用于你们。
××××××××××以root权限登录桌面××××××××××
修改/etc/kde3/kdm/kdmrc
中的AllowRoot=true
××××××××××更新163源××××××××××
/etc/source.list是源的配置文件,修改为
#####################主要,开源,闭源
deb http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy main non-free contrib
###################wheezy-proposed-updates建议更新
deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
###################wheezy-updates推荐更新
deb http://mirrors.163.com/debian wheezy-updates main contrib non-free
deb-src http://mirrors.163.com/debian wheezy-updates main contrib non-free
#################wheezy/updates安全更新
deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
deb-src http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
#################国外源,速度慢
deb http://http.us.debian.org/debian wheezy main contrib non-free
deb http://security.debian.org wheezy/updates main contrib non-free
deb-src http://http.us.debian.org/debian wheezy main contrib non-free
deb-src http://security.debian.org wheezy/updates main contrib non-free
××××××××××配置网络××××××××××
普通局域网自动获取ip等
在/etc/networks/interface中加入
auto eth0
iface eth0 inet dhcp
然后插着网线重启基本就能上网了之后再
apt-get install network-manager network-manager-kde(安装前不要忘了apt-get update一下,因为刚刚设置了源)
之后把刚刚加到etc/networks/interface中的那句话去掉,让network-manager接管网络,重启就一切正常了。
ppp拨号上网
apt-get install pppoeconf
用pppoecon命令f配置拨号
pon dsl-provider开启连接
poff dsl-provider关闭连接
××××××××××中文支持(我只需要支持,而不是汉化)××××××××××
1.重新配置locales
dpkg-reconfigure locales
2.选择
zh_CN GB2312
zh_CN.GBK GBK
zh_CN.UTF-8 UTF-8
3.安装字体
apt-get install ttf-arphic-uming xfonts-intl-chinese xfonts-wqy
4.安装输入法
apt-get install fcitx-pinyin
5./etc/X11/Xsession.d/目录下新建一个文件92fcitx
export XIM_PROGRAM=fcitx
export XIM=fcitx
export XMODIFIERS="@im=fcitx"
export QT_IM_MODULE=xim
fcitx&
××××××××××调节屏幕亮度××××××××××
echo $1 > /sys/class/backlight/intel_backlight/brightness保存为文本文件并添加可执行权限放到/bin目录下
××××××××××开机自动挂载其他盘××××××××××
在/etc/fstab中添加记录如
/dev/sda5 /media/D ntfs defaults 0 0
然后一定要用mount -a命令验证一下,据说如没有验证的话可能不能开机。
××××××××××系统服务管理××××××××××
apt-get install rcconf安装控制台下的系统服务管理器
系统常用目录和文件:
/run/shm是内存虚拟磁盘文件夹
/usr/share/application是桌面快捷方式的设置文件夹
××××××××××关闭BELL声××××××××××
编辑/etc/inputrc,找到这一行set bell-style none,去掉前面的注释符号(该方法只能关闭终端的)
运行alsamixer然后切换到beep选项按‘M’键设置为静音。
/etc/rc.local 添加 rmmod pcspkr
××××××××××修改默认shell为bash而不是dash××××××××××
sudo dpkg-reconfigure dash 然后选择no
××××××××××按键绑定××××××××××
除了系统自带的快捷键设置外还有更强大的xbindkeys
apt-get install xbindkeys-config
然后启动xbindkeys-config 就可以用了
××××××××××禁止鼠标键盘等唤醒机器,甚至机器自动唤醒××××××××××
这是唤醒相关配置信息:
root@localhost:~# cat /proc/acpi/wakeup
Device S-state Status Sysfs node
P0P1 S4 *disabled
PS2K S3 *enabled pnp:00:07
PS2M S3 *disabled pnp:00:08
EHC1 S3 *enabled pci:0000:00:1d.0
EHC2 S3 *enabled pci:0000:00:1a.0
HDEF S0 *disabled pci:0000:00:1b.0
RP01 S0 *disabled pci:0000:00:1c.0
RP02 S4 *disabled pci:0000:00:1c.1
PXSX S5 *enabled pci:0000:05:00.0
RP03 S0 *disabled pci:0000:00:1c.2
PEG0 S4 *disabled pci:0000:00:01.0
PEGP S4 *disabled
PEGA S4 *disabled
根据上面内容在/etc/rc.local 添加:
echo EHC1 > /proc/acpi/wakeup
echo EHC2 > /proc/acpi/wakeup
echo PXSX > /proc/acpi/wakeup
echo PS2K > /proc/acpi/wakeup
这个添加的内容根据机器而定,一般将所有enabled的配置添加进去就差不多了。