收集整理的Linux下的小技巧(四) - 在Ubuntu创建自己的开发环境
2007-11-08 23:11
846 查看
一直都用的是RHEL和Fedora,现在换成Ubuntu。很多现成的命令居然找不到,想编译个Kernel, 写点web应用程序居然都没有缺省安装,非常不习惯。为创建一个便于使用的环境,确实比较麻烦,我把我的配置步骤记录下来,供参考。都比较简单,比较适合初学者。
为了简化,没有使用sudo,请读者自行加上。
为了简化,没有使用sudo,请读者自行加上。
1.设置代理服务器
Touch 文件/etc/apt/apt.conf,输入Acquire::http::Proxy http://yourproxyaddress:proxyport;[/code] 或者直接导出环境变量http_proxyExport http_proxy=http://yourproxyaddress:proxyport2.加入安装源
编辑/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 multiverseapt-get install x-window-system-core3.中文语言支持:(Gnome)
安装相应的包apt-get install -y language-pack-gnome-zh language-pack-gnome-zh-base language-pack-zh language-pack-zh-base language-support-zh
安装中文输入法
主要有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
设置环境
在文件/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
重新登录gnome即可。4.安装ssh
apt-get install -y ssh
允许root用户从远程登录
/etc/ssh/sshd_config
然后改/etc/ssh/sshd_config,找到下面一行。PermitRootLogin no
改为PermitRootLogin yes5.允许root用户从桌面登录
System->Administration->Login Window->Security->Allow local system administrator login.
也可以很容易改成自动登录。6.安装nfs客户端
默认情况下不能够mount NFS,需要安装相应的clientapt-get install portmap nfs-common -y
要配置NFS server需要安装nfs-kernel-serverapt-get install nfs-kernel-server -y7.搭建Linux kernel编译环境
apt-get install -y build-essential apt-get install -y libncurses5-dev 然后就可以make linux的kernel了。 建议把默认的shell从dash改成bash再make.然后就可以make linux kernel了8.搭建web开发环境
在Ubuntu下安装IE,先要安装一个模拟器apt-get install -y wine cabextract详细步骤见http://www.tatanka.com.br/ies4linux/page/Installation:Ubuntu
安装LAMP(Apache+Mysql+PHP)apt-get install -y apache2 mysql-server php5 php5-gd php5-mysql php5-cli
Reference
如何编译一个内核 - Ubuntu方式 http://blog.zhaoke.com/7.html 用UBUNTU做WEB开发 - http://www.xxlinux.com/linux/article/development/web/20070220/7624.html 打造Ubuntu下的SLAMP - http://forum.ubuntu.org.cn/viewtopic.php?t=1320
相关文章推荐
- qt 在linux环境下的搭建 (自己整理) 分类: 嵌入式开发学习 2011-04-29 20:54 6033人阅读 评论(0) 收藏
- iOS 开发一些小技巧(收集整理)
- RTEMS 在 Linux环境开发的小技巧
- 【Linux菜鸟成长记(九)】Ubuntu下搭建Java开发环境之安装Eclipse
- (Linux) Ubuntu 配置 Android 开发 环境
- Linux开发环境搭建与使用——ubuntu物理机安装方法-wubi
- Linux环境下开发Android小技巧
- 自己动手打造嵌入式Linux软硬件开发环境
- ubuntu下linux嵌入式开发环境配置
- Linux开发环境搭建与使用——ubuntu物理机安装方法:U盘安装
- 收集整理的Linux下的小技巧(三)
- Linux开发环境搭建与使用——ubuntu物理机安装方法:wubi
- Linux入门(8)——Ubuntu16.04安装sublime text 3并配置Python开发环境
- 学习笔记TF046:TensoFlow开发环境,Mac、Ubuntu/Linux、Windows,CPU版本、GPU版本
- qt 在linux环境下的搭建 (自己整理)
- ubuntu 开发环境创建
- 初学者如何在 Linux (Ubuntu) 下搭建C/C++ 开发环境
- 在linux ubuntu下搭建深度学习/机器学习开发环境
- 在Ubuntu14.04上创建Qt 5.4.0开发环境
- linux下的集成开发环境~收集以下