How To Install Gnome GUI on CentOS 7

Install Gnome GUI on CentOS 7

By default, RHEL/CentOS 7 server installed as minimal without any Graphical Desktop support. Installing GNOME Desktop on CentOS is faily straightforward. Most CentOS servers are run on CLI (Command-Line Interface) mode. But in some cases, one may need to have a desktop to install some applications with GUI (Grapich User Interface) mode. In this case, we will use GNOME, the most popular user-friendly desktop for any UNIX based system. This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. Follow guide how to install Gnome GUI on CentOS 7.

In this tutorial we will show you how to install and configuration of Gnome on your CentOS 7 server.

Install Gnome GUI on CentOS 7

Step 1. Install Gnome GUI by issuing the following command.

CentOS 7:

 yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

RHEL 7:

 yum groupinstall "Server with GUI"

Step 2. When the installation finishes, run the following command to tell the system to boot Gnome Desktop automatically at system startup.

 ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

Step 3. Reboot the system.

After you reboot the system , the system will enter into the Gnome GUI interface automatically.

centos-7-desktop-installation

Step 4. Installing additional applications.

After logging in to the GNOME Desktop, you can now go to System > Administration > Add/Remove Software to manage application in CentOS. By using this wizard, you can install various applications similar to yum but through a GUI. Applications installed using this method will appear in the Application menu list.

Congratulation’s! You have successfully installed Gnome. Thanks for using this tutorial for installing Gnome GUI on CentOS 7 system. For additional help or useful information, we recommend you to check the official Gnome web site.

You Might Also Like: How To Install GNOME on Ubuntu 14.04

How To Install Adobe Flash Player 11.2 on CentOS

Install Adobe Flash Player 11.2 on CentOS

Adobe Flash Player are very useful for watching videos in web browser online. Without flash player most of the videos will not play in your browser. This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. Follow guide how to install the latest version of adobe flash player 11.2 on your CentOS  using Adobe’s own YUM repository.

In this tutorial we will show you how to install of Adobe Flash Player on your CentOS server.

Install Adobe Flash Player 11.2 on CentOS

Step 1. Install Adobe YUM Repository RPM package.

First add the following Adobe repository for Flash Player based on your CentOS system:

## Adobe Repository 32-bit x86 ##
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
 
## Adobe Repository 64-bit x86_64 ##
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

Step 2. Update Repositories.

Next, we need to run the following command to update the Adobe’s own YUM repository to install Adobe Flash Player latest version:

 yum check-update

Step 3. Start to install Adobe Flash Player 11.2 and dependency packages using yum command.

Now run the following command to install latest version of Flash Plugin on your Linux system:

 yum install flash-plugin nspluginwrapper alsa-plugins-pulseaudio libcurl

Step 4. Verify that the Flash Player Plugin is working, issue the following command.

[root@wpcademy~]# rpm -qa | grep flash
flash-plugin-11.2.202.425-release.x86_64

That’s all for now, enjoy playing games and watching streaming videos on your browser using Flash Player on systems.

Congratulation’s! You have successfully installed Adobe Flash Player. Thanks for using this tutorial for installing Adobe Flash Player on CentOS system. For additional help or useful information, we recommend you to check the official Adobe web site.

How To Install Webmin on Ubuntu

Install Webmin on Ubuntu

Webmin is a free control Panel for managing VPS. Webmin is a web based interface which is used to manage VPS web hosting server. With the help of webmin you can setup user account, apache, dns & file sharing and other actions. Webmin very suitable for beginners who do not know much about the unix or linux command line. For future reference, I will show you a steps to setup on Webmin on Ubuntu server.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Webmin on Ubuntu server.

In this tutorial we will show you how to install and configuration of Webmin on your Ubuntu server.

Install Webmin on Ubuntu

Step 1. First add repository.

 nano /etc/apt/sources.list

Then, add the following lines:

deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

Step 2. Fetch and install the GPG key:

sudo wget http://www.webmin.com/jcameron-key.asc
sudo apt-key add jcameron-key.asc

Step 3. Install Webmin.

Install Webmin on Ubuntu with the following command:

sudo apt-get update
sudo apt-get install webmin

Step 4. Start webmin.

 /etc/init.d/webmin start

Step 5. Finaly, we can access the webmin panel using our web browser. Webmin use 10000 as its default port. Type this into our URL address web browser. https://ip-address:10000 then login as super user or root access priviliges. If you are using a firewall, please open port 80 and 10000 to enable access to the control panel.

