Archive for Linux

How to install OwnCloud (Free alternative to Dropbox) on CentOS 6


Hi Folks! In this videotutorial I will show you how to install OwnCloud. OwnCloud is an open source alternative to the popular service Dropbox, but on your own server! For more information about OwnCloud and it’s features, visit

Prerequisites for this tutorial:
– Your own server (VPS or a physical machine)
– PuTTY (in case you use Windows like me)

Step 1. Install a basic CentOS 6.4 server. You can download CentOS for free on
Step 2. After the installation, run a full update by running ‘yum update -y’.
Step 3. Install the database server. I personally love MySQL. Run ‘yum install mysql mysql-server’.
Step 4. Start MySQL: ‘/etc/init.d/mysqld start’
Step 5. Run mysql_secure_installation to set a root password for your new database server.
Step 6. Install the apache webserver by running ‘yum install httpd’
Step 7. Edit the host file (/etc/hosts) and add your IP address and hostname
Step 8. Start the webserver by running ‘/etc/init.d/httpd start’.
Step 9. Install some necessary PHP packages ‘yum install php php-gd php-xml php-mysql php-intl php-curl curl php-mbstring’.
Step 10. Restart the webserver ‘/etc/init.d/httpd restart’
Step 11. Run mysql -u root -p and hit Enter
Step 12. Enter the root password you’ve created at step 5.
Step 13. Create a new database by typing ‘CREATE DATABASE owncloud;’ (Don’t forget the semicolon)
Step 14. Grant all privileges to a new user on that specific database by running ‘GRANT ALL ON owncloud.* TO owncloud@localhost IDENTIFIED BY ‘yourpasswordhere';’
Step 15. Exit the MySQL CLI by typing quit;
Step 16. Download the latest version of owncloud and extract it to /var/www/html/
Step 17. Create a new folder called data in /var/www/html/owncloud/
Step 18. Change the owner to apache:apache on apps/ config/ and data/
Step 19. Edit the apache config file and add the following in /etc/httpd/conf/httpd/conf:

<Directory “/var/www/html/owncloud/data/”>
AllowOverride All

Step 20. Go to http://youripaddress/owncloud and install your new owncloud environment.

Have fun!

Run OpenVPN on Debian 7 “Wheezy”

How to install OpenVPN on Debian 7 “Wheezy”?

  1. Basic install Debian 7 “Wheezy”
  2. Run “wget”
  3. After downloading, run “dpkg -i openvpn-as-1.8.5-Debian6.amd_65.deb”
  4. Edit the password for user openvpn: “passwd openvpn”
  5. Go to the ip address of your server, log in  and enjoy your new OpenVPN installation on Debian 7 Wheezy.


OpenVPN Access Server 1.8.5 now available

OpenVPN logoOpenVPN Access Server 1.8.5 is now available. The biggest change in this release is the support for RHEL/CentOS 6, Ubuntu 12, Debian 6 and OpenSUSE 11 and 12. All releases are supported on both x86 and x64. The new version is available from the OpenVPN website.


Access Server release notes for 1.8.5 (changes made since 1.8.4)

* Fixed cross-site request forgery vulnerability (CSRF) in Admin web interface.  This could potentially be exploited to modify Admin web interface settings if an administrative user visits a maliciously crafted web page while logged into the Admin web interface (Credit: Charlie Eriksen).

* Fixed DNS issue on Mac OS X 10.8 computers where, if DNS was pushed by the Access Server, it would not release upon disconnect on the client side.

* Adjustments to licensing system made to accommodate easier reactivation for environments where alterations to hardware parameters are expected – cloud computing, Amazon EC2, HA clusters, etc.

* Introduced new Debian and openSUSE builds.

CentOS 6.4 released

CentOS logo

CentOS 6.4 has been released!



