A blog on configuring and installing software's and Operating Systems.

Friday 4 October 2013

You don't have to be a four-eyed dork to do so, or have a experts level in systems Technology to install Android , all you need is a little bit of spare time and the capability to adhere to actions 1 through 10, simple as that. Oh, and don't fear about doing something unlawful, because Android operating system is depending on A linux system, which indicates that it is Open Source. Modify all you want, dig strong, perform with the interface, set up applications, modify configurations – everything that you can do on a cellphone or a product you can now do on your pc. So, let's get to the nitty-gritty, or the information on how to set up Android v4.2.2 Jelly Bean on your PC.

Download:
1.Oracle VM VirtualBox - Obtain the latest edition of here

Instructions:
1.Install VirtualBox on your PC
2.Open VirtualBox and choose New. In the dialog enter a name of your wish and select
                i)Type : Linux
                ii)Version : Other Linux
and choose Next
3.In the next dialog enter storage dimension as your wish
Note : Lowest 512Mb needed for JellyBean
and choose Next
4.In the next dialog choose create a virtual hard drive now. Then choose VDI and choose fixed or dynamically assigned as your wish and make the exclusive drive
Note : Mininimum 1 GB needed for installation
5.Select Virtual device and choose settings , a dialog appears. In the dialog select
                i)Storage->Storage Tree->Empty
                ii)In the attributes area choose the Android4.2 iso file you downloaded and check Live Cd/Dvd, and then click Ok.

Android setup
Android setup

6.Then start the virtual system. In the screen choose Install Android-x86 to hard drive.

Android Installation


7.In the next display choose Create/Modify Partition.
Android Partition

8.Then make a new main bootable partition and choose wrire. After completing writing choose quit.
Android Partition setup

9.Then set up android in sda1 and select type as ext3 , select yes for setting up grub.


10.After setting up remove live iso from VirtualBox and restart. Now you can start into Android 4.2.2.

You don't have to be a four-eyed dork to do so, or have a experts level in systems Technology to install Android , all you need is a little bit of spare time and the capability to adhere to actions 1 through 10, simple as that. Oh, and don't fear about doing something unlawful, because Android operating system is depending on A linux system, which indicates that it is Open Source. Modify all you want, dig strong, perform with the interface, set up applications, modify configurations – everything that you can do on a cellphone or a product you can now do on your pc. So, let's get to the nitty-gritty, or the information on how to set up Android v4.2.2 Jelly Bean on your PC.

Download:
1.Oracle VM VirtualBox - Obtain the latest edition of here

Instructions:
1.Install VirtualBox on your PC
2.Open VirtualBox and choose New. In the dialog enter a name of your wish and select
                i)Type : Linux
                ii)Version : Other Linux
and choose Next
3.In the next dialog enter storage dimension as your wish
Note : Lowest 512Mb needed for JellyBean
and choose Next
4.In the next dialog choose create a virtual hard drive now. Then choose VDI and choose fixed or dynamically assigned as your wish and make the exclusive drive
Note : Mininimum 1 GB needed for installation
5.Select Virtual device and choose settings , a dialog appears. In the dialog select
                i)Storage->Storage Tree->Empty
                ii)In the attributes area choose the Android4.2 iso file you downloaded and check Live Cd/Dvd, and then click Ok.

Android setup
Android setup

6.Then start the virtual system. In the screen choose Install Android-x86 to hard drive.

Android Installation


7.In the next display choose Create/Modify Partition.
Android Partition

8.Then make a new main bootable partition and choose wrire. After completing writing choose quit.
Android Partition setup

9.Then set up android in sda1 and select type as ext3 , select yes for setting up grub.


10.After setting up remove live iso from VirtualBox and restart. Now you can start into Android 4.2.2.

