Chinaunix首页 | 论坛 | 博客
  • 博客访问: 271404
  • 博文数量: 55
  • 博客积分: 2030
  • 博客等级: 大尉
  • 技术积分: 737
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-13 18:06
文章分类

全部博文(55)

文章存档

2011年(2)

2010年(7)

2009年(17)

2008年(29)

我的朋友

分类: LINUX

2009-11-19 20:29:45

debian安装配置

字体:
/usr/share/fonts下
ln -s /c/windows/fonts/win_fonts
fc-cache -rf

lspci显示系统配置

dpkg-reconfigure locales 设置环境
选择zh_CN.UTF-8 UTF-8


mount -a 修改完ftabs后不用重启生效
我的/etc/fstab:
# /etc/fstab: static file system information.
#
#              
proc            /proc           proc    defaults        0       0
/dev/sda7       /               ext3    errors=remount-ro 0       1
/dev/sda8       none            swap    sw              0       0
/dev/sda1     /home/disks/c ntfs-3g   defaults 0 2
/dev/sda5     /home/disks/d vfat      defaults 0 2
/dev/sda6     /home/disks/e ntfs-3g   defaults 0 2

设置DNS:
在/etc上新加文件resolv.conf
nameserver 10.10.0.21

/etc/network/interfaces:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
    address 10.214.21.233
    gateway 10.214.21.1
    netmask 255.255.255.0
/etc/init.d/networking restart

gnome程序有kde一样的界面:
apt-get install gtk-qt-engine

/etc/apt/source.list
###                    ***   ZJU-DEB  Mirror Server   ***
#------------------------------------------------------------------------------
# The Debian GNU/Linux Mirrors:
#  debian            - (i386, amd64) X (etch, lenny, squeeze, sid, experimental)
#  debian-security   - (i386, amd64) X (etch/updates,lenny/updates,squeeze/updates)
#  debian-multimedia - (i386, amd64) X (etch, lenny, squeeze, sid)
#------------------------------------------------------------------------------

# This mirror server is updated from upstream every day.
# The following is an example for sid(unstable). You can modify it to fit your needs.
# Note: you can also use FTP protocol instead of HTTP

## Debian
deb testing main contrib non-free
deb-src testing main contrib non-free

## Debian Security
deb -security testing/updates main contrib non-free
deb-src -security testing/updates main contrib non-free

## Debian Multimedia
deb -multimedia testing main
deb-src -multimedia testing main

小企鹅输入法
在主目录下建立.fcitx目录
把config文件拷进去,然后
cd /etc/X11/Xsession.d
cp ~/configs/x/98-input-fcitx ./

debian下root运行X的问题
不允许root登录X的解决:
编辑/etc/kde3/kdm/kdmrc
AllowRootLogin=true

以root身份运行gui程序的问题解决
在普通用户的.bashrc里加:
xhost + > /dev/null

ICE错误系统无法启动
启动时出现到第三个图标,挂了,过N久出来ICE什么东西的
chmod jzj:\ /home/jzj/.ICEauthority

Debian下安装boost环境
安装libboost1.38-dev等库
编译时指定链接哪个库,如用到线程库:
g++ -lboost-thread-mt main.cpp

Debian下安装opengl环境
安装freeglut3-dev库
然后编译:
gcc -lglut main.c -o main

KDE下运行gtk程序出错
在kde后运行gtk软件,如gvim, gedit等,提示错误
Gtk-WARNING **: Locale not supported by C Library.
Using the fallback 'C' locale
 
solution:
export  LC_ALL=C
 
改了之后console的local变量全部变C,导致fcitx无法启动

安装mysql-server
安装的时候提示错误,不认识参数"skip-federated"什么的,打开 /etc/mysql/my.conf
去掉相关注释
然后运行mysqld,出现找不到mysql.host表
运行mysql_install_db

KDE下中文无法显示
字体选择DejaVu Sans Mono

qt字体设置
Qt-related application:
start->settings->qt 4 settings, choose DejaVu Sans

终端快捷键
Konsole下切换tab: Shift+left Arrow or Shift+right Arrow

安装打印机
apt-get install cupsys foomatic-filters
apt-get install cupsys-client cupsys-bsd

添加打印机驱动:
访问

可能要输入root密码

Debian下用cups打印,打印机无反应,打印测试页出现

Unsupported format 'application/postscript'

uncommenting:
"application/octet-stream application/vnd.cups-raw 0 -"
in /etc/cups/mime.convs
and
"application/octet-stream"
in /etc/cups/mime.types
无线网络安装
sudo apt-get install firmware-iwlwifi wicd wireless-tools
sudo modprobe iwlagn
sudo ifconfig wlan0 up

网络配置
# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address 192.168.0.115
    netmask 255.255.255.0
    gateway 192.168.0.1

#wlan0
iface work inet dhcp
    wireless-essid SUNOFFICE

iface home inet dhcp
    wireless-essid syslink

iface moxa inet dhcp
    wireless-essid MOXA

KDE3->KDE4升级错误
在kde3下用synaptic升级
启动时出现错误cat not find file 啥的

# apt-get install kdmartwork

可以启动,然后

#apt-get install ap-get install kde-minimum

录像软件xvidcap安装
先装ScrollKeeper
再装xvidcap



阅读(1277) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~