How to Install Apache 2.4.1 on Ubuntu

To host a website/web pages on your machine you need a webserver software. Apache http server is widely used http server in the world.

You can install apache http server through apt repository, but this will install all modules which I dont require to host a simple webpage. For the same I am going to compile apache http server 2.4.1 from source package.

Step 1 : Before installing apache you have to install necessary prerequisite libraries and software. To do so open your command prompt and run following

sudo apt-get update
sudo apt-get install build-essential

Step 2 : Downloading pre-requisites. I am downloading all the required software to /home/vidyadhar/install folder. Here we are downloading apache http server 2.4.1 source, apr / apr util source and pcre lib source. Open a terminal and run following commands

cd /home/vidyadhar/install
wget http://apache.mirrorcatalogs.com//apr/apr-1.4.6.tar.gz
wget http://apache.mirrorcatalogs.com//apr/apr-util-1.4.1.tar.gz
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz
wget http://apache.tradebit.com/pub//httpd/httpd-2.4.1.tar.gz

Step 3 : Extracting source. Open a terminal and run following commands

cd /home/vidyadhar/install
tar zxvf httpd-2.4.1.tar.gz
tar zxvf pcre-8.30.tar.gz
tar zxvf apr-util-1.4.1.tar.gz
tar zxvf apr-1.4.6.tar.gz

Step 4 : Installing PCRE to /home/vidyadhar/pcre folder. Open a terminal and run following commands

cd /home/vidyadhar/install/pcre-8.30
./configure --prefix=/home/vidyadhar/pcre
sudo make
sudo make install

Step 5 : Copying apr and apr-utils to srclib of apache http server. Open a terminal and run following commands

cd /home/vidyadhar/install/
mv apr-util-1.4.1 /home/vidyadhar/install/httpd-2.4.1/srclib/apr-util
mv apr-1.4.6 /home/vidyadhar/install/httpd-2.4.1/srclib/apr

Step 6 : Installing apache http server to /home/vidyadhar/apache2.4 directory. Open a terminal and run following commands

cd /home/vidyadhar/install/httpd-2.4.1
./configure --prefix=/home/vidyadhar/apache2.4 --with-included-apr --with-pcre=/home/vidyadhar/pcre
sudo make
sudo make install

Step 7 : If everything goes well you have a working setup of apache 2.4.1 http server working setup. Before starting the http server you have to do some changes in the http server configuration i.e. in httpd.conf file.

Step 8 : First we will take the backup of original file

cd /home/vidyadhar/apache2.4/conf
cp httpd.conf httpd.conf.orig

Step 9 : Now you need to adjust following parameters as per your requirement.
Listen port, User / Group who will be running apache demon, ServerAdmin, ServerName.
I am going to run apache http server through “nobody” user. For the same first you have to create nobody user and group.

sudo useradd nobody
sudo grouadd nobody

Now same user you have to configure in httpd.conf file

User nobody
Group nobody

Step 10 : I am having multiple nic card on my machine and as per the requirement I will be running http server on 8080 port. So my Listen and ServerName directive should be something like below

Listen 192.168.1.100:8080
ServerName 192.168.1.100:8080

Step 11 : Before starting http server you should always test your configuration. Run following command to check you configuration.

/home/vidyadhar/apache2.4/bin/apachectl -f /home/vidyadhar/apache2.4/conf/httpd.conf -t

The idle output of above command should be Syntax OK

Step 12 : Now we are ready start our http server. Run following command to start http server

/home/vidyadhar/apache2.4/bin/apachectl -f /home/vidyadhar/apache2.4/conf/httpd.conf -k start

Now open your browser and enter http://192.168.1.100:8080 in URL.

Remember in above URL 192.168.1.100:8080 is the IP and PORT on which my http server listening.

If your are unable to start apache http server check for the http server logs which are located at /home/vidyadhar/apache2.4/logs folder

Howto Configure Wallpaper Slideshow in Ubuntu