Microsof company windows 8 is Windows newest os which is absolutely remodeled. It goes away from the conventional user interface to a absolutely new user interface known as Metro/Flat User Interface. The acquainted begin selection is now gone. Symbols and windows are changed with live flooring and journal designed user interface. Compared with any past editions, Microsoft's windows 8 and its difference RT works across several architectures and has been enhanced for touchscreen technology. So it will work on Apple centered PCs or an ARM centered product.


Windows 8 setup
Windows 8 setup screen


This step-by-step information shows how to set up Microsoft windows 8, You can follow this information if you have Microsoft windows 8 basic edition or any other edition as the steps are very identical.

The best way to set up windows 8 is to do a fresh set up. Before you begin the set up procedure I suggest that you check windows 8 Program Specifications to ensure that your components is reinforced by windows 8. If you don't have Microsof company windows 8 motorists for all your components, it is a wise decision to obtain all the motorists from the components producers web site and save all the necessary motorists on a CD/DVD or a USB generate before you begin the set up.

Windows 8 DVD is bootable. In order to begin from the DVD you need to set the boot sequence . Look for the boot sequence under your BIOS set up and make sure that the first boot device is set to CD-ROM/DVD-ROM.

Step 1 - Place windows 8 DVD in your dvd-rom and begin your PC. windows 8 installation will begin to begin and you will get the following display with a spinning improvement bar.


Step 2 - The next display allows you to select your language, time and forex structure, key pad or feedback method. Choose your required configurations and then click next to proceed.


Step 3 - The next display allows you to set up or repair windows 8. Since we are doing a fresh set up we will simply click "install now".


Step 4 - The set up procedure begins Now


Step 5 - At this level you need your item key or product key that came with your Microsof company windows 8 disc. Just click next once you have entered the item key properly.



Step 6 - Read the certificate conditions and check I agree to certificate conditions. Then click next to proceed.



Step 7 - Choose the kind of set up you want. Since you are doing a fresh set up you need to simply click customized.



Step 8 - Choose where you would like to set up Microsof company windows 8. If you have one hard generate you will get an option just like the picture below. You can click next to proceed then go to phase 12.

If you have more than one generate or partition then you need to pick the appropriate generate and then click next. At this level you can go to phase 12.

If you want to partition a large generate then do not click next. Go to phase 9.



Step 9 - If you want to partition an current generate then click new. Choose the size of the partition and then click apply.



Step 10 - Just click OK to make the partition. windows 8 will make additional system partition which you don't have to worry about.

Phase 11 - You will see that you have 3 categories. Partition 1 is system arranged. Keep this partition alone. Partition 2 is 30GB main partition that was created in the last step. The third partition is unallocated which means it is not being used. You can however structure it and use it as a second storage space generate. This can be done after windows set up is completed so I will let it sit for now.

Choose partition 2 (Primary Partition). This is where I will set up Windows 8. Just click next to continue.



Step 12 - At this level Windows begins to duplicate information to your hard generate and begins the set up. This process might take a few minutes based on your computer requirements. Now is a fun a chance to get yourself a coffee.



Step 13 - When all the necessary information are duplicated Windows 8 will instantly reboot as proven.



Step 14 - You will go through various improvement bar and information information as proven on the following pictures. Windows might reboot instantly second time.



Step 15 - You are now provided with "Let's go through a few basics" screen. It will instantly choose personalize option.



Step 16 - Select your PC name and change the color.


Step 17 - Here you can choose show configurations or choose personalize. I will choose personalize to make further personalization.



Step 18 - Select Yes, turn on discussing and get connected to gadgets.

Stage 19 - Help protected and update your PC. Choose your suggested option and just simply click next.


Step 20 - Provide Microsof organization information to help make Microsof organization windows and programs better. Choose your suggested options or keep the conventional options. Click next to continue.



Step 21 - To for solutions to problem. Choose your suggested options or keep the conventional options. Click next to continue.



Step 22 - Indication in to your PC. Here you can logon to your PC using a Microsof organization e-mail concern such as your googlemail concern.

