Chinaunix首页 | 论坛 | 博客
  • 博客访问: 191285
  • 博文数量: 49
  • 博客积分: 2065
  • 博客等级: 大尉
  • 技术积分: 413
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-08 17:04
文章分类

全部博文(49)

文章存档

2012年(2)

2010年(17)

2009年(30)

我的朋友

分类: LINUX

2009-07-03 11:51:07

一:设置网络

edit: /etc/network/interfaces
----------------------------------------------------------------------
auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.0.172
netmask 255.255.255.0
gateway 192.168.0.254
auto eth0


edit: /etc/resolv.conf
-----------------------------------------------------------------------
# Generated by NetworkManager
domain domain
search domain
nameserver 202.106.0.20

restart network server:
-----------------------------------------------------------------------
$ sudo /etc/init.d/networking restart

 

二:更新源

$ sudo gedit /etc/apt/sources.list(用你选择的源覆盖原先的,intrepid代表8.10,hardy代表8.04)
$ sudo apt-get update
$ sudo apt-get upgrade

推荐的源地址是:

deb hardy main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb hardy-proposed main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb-src hardy-proposed main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse

deb karmic main multiverse restricted universe
deb karmic-backports main multiverse restricted universe
deb karmic-proposed main multiverse restricted universe
deb karmic-security main multiverse restricted universe
deb karmic-updates main multiverse restricted universe
deb-src karmic main multiverse restricted universe
deb-src karmic-backports main multiverse restricted universe
deb-src karmic-proposed main multiverse restricted universe
deb-src karmic-security main multiverse restricted universe
deb-src karmic-updates main multiverse restricted universe

三:设置语言

system--->system manager--->language support:  after update, set (hanyu china)

四:开发环境的安装

安装build-essential这个软件包,安装了这个包会自动安装上g++,libc6-dev,-libc-dev,libstdc++6-4.1-dev等一些必须的软件和头文件的库。            sudo apt-get install build-essential

安装语法,词法分析器sudo apt-get install bison flex

安装C函数库的man手册sudo apt-get install manpages-dev

安装gtk:

    sudo apt-get install gnome-core-devel
    sudo apt-get install libglib2.0-doc libgtk2.0-doc
    sudo apt-get install devhelp
    sudo apt-get install glade-gnome glade-common glade-doc

五:安装配置emacs及相关组件

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