分页: 1 / 2
Debian设置摘要,仅供参考
发表于 : 2010-02-14 13:11
由 helai
Debian 是一个很稳定的系统,所以如果你选择了它,那就一直放心用下去吧
下面各类技巧,设置,由于本人能力所限,均不做任何保证,也不做任何解释,如果你觉得有用,那就自行采用!
Re: Debian设置摘要,紧供参考
发表于 : 2010-02-14 13:14
由 helai
中文支持
先看一下目前情况
代码: 全选
lenovo@debian:~$ locale -a
C
en_GB
en_GB.iso88591
en_GB.iso885915
en_GB.utf8
en_US.utf8
POSIX
zh_CN
zh_CN.gb18030
zh_CN.gb2312
zh_CN.gbk
zh_CN.utf8
zh_TW
zh_TW.big5
zh_TW.euctw
zh_TW.utf8
然后配置
代码: 全选
dpkg-reconfigure locales
再安装更新提醒工具
代码: 全选
sudo apt-get install update-notifier update-manager
Re: Debian设置摘要,紧供参考
发表于 : 2010-02-14 13:17
由 helai
安装
代码: 全选
sudo apt-get install debian-multimedia-keyring
安装
代码: 全选
sudo apt-get install synaptic
安装简体中文字体
代码: 全选
sudo apt-get install xfonts-wqy ttf-arphic-uming ttf-freefont ttf-wqy-zenhei
安装中文输入法,我一般使用scim-智能拼音,注:从2011年开始已经转用IBUS
代码: 全选
apt-get install scim scim-pinyin im-switch //需要其他输入法,安装scim-tables-zh
代码: 全选
gedit /etc/X11/Xsession.d/95xinput
/usr/bin/scim -d
XMODIFIERS="@im=SCIM"
export XMODIFIERS
export GTK_IM_MODULE=scim
Re: Debian设置摘要,紧供参考
发表于 : 2010-02-14 13:22
由 helai
在这之前应该修改,不过这应该是常识
代码: 全选
gedit /etc/apt/sources.list
使用挑最快的源,我用squeeze
代码: 全选
sudo apt-get install apt-spy
代码: 全选
apt-spy -d squeeze -t 5
2011年开始当然用
代码: 全选
sudo apt-spy -d wheezy -t 5
用apt-get install更新出现段错误(解决方法)
代码: 全选
apt-get update
dpkg --configure -a
Re: Debian设置摘要,紧供参考
发表于 : 2010-02-14 13:25
由 helai
取消Core Dumps
http://www.cyberciti.biz/faq/linux-disable-core-dumps/
代码: 全选
gedit /etc/security/limits.conf
加入
代码: 全选
echo 'fs.suid_dumpable = 0' >> /etc/sysctl.conf
sysctl -p
echo 'ulimit -S -c 0 > /dev/null 2>&1' >> /etc/profile
Re: Debian设置摘要,紧供参考
发表于 : 2010-02-14 13:32
由 helai
字体设置
代码: 全选
apt-get install msttcorefonts
代码: 全选
dpkg-reconfigure fontconfig-config
代码: 全选
Autohinter, Automatic and No
代码: 全选
dpkg-reconfigure fontconfig
重新登陆即可
下载M$雅黑字体
下载解压后将雅黑字体放到 /usr/share/fonts/zh_CN/下,zh_CN为你新建立的雅黑字体文件夹,
然后修改字体权限:
代码: 全选
sudo chmod 755 /usr/share/fonts/zh_CN/*
建立字体缓存信息:
代码: 全选
cd /usr/share/fonts/zh_CN/ && mkfontscale && mkfontdir && fc-cache -fv
Re: Debian设置摘要,紧供参考
发表于 : 2010-02-14 13:38
由 helai
安装编译环境
代码: 全选
# apt-get install build-essential
# apt-get install libgtk2.0-dev libtool libqt3-mt freeglut3-dev libstdc++5
# apt-get install auto-apt automake autoconf
增加普通用户有SUDO 权限,这里是lenovo
代码: 全选
# apt-get install sudo
# chmod +w /etc/sudoers
# vim /etc/sudoers
lenovo ALL=(ALL) ALL
Re: Debian设置摘要,紧供参考
发表于 : 2010-02-14 17:03
由 yhlfh
帮你顶一下。
Re: Debian设置摘要,仅供参考
发表于 : 2010-02-14 18:25
由 missing
支持一个Y(^_^
Re: Debian设置摘要,仅供参考
发表于 : 2010-02-15 8:49
由 helai
安装主板CPU传感器,显示
代码: 全选
sudo apt-get install lm-sensors sensors-applet
sudo sensors-detect
这里有两个硬盘
代码: 全选
sudo apt-get install hddtemp
sudo gedit /etc/default/hddtemp
# hddtemp will probe standard devices.
DISKS="/dev/sda /dev/hda"
sudo /etc/init.d/hddtemp restart
Re: Debian设置摘要,仅供参考
发表于 : 2010-02-15 8:55
由 helai
Re: Debian设置摘要,仅供参考
发表于 : 2010-02-15 8:59
由 helai
安装小工具
代码: 全选
sudo apt-get install unrar p7zip-full cabextract
代码: 全选
sudo apt-get install alien
使用例子
alien -i WyabdcRealPeopleTTS-1.0-1.noarch.rpm
部分字体
代码: 全选
apt-get install ttf-arphic-bkai00mp ttf-arphic-bsmi00lp ttf-arphic-gbsn00lp ttf-arphic-gkai00mp ttf-arphic-uming ttf-arphic-ukai
代码: 全选
sudo apt-get install nmap
sudo apt-get install brasero
sudo apt-get install xchm
sudo apt-get install rcconf
sudo apt-get install kolourpaint
sudo apt-get install gtalk
sudo apt-get install gdebi
Re: Debian设置摘要,仅供参考
发表于 : 2010-02-17 23:09
由 stesen
Re: Debian设置摘要,仅供参考
发表于 : 2010-02-20 19:14
由 helai
编译安装 Dropbox ,需要先安装
代码: 全选
sudo aptitude install python-docutils
https://www.dropbox.com
Re: Debian设置摘要,仅供参考
发表于 : 2010-04-05 19:27
由 helai
SunPinyin
去http://mentors.debian.net/debian/pool/main/s/sunpinyin/ 把三个包包下下来。
sunpinyin_2.0-4.debian.tar.gz 04-Apr-2010 18:59 18K
sunpinyin_2.0-4.dsc 04-Apr-2010 19:07 1.2K
sunpinyin_2.0.orig.tar.gz 04-Apr-2010 19:07 25M
代码: 全选
dpkg-source -x sunpinyin_2.0-4.dsc
代码: 全选
sudo dpkg-buildpackage
最后得到四个deb包
xsunpinyin_2.0-4_i386.deb
http://www.box.net/shared/9gs0if7l4e
sunpinyin-data-le_2.0-4_all.deb
http://www.box.net/shared/ofxv7d9dba
ibus-sunpinyin_2.0-4_i386.deb
http://www.box.net/shared/5viao8ohq0