Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > Linux > Ubuntu开发环境安装
【标  题】:Ubuntu开发环境安装
【关键字】:Ubuntu
【来  源】:http://www.cublog.cn/u/13078/showart.php?id=181259

Ubuntu开发环境安装

Your Ad Here
放入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...,需要的东东都往里面塞,呵呵..
软件RAID的配置:【上一篇】
Ubuntu开机服务详解:【下一篇】
【相关文章】
  • ubuntu6.06下VMplayer启动无响应解决方案
  • .NET on Linux: Mono installation on Ubuntu, Revisited
  • Extra Repositories for Ubuntu
  • ubuntu足够安全吗?
  • Root password forgotten under ubuntu
  • Ubuntu论坛
  • Ubuntu软件包与汉字字库
  • Ubuntu与红帽
  • Ubuntu与FOSS
  • Ubuntu新手读物(1)
  • 【随机文章】
  • CTDP linux 程序员手册 (4.9) 一个 makefile 脚本的例子
  • 如果系统意外终止 Windows 将执行的操作
  • 提升PHP执行速度全攻略
  • WinCE中断处理过程
  • Intuos2+Illustrator 画浮世绘(2)
  • 典型的标签dialog
  • 顺利打开Outlook Express奇怪的邮件附件
  • 布线经验谈
  • ORACLE在HP-UX上的安装
  • asp+语法介绍(二)-书写我们的第一个asp+ 文件
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.