1. First, modify the Ubuntu software source, preferably mainserver. System = & gt; system Management = & gt; software source (Chinese source downloads will slow down) 2. sudoapt-getupdate (update download source) 3. install the ssh service to remotely connect to Ubuntu without installing the ssh service by default.
1. First, modify the Ubuntu software source, preferably the main server.
System => system Management => Software source (Chinese source downloads will slow down)
2. sudo apt-get update (update download source)
3. Install the ssh service for remote connection
The ssh service is not installed in Ubuntu by default, so you need:
Sudo apt-get install openssh-server
After installation, start the service
/Etc/init. d/ssh start # start | resart | stop
4. Install jdk
Sudo apt-get install sun-java6-jdk
There is a protocol for you to accept during the installation process, ctrl + f Select OK, and then press Enter!
5. Download and install netbeans
Download the latest version on the official website.
Sudo sh netbeans. sh
6. Install ruby
Sudo apt-get install ruby
7. Install gem
Sudo apt-get install rubygems
Gem update -- system
If the update fails, go to www.rubyforge.org and download the latest rubygemsXXXX. gem.
Run sudo gem install rubygemsXXXX. gem in the download directory.
Cd/var/lib/gems/1.8/gems/rubygems-updateXXXXXX
Sudo ruby setup. rb
Sudo rm/usr/bin/gem
Sudo ln-s/usr/bin/gem1.8/usr/bin/gem
Sudo ln-s/usr/bin/irb1.8/usr/bin/irb
There is also an automatic update method:
$ Sudo gem install rubygems-update
$ Sudo update_rubygems
So far, the gem update has been completed.
8. sudo gem install rake
Sudo gem install rails
Sudo apt-get install ruby1.8-dev
#### Sudo apt-get install libmysql-ruby1.8
#### Sudo apt-get install mysql-client-5.0
Sudo apt-get install libmysqlclient15-dev
Sudo gem install mysql
To install the image processing library rmagick, refer to this blog article about this installation.
9. Use the sqlite3 database for the development environment. The debugging is very fast.
Sudo apt-get install ruby1.8-dev libsqlite3-dev
Sudo gem install sqlite3-ruby
10. Install the quick debugger, which is very nice to use in netbeans.
Sudo gem install linecache
Sudo gem install ruby-debug-base
Sudo gem install ruby-debug-ide
11. Required for BDD
Sudo gem install rspec
Sudo gem install rspec-rails