Posts

Showing posts from August, 2016

Install Ruby on Rails

This method worked for me(Ubuntu Gnome 14.04) 1. sudo apt-get update If there are errors you would most probably not be able to run 5th command, you can follow note below here or after the command as you want. 2. gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3; Even if this command doesn't work don't worry because it didn't works for me too but I got ruby on rails installed then too. :P If above command doesn't work then try this command:     curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - 3.  /bin/bash --login 4. curl -L get.rvm.io | bash -s stable; 5. source ~/.rvm/scripts/rvm; 6. rvm requirements; If here problem comes then refer to note below and run the command from starting after following the note. 7. rvm install 2.1.2; 8. ruby -v So to get little excited you can run this command that you have at least ruby installed on your system 9. rvm use 2.1.2 --default; 10. rvm rubygems

Install Java and Android Studio on Linux

Install Java: Java comes in two variants for Linux OpenJDK and Oracle Java. OpenJDK is default one and works fine for many applications but not all applications. Hence, oracle Java is recomended for use. Here's how to install Oracle-Java(version-8) on linux through terminal: 1. Add ppa for Java sudo apt-add-repository ppa:webupd8team/java 2. Update Linux sudo apt-get update 3. Install Oracle java sudo apt-get install oracle-java8-installer 4. Set Oracle Java as default export JAVA_HOME=/usr/lib/jvm/java-8-oracle sudo apt-get install oracle-java8-set-default 5.  Configure other related settings sudo update-alternatives --config java Install Android Studio: 1. Add ppa for Android Studio sudo apt-add-repository ppa:maarten-fonville/android-studio 2. Update Linux sudo apt-get update 3. Install Android studio sudo apt-get install android-studio 4. Install sdk and setup pathin settings to start creating android projects.

Xampp Installation on Linux

Installation:   1. Open link and download appropriate Xampp version for you. 2. Open your terminal (Press Ctrl + Alt + T) and change directory to the folder when you have downloaded Xampp. Below commands are for specific version, replace with your version number (xampp-linux-x64-7.0.6-0-installer.run file name) 3. Reset the permissions of Xampp installer and make it executable. Run the following command. If you are prompted for password enter it. sudo chmod +x xampp-linux-x64-7.0.6-0-installer.run 4. Run the installer by running the following command. sudo ./xampp-linux-x64-7.0.6-0-installer.run 5. A GUI window will open. Press enter till finish (or customize it in your own way) Security Command: Run the following command to set the password and other security confidentials if you want: sudo /opt/lampp/lampp security Working with Xampp:   You put all your projects in /opt/lampp/htdocs in your linux to access them via server 1. Install gksu by running following