I was little curious about Desktop Wallpaper Slideshow on Ubuntu. Previously I have configured it for Windows with the third party tool. In Ubuntu you can achieve this using CreBS (Create Background Slideshow). You can add this small application by modifying your sources.list file. More important, it is an open source software.

Installation

Step 1 : On Ubuntu Oneiric 11.10, add following entries in the sources.list

sudo vi /etc/apt/sources.list

Add following lines

deb http://ppa.launchpad.net/crebs/ppa/ubuntu natty main
deb-src http://ppa.launchpad.net/crebs/ppa/ubuntu natty main

Step 2 : Import the key

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EF0A4C44

Step 3 : To install CreBS run following commands

sudo apt-get update
sudo apt-get install crebs

Configuring / Creating Slideshow

Step 1 : Open Terminal and enter crebs. It will open a new slideshow configuration Windows.

Step 2 : Click the “+”” button to add wallpapers. After adding images you can click on the Slideshow tab to configure the length of the slideshow.

Step 3 : Enter a name for your slideshow and click the “Tick” button to save.

Activating the slideshow

To activate slideshow we have to do some setting manually.

Open a terminal and type

GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-uri "file://$HOME/.crebs/techienote_s_slide_show.xml"

Replace “techienote_s_slide_show.xml” with the name of the slideshow that you have saved earlier.

That’s it.

How to Upgrade Ubuntu to Ubuntu 12.04

As the Ubuntu 12.04 beta is out I thought I should give it a try. Currently I am using Ubuntu 11.04. So it is very simple task to Upgrade my current version to Ubuntu 12.04.

Before doing so I was having 3 options

Option 1 - Download ISO image from the ubuntu website and burn that into CD. Boot the cd and upgrade while installing into your machine which have earlier version of Ubuntu.

Option 2 - Make a Bootable flash drive to upgrade.

Option 3 - Use Update Manager.

As the easiest method I started upgrading my current OS using option 3.

Step 1 : Open a command propmt and run following commands

sudo apt-get update
sudo apt-get install update

Step 2 : Now start Update Manager using following command

sudo update-manager -d

Step 3 : It will ask for the passoword, provid the same. Now you should get the upgrade button on the right top.

Step 4 : Click on the Upgrade Button after confirming the upgrading it starts downloading the updates.

Step 5 : For downloading and upgrading my machine it took 45 minutes. The time limit depends on your internet connection.

Free YouTube Download Ubuntu

Earlier, we have shared the secret of downloading youtube videos from command line (CLI). There are some users who are not use to command line. For them there is another tool called ClipGrab.

ClipGrab is a free software for downloading and converting online videos from many sites like YouTube or Vimeo.
ClipGrab can download from the following sites: YouTube, Clipfish, Collegehumor, Dailymotion, MyVideo, MySpass, Sevenload, Tudou, Vimeo.

With ClipGrab downloaded videos can be converted to the following file formats: WMV, MPEG4, OGG Theora, MP3 (audio only), OGG Vorbis (audio only).

ClipGrab isn’t limited to the sites listed above, because many more sites are supported “unofficially” through the automatic site-recognition of ClipGrab.

By the way, ClipGrab can also download HD videos from sites that have support for high definition (e.g. YouTube or Vimeo).

Installing ClipGrab

To install ClipGrab on your Ubuntu you need to add ClipGrab PPA. Use following commands to download and install ClipGrab

sudo add-apt-repository ppa:clipgrab-team/ppa
sudo apt-get update && sudo apt-get install clipgrab

Enjoy

Sync Bookmarks Across Different Browser Ubuntu

On askubuntu.com some one has asked “Is there a way for me to sync bookmarks between Firefox and Chrome on several different Ubuntu machines?”

The answer is yes. We can achieve this using Xmarks

Here is the simple tutorial which you will find useful, to setup Xmark on Chrome as well as firefox. (more…)

Page 2 of 26«123456»1020...Last »
rss twitter facbook

Categories

Archives