ubuntu 11.04 安装及配置rails 开发 环境

1.install openssh-server
http://aofengblog.blog.163.com/blog/static/6317021201111415112526/
sudo apt-get install openssh-server
sudo /etc/init.d/ssh start
sudo /etc/init.d/ssh stop
sudo /etc/init.d/ssh restart
eg:scp copy
scp -r /home/space/music/ root@www.cumt.edu.cn:/home/root/others/

scp README dong@192.168.10.102:~/RREADME

2.install ruby rails
http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/
(1)解决mysql2 安装出错问题
sudo apt-get install libmysqlclient-dev
http://fantaxy025025.iteye.com/blog/1176301

(2)Rails 3.1错误-Could not find a JavaScript runtime.
Gemfile中添加
gem 'execjs'
gem 'therubyracer'
执行 bundle install

http://rubyer.me/blog/740
3.install mysql
sudo apt-get install mysql-server 

4.install apache2 phpmyadmin
install apache2+phpmyadmin
sudo apt-get install apache2
sudo apt-get install phpmyadmin

默认安装在 /usr/share/phpmyadmin
作个链接到 /var/www/ 目录下,命令为:sudo ln -s /usr/share/phpmyadmin/ /var/www/
再使用 http://localhost/phpmyadmin 即可以访问了。
source :http://hi.baidu.com/qxf996/blog/item/6b534d54ffb8cc52564e0086.html
5.install java

http://www.cnblogs.com/phoebus0501/archive/2010/12/13/1905021.html jdk 1.6
http://blog.csdn.net/yang_hui1986527/article/details/6677450 jdk 1.7
(1)wget -c http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz
(2)sudo mkdir /usr/lib/jvm
sudo tar zxvf ./jdk-7-linux-i586.tar.gz -C /usr/lib/jvm
cd /usr/lib/jvm
sudo mv jdk1.7.0/ java-7-sun
(3)vim ~/.bashrc
export JAVA_HOME=/usr/lib/jvm/java-7-sun
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
保存退出,输入以下命令使之立即生效。
source ~/.bashrc
(4)配置默认jdk版本
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-7-sun/bin/java 300
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-7-sun/bin/javac 300
(5)测试:java -version ,javac, java
6. 修改系统语言为英文
修改Ubuntu的配置文件/etc/default/locale
将原来的配置内容修改为
LANG=”en_US.UTF-8″
LANGUAGE=”en_US:en”
再在终端下运行:
$ locale-gen -en_US:en

注销或重启后,Ubuntu Server真正服务器实体终端就恢复成了英文的语言环境。
所以,此方法不是真正意义上的中文化,而是恢复英文的默认编码
http://tonychiu.blog.51cto.com/656605/393131
7.install vim
sudo apt-get install vim

8. rails develop tools
(1).install eclipse
http://mirror.bit.edu.cn/eclipse/eclipse/downloads/drops/R-3.7.1-201109091335/eclipse-SDK-3.7.1-linux-gtk.tar.gz
(2)install aptana
http://download.aptana.com/studio3/plugin/install
From the Help menu, select Install New Software... to open the Install New Software dialog.
Paste the URL for the update site into the Work With text box, and hit the Enter (or Return) key.
In the populated table below, check the box next to the name of the plug-in, and then click the Next button.
Click the Next button to go to the license page.
Choose the option to accept the terms of the license agreement, and click the Finish button.
You may need to restart Eclipse to continue.
9.Ubuntu安装Chrome最新版
sudo add-apt-repository ppa:chromium-daily/ppa
sudo apt-get update
sudo apt-get install chromium-browser

10. git generate key
cd /home/dong/.ssh/id_rsa.pub.
ssh-keygen -t rsa
http://www.josephj.com/article/understand-ssh-key/
git checkout develop

11.ubuntu11.04英文环境下如何输入中文?
http://os.51cto.com/art/201109/291638.htm

12. 安装.bundle文件 安装.run文件

第一步:sudo chmod +x ****.bundle

第二步:sudo ./****.bundle
sudo sh 1.run /*,
也可以用sudo sh *.run。 */
13 .卸载:liberoffice
sudo apt-get remove --purge libreoffice*.*
[/size]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值