Wednesday, February 3, 2016

Ruby On Rails Installation ( Windows)

    Rails Installation on Windows
      Follow the steps given below for installing Ruby on Rails.
    Step 1: Check Ruby Version
     First, check if you already have Ruby installed. Open the command prompt and type ruby -v. If Ruby responds, and  ifit shows a version number at or above 2.2.2, then type gem --version. If you don't get an error, skip Install Ruby  step. Otherwise, we'll install a fresh Ruby.
    Step 2: Install Ruby
If  Ruby is not installed, then download an installation package from rubyinstaller.org. Follow the download link, and run the resulting installer. This is an exe file rubyinstaller-2.2.2.x.exe and will be installed in a single click.
    Step 3: Install Rails 
     
    Install all of Rails and its dependencies using the following command through the command line −C:\> gem
    installrails
C:\Users\BHASKAR\Desktop\2016-02-02 15_17_35-Ruby on Rails Installation - Internet Explorer.png
    Step 4: Check Rails Version
    Use the following command to check the rails version.
    C :\> rails –v
    Step 5: Check whether Rails is Up-to-Date
      Assuming you have installed Rails using RubyGems, keeping it up-to-date is relatively easy. Use the following command −
    C:\> gem update rails
C:\Users\BHASKAR\Desktop\2016-02-02 15_20_49-Ruby on Rails Installation - Internet Explorer.png

    Step 6: Verify Installation
     You can verify if everything is set up according to your requirements or not. Use the following command to create a 
     demo project.
     C:\> rails new demo
C:\Users\BHASKAR\Desktop\2016-02-02 15_22_51-Ruby on Rails Installation - Internet Explorer.png
 
         It  will generate a demo rail project; we will discuss about it later. Currently we have to check if the environment is set   up    or not.
         C:\> cd demo C:\apache-ant-1.9.6
         C:\demo> rails server
         It will generate auto-code to start the server
Rails Server

        Now open your browser and type the following –
        http://localhost:3000
It     should display a message, something like, "Welcome aboard" or "Congratulations".
Z:\Ruby on Rails Installation\rails_welcome.jpg

PHP Installation (Windows)


PHP Installation in Windows using XAMMP Server
XAMPP is an easy to install Apache distribution containing MariaDB, PHP, and Perl. Just download and start the installer. It's that easy.
Step 1:
Click on the below link and download XAMPP as per your required PHP version,
C:\Users\BHASKAR\Desktop\2016-02-02 10_13_30-Download XAMPP - Internet Explorer.png


Step 2:
Run the downloaded Setup file
C:\Users\BHASKAR\Desktop\php inst\2016-02-02 11_46_09-Windows7_64 - VMware Workstation.png
C:\Users\BHASKAR\Desktop\php inst\2016-02-02 11_46_51-Windows7_64 - VMware Workstation.png


Step 3:
Select location to install XAMPP and proceed as shown in below screens,
C:\Users\BHASKAR\Desktop\php inst\2016-02-02 11_47_16-Windows7_64 - VMware Workstation.png
C:\Users\BHASKAR\Desktop\php inst\2016-02-02 11_47_35-Windows7_64 - VMware Workstation.png
C:\Users\BHASKAR\Desktop\php inst\2016-02-02 11_48_11-Windows7_64 - VMware Workstation.png
C:\Users\BHASKAR\Desktop\php inst\2016-02-02 11_58_17-Windows7_64 - VMware Workstation.png

Step 4:
After finish, open start menu→XAMPP→XAMPP Control panel,
  • Start Apache server to work on PHP Application.
  • If you need to work on Mysql also, then click start button in the XAMPP control panel (optional).
  • To view Mysql open any web-browser (Chrome, IE, Firefox, and Safari etc..,) and enter “http://localost/phpmyadmin” (optional).

C:\Users\BHASKAR\Desktop\php inst\2016-02-02 11_59_57-Windows7_64 - VMware Workstation.png
Step 5:
  • Open C:\xampp\htdocs and paste your project folder.
  • For example my folder name is “sampleproject”, then open C:\Xampp\htdocs and paste sampleproject folder there.
Step 6:
  • Open any web-browser (Chrome, IE, Firefox, and Safari etc..,) and enter “http://localost/foldername”
For example,open Firefox and enter “http://localhost/sampleproject”

Mongo DB Installation

