Pages

Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Linux Commands


Just came across this picture and has almost all basic required commands.

Installing latest Xampp in ubuntu[Easy way]

Xampp for ubuntu includes apache, mysql, php and phpMyadmin.

Download the installer run file for linux from http://www.apachefriends.org/en/xampp-linux.html . Download the 64-bit version if your ubuntu is 64-bit to check your OS type :
  • Open the terminal Type uname -a
Result for 32-bit Ubuntu:
Linux discworld 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386GNU/Linux
whereas the 64-bit Ubuntu will show:
Linux discworld 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 x86_64 x86_64x86_64 GNU/Linux
After the file download is complete, goto terminal and follow the steps below
  • Change working user to root, type "sudo su"
  • Change your directory to your Downloads folder "cd /home//Downloads/" 
  • Change the permissions to the installer "chmod 755 xampp-linux-1.8.2-0-installer.run"
  • Run the installer "./xampp-linux-1.8.2-0-installer.run"

XAMPP is now installed below the /opt/lampp directory.


Important:
Before starting the xampp server you should setup the password for it to keep it secure, to do this

/opt/lampp/lampp security

and follow the instructions, it will ask you to set user and passwords for xampp,mysql, PhpMyAdmin  and also network access for mysql daemon.

To start xampp
/opt/lampp/lampp start


To stop xampp
/opt/lampp/lampp stop


Basic Linux commands



Before going to the command you should know what is the working user and why it is in root in the above image. As a root user you can modify,create,delete any files in any location. To change to root user type the command, "sudo su" and enter your login password. Because for a normal user most of the files are in-accessible and it doesn't allow to modify, move or delete.

I just have few better place to know the basic commands...
http://www.thegeekstuff.com/2010/11/50-linux-commands/
http://www.debianhelp.co.uk/commands.htm


Advantages of using a Linux OS for development

Why Linux?
One of the best kernel that can provide great development platform and above all it is free of cost. Don't get panicked just with the name Linux it is not going to be full of scripts and codes we have crossed all those decades before. It is similar to windows interface and it is user-friendly.

There are lot of OS that run in Linux one of my favorite is ubuntu