Major changes include:

  • Microsoft Hyper-V drivers have been added to allow CentOS to be more efficient as a Virtual Machine when installed on Microsoft Hyper-V server.
  • The samba4 libraries (provided by the samba4-libs package) have been upgraded to the latest upstream version to improve interoperability with Active Directory (AD) domains. If you upgrade from CentOS-6.3 to CentOS-6.4 and you have Samba in use, make sure to uninstall the samba4 package to avoid conflicts during the upgrade. samba4 is still – at least in part – considered a technology preview.
  • As announced in the CentOS-6.3 Release Notes matahari is now deprecated. CentOS-6.4 ships one last update that should remove all remains of matahari. To ensure all remains are erased run yum erase matahari* after updating to 6.4.
  • dev86, iasl, and qemu-guest-agent have been added to the i386 architecture.

Read more

Steam for Linux is now officially available!

Hi Linux Fans!

Steam for Linux is now officially available and no longer in BETA. There is a huge celebration sale for Linux game in Steam right now! There are 50% to 75% discounts on all games for Linux!

Steam for Linux

How to install your own Mumble server on any Linux distribution

Mumble LogoIn this tutorial I will teach you how you can host your own Mumble server on any Linux distribution. Mumble is a low-latency but high-quality voice communication application designed for gamers. This includes game linking, so voice from friendly players comes from the direction of their characters. It also has echo-cancellation.


In order to a Mumble, you’ll need a dedicated or virtual server with Linux and user access. Being root is not required.

  1. Get the latest murmur software from the official website: (As I’m writing this tutorial, the latest version is ‘Static Linux Server: 1.2.3 (STABLE)’.)
  2. Extract the package in the desired directory.
  3. Configure the server by editing the ‘murmur.ini’ file.
  4. Chmod the ‘murmur.x86′ file to allow the owner to execute the file.
  5. Run your new Mumble server by typing ‘./murmur.x86′

That’s it! Your server should now be up and running. In order to stop the server, just run ps U <username> and kill the process id that’s used by murmur.x86.

How to disable SELinux?

How do I disable SELinux in various Linux distributions?

You can disable SELinux permanently by changing ‘SELINUX=’ from enabled to disabled the /etc/selinux/config file. After this, save the file and reboot your server to disable SELinux permanently.

You check if it’s disabled by running the following command:

selinuxenabled && echo enabled || echo disabled

If it returns disabled, it is permanently disabled.


CentOS 5.9 is out!

CentOS logo

CentOS 5.9, the open source version operating system based on Red Hat Enterprise Linux, is the successor to CentOS 5.8.

New features include:

  • The UOP added native MySQL support to postfix. More information can be found here. You might consider moving from the postfix-mysql package from the centosplus repo to this package if you are using the centosplus package only for mysql support. The centosplus package also has postgresql support, so if you need that you will still need to use the centosplus package.
  • java-1.7.0-openjdk (Java 7) support has been added in CentOS-5.9. java-1.6.0-openjdk (Java 6) is also still available and most things java in the distribution still use Java 6.
  • ant17 (Ant 1.7.0) has been added to CentOS-5.9. The older ant (Ant 1.6.5) is also still available.
  • Microsoft Hyper-V drivers have been added to allow CentOS to be more efficient as a Virtual Machine when installed on Microsoft Hyper-V server.
  • A newer version of rsyslog (name rsyslog5) is included. The original rsyslog (rsyslog version 3.22) is still available and the version installed by default.
  • The samba3x packages have been rebased on samba-3.6.x. This provides the smb2 protocol and a newer network print server.

Upgrading from CentOS 5.8 (and older releases)

If you are already running CentOS-5.8 or an older CentOS-5 distro, all you need to do is update your machine via yum by running :

‘yum update’

Mirror list (European mirrors)




Encrypt your Ubuntu installation with Ubuntu 12.10

In this video tutorial I will show you how to you encrypt your Ubuntu 12.10 installation from the installation GUI.


How to upgrade Zimbra 7 to Zimbra 8

