How to Install and Configure GitLab on Ubuntu 16.04

GitLab is an open source GIT repository manager based on Rails and developed by GitLab Inc. It is a web-based GIT repository manager that allows your team to work on code, track bugs and feature requests and to test and deploy applications. GitLab provides features like a wiki, issue tracking, code reviews, activity feeds and merge management. It is capable of hosting multiple projects.

GitLab is available in four editions:

  • Gitlab CE (Community Edition) – self-hosted, free and support from the Community forum.
  • Gitlab EE (Enterprise Edition) – self-hosted, paid app, comes with additional features.
  • GitLab.com – SaaS, free.
  • GitLab.io – Private GitLab instance managed by GitLab Inc.

In this tutorial, I will show you step-by-step how to install GitLab CE (Community Edition) on your own Ubuntu 16.04 Xenial Xerus server. In this tutorial, I will be using the ‘omnibus’ package provided by GitLab for easy installation.

What we will do:

  • Install Packages
  • Install GitLab
  • Configure GitLab URL
  • Generate SSL Let’s encrypt and DHPARAM Certificate
  • Enable Nginx HTTPS for GitLab
  • Configure UFW Firewall
  • Perform the GitLab Installation
  • Testing

Prerequisites

  • Ubuntu 16.04 Server – 64bit
  • Min RAM 2GB
  • Root Privileges

Step 1 – Install required Ubuntu Packages
The first step is to install the packages needed for the GitLab installation. Please log in to the server as root user and upddate the Ubuntu repository.

ssh root@GitLabServer
apt-get update

Now install the packages including curl for downloading the GitLab repository, ca-certificates, and postfix for the SMTP configuration. Install all packages with the apt command below.

sudo apt install curl openssh-server ca-certificates postfix

During postfix installation, you will be prompted about the configuration, select ‘Internet Site’. and then enter the server domain name that shall be used for sending an email. Continue reading “How to Install and Configure GitLab on Ubuntu 16.04” »

Share

Install Plex on Ubuntu 18.04

Plex is a streaming media server that lets you organize your video, music, and photo collections and stream them to all of your devices at any time and from anywhere.

Although this tutorial is written for Ubuntu 18.04 Bionic Beaver the same steps can be used for Debian and Ubuntu 16.04 Xenial Xerus.

Prerequisites

You’ll need to be logged in as a user with sudo access to be able to install packages on your Ubuntu system.

Install Plex Media Server

The easiest way to install and manage Plex Media Server on Ubuntu 18.04 is by using the Plex official repository. It requires no technical knowledge and it should not take you more than 20 minutes to install and configure the media server.

Follow the steps below to install the Plex Media Server on your Ubuntu system:

Start by importing the repository’s GPG key using the following curl command:

curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -

Add the Plex APT repository to your system’s software repository list by issuing:

echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list

Once the Plex repository is enabled, update the apt package list and install the latest version of the Plex Media Server with: Continue reading “Install Plex on Ubuntu 18.04” »

Share

Install Apache Tomcat 8.5 on CentOS 7.3

Prerequisites

Server with CentOS 7 – 64bit
2 GB or more RAM (Recommended)
Root Privileges on the server

Step 1 – Install Java (JRE and JDK)

In this step, we will install the Java JRE and JDK from the CentOS repository. We will install Java 1.8.11 on the server with the yum command.

Run this command to install Java JRE and JDK from CentOS repository with yum:

yum -y install java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel.x86_64

It will take some time, wait until the installation finished.

Then you should check the Java version with the command below:

java -version

You should see results similar to the ones below:

openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-b15)
OpenJDK 64-Bit Server VM (build 25.111-b15, mixed mode)

Step 2 – Configure the Java Home Environment Continue reading “Install Apache Tomcat 8.5 on CentOS 7.3” »

Share

How to Monitor your Linux and Windows Servers with CloudStats

CloudStats is a server monitoring service which allows you to monitor your whole server infrastructure from a single dashboard interface and helps timely to prevent any kind of technical issues and downtimes. With CloudStats it is possible to monitor Linux servers, including those on CentOS, Debian, Fedora, Ubuntu etc.

CloudStats server monitoring Agent collects data about all key server metrics such as CPU, RAM and disk space usage, as well as a status of networks, processes, URLs or IPs. This information will be kept and displayed in your CloudStats account interface.

