Ubuntu开发环境安装
时间:2006-10-08 来源:thatday
放入ubuntu 光盘,输入server回车安装,以服务器版本安装ubuntu,分区的时候需要稍微注意,别把硬盘资料弄没了!
装好基本系统之后,更改ubuntu的apt源
编辑/etc/apt/sources.list,加入ubuntu.org.cn的源,并apt-get update
deb http://ubuntu.cn99.com/ubuntu/ breezy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ breezy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ breezy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ breezy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ breezy main restricted universe multiverse
deb http://ubuntu.cn99.com/backports/ breezy-extras main restricted universe multiverse
apt-get install x-window-system-core(安装x-window-system基本系统)
apt-get install gnome-core(只安装gnome的基本系统,而且不要安装gdm,因为在ubuntu的源中gdm会安装很多ubuntu的特有东西)
安装以下包
acpi --------------------------acpi电源管理软件包
acpi-support --------------------------acpi电源管理软件包
mozilla-firefox ------------------firefox浏览器
mozilla-firefox-locale-zh-cn ------------------firefox简体语言包
gimp--------------------------图形处理软件
安装中文语言支持:(Ubuntu Gnome)
sudo apt-get install language-pack-gnome-zh language-pack-gnome-zh-base language-pack-zh language-pack-zh-base language-support-zh
安装编译环境
sudo apt-get install build-essential
中文化环境
设置本地local环境:
sudo dpkg-reconfigure locales
确保 zh_CN.UTF-8 被选择,同时也默认local为 zh_CN.UTF-8
安装中文字体(如果出现需要输入[Y/n] 或 [y/N] 一律输入 y 并 回车):
sudo apt-get install ttf-arphic-ukai ttf-arphic-uming
如果希望有更好的中文显示,可以进一步使用圆体美化 。
首先下载 http://download.ubuntu.org.cn/software/VeraSansYuanTi.tar.gz,
tar -xzvf VeraSansYuanTi.tar.gz
sudo mv VeraSansYuanTi /usr/share/fonts/
刷新字体缓存
sudo fc-cache -f
备份现有的 fonts.conf
sudo cp /etc/fonts/fonts.conf /etc/fonts/fonts.conf.old
使用新的 fonts.conf
sudo cp /usr/share/fonts/VeraSansYuanTi/fonts.conf /etc/fonts/
设置LC_ALL和其它属性:
sudo gedit /etc/environment
在编辑器里,将内容修改如下(默认使用中文界面):
LANGUAGE=”zh_CN:zh:en_US:en”
LC_CTYPE=zh_CN.UTF-8
LANG=zh_CN.UTF-8
GST_ID3_TAG_ENCODING=GBK
如果需要使用英文界面,将内容修改如下:
LANGUAGE=”en_US:en”
LC_CTYPE=zh_CN.UTF-8
LANG=en_GB.UTF-8
GST_ID3_TAG_ENCODING=GBK
保存,关闭编辑器
中文输入法
主要有scim和fcitx两种,这里介绍fcitx的安装配置:
sudo apt-get install fcitx
sudo sh -c ” echo ‘export XMODIFIERS=@im=fcitx ; export GTK_IM_MODULE=”fcitx” ; fcitx ‘ > /etc/X11/Xsession.d/95xinput ”
sudo chmod +755 /etc/X11/Xsession.d/95xinput
做完上面这些,重启一下系统,startx进入gnome桌面,基本上就可以用了。
还有一些值得注意的地方,ubuntu装好之后,默认root帐号是没有启用的,一般都是sudo+命令,如果不想那么麻烦,可以激活root帐号
sudo passwd root,为root设置一个密码,然后su -切换到root下面操作。
如果做完这些,想把root帐号锁起来,可以用sudo passwd -l root。 最后,想装什么就装什么,ftp工具啦,eclipse啦,apache/mysql/php/perl/tcl...,需要的东东都往里面塞,呵呵..
装好基本系统之后,更改ubuntu的apt源
编辑/etc/apt/sources.list,加入ubuntu.org.cn的源,并apt-get update
deb http://ubuntu.cn99.com/ubuntu/ breezy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ breezy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ breezy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ breezy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ breezy main restricted universe multiverse
deb http://ubuntu.cn99.com/backports/ breezy-extras main restricted universe multiverse
apt-get install x-window-system-core(安装x-window-system基本系统)
apt-get install gnome-core(只安装gnome的基本系统,而且不要安装gdm,因为在ubuntu的源中gdm会安装很多ubuntu的特有东西)
安装以下包
acpi --------------------------acpi电源管理软件包
acpi-support --------------------------acpi电源管理软件包
mozilla-firefox ------------------firefox浏览器
mozilla-firefox-locale-zh-cn ------------------firefox简体语言包
gimp--------------------------图形处理软件
安装中文语言支持:(Ubuntu Gnome)
sudo apt-get install language-pack-gnome-zh language-pack-gnome-zh-base language-pack-zh language-pack-zh-base language-support-zh
安装编译环境
sudo apt-get install build-essential
中文化环境
设置本地local环境:
sudo dpkg-reconfigure locales
确保 zh_CN.UTF-8 被选择,同时也默认local为 zh_CN.UTF-8
安装中文字体(如果出现需要输入[Y/n] 或 [y/N] 一律输入 y 并 回车):
sudo apt-get install ttf-arphic-ukai ttf-arphic-uming
如果希望有更好的中文显示,可以进一步使用圆体美化 。
首先下载 http://download.ubuntu.org.cn/software/VeraSansYuanTi.tar.gz,
tar -xzvf VeraSansYuanTi.tar.gz
sudo mv VeraSansYuanTi /usr/share/fonts/
刷新字体缓存
sudo fc-cache -f
备份现有的 fonts.conf
sudo cp /etc/fonts/fonts.conf /etc/fonts/fonts.conf.old
使用新的 fonts.conf
sudo cp /usr/share/fonts/VeraSansYuanTi/fonts.conf /etc/fonts/
设置LC_ALL和其它属性:
sudo gedit /etc/environment
在编辑器里,将内容修改如下(默认使用中文界面):
LANGUAGE=”zh_CN:zh:en_US:en”
LC_CTYPE=zh_CN.UTF-8
LANG=zh_CN.UTF-8
GST_ID3_TAG_ENCODING=GBK
如果需要使用英文界面,将内容修改如下:
LANGUAGE=”en_US:en”
LC_CTYPE=zh_CN.UTF-8
LANG=en_GB.UTF-8
GST_ID3_TAG_ENCODING=GBK
保存,关闭编辑器
中文输入法
主要有scim和fcitx两种,这里介绍fcitx的安装配置:
sudo apt-get install fcitx
sudo sh -c ” echo ‘export XMODIFIERS=@im=fcitx ; export GTK_IM_MODULE=”fcitx” ; fcitx ‘ > /etc/X11/Xsession.d/95xinput ”
sudo chmod +755 /etc/X11/Xsession.d/95xinput
做完上面这些,重启一下系统,startx进入gnome桌面,基本上就可以用了。
还有一些值得注意的地方,ubuntu装好之后,默认root帐号是没有启用的,一般都是sudo+命令,如果不想那么麻烦,可以激活root帐号
sudo passwd root,为root设置一个密码,然后su -切换到root下面操作。
如果做完这些,想把root帐号锁起来,可以用sudo passwd -l root。 最后,想装什么就装什么,ftp工具啦,eclipse啦,apache/mysql/php/perl/tcl...,需要的东东都往里面塞,呵呵..
相关阅读 更多 +
排行榜 更多 +