If you do not have a Microsof organization concern you can make one by simply simply clicking Indication up for a new present e-mail cope with. Go to Stage 23.

If you don't want to make an e-mail concern and want to make a local client name, just simply click Indication in without a Microsof organization concern. Go to phase 24.


Step 23 - Indication up for a new present e-mail cope with. If you want to make a new e-mail concern you need to complete the kind below.



Step 24 - Click local account



Step 25 - Here you can decide on a local client name and protection security password. Choose complete to continue.



Step 26 - At this level Microsof organization windows starts to complete your options. You will get the following information show as the set up advances.

Microsof company windows 8 is Windows newest os which is absolutely remodeled. It goes away from the conventional user interface to a absolutely new user interface known as Metro/Flat User Interface. The acquainted begin selection is now gone. Symbols and windows are changed with live flooring and journal designed user interface. Compared with any past editions, Microsoft's windows 8 and its difference RT works across several architectures and has been enhanced for touchscreen technology. So it will work on Apple centered PCs or an ARM centered product.


Windows 8 setup
Windows 8 setup screen


This step-by-step information shows how to set up Microsoft windows 8, You can follow this information if you have Microsoft windows 8 basic edition or any other edition as the steps are very identical.

The best way to set up windows 8 is to do a fresh set up. Before you begin the set up procedure I suggest that you check windows 8 Program Specifications to ensure that your components is reinforced by windows 8. If you don't have Microsof company windows 8 motorists for all your components, it is a wise decision to obtain all the motorists from the components producers web site and save all the necessary motorists on a CD/DVD or a USB generate before you begin the set up.

Windows 8 DVD is bootable. In order to begin from the DVD you need to set the boot sequence . Look for the boot sequence under your BIOS set up and make sure that the first boot device is set to CD-ROM/DVD-ROM.

Step 1 - Place windows 8 DVD in your dvd-rom and begin your PC. windows 8 installation will begin to begin and you will get the following display with a spinning improvement bar.


Step 2 - The next display allows you to select your language, time and forex structure, key pad or feedback method. Choose your required configurations and then click next to proceed.


Step 3 - The next display allows you to set up or repair windows 8. Since we are doing a fresh set up we will simply click "install now".


Step 4 - The set up procedure begins Now


Step 5 - At this level you need your item key or product key that came with your Microsof company windows 8 disc. Just click next once you have entered the item key properly.



Step 6 - Read the certificate conditions and check I agree to certificate conditions. Then click next to proceed.



Step 7 - Choose the kind of set up you want. Since you are doing a fresh set up you need to simply click customized.



Step 8 - Choose where you would like to set up Microsof company windows 8. If you have one hard generate you will get an option just like the picture below. You can click next to proceed then go to phase 12.

If you have more than one generate or partition then you need to pick the appropriate generate and then click next. At this level you can go to phase 12.

If you want to partition a large generate then do not click next. Go to phase 9.



Step 9 - If you want to partition an current generate then click new. Choose the size of the partition and then click apply.



Step 10 - Just click OK to make the partition. windows 8 will make additional system partition which you don't have to worry about.

Phase 11 - You will see that you have 3 categories. Partition 1 is system arranged. Keep this partition alone. Partition 2 is 30GB main partition that was created in the last step. The third partition is unallocated which means it is not being used. You can however structure it and use it as a second storage space generate. This can be done after windows set up is completed so I will let it sit for now.

Choose partition 2 (Primary Partition). This is where I will set up Windows 8. Just click next to continue.



Step 12 - At this level Windows begins to duplicate information to your hard generate and begins the set up. This process might take a few minutes based on your computer requirements. Now is a fun a chance to get yourself a coffee.



Step 13 - When all the necessary information are duplicated Windows 8 will instantly reboot as proven.



Step 14 - You will go through various improvement bar and information information as proven on the following pictures. Windows might reboot instantly second time.



Step 15 - You are now provided with "Let's go through a few basics" screen. It will instantly choose personalize option.