Mongo DB Installation Steps:
Step 1:
Click this link to get the mongo DB software http://www.mongodb.org/downloads  
Step 2:
We will get this window, select one option based on O.S configured in your system
Step 3:
By selecting the above option we will get setup file

Step 4:
Double click on setup file we will get this window
C:\Users\SSS2014033\Desktop\Mogadb Intallation\step 1.PNG

Step 5:
Click the license agreement check box
C:\Users\SSS2014033\Desktop\Mogadb Intallation\step 2.PNG
Step 6:
Select Typical as setup type
C:\Users\SSS2014033\Desktop\Mogadb Intallation\step 3.PNG

Step 7:
Click Install option
C:\Users\SSS2014033\Desktop\Mogadb Intallation\step 4.PNG
Step 8:
Click Finish option
C:\Users\SSS2014033\Desktop\Mogadb Intallation\step 6.PNG

Mongo DB Connection:
Step 9:
After installing the mongo DB
We will get that installation path in this above location
C:\Program Files\MongoDB 2.6 Standard\bin
Step 10:
Open command prompt and copy the mongo DB installation path
cmd>cd C:\Program Files\MongoDB 2.6 Standard\bin


Step 11:
Mongo DB requires a data folder to store its files. The default location for the Mongo DB data directory is c:\data\db. So you need to create this folder using the Command Prompt. Execute the following command sequence
C:\>md data
C:\md data\db

Step 12:
C:\Program Files\MongoDB 2.6 Standard\bin >mongod.exe --dbpath "c:\data\db"
in this dB path represents the path where to store data, we will put that path in double-quotes(“ “)
This will show waiting for connections message on the console output indicates that the mongod.exe process is running successfully.




Step 13:
Now to run the mongo db you need to open another command prompt and issue the following command
C:\Program Files\MongoDB 2.6 Standard\bin >mongo.exe
MongoDB shell version: 2.4.6
Connecting to: test
>


Windows 7 Installation

Windows 7 installation
General disclaimer: backup all files before installing Windows.
Insert your Windows 7 DVD/USB and boot from it.
    (To boot from anything, you have to press a certain key as soon as your computer starts to access the boot menu. This key is usually displayed on the screen when the computer starts. If not, Google for "<your PC manufacturer/model> boot menu key".)
http://i0.wp.com/www.door2windows.com/files/install-windows/7/1.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/14.png

Select your language, time & currency format, keyboard or input method and click Next.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/2.png

Click Install now.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/3.png
Check I accept the license terms and click Next.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/4.png

Click Upgrade if you already have a previous Windows version and want to upgrade it or Custom if you don't have a previous Windows version or want to install a fresh copy of Windows 7.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/5.png
(Skip this step if you chose Upgrade and have only one partition)
Select the drive where you want to install Windows 7 and click Next. If you want to make any partitions,
Click Drive options (advanced), make the partitions and then click Next.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/6.png
The setup will now start installing Windows 7. The first step, Copying Windows files will complete instantly.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/8.png

The second step will take the most time.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/9.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/10.png

The third and fourth step will also complete instantly like the first step.

http://i0.wp.com/www.door2windows.com/files/install-windows/7/11.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/12.png

After that it will automatically restart after 15 seconds and continue the setup. You can also click Restart now to restart without any delays.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/13.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/14.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/15.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/16.png

It will now automatically restart again and continue the setup. You can click Restart now to restart without any delays.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/13.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/14.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/18.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/19.png

Type your desired user name in the text-box and click Next. It will automatically fill up the computer name.

http://i0.wp.com/www.door2windows.com/files/install-windows/7/20.png

If you want to set a password, type it in the text-boxes and click Next.

http://i0.wp.com/www.door2windows.com/files/install-windows/7/21.png

Type your product key in the text-box and click Next. You can also skip this step and simply click Next if you want to type the product key later. Windows will run only for 30 days if you do that.

http://i0.wp.com/www.door2windows.com/files/install-windows/7/22.png

Select your desired option for Windows Updates.

http://i0.wp.com/www.door2windows.com/files/install-windows/7/23.png

Select your time and click Next.

http://i0.wp.com/www.door2windows.com/files/install-windows/7/24.png

If you are connected to any network, it will ask you to set the network's location.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/25.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/26.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/27.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/28.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/29.png



http://i0.wp.com/www.door2windows.com/files/install-windows/7/30.png

And there you have Windows 7 installed!