Showing posts with label redhat linux. Show all posts
Showing posts with label redhat linux. Show all posts

Saturday, July 2, 2016

How To Install Apache Web Server On Linux

How To Install
Apache Web Server
On Linux



Apache is an open source Web server developed by a loosely-knit group of programmers released under Apache License. The first version of Apache, based on the NCSA httpd Web server, was developed in 1995.

The original version of Apache was written for UNIX, but there are now versions that run under OS/2, Windows and other platforms.
According to wikipedia and FAQ, The name 'Apache' was chosen from respect for the Native American Indian tribe of Apache (Indé), well-known for their superior skills in warfare strategy and their inexhaustible endurance. A common misunderstanding is that it was called Apache because it was developed from existing NCSA code plus various patches, hence the name a patchy server, or Apache server.

Apache Web Servers are often used in combination with the MySQL database engine, the HyperText Preprocessor (PHP) scripting language, and other popular scripting languages such as Python and Perl. This configuration is termed LAMP (Linux, Apache, MySQL and Perl/Python/PHP) and forms a powerful and robust platform for the development and deployment of Web-based applications.

Here, I'm going to show you how to install Apache web server on different Linux systems..

Install Apache Web Server On Ubuntu Linux

Open terminal and run the following command..

sudo apt-get install apache2

Or, On Newer systems (Ubuntu 16.04 and later versions..)

sudo apt install apache2

You can find information about configuring Apache webserver on Ubuntu wikipage

Install Apache Web Server On CentOS, RHEL and Fedora Linux

For Fedora 22 and Later Releases..

sudo dnf -y install httpd

For CentOS, RHEL, Fedora 21 and earlier versions..

sudo yum -y install httpd

Install Apache Web Server on Arch Linux

First, make sure that your Arch Linux System is up-to-date by running following command

sudo pacman -Syu

Now Install Apache web server..

sudo pacman -S apache

Install Apache Web Server on SUSE Linux

sudo zypper install apache2

Install Apache Web Server on Gentoo Linux

Run the following command to ensure that your Gentoo Linux System is up-to-date..

sudo emerge --sync && sudo emerge --update world

Now run the following command to install apache on Gentoo..

sudo emerge -pv apache

Enabling/starting and testing the apache installation..

Enable the httpd service to start automatically on every reboot and start the service with systemd ...

sudo systemctl enable httpd && sudo systemctl start httpd

After successful installation of Apache web server check whether it's working properly or not.. To do so.. Just visit localhost in your web browser. You should see an Apache Test Page, like one shown in following image...




Friday, June 3, 2016

Top Things To Do After Installing Fedora Linux On Your System (part 2)

Top Things To Do
After Installing Fedora Linux
On Your System
(part 2)


Previous Page (part 1)

21 . Install Gparted - Disk partitioning app

GParted is a GTK+ front-end to GNU Parted and an official GNOME partition-editing application (alongside Disks). GParted is used for creating, deleting, resizing, moving, checking, and copying disk partitions and their file systems. This is useful for creating space for new operating systems, reorganizing disk usage, copying data residing on hard disks, and mirroring one partition with another (disk imaging).

For Fedora 22 and later

sudo dnf install gparted

For Fedora 21 and older releases..

sudo yum install gparted

22 . Install Openshot Video Editor

OpenShot Video Editor is a simple, powerful , free and open-source video editing software available for Linux , windows and OS X. and it supports many media formats.

Installation :

Fortunately , Openshot shipping its binaries in Appimage format. Means No installation Needed. Just go to Official download page , download the package and make it executable and run.

For example if you download openshot version 2.0.7 from http://releases.openshot.org/linux/OpenShot-2.0.7.AppImage ,You can run it by just making it as executable.

make it executable with following command.. sudo chmod a+x downloaded_filename

Here ,for openshot 2.0.7

cd && wget http://releases.openshot.org/linux/OpenShot-2.0.7.AppImage && sudo chmod a+x OpenShot-2.0.7.AppImage

23 . Install Cheese

Cheese uses your webcam to take photos and videos, applies fancy special effects and lets you share the fun with others. To install cheese on your Fedora desktop, enter the following command:

For Fedora 22 and later

sudo dnf install cheese

For Fedora 21 and older releases..

sudo yum install cheese

24 . Install Shutter

Shutter is a feature-rich screenshot program for Linux based operating systems. You can take a screenshot of a specific area, window, your whole screen, or even of a website - apply different effects to it, draw on it to highlight points, and then upload to an image hosting site, all within one window. Shutter is free, open-source, and licensed under GPL v3.

Installation :

For Fedora 22 and later

sudo dnf install shutter

For Fedora 21 and older releases..

sudo yum install shutter

25 . Install Meld and Recoll

Meld is a visual diff and merge tool targeted at developers. Meld helps you compare files, directories, and version controlled projects. It provides two- and three-way comparison of both files and directories, and has support for many popular version control systems.
Meld helps you review code changes and understand patches. It might even help you to figure out what is going on in that merge you keep avoiding.

Meld Installation

For Fedora 22 and later

sudo dnf install meld

For Fedora 21 and older releases..

sudo yum install meld

Recol is an indexing software for Linux.. with the help of Recoll you can able to search files , not only by their names but also with it content..

For Fedora 22 and later

sudo dnf install recoll

For Fedora 21 and older releases..

sudo yum install recoll Here, You can find official documentation about how to use it..

26 . Install Screen Recorder

If you want to record desktop screen casts on linux... then simple screen recorder is a simple and best option for your need.

Installation :

See here.. How To Install SSR on Fedora

27 . Install PostInstallerF & Fedy

PostInstallerF & Fedy utility tools help us to install additional software which wasn't included in Fedora by default. Both having GUI and we can install, remove and manage it very easily. This was designed for newbies whoever not familiar in command line.

Install Fedy utility

su -c "curl http://folkswithhats.org/fedy-installer -o fedy-installer && chmod +x fedy-installer && ./fedy-installer"

Install postinstallerf

sudo wget -P /etc/yum.repos.d/ https://raw.github.com/kuboosoft/postinstallerf/master/postinstallerf.repo && sudo dnf -y install postinstallerf

Don't Forget To Share It With Your Friends..!!
Share Your With Linux and Opensource


Previous Page (part 1)


Friday, May 6, 2016

How To Install/Enable RPM Fusion Repositories On Fedora , RHEL And CentOS

How To Install/Enable RPM Fusion Repositories On Fedora , RHEL And CentOS

RPM Fusion is a software repository that offers various free or non-free add-on packages that do not ship with the original Fedora distribution. RPM Fusion contains various useful packages that are not included in the Fedora distribution just because they do not meet Fedora's free software requirements. In this post, I will explain how to set up RPM Fusion repository on Fedora or CentOS. Once RPM Fusion is enabled on your system, you can install any package available from the repository simply by using yum command. First of all, to check whether or not RPM Fusion is installed on your system, run the following command.

yum repolist | grep rpmfusion

If the above command does not produce any result, it means that RPM Fusion is not installed on your system. RPM Fusion maintains two separate repositories for free and non-free packages. You can selectively enable either or both repositories as you want.

Set up RPM Fusion on Fedora

For Fedora 14 to Fedora 21 :

To enable the free repository of RPM Fusion:

sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm

To enable the non-free repository of RPM Fusion:

sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

For Fedora 22 and later:

To enable the free repository of RPM Fusion:

sudo dnf install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm

To enable the non-free repository of RPM Fusion:

sudo dnf install http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'

Set up RPM Fusion on CentOS/RHEL

In order to install RPM fusion on CentOS, you first need to enable EPEL repository first. After that, proceed as follows to set up RPM Fusion on CentOS/RHEL.

To enable the free/non-free repositories of RPM Fusion on RHEL 6 or CentOS 6:

sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm

To enable the free/non-free repositories of RPM Fusion on RHEL 5 or CentOS 5:

sudo rpm -Uvh http://download1.rpmfusion.org/free/el/updates/5/i386/rpmfusion-free-release-5-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/5/i386/rpmfusion-nonfree-release-5-1.noarch.rpm

Please Run sudo dnf check-update (for feedora 22 and later) and sudo yum update (for fedora older releases..and RHEL/CentOS) once after enabling RPM Fusion Repos.


How To Enable EPEL Repository on RHEL/CentOS

How To Enable EPEL Repository on RHEL/CentOS



If you are using CentOS or RHEL, it is strongly recommended that you enable EPEL (Extra Packages for Enterprise Linux) repository on your system. EPEL (Extra Packages for Enterprise Linux) is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs, such as CentOS and Scientific Linux. Once you set up EPEL repository, you can use yum / dnf command to install software packages from EPEL repos.

EPEL provide lots of packages for CentOS / RHEL, It is not part of RedHat or CentOS but is designed to work with these major distributions. Please note that EPEL only provides free and open source software unencumbered by patents or any legal issues. In short you will not find mp3, dvd and music / media player under EPEL. However, you will find many programs related to networking, monitoring, sys admin, programming and so on.

You can get Non-free softwares by install/enable RPM Fusion repository on your Fedora/CentOS/RHEL or other derivative systems.

Now see How to enable it on various versions of RHEL/CentOS :

For RHEL7/CentOS 7

RHEL7/CentOS 7 users can install EPEL repos by running following command..

sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

OR
Simply , by running..

sudo yum install epel-release.noarch

For RHEL6/CentOS 6

sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

For RHEL5/CentOS 5

sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm

Basic Package Management With RPM command

Basic Package Management With RPM command



The RPM Package Manager (RPM) is a powerful command line driven package management system capable of installing, uninstalling, verifying, querying, and updating software packages for RPM based Linux Distros. This is adopted by many Linux Distros such as Red Hat Enterprise Linux, Fedora , SUSE Linux, openSUSE, CentOS, Meego, Mageia and many others.
It is also used on many other operating systems as well, and the RPM format is part of the Linux Standard Base .

Working with the rpm command

The rpm command performs the most common package-management functions, along with a host of uncommon functions as well. The table below lists the main operations you can perform with the rpm command and the command-line options to specify the given operations.

rpm command operations :

OperationShort OptionLong Option
Upgrade/install-U--upgrade
Install-i--install
Remove-e--erase
Query-q--query
Verify-V--verify
Check signature-K--checksig
Freshen (upgrade) already-installed package-F--freshen
Initialize databaseNone--initdb
Rebuild databaseNone--rebuilddb

Using this table as a guide, you can explore the options to the rpm command. To install or upgrade a package, use the -U command-line option:

rpm -U filename.rpm

Or , You can also use rpm -i filename.rpm for installation but you can use rpm -U filename.rpm for both installation and Upgrading purpose.

Please note that you need to log in as root, or use the su command to change to the root user to install the software using rpm command:

For example, to install the mlocate RPM used as an example in this chapter, run the following command:

rpm -U mlocate-0.22.2-2.i686.rpm

To get extra feedback, you can use a command like the following, with the -h and -v options in conjunction with the -U option:

rpm -Uhv mlocate-0.22.2-2.i686.rpm

When you run this command you will see more output than the default, which is no output unless there are errors. With the -h option, the rpm command will print a series of hash marks, #, to provide feedback that the command is still running. With the -v option, the rpm command provides more verbose messages.

To remove a package (called erase in RPM terminology), use the -e command-line option:

rpm -e package_name
Notice that you install a package file using the file name that ends in .rpm, but uninstall or erase a package without the .rpm extension. This is because you install RPM files, but once installed, you work with the installed packages. The file name and the package name do not have to correspond, but typically (and sanely) they have the same base name.

To list every RPM package installed on your system, use a command like the following.

rpm -qa

Expect to wait while this command completes. Most Linux systems have numerous packages installed, which will result in many lines of output. To better see the output, you can pipe this command to the more command, as shown following:

rpm -qa | more

You will then see the package listing one screen at a time.