Wednesday, August 28, 2013

How to Install Ruby on Rails on Ubuntu [SOLVED]

Hello Everyone,

Yesterday I have installed the Ruby on Rails on my Ubuntu 12.04. It is really a fun! I think I should share it!

So following are the steps to install Ruby on Rails on Ubuntu!

1) When you are installing something you should always run the
sudo apt-get update 
This will make sure that we have all packages installed and up to date :)

2) After update you should install RVM ( Ruby Version Manager ) Now, RVM is really a cool unix-like software platform designed to manage multiple installations of Ruby on the same device. You can install RVM using CURL only. So very first, you have to make sure that CURL is installed on your ubuntu.
Just run below command to install CURL
sudo apt-get install curl

Now after CURL you can install RVM with below command
\curl -L | bash -s stable

3) Now you have successfully installed Ruby Version Manager! Now lets install Ruby! But wait, before that have you checked the dependencies for RVM ?  You can check it with below command
rvm requirements
Just resolve the Dependencies :) It is really a painful procedure! but dependencies may vary from user to user! so you have to solve it on your own!

4) Now lets install Ruby! with below command
rvm install 1.9.3 

Now you have installed Ruby! Just tell your machine to use 1.9.3 as default with below command
rvm use 1.9.3 --default

After setting 1.9.3 as default lets get the Ruby gem. RVM now provides a 'rubygems' CLI command which allows you to change the rubygems version for the installed interpreter. In order to install the most recent RubyGems that RVM knows about you can do. Use below command to install 
rvm rubygems current

5) Now we have Ruby installed, all we need to install is Rails! and its dependencies through RubyGems
use below command to install Rails
gem install rails

6) Now finally after installing Rails! you can create your very own application skeleton and start the server!
E.g. rails new path/to/your/new/application
cd path/to/your/new/application
rails server

You are now running Ruby on Rails! :)
I hope it helped you :)

Thanks for reading!

Enjoy & be open
Amit Naik

Monday, August 26, 2013

Happy 22nd anniversary Linux! Celebrating 22 glorious years!

Hello Everyone,

Today is 22nd anniversary of Linux! On this occasion let me share the best video of  'The story of linux'. This is the power of Linux.

Lets celebrate this occasion by downloading your favorite Linux distribution!
There are many linux distributions available. If you want to choose one of them then please go here.

Top 3 are::
1) Linux Mint
2) Ubuntu
3) Debain

Thanks for reading.
Enjoy & Be Open,
Amit Naik

Tuesday, August 20, 2013

New XAMPP security concept [solved]

Hello Everyone,

I have just downloaded the new XAMPP 1.8.0. and got the error at localhost/phpmyadmin

New XAMPP security concept:

Access to the requested object is only available from the local network.

This setting can be configured in the file "httpd-xampp.conf".

If you think this is a server error, please contact the webmaster.

Error 403


So the solution for this is as follows:

1) Open httpd-xampp.conf which is at /opt/lampp/etc/extra/

2) Find <Directory "/opt/lampp/phpmyadmin">

3) Now just add Require all granted before </Directory>

4) So the code will look like this
    <Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
    Require all granted

5) Now finally Restart the xampp with this command /opt/lampp/lampp restart

That's it and you are Done!

Found it helpful ? Comment's please :)

Thanks for reading.
Enjoy & Be Open
Amit Naik