Step 16 - Select your PC name and change the color.


Step 17 - Here you can choose show configurations or choose personalize. I will choose personalize to make further personalization.



Step 18 - Select Yes, turn on discussing and get connected to gadgets.

Stage 19 - Help protected and update your PC. Choose your suggested option and just simply click next.


Step 20 - Provide Microsof organization information to help make Microsof organization windows and programs better. Choose your suggested options or keep the conventional options. Click next to continue.



Step 21 - To for solutions to problem. Choose your suggested options or keep the conventional options. Click next to continue.



Step 22 - Indication in to your PC. Here you can logon to your PC using a Microsof organization e-mail concern such as your googlemail concern.

If you do not have a Microsof organization concern you can make one by simply simply clicking Indication up for a new present e-mail cope with. Go to Stage 23.

If you don't want to make an e-mail concern and want to make a local client name, just simply click Indication in without a Microsof organization concern. Go to phase 24.


Step 23 - Indication up for a new present e-mail cope with. If you want to make a new e-mail concern you need to complete the kind below.



Step 24 - Click local account



Step 25 - Here you can decide on a local client name and protection security password. Choose complete to continue.



Step 26 - At this level Microsof organization windows starts to complete your options. You will get the following information show as the set up advances.

Most Microsof company windows system directors have a record of actions that they take when implementing a product new Microsof company windows server onto the system. It's fairly apparent that Microsof company has done their preparation on this fact, too. With Microsof company windows Server 2012, many common "first run" projects are fairly readily available. That said, if you're new to Microsof company windows or just need a push in the right route, this content will show you the way. Determine A gives you a look at the main Server Administrator screen in Microsof company windows Server 2012. The figures you see next to some of the products match to the designated record here.
Windows server Manager
Windows server Manager


1. Relabel the server
Given that the installation software provides the server with a general name, most directors immediately rename the server to match the company's labeling conference. This is the first option on the Server Manager window, in fact.

To modify your server name, simply select the existing name of the server. When the System Properties page appears, simply select the Change key. Provide a new computer name in the appropriate box and simply select the OK key. Note that changing the server name will require you to reboot the machine.

Windows server Name

Current Windows firewall program status

At the left-hand side of the window, click the Convert Windows Firewall on or off link to make changes.  Choose the stereo key next to Convert off Windows Firewall for each system as shown below
windows firewall status
Turn off the firewall program for each network 

4. Allow Distant Desktop computer for remote management
There are a lot of ways to manage a Windows Server, but many directors will set up a full GUI and link slightly to the system. It's quick and it's easy. Item four on our list is establishing this option.

First, simply select the Impaired link next to the Distant Desktop computer access in Server Administrator. When the Server Administrator Distant page reveals, select the stereo key next to Allow remote relationships to this computer.

Next, you need to add customers that are permitted to link slightly to the server. By standard, the currently signed in user is provided this right once you enable Distant Desktop computer. To add additional customers, simply select the Add key (shown in image below).

System Properties
Allow and set up Distant Desktop

5. Set up the server's IP settings
In Determine A, you'll observe that this server currently has an IP deal with offered by DHCP. Click that admission to provide this server with a fixed IP deal with. When you do so, a list of system plugs seems to be (Image shown below). I have only a single system adaptor in my server.

program adaptor.
This server has just one program adaptor.
Double-click the detailed adaptor to start its details page

ethernet Status
The details page for the system adapter
From here, simply select the Qualities key to open the properties page and, from there, double-click Internet Method edition 4. Provide IP address information for the server. Note that the server I'm using is a short-term domain operator.

configure adapter
configure adapter

6. Set up Windows Update
Keeping your server protected is best. To get started, just click Not Configured  next to Windows Upgrade. When the screen proven in Determine I appears, simply select the Turn On Automatic Up-dates button. Windows will immediately begin looking for any updates that have yet to be applied to your system. The result is proven in Determine J where you can see that Windows Upgrade is now enabled and there are updates awaiting installation.