In this video tutorial I will show you how to upgrade your current VMware Zimbra 7 environment to Zimbra 8. This works pretty good. However, I cannot guarantee this will work for your setup as well. Make sure to create back-ups starting the upgrade process.


Howto set up your own TeamSpeak 3 server on Linux

teamspeak logo

In this (video)-tutorial we install our own TeamSpeak 3 server on a Linux machine. TeamSpeak 3 is a VoIP (Voice over IP) program designed for gamers.


Requirements for this tutorial:

  • A server with a network connection (I’ll use CentOS 6)
  • A client with a network connection (Windows 7 in my case)
  • TeamSpeak client/server software from their website (link)

Open a terminal to your server and download the TeamSpeak 3 server software:

$ wget http://mirror-to-the-current-teamspeak-release.tar.gz

Extract the package by typing:

$ tar xzf teamspeak3-server_linux-amd64-

Get into the new directory by typing:

$ cd teamspeak3-server_linux-amd64-

Start the new TeamSpeak 3 server by running:

$ ./

Your new TeamSpeak server will now start in foreground. Launch your TeamSpeak 3 client, enter the IP-address for your server and hit connect. After connecting you’ll get a massage about administrator privileges that have not yet been claimed. Go back to your terminal and copy the part AFTER “Token=”. Paste this into the “Use Privilege Key” input field.

You should now be administrator of your new TeamSpeak server!

In order to stop the running server, which is in foreground right now, hit CTRL+C. In order to run the server in the background, execute the following:

$ ./ start

You can now safely close your terminal without shutting the TeamSpeak server down.

Have fun!


Install your own VPN server with OpenVPN on CentOS 5.8

OpenVPN logoIn this (video)-tutorial I’ll show you how to setup your own OpenVPN access server in just a few minutes! OpenVPN is an open source software application that implements VPN techniques for creating secure point-to-point connections.

In order to proceed, you’ll need the following:

  • A basic installation of CentOS 5.8 (32- or 64-bit)
  • A dedicated or virtual machine

After the installation of CentOS, head over to the OpenVPN website at and go to “VPN Solution”. Now click on “Access Server Software Packages”. Select the appropriate operating system. In my case it’s CentOS. Copy the URL of your OS version and make a choice between 32- or 64-bit. In my case it’s CentOS 5, 64-bit.

Head over to your terminal and execute the following command:

# wget

The download process will now start. Please be patient until it’s finished. Next, we’ll use rpm to install the software on our machine.

# rpm -i openvpn-as-1.8.4-CentOS5.x86_64.rpm

The installation process will now start. This will take a few seconds. Next, we want to set a password for the default VPN user “openvpn”.

# passwd openvpn

Next, open a browser and go to the URL mentioned after “Admin UI:” just after installing and try to log in with the username and password that you’ve just set.

The next thing you’ll have to do is test it from a remote location. You can use either the OpenVPN Connect or OpenVPN Client software to connect on a windows machine. Both packages can be found here.

Project: Ubuntu 12.04 home server

Ubuntu LogoI’ve recently build my own home server based on Ubuntu Server 12.04. This machine has anything you would expect from a server: performance, reliability and storage.


The hardware:

  • CPU: Intel Core i3-2120
  • Motherboard: Asus P8H61-I
  • Memory: Kingston ValueRAM 8GB DDR3-1333 kit
  • Hard disks: 4x Seagate ST2000DM001 (8TB in total)
  • Case: Factical Design Array R2 mini ITX NAS

Home server hardware

Read more

Installing VMware Zimbra 8 on CentOS 6 (video included)

VMware Zimbra 8 is here! In this tutorial I’ll cover a fresh installation of Zimbra 8 on CentOS 6.3. Zimbra is a groupware email server and web client.


This tutorial requires:

  • CentOS 6.3 (download)
  • Zimbra 8.0 OSE (Red Hat Enterprise Linux 6 edition)
  • A dedicated server or virtual machine
  • Basic Linux knowledge