Almost every user can easily setup and run CloudStats without any special skills or knowledge.

Here is an instruction of how to perform Linux server monitoring using CloudStats.

1. Go to sign-up page and create a new account by adding your “Subdomain” name, it could be anything like your company name or website name (in our example – ‘ravisaive‘).

2. In the CloudStats online interface you can add your server for monitoring. To add new server click on the green button “Add New Monitor” and select “Add New Server”. Continue reading “How to Monitor your Linux and Windows Servers with CloudStats” »

Share

Install SVN Server on Ubuntu and Test it with Tortoise

Execute the following commands to update the Ubuntu repository list and install apache + svn.

sudo apt-get update
sudo apt-get install subversion apache2 libapache2-svn apache2-utils

*If asked type Y (Yes). If you have trouble updating check your internet connection, proxy, try update fix-missing etc.

Create your repository folder in this case /svn/repos/ Continue reading “Install SVN Server on Ubuntu and Test it with Tortoise” »

Share

Upgrade WordPress without FTP

Open /wp-config.php

Now the first thing you need to do is to open the wp-config.php file from your WordPress root folder (you may access this file from your WordPress installer folder). From the installation folder, the file is located at wordpress/wp-config.php

Insert FS_METHOD

Paste the following code to your wp-config.php file, preferably just below every other line of code.

define('FS_METHOD','direct');

Save and Try updating now. If you have inappropriate directory and file permission, might  encounter upgrade error. Try to do the following-

Web Server Ownership

The first level is actually to make sure that your web server has ownership over the directories:

chown -R www-data:www-data your-wordpress-directory

Directory Permissions

The second level is also required – you must make sure that the directory permissions are properly set:

sudo find /var/www/wordpress/ -type d -exec chmod 755 {} \;
sudo find /var/www/wordpress/ -type f -exec chmod 644 {} \;
Share

Remove apache, phpmyadmin etc from ubuntu 16.04

You can remove the packages in Ubuntu by executing the commands:

dpkg --purge phpmyadmin
dpkg --purge mysql-server
dpkg --purge apache2.2-common

Or

You have option also to remove the following packages:

sudo apt-get remove apache2*
sudo apt-get remove phpmyadmin 
sudo apt-get remove mysql-server
sudo apt-get remove php5

Or

sudo apt-get --purge apache2*
sudo apt-get --purge phpmyadmin 
sudo apt-get --purge mysql-server
sudo apt-get --purge php5
Share

How to update Debian 6 Squeeze

After a Debian version has reached EOL (end of life), its repositories go to the Debian archive. Therefore we can use this archive to get packags for our distribution. The syntax for our /etc/apt/sources.list is as follows:

deb http://archive.debian.org/debian/ <version> main non-free contrib
deb-src http://archive.debian.org/debian/ <version> main non-free contrib

deb http://archive.debian.org/debian-security/ <version>/updates main non-free contrib
deb-src http://archive.debian.org/debian-security/ <version>/updates main non-free contrib

So for Debian Etch, you’d comment out all other repositories in /etc/apt/sources.list and add the following lines: Continue reading “How to update Debian 6 Squeeze” »

Share

Business Server- How should it be

So, what would be a business on premise server look like…? Tried to build a feature based composition, but I guess need more upgradations-

  • Server operating system- Ubuntu 12.04 LTS
  • Network Firewall- ufw *
  • DNS server- Dnsmasq
  • DHCP server- ISC DHCP
  • Internet sharing with proxy and cache control, including reporting and user access control- Squid | Sarg
  • Anti-Virus and Anti-Spam ClamAV | AMaViS | SpamAssassin
  • Groupware Email, Contacts, Calendar, Webmail, with native Microsoft Outlook compatibility and mobile device support- SOGo *
  • Instant Messaging, VOIP and Video Chat server- Openfire | Spark *
  • Shared Printers and Files- Samba
  • Webserver Apache *
  • FTP server- ProFTP *
  • Database server- MySQL *
  • VPN- LogMeIn Hamachi  | Haguichi *
  • Virtualization support- Oracle VM VirtualBox *
  • Network Backup- RAID1 NAS *
  • Cloud Backup- Ubuntu One *
  • Remote Desktop Administration- x11vnc *
  • Remote Web Administration- Webmin
  • System Monitoring- Automatic Security Updates

All suggestions are welcome 🙂

Share