windows update
Windows Upgrade is not currently enabled
Windows Upgrade
Windows Upgrade
You can control the time at which up-dates are used. Keep in mind that some up-dates require a system reboot. To modify Windows Upgrade configurations, simply select the Change Settings option at the left side of the display. This will bring up the Change Settings display, 



The Change Options window

From this display, check the page qualified Up-dates will be immediately set up during servicing display to open the Computerized Maintenance configurations display, shown in Figure out L. In this display, change the time at which automatic servicing should take place. Note that servicing contains procedures that include up-dates, security assessments, and other system diagnostics.

Configure the system's maintenance windo


7. Turn off On the internet explorer Enhanced Security Configuration
By conventional, On the internet Visitor in Windows Server is designed with Enhanced Security permitted. Although the purpose is sound -- administrators shouldn't be shopping the web from web web servers -- when the need to do so does happen, this options is beyond frustrating. Many administrators simply turn off this security developing in order to get their work done.

In Windows Server 2012, this developing is in the leading edge. Click the On link next to IE Enhanced Security Configurations to open the screen you see in Figure out M. You'll notice that there are two settings: One for control information and a second for clients. If you're going to turn off this operate on a frequent server (i.e. a server that isn't going to wide range International airport terminal Services/Remote Pc Services), I recommend that you turn off this developing for administrators, but keep it permitted for common clients.

Configure IE security setting

8. Set up time area settings
There are a whole lot of timezones. This one is pretty easy. Simply select the moment area establishing to open the Date and Time configurations screen proven in Determine N. From there, select the Change Time Zone key and in the causing screen, choose the appropriate time area.

Windows Date and Time configuration
Windows Date and Time configuration



9. Set up antimalware software
Although I have yet to do this for my lab server, for manufacturing, antimalware server is a must in most surroundings. I've had amazing achievements with Microsof company Leading edge Endpoint Security. Every company uses different resources, though.


10. make sure server is "enlightened"
Most new web servers these days are of the exclusive variety. As such, they need resources set up which provide the server os with motorists that coordinate the exclusive environment and allow some of the abilities of virtualization. If you're operating Windows Server 2012, the Hyper-V Tools are cooked into the os. However, if you're operating a different edition of Windows Server or are using VMware, ensure that to set up either the Hyper-V or VMware Tools.


vm ware


Most Microsof company windows system directors have a record of actions that they take when implementing a product new Microsof company windows server onto the system. It's fairly apparent that Microsof company has done their preparation on this fact, too. With Microsof company windows Server 2012, many common "first run" projects are fairly readily available. That said, if you're new to Microsof company windows or just need a push in the right route, this content will show you the way. Determine A gives you a look at the main Server Administrator screen in Microsof company windows Server 2012. The figures you see next to some of the products match to the designated record here.
Windows server Manager
Windows server Manager


1. Relabel the server
Given that the installation software provides the server with a general name, most directors immediately rename the server to match the company's labeling conference. This is the first option on the Server Manager window, in fact.

To modify your server name, simply select the existing name of the server. When the System Properties page appears, simply select the Change key. Provide a new computer name in the appropriate box and simply select the OK key. Note that changing the server name will require you to reboot the machine.

Windows server Name

Current Windows firewall program status

At the left-hand side of the window, click the Convert Windows Firewall on or off link to make changes.  Choose the stereo key next to Convert off Windows Firewall for each system as shown below
windows firewall status
Turn off the firewall program for each network 

4. Allow Distant Desktop computer for remote management
There are a lot of ways to manage a Windows Server, but many directors will set up a full GUI and link slightly to the system. It's quick and it's easy. Item four on our list is establishing this option.

First, simply select the Impaired link next to the Distant Desktop computer access in Server Administrator. When the Server Administrator Distant page reveals, select the stereo key next to Allow remote relationships to this computer.

Next, you need to add customers that are permitted to link slightly to the server. By standard, the currently signed in user is provided this right once you enable Distant Desktop computer. To add additional customers, simply select the Add key (shown in image below).

System Properties
Allow and set up Distant Desktop

5. Set up the server's IP settings
In Determine A, you'll observe that this server currently has an IP deal with offered by DHCP. Click that admission to provide this server with a fixed IP deal with. When you do so, a list of system plugs seems to be (Image shown below). I have only a single system adaptor in my server.

program adaptor.
This server has just one program adaptor.
Double-click the detailed adaptor to start its details page

ethernet Status
The details page for the system adapter
From here, simply select the Qualities key to open the properties page and, from there, double-click Internet Method edition 4. Provide IP address information for the server. Note that the server I'm using is a short-term domain operator.

configure adapter
configure adapter

6. Set up Windows Update
Keeping your server protected is best. To get started, just click Not Configured  next to Windows Upgrade. When the screen proven in Determine I appears, simply select the Turn On Automatic Up-dates button. Windows will immediately begin looking for any updates that have yet to be applied to your system. The result is proven in Determine J where you can see that Windows Upgrade is now enabled and there are updates awaiting installation.

windows update
Windows Upgrade is not currently enabled
Windows Upgrade
Windows Upgrade
You can control the time at which up-dates are used. Keep in mind that some up-dates require a system reboot. To modify Windows Upgrade configurations, simply select the Change Settings option at the left side of the display. This will bring up the Change Settings display, 



The Change Options window

From this display, check the page qualified Up-dates will be immediately set up during servicing display to open the Computerized Maintenance configurations display, shown in Figure out L. In this display, change the time at which automatic servicing should take place. Note that servicing contains procedures that include up-dates, security assessments, and other system diagnostics.

Configure the system's maintenance windo


7. Turn off On the internet explorer Enhanced Security Configuration
By conventional, On the internet Visitor in Windows Server is designed with Enhanced Security permitted. Although the purpose is sound -- administrators shouldn't be shopping the web from web web servers -- when the need to do so does happen, this options is beyond frustrating. Many administrators simply turn off this security developing in order to get their work done.

In Windows Server 2012, this developing is in the leading edge. Click the On link next to IE Enhanced Security Configurations to open the screen you see in Figure out M. You'll notice that there are two settings: One for control information and a second for clients. If you're going to turn off this operate on a frequent server (i.e. a server that isn't going to wide range International airport terminal Services/Remote Pc Services), I recommend that you turn off this developing for administrators, but keep it permitted for common clients.

Configure IE security setting

8. Set up time area settings
There are a whole lot of timezones. This one is pretty easy. Simply select the moment area establishing to open the Date and Time configurations screen proven in Determine N. From there, select the Change Time Zone key and in the causing screen, choose the appropriate time area.

Windows Date and Time configuration
Windows Date and Time configuration



9. Set up antimalware software
Although I have yet to do this for my lab server, for manufacturing, antimalware server is a must in most surroundings. I've had amazing achievements with Microsof company Leading edge Endpoint Security. Every company uses different resources, though.


10. make sure server is "enlightened"
Most new web servers these days are of the exclusive variety. As such, they need resources set up which provide the server os with motorists that coordinate the exclusive environment and allow some of the abilities of virtualization. If you're operating Windows Server 2012, the Hyper-V Tools are cooked into the os. However, if you're operating a different edition of Windows Server or are using VMware, ensure that to set up either the Hyper-V or VMware Tools.


vm ware


Monday 14 January 2013

Installing Sublime Text2 Using Terminal on Ubunutu

sublime text screenshot
sublime text screenshot

  • Open Terminal on Ubuntu.
  • Type  "sudo add-apt-repository ppa:webupd8team/sublime-text-2" without quotes. 
  • After the execution of this code type "sudo apt-get update" without quotes and press Enter.
  • Then type "sudo apt-get install sublime-text" and press enter.
  •  if the above code does'nt work tro on the of the below codes.  

  1.   sudo apt-get install sublime-text-2-dev    
  2.  sudo apt-get install sublime-text-2-beta
  • That's it Enjoy Using Sublime Text2.

Installing Sublime Text2 Using Terminal on Ubunutu

sublime text screenshot
sublime text screenshot

  • Open Terminal on Ubuntu.
  • Type  "sudo add-apt-repository ppa:webupd8team/sublime-text-2" without quotes. 
  • After the execution of this code type "sudo apt-get update" without quotes and press Enter.
  • Then type "sudo apt-get install sublime-text" and press enter.
  •  if the above code does'nt work tro on the of the below codes.  

  1.   sudo apt-get install sublime-text-2-dev    
  2.  sudo apt-get install sublime-text-2-beta
  • That's it Enjoy Using Sublime Text2.

Wednesday 9 January 2013


Installing Rails on Ubuntu in Easy Steps

The Perfect Rails Install on Ubuntu 11.10
Introduction
This guide outlines a procedure for installing the following Rails environment:
              • Ubuntu 11.10
              • Ruby 1.92
              • Rails 3.20
              • Rubygems 1.8.15
              • MySQL
              • SQLite
              • Git

Step 1: Update your operating system packages

The first thing we are going to do is get the latest updates for Ubuntu. The following two commands will download and install the latest Ubuntu updates.
sudo apt-get update
sudo apt-get upgrade

Step 2: Install Ruby 1.9.2, build-essential, and git

Ubuntu provides several versions of Ruby. If you aren’t careful, you may end up installing older or even multiple versions. We want to install version 1.9.2 so we have the latest and greatest. For this, and other tasks ahead of us, we’ll also need build-essential as it has the developer tools that will be needed to compile various gems. Git is optional, but it doesn’t hurt to have a handy version control system at your disposal.
sudo apt-get install ruby1.9.2-full build-essential git-core

Step 3: Install RubyGems 1.8.15

Ubuntu is a few versions behind on their offical RubyGems package. So rather than using that we’ll use the RubyGems installation method here. You’ll download version 1.8.15 of RubyGems, unzip it, and then run the setup.rb program to install it.
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.15.tgz
tar -zxvf rubygems-1.8.15.tgz
cd rubygems-1.8.15
sudo ruby setup.rb

Step 4: Update RubyGems

Once you have RubyGems installed, you want to double-check to make sure you have the latest version of the RubyGems software and then update all gems, if you have any installed.
sudo gem update --system
sudo gem install rubygems-update
sudo update_rubygems

Step 5: Install everything else

Now that you have RubyGems installed, it’s time to install Rails and the rest of the gang. One of the common issues I’ve run into when installing Rails is that I’d get compile errors when installing MySQL or SQLite. We’ll address that by installing the the right Ubuntu packages. I’ve also run into the occasional error when running commands to generate new models, controllers, etc. We’ll fix that by installing node.js as the JavaScript framework.
sudo gem install rails
sudo apt-get install libsqlite3-dev
sudo gem install sqlite3
sudo apt-get install nodejs
sudo apt-get install mysql-server mysql-client
sudo apt-get install libmysql-ruby libmysqlclient-dev
sudo gem install mysql

Step 6: Test Drive

You should now have a working Ruby on Rails environment. To test it out, create a Rails application in your home directory as follows:
cd ~/
rails new app_of_the_century
cd app_of_the_century
rails generate model User
If you installation worked, Rails should create your application file/folder structure and generate a User model all without a single error.

Cut and Paste Version

Now that I’ve explained it step-by-step above, here’s a cut and paste version that should “just work” if you were to paste it into a terminal window.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ruby1.9.2-full build-essential git-core
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.15.tgz
tar -zxvf rubygems-1.8.15.tgz
cd rubygems-1.8.15
sudo ruby setup.rb
sudo gem update --system
sudo gem install rubygems-update
sudo update_rubygems
sudo gem install rails
sudo apt-get install libsqlite3-dev
sudo gem install sqlite3
sudo apt-get install nodejs
sudo apt-get install mysql-server mysql-client
sudo apt-get install libmysql-ruby libmysqlclient-dev
sudo gem install mysql

Source: http://www.brandedclever.com/the-perfect-rails-install-on-ubuntu-11-10


Installing Rails on Ubuntu in Easy Steps

The Perfect Rails Install on Ubuntu 11.10
Introduction
This guide outlines a procedure for installing the following Rails environment:
              • Ubuntu 11.10
              • Ruby 1.92
              • Rails 3.20
              • Rubygems 1.8.15
              • MySQL
              • SQLite
              • Git

Step 1: Update your operating system packages

The first thing we are going to do is get the latest updates for Ubuntu. The following two commands will download and install the latest Ubuntu updates.
sudo apt-get update
sudo apt-get upgrade

Step 2: Install Ruby 1.9.2, build-essential, and git

Ubuntu provides several versions of Ruby. If you aren’t careful, you may end up installing older or even multiple versions. We want to install version 1.9.2 so we have the latest and greatest. For this, and other tasks ahead of us, we’ll also need build-essential as it has the developer tools that will be needed to compile various gems. Git is optional, but it doesn’t hurt to have a handy version control system at your disposal.
sudo apt-get install ruby1.9.2-full build-essential git-core

Step 3: Install RubyGems 1.8.15

Ubuntu is a few versions behind on their offical RubyGems package. So rather than using that we’ll use the RubyGems installation method here. You’ll download version 1.8.15 of RubyGems, unzip it, and then run the setup.rb program to install it.
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.15.tgz
tar -zxvf rubygems-1.8.15.tgz
cd rubygems-1.8.15
sudo ruby setup.rb

Step 4: Update RubyGems

Once you have RubyGems installed, you want to double-check to make sure you have the latest version of the RubyGems software and then update all gems, if you have any installed.
sudo gem update --system
sudo gem install rubygems-update
sudo update_rubygems

Step 5: Install everything else

Now that you have RubyGems installed, it’s time to install Rails and the rest of the gang. One of the common issues I’ve run into when installing Rails is that I’d get compile errors when installing MySQL or SQLite. We’ll address that by installing the the right Ubuntu packages. I’ve also run into the occasional error when running commands to generate new models, controllers, etc. We’ll fix that by installing node.js as the JavaScript framework.
sudo gem install rails
sudo apt-get install libsqlite3-dev
sudo gem install sqlite3
sudo apt-get install nodejs
sudo apt-get install mysql-server mysql-client
sudo apt-get install libmysql-ruby libmysqlclient-dev
sudo gem install mysql

Step 6: Test Drive

You should now have a working Ruby on Rails environment. To test it out, create a Rails application in your home directory as follows:
cd ~/
rails new app_of_the_century
cd app_of_the_century
rails generate model User
If you installation worked, Rails should create your application file/folder structure and generate a User model all without a single error.

Cut and Paste Version

Now that I’ve explained it step-by-step above, here’s a cut and paste version that should “just work” if you were to paste it into a terminal window.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ruby1.9.2-full build-essential git-core
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.15.tgz
tar -zxvf rubygems-1.8.15.tgz
cd rubygems-1.8.15
sudo ruby setup.rb
sudo gem update --system
sudo gem install rubygems-update
sudo update_rubygems
sudo gem install rails
sudo apt-get install libsqlite3-dev
sudo gem install sqlite3
sudo apt-get install nodejs
sudo apt-get install mysql-server mysql-client
sudo apt-get install libmysql-ruby libmysqlclient-dev
sudo gem install mysql

Source: http://www.brandedclever.com/the-perfect-rails-install-on-ubuntu-11-10