In my case I will create a virtual machine in VMware Workstation 9. This virtual machine has 2GB of memory and all of my cpu cores available to it.

virtual machine setttings







Start up your machine and hit ‘Install or upgrade an existing system’.

Read more

Video tutorial: Setting up SSH public key authentication in Ubuntu 12.04

I’ve been using Linux for quite some time now but never really understood how public key authentication works. I decided to search the web and try it out on different testing machines. So, if you want to find out how it works as well, here’s how it’s done.







First, you’ll need to log in to your machine, and create a necessary directory, change it’s permissions and go into it.

$ mkdir .ssh/; chmod 700 .ssh/; cd .ssh/

After that, you want to create a file called ‘authorized_keys’. This file contains the public key(s) that are allowed to log-in with your username.

$ touch authorized_keys; chmod 600 authorized_keys

Right now, it should look like this:

$ ls -lh

-rw——- 1 kevin kevin  394 Jun  3 13:00 authorized_keys

It’s time to generate the public/private rsa key pair:

$ ssh-keygen -t rsa

Generating public/private rsa key pair.
Enter file in which to save the key (/home/kevin/.ssh/id_rsa):

Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/kevin/.ssh/id_rsa.
Your public key has been saved in /home/kevin/.ssh/

Your .ssh/ directory should look like this right now:

ls -lh

-rw——- 1 kevin kevin 394 Jun 3 13:00 authorized_keys
-rw——- 1 kevin kevin 1.8K Jun 3 14:16 id_rsa
-rw-r–r– 1 kevin kevin 394 Jun 3 14:16

Add the key to the authorized_key file

cat >> authorized_keys

Next, download the private key (id_rsa) file to your local Windows machine by using WinSCP.

Open PuTTYgen, click ‘load’ and search for the id_rsa file you just downloaded from your Linux machine. Enter your passphrase and hit OK. Now, click ‘Save private key’ and select a good destination to store your private key file.
At last, open PuTTy, enter the IP address or hostname of your Linux machine and go to Connection -> SSH -> Auth.


At the bottom you will find ‘Private key file for authentication:’. Hit browse, and select the key file we just saved with PuTTYgen. Hit open, enter your username, your passphrase and ta-da.




Video tutorial: Installing iRedMail – An Open Source mail solution on CentOS 5.x

Quick installation of iRedMail 0.7.4 on a CentOS 5.7 machine.


What iRedMail is:


* A ZERO COST, fully fledged, full-featured mail server solution. All components are free and open source softwares.
* An open source project, released under GPLv2, hosted on BitBucket (moved from Google Code).


What iRedMail does:


* Install and configure mail server related BINARY packages automatically from repositories which officially provided by Linux/BSD distributions.


More information about iRedMail can be found on



Video tutorial: Installing Cacti on CentOS 5.7

Hi everyone. In this video tutorial I will show you how to install Cacti (Network graphing solution) on CentOS 5.7.



Installing Zimbra on CentOS 6

Hi everyone. In this video tutorial I will show you how to install VMware Zimbra (open source edition) on a CentOS 6.2 machine.




Step by step guide:

1. Install CentOS 6.2 minimal
2. Stop Postfix by running ‘service postfix stop’ and disable it at boot time ‘chkconfig postfix off’
3. Install a few required packages ‘yum install nc perl sysstat libstdc++.i686 wget nano’
4. Use any text editor to comment ‘Defaults requiretty’ out in sudoers. You can find the file in /etc/sudoers or by typing visudo.
5. Download the lastest version at
6. Extract using ‘tar xvf zcs.x.x.x’
7. Install by using ‘./ –platform-override’.
8. Follow the steps in the setup guide.


Don´t forget to edit the firewall rules & edit the /etc/hosts file!!


Please rate/comment/subscribe to my YouTube channel: Let me know what you think.