webmin-ubuntu-server

Congratulation’s! You have successfully installed Webmin. Thanks for using this tutorial for installing Webmin control panel in Ubuntu system. For additional help or useful information, we recommend you to check the official Webmin web site.

You Might Also Like: How To Install Webmin on CentOS

How To Install Pure-FTPd on CentOS

Install Pure-FTPd on CentOS

Pure-FTPd is a free (BSD), secure, production-quality and standard-conformant FTP server. It doesn’t provide useless bells and whistles, but focuses on efficiency and ease of use. It provides simple answers to common needs, plus unique useful features for personal users as well as hosting providers. This article teaches you how to install free ftp server Pure-FTPd on CentOS 6 and how to configure and use it so you can access your server via ftp connection using your favorite ftp client (e.g:FileZilla).

In this tutorial we will show you how to install and configuration of Pure-FTPd on your CentOS server.

Install Pure-FTPd on CentOS

Step 1. First add EPEL yum repository your system.

CentOS 6:

 rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

CentOS 7:

 rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-1.noarch.rpm

Step 2. Installing Pure-FTPd on CentOS

 yum install pure-ftpd -y

Step 3. Configuring Pure-FTPd server.

Type the following command to edit Pure-FTPd configuration file.

 nano /etc/pure-ftpd/pure-ftpd.conf

Make sure you have this options:

# If you want simple Unix (/etc/passwd) authentication, uncomment this
UnixAuthentication            yes
ChrootEveryone yes
NoAnonymous yes
# PureDB user database (see README.Virtual-Users)
PureDB /etc/pure-ftpd/pureftpd.pdb
# Automatically create home directories if they are missing
CreateHomeDir yes

Finally, save Pure-FTPD user database.

 pure-pw mkdb

Add a virtual user.

 pure-pw useradd ftpuser -u user -g group -d /var/www/yourdomain.com/public_html

Step 4. Start service and enable the service to start on boot.

service pure-ftpd start
chkconfig pure-ftpd on

Congratulation’s! You have successfully installed Pure-FTPd. Thanks for using this tutorial for installing Pure-FTPd secure FTP server on CentOS system. For additional help or useful information, we recommend you to check the official Pure-FTPd web site.

How To Install Apache Tomcat 8 on CentOS

Install Apache Tomcat 8 on CentOS

Apache Tomcat is an open source web server and servlet container developed by the Apache Software Foundation. It implements the Java Servlet, JavaServer Pages (JSP), Java Unified Expression Language and Java WebSocket specifications from Sun Microsystems and provides a web server environment for Java code to run in. This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS.

Install Apache Tomcat 8 on CentOS

Step 1. JAVA is the first requirement of Tomcat installation.

CentOS 32 bit:

wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-i586.rpm" \
-O /opt/jdk-8-linux-i586.rpm
 rpm -Uvh /opt/jdk-8-linux-i586.rpm

CentOS 64 bit:

wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.rpm" \
-O /opt/jdk-8-linux-x64.rpm
 rpm -Uvh /opt/jdk-8-linux-x64.rpm

Next, configure newly installed JAVA 8 files using command ‘alternatives‘, run the following series of commands on the terminal to configure Java.

# alternatives --install /usr/bin/java java /usr/java/jdk1.8.0_05/jre/bin/java 20000
# alternatives --install /usr/bin/jar jar /usr/java/jdk1.8.0_05/bin/jar 20000
# alternatives --install /usr/bin/javac javac /usr/java/jdk1.8.0_05/bin/javac 20000
# alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.8.0_05/jre/bin/javaws 20000
# alternatives --set java /usr/java/jdk1.8.0_05/jre/bin/java
# alternatives --set javaws /usr/java/jdk1.8.0_05/jre/bin/javaws
# alternatives --set javac /usr/java/jdk1.8.0_05/bin/javac
# alternatives --set jar /usr/java/jdk1.8.0_05/bin/jar

You can also verify it, by issuing the following command.

 java -version

Step 2. Download and extract Tomcat archive.

Once installing and configuring JAVA on the system, now it’s time to download latest version of Apache Tomcat.

cd /opt
wget http://www.apache.org/dist/tomcat/tomcat-8/v8.0.33/bin/apache-tomcat-8.0.33.tar.gz
tar -xvf pache-tomcat-8.0.21.tar.gz


