Blog links

Showing posts with label install xampp in ubuntu. Show all posts
Showing posts with label install xampp in ubuntu. Show all posts

Tricks and tips For Linux



The commands that we have typed in the terminal is stored in the Linux system in the hidden file called .bash_history. You can view the hidden file from the terminal itself using the editor. You can also see the latest histories in the terminal itself. You search the pattern in the history, execute the history with the help of number and clear all the history. As, we already know by pressing down and up arrow we you can access the previously typed commands.

To view the command history.

Go to terminal and type:
history
For page wise view, type:
history | more
history1 Linux History command  tricks and tips

Searching specific command history:

You can search the specific command in history using grep command. To master in grep command, see grep command with example. To search for the ls command only, I would type:
history | grep ls
historysearch Linux History command  tricks and tips

Deleting all the history:

You can clear all the history data. Go to terminal and type:
history -c
deletehistory Linux History command  tricks and tips

Searching using keyword using Ctrl+R:

Press Ctrl+R and type the keyboard and hit enter.historysearchusingkeyword Linux History command  tricks and tips

Executing specific command from history:

The command in the history are listed by numbers. To execute the command type:
!20015
20015 here is the command number.
executehistory Linux History command  tricks and tips


Read more

Idea install xampp in ubuntu


XAMPP How to install xampp in ubuntuXampp is an application that helps to run local server in your computer.It is a tedious method to install Apache web server add MYSQL, php, perl and other application. There xampp has all the stuff in one package. Therefore xampp make it easy to install all these package from a single application. Xampp is available for all the format includingwindows , mac and solaris. In compare to windows and mac the installation of xampp is a bit complicated in linux. If you are searching for lampp. you are in right place because xampp is previously called lampp. To begin the installation downloadxampp from official website. or download via terminal
wget http://www.apachefriends.org/download.php?xampp-linux-1.7.3a.tar.gz
Also see 4 ways of using wget command in Linux 
After downloading place the file in desktop. Don’t extract the file. Put as you have downloaded it.
Step1: login into root directory
To install the xampp you have to log in into the root directory to log into root directory run the following command into terminal one by one
cd Desktop
(Make sure the initial letter of Desktop is capital)
sudo -s
xampp ubuntu How to install xampp in ubuntu
Step2: Installing Xampp in Ubuntu
1. To install xampp in ubuntu run the following command in terminal which will extract the download file into /opt directory. Run the following Command in terminal
tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt
(Note: This version will install xampp 1.7.3 version Place the xampp-linux-1.7.3a with the version if you want to install another version).
This process will install xampp. You will find xampp in /opt/lampp. Directory.
Step 3: Solve htdocs trouble
After install xampp when you try to paste anything to htdocs you will get permission denied error. Therefore to fix this you have to run the following code in terminal after running the code you can simply put files and folder into htdocs
sudo chmod 777 -R /opt/lampp/htdocs/
This changes the ownership of the htdocs folder to your user, the -R option makes the command recursive so all permissions of folders and files inside htdocs are changed aswell.
Step 4: How to operate xampp in ubuntu
In you can excess xampp with simple graphical interface but in linux you have to user terminal to start xamp. Here are the few guide for ubuntu user to operate xampp
1. To start Xampp
Run the following command in terminal to start lampp
/opt/lampp/lampp start
xampp ubuntu start How to install xampp in ubuntu
2. Stop the Xampp
/opt/lampp/lampp stop

Read more
2leep.com