Custom layout Gitlab on Centos

To custom layput of Gitlab server on Centos, you need go to path


changce content on file .html.haml

Affter changce content run commandline to apply

gitlab-rake assets:clean RAILS_ENV=production

and generate them (I had some permissions errors with this one, nothing that a chmod 777 couldn’t fix, just try to revert them back to its original state)

gitlab-rake assets:precompile RAILS_ENV=production

and finally a restart

sudo gitlab-ctl restart

How to Install and Configure VNC Server in CentOS 7

In this guide we’ll explain how to install and configure VNC Remote Access in latest release of CentOS 7 and RHEL 7 Desktop edition via tigervnc-server program.

VNC (Virtual Network Computing) is a server-client protocol which allows user accounts to remotely connect and control a distant system by using the resources provided by the Graphical User Interface.

Unlike other VNC servers available which connects directly to the runtime desktop, such as VNC X or Vino, tigervnc-vncserver uses a different mechanism that configures a standalone virtual desktop for each user.

Step 1: Install and Configure VNC in CentOS 7

1. Tigervnc-server is a program which executes an Xvnc server and starts parallel sessions of Gnome or other Desktop Environment on the VNC desktop

A started VNC user session can be accessed by same user from multiple VNC clients. In order to install TigerVNC server in CentOS 7, open a Terminal session and issue the following command with root privileges.

$ sudo yum install tigervnc-server

2. After, you’ve installed the program, login with the user you want to run the VNC program and issue the below command in terminal in order to configure a password for the VNC server.

Be aware that the password must be at least six characters length.

$ su – your_user # If you want to configure VNC server to run under this user directly from CLI without switching users from GUI
$ vncpasswd

3. Next, add a VNC service configuration file for your user via a daemon configuration file placed in systemd directory tree. In order to copy the VNC template file you need to run the following command with root privileges.

If your user is not granted with sudo privileges, either switch directly to root account or run the command from an account with root privileges.

# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service

4. On the next step edit the copied VNC template configuration file from /etc/systemd/system/ directory and replace the values to reflect your user as shown in the below sample.

The value of 1 after @ sign represents the display number (port 5900+display). Also, for each started VNC server, the port 5900 will be incremented by 1.

# vi /etc/systemd/system/vncserver@\:1.service

Add the following lines to file file vncserver@:1.service.

Description=Remote desktop service (VNC)
ExecStartPre=/bin/sh -c ‘/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :’
ExecStart=/sbin/runuser -l my_user -c “/usr/bin/vncserver %i -geometry 1280×1024”
ExecStop=/bin/sh -c ‘/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :’

5. After you’ve made the proper changes to VNC service file, reload systemd system initialization program to pick up the new vnc configuration file and start the TigerVNC server.

Also, check VNC service status and enable the VNC daemon system-wide by issuing the below commands.

# systemctl daemon-reload
# systemctl start vncserver@:1
# systemctl status vncserver@:1
# systemctl enable vncserver@:1

6. To list the opened ports in listening state owned by the VNC server, run the ss command, which is used in CentOS 7 to display network sockets. Because you’ve only started one instance of VNC server, the first open port is 5901/TCP.

Again, the ss command must be executed with root privileges. In case you start other VNC instances in parallel for different users, the port value will be 5902 for the second, 5903 for the third and so on. The ports 6000+ are used for allowing the X applications to connect to the VNC server.

# ss -tulpn| grep vnc

7. In order to allow external VNC clients to connect to the VNC server in CentOS, you need to make sure the proper VNC open ports are allowed to pass through your firewall.

In case just one instance of VNC server is started, you only need to open the first allocated VNC port: 5901/TCP by issuing the below commands to apply the firewall configuration at runtime.

# firewall-cmd –add-port=5901/tcp
# firewall-cmd –add-port=5901/tcp –permanent

Step 2: Connecting to CentOS Desktop via VNC Client

8. Being a platform independent protocol, remote Graphical User Interface VNC connections can be performed from almost any operating system with a GUI and a specialized VNC client.

