Debian设置摘要,仅供参考

最大的社区版本,Ubuntu的发源地
helai
帖子: 216
注册时间: 2007-01-28 21:27

Debian设置摘要,仅供参考

#1

帖子 helai »

Debian 是一个很稳定的系统,所以如果你选择了它,那就一直放心用下去吧

下面各类技巧,设置,由于本人能力所限,均不做任何保证,也不做任何解释,如果你觉得有用,那就自行采用!
上次由 helai 在 2010-02-14 17:19,总共编辑 1 次。
helai
帖子: 216
注册时间: 2007-01-28 21:27

Re: Debian设置摘要,紧供参考

#2

帖子 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
helai
帖子: 216
注册时间: 2007-01-28 21:27

Re: Debian设置摘要,紧供参考

#3

帖子 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
上次由 helai 在 2011-05-06 20:26,总共编辑 1 次。
helai
帖子: 216
注册时间: 2007-01-28 21:27

Re: Debian设置摘要,紧供参考

#4

帖子 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
上次由 helai 在 2011-05-06 20:27,总共编辑 1 次。
helai
帖子: 216
注册时间: 2007-01-28 21:27

Re: Debian设置摘要,紧供参考

#5

帖子 helai »

取消Core Dumps

http://www.cyberciti.biz/faq/linux-disable-core-dumps/

代码: 全选

gedit /etc/security/limits.conf
加入

代码: 全选

* hard core 0

代码: 全选

echo 'fs.suid_dumpable = 0' >> /etc/sysctl.conf
sysctl -p
echo 'ulimit -S -c 0 > /dev/null 2>&1' >> /etc/profile
helai
帖子: 216
注册时间: 2007-01-28 21:27

Re: Debian设置摘要,紧供参考

#6

帖子 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
helai
帖子: 216
注册时间: 2007-01-28 21:27

Re: Debian设置摘要,紧供参考

#7

帖子 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
头像
yhlfh
帖子: 579
注册时间: 2006-09-02 20:42
来自: 东海明珠

Re: Debian设置摘要,紧供参考

#8

帖子 yhlfh »

帮你顶一下。
Life is like a box of chocolates, you never know what you're going to get.
头像
missing
帖子: 1470
注册时间: 2008-03-28 20:52
系统: QNX

Re: Debian设置摘要,仅供参考

#9

帖子 missing »

支持一个Y(^_^
missing is i missing you...
helai
帖子: 216
注册时间: 2007-01-28 21:27

Re: Debian设置摘要,仅供参考

#10

帖子 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
helai
帖子: 216
注册时间: 2007-01-28 21:27

Re: Debian设置摘要,仅供参考

#11

帖子 helai »

效果图
screenshot_001.png
helai
帖子: 216
注册时间: 2007-01-28 21:27

Re: Debian设置摘要,仅供参考

#12

帖子 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
头像
stesen
帖子: 397
注册时间: 2008-11-16 11:11

Re: Debian设置摘要,仅供参考

#13

帖子 stesen »

等俺有钱了,俺把M$买来好好搓搓
helai
帖子: 216
注册时间: 2007-01-28 21:27

Re: Debian设置摘要,仅供参考

#14

帖子 helai »

编译安装 Dropbox ,需要先安装

代码: 全选

sudo aptitude install python-docutils
https://www.dropbox.com
helai
帖子: 216
注册时间: 2007-01-28 21:27

Re: Debian设置摘要,仅供参考

#15

帖子 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

代码: 全选

cd sunpinyin-2.0

代码: 全选

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
screenshot_010.jpeg
回复