Step 3. Add tomcat user and group.

ln -s /opt/apache-tomcat-8.0.21 /opt/tomcat-latest
chown -hR tomcat8: /opt/tomcat-latest /opt/apache-tomcat-8.0.21

Step 4. Configure Tomcat to run as a service.

cd /opt/apache-tomcat-8.0.21/bin
./startup.sh

You will get the following output.

Using CATALINA_BASE:   /var/local/apache-tomcat-8.0.21
Using CATALINA_HOME:   /var/local/apache-tomcat-8.0.21
Using CATALINA_TMPDIR: /var/local/apache-tomcat-8.0.21/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /var/local/apache-tomcat-8.0.21/bin/bootstrap.jar:/var/local/apache-tomcat-8.0.21/bin/tomcat-juli.jar
Tomcat started.

You can verify the service running, by default tomcat runs on port no 8080.

[root@server ~]# netstat -antup | grep 8080
tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   LISTEN

Step 5. Finally, open Tomcat from your browser, go to your IP or domain with the 8080 port (because Tomcat will always run on the 8080 port) as an example: mydomain.com:8080, replace mydomain.com with your IP or domain.

To shutdown Tomcat you can simply run the shutdown script in the same folder like this:

 /opt/apache-tomcat-8.0.21/bin/shutdown.sh

Step 6. Setup user accounts.

Configure Tomcat users so they can access admin/manager sections. You can do this by adding the users in the conf/tomcat-users.xml file with your favorite text editor. Add this text to the file:

 nano /opt/apache-tomcat-8.0.21/conf/server.xml

Place the following two lines just above the last line.

<!-- user manager can access only manager section -->
<role rolename="manager-gui" />
<user username="manager" password="_SECRET_PASSWORD_" roles="manager-gui" />

<!-- user admin can access manager and admin section both -->
<role rolename="admin-gui" />
<user username="admin" password="_SECRET_PASSWORD_" roles="manager-gui,admin-gui" />

Congratulation’s! You have successfully Apache Tomcat. Thanks for using this tutorial for installing Apache Tomcat 8 on CentOS system. For additional help or useful information, we recommend you to check the official Apache Tomcat web site.

How To Install phpMyAdmin on Nginx

Install phpMyAdmin on Nginx

PhpMyaAdmin is the web based administration tool for managing the MySQL, MariaDB and Drizzle servers, it helps in performing databases activities such as creating, deleting ,querying , tables, columns, relations, indexes, users, permissions, etc. This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS and asume and that you already have Nginx installed on the system. You will also need php-fpm to have phpmyadmin working on Nginx.

In this tutorial we will show you how to install and configuration of phpMyaAdmin on Nginx web server on your CentOS 6 server.

Install phpMyAdmin on Nginx

Step 1. First add EPEL yum repository your system.

CentOS 6:

 rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

CentOS 7:

 rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-1.noarch.rpm

Step 2. Install phpMyAdmin using the following command.

 yum -y install phpmyadmin php

Step 3. Configure nginx to serve phpMyAdmin.

In Nginx, virtual host file can be found in /etc/nginx/conf.d directory. Lets create file called “phpmyadmin.conf”.

#nano /etc/nginx/conf.d/phpmyadmin.wpcademy.com.conf

server {
listen   80;
server_name phpmyadmin.wpcademy.com;
root /var/www/html/phpMyAdmin;
 
location / {
index  index.php;
}
 
## Images and static content is treated different
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
access_log        off;
expires           30d;
}
 
location ~ /\.ht {
deny  all;
}
 
location ~ /(libraries|setup/frames|setup/libs) {
deny all;
return 404;
}
 
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html/phpMyAdmin$fastcgi_script_name;
}
}

Create required directory and enable Nginx virtual host for phpmyadmin.

 mkdir -p /var/www/html/phpMyAdmin

Step 4. Restart the services.

service nginx restart
service php-fpm restart


Step 5. Finally, test phpMyAdmin.

Now open your browser and surf to http://youripaddress/phpMyAdmin or http://yourdomin.com/phpMyAdmin and your phpmyadmin will ask you for user and password of your mysql installation, you can use root as user and the root mysql password, or any other mysql user/password.

phpMyAdmin-login

Congratulation’s! You have successfully installed phpMyaAdmin with Nginx. Thanks for using this tutorial for installing phpMyaAdmin on Nginx web server on Linux system. For additional help or useful information, we recommend you to check the official phpMyaAdmin web site.