A popular VNC client used in Microsoft based operating systems, fully compatible with Linux TigerVNC server, is the RealVNC VNC Viewer.

In order to remotely connect to CentOS Desktop from a Microsoft OS via VNC protocol, open VNC Viewer program, add the IP address and port number of CentOS VNC server and hit [enter] key.

After the VNC connection has been established a warning saying that the connection is not encrypted should be displayed on your screen as illustrated in the below screenshots.

How to Extract 7z package in CentOS/RHEL/Fedora?

Are you stuck in extracting .7z file in Linux? Then here’s how you can install 7z extractor in CentOS, RHEL and Fedora based machines. 7z files are generally smaller in size (as it creates a file with a very high compression ratio) and supports only limited compression methods. It supports encryption and preprocessing algorithms and .7z files cannot be extracted using commands such as tar or zip or xz. The command 7za is not installed by default in any of the popular Linux flavors, but you can quickly download and install it from This tutorial will tell you how to install 7-zip file archiver in Linux using YUM.


You need to have root privileges to install 7-zip file archiver.

Step 1: Install p7zip

# yum install p7zip

That’s it! You can now unzip or extract any package that’s compressed using 7-zip archiver.

# 7za x linuximage-amd64.7z

Install Apache ActiveMQ 5.8.0 on CentOS, Redhat and Fedora

Apache ActiveMQ is the powerful, open source messaging and Integration Patterns server. Its support many Cross Language Clients and Protocols, from Java, C, C++, C#, Ruby, Perl, Python, PHP. Ajax to support web streaming support to web browsers using pure DHTML

This article will guide you to Install Apache ActiveMQ 5.8.0 on Centos, Redhat and Fedora

Step 1: Install JAVA

First we need to check if JAVA is installed on our system or not. Use following command to check if you have java installed already on your system.

# java -version

java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode)

If you do not have java installed, Use this guide to install Java.

Step 2: Download and Extract Archive

Download Latest Apache ActiveMQ from apache official site or use below download command. Also extract archive in /opt directory.

# cd /opt/
# wget
# tar xzf apache-activemq-5.14.1-bin.tar.gz
Step 3: Start ActiveMQ

To start ActiveMQ use following command from command line.

# cd /opt/apache-activemq-5.14.1
# ./bin/activemq start
Step 4: Verify Service

Apaceh ActiveMQ service works on port 61616. Use below command to verify service has started.

# netstat -tulpn | grep 61616

tcp     0      0 :::61616       :::*        LISTEN      20860/java
Step 5: Access ActiveMQ Admin Panel

ApacheMQ admin panel can be access via 8161 port from web browser following by /admin url like below.

Login Username: admin
Login Password: admin
Apache ActiveMQ

Use below url for command line references of apache ActiveMQ


PHP Web development

Job description
We are looking for PHP developers who are dedicated to their craft, write code that is proud of and can hit the ground running. We need them to write beautiful, fast PHP to a high standard, in a timely and scalable way that improves the code-base of our products in meaningful ways. They will also be responsible for integrating the front end elements built by their co-workers in to the application.
Experience in Magento open source will be an added advantage. Read more

15 Slide Panel jQuery Plugins

15 Easy to use slide panel jQuery plugins for web designers and developers to design their websites more in a user friendly manner.

Sliding panels are important in today’s world of company showcasing of your website contents. Slide panels helps you to toggle or hide your contents either by clicking or hover on a hook button. Read more

How to Master Digital Gifting

While the Holiday season has its fair share of “family dinner drama,” the hope is that one’s ecommerce experience is alleviating and not contributing to the monthly therapy bill.

According to Needle, gift shopping now surpasses family obligations and holiday travel as the top stressor during the holiday season. A whopping 84 percent of consumers confess that gift giving raises their blood pressure. The same study found that nearly half of the respondents plan to purchase their gifts online anywhere from just weeks to days before the holiday. This inevitable deliberation and subsequent procrastination only adds to the struggle: backed up delivery schedules, expedited shipping costs, and sold-out merchandise. Read more