How To Install and Enable Alternative PHP Cache (APC) on CentOS

Install and Enable Alternative PHP Cache

The Alternative PHP Cache (APC) is a free, open, and robust framework for caching and optimizing PHP intermediate code. It’s an PECL extension which shares the packaging and distribution system with its sister, PEAR. In this post, i will show how to enable APC (Alternative PHP Cache) and makes PHP be fast.

In this tutorial we will show you how to install and configuration of Alternative PHP Cache (APC) on your CentOS server.

Install Alternative PHP Cache (APC) on CentOS

Step 1. Install dependencies.

 yum install php-pear php-devel httpd-devel pcre-devel gcc make

Step 2. Installing Alternative PHP Cache (APC) on CentOS.

 pecl install apc

Step 3. Configuring APC.

You can put your configuration in php.ini file but i prefer to have separate file like above for configuration. Values mentioned below are for demonstration purpose, different values  for APC can be set  which depends on number of PHP pages, size of memory in server, number of page hits e.t.c

#nano /etc/php.d/apc.ini

; Enable the extension module
extension = apc.so
 
; Options for the APC module version >= 3.1.3
; See http://www.php.net/manual/en/apc.configuration.php
 
; This can be set to 0 to disable APC.
apc.enabled=1
; The number of shared memory segments to allocate for the compiler cache.
apc.shm_segments=1
; The size of each shared memory segment, with M/G suffixe
apc.shm_size=512M
; A "hint" about the number of distinct source files that will be included or
; requested on your web server. Set to zero or omit if you're not sure;
apc.num_files_hint=1024
; Just like num_files_hint, a "hint" about the number of distinct user cache
; variables to store.  Set to zero or omit if you're not sure;
apc.user_entries_hint=4096
; The number of seconds a cache entry is allowed to idle in a slot in case this
; cache entry slot is needed by another entry.
apc.ttl=7200
; use the SAPI request start time for TTL
apc.use_request_time=1
; The number of seconds a user cache entry is allowed to idle in a slot in case
; this cache entry slot is needed by another entry.
apc.user_ttl=7200
; The number of seconds that a cache entry may remain on the garbage-collection list.
apc.gc_ttl=3600
; On by default, but can be set to off and used in conjunction with positive
; apc.filters so that files are only cached if matched by a positive filter.
apc.cache_by_default=1
; A comma-separated list of POSIX extended regular expressions.
apc.filters
; The mktemp-style file_mask to pass to the mmap module
apc.mmap_file_mask=/tmp/apc.XXXXXX
; This file_update_protection setting puts a delay on caching brand new files.
apc.file_update_protection=2
; Setting this enables APC for the CLI version of PHP (Mostly for testing and debugging).
apc.enable_cli=0
; Prevents large files from being cached
apc.max_file_size=1M
; Whether to stat the main script file and the fullpath includes.
apc.stat=1
; Vertification with ctime will avoid problems caused by programs such as svn or rsync by making
; sure inodes havn't changed since the last stat. APC will normally only check mtime.
apc.stat_ctime=0
; Whether to canonicalize paths in stat=0 mode or fall back to stat behaviour
apc.canonicalize=0
; With write_lock enabled, only one process at a time will try to compile an
; uncached script while the other processes will run uncached
apc.write_lock=1
; Logs any scripts that were automatically excluded from being cached due to early/late binding issues.
apc.report_autofilter=0
;This setting is deprecated, and replaced with apc.write_lock, so let's set it to zero.
apc.slam_defense=0

Step 4. Enable APC PHP Extension

Once that finishes, run the following command to enable APC extension in Apache configuration.

 echo "extension=apc.so" > /etc/php.d/apc.ini

Step 4. Restrat Nginx

 service httpd restart

APC provides a web interface with detailed information on the cache (memory usage, hits and misses, cache entries). By default it is not accessible so you need to copy the file /usr/share/php/apc.php to somewhere you can browse to. Now from browser, you can go to  http://domain.com/apc.php. I prefer to wait for a day to see the APC performance so we can have clear idea how well our configuration did.

Install Alternative PHP Cache (APC) on CentOS

Congratulation’s! You have successfully installed Alternative PHP Cache (APC). Thanks for using this tutorial for installing Alternative PHP Cache (APC) on CentOS system. For additional help or useful information, we recommend you to check the official PHP web site.