Author: Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

Error: I faced following error after installing ffmpeg on our CentOS 6.5 server. ffmpeg: error while loading shared libraries: libavdevice.so.55: cannot open shared object file: No such file or directory Solution: In my case this issue comes, when we don’t not added codecs libraries path in ldconfig. I have fixed it by adding following entries in /etc/ld.so.conf. # vim /etc/ld.so.conf include ld.so.conf.d/*.conf /usr/lib /usr/local/lib Save file and run command # ldconfig All working now.

Read More

Wkhtmltopdf is a very useful application to create pdf from html (webpage). This article will help to create pdf of a webpage using php script and Linux command line tool. Step 1: Install wkhtmltopdf in Linux Download wkhtmltopdf from google code and install to linux system. # cd /opt # wget https://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-i386.tar.bz2 # tar xjf wkhtmltopdf-0.9.9-static-i386.tar.bz2 # mv wkhtmltopdf-i386 /usr/bin/wkhtmltopdf # chown apache:apache /usr/bin/wkhtmltopdf # chmod +x /usr/bin/wkhtmltopdf Step 2: Create Pdf Using Command Line First check wkhtmltopdf script it its properly working from command line. Below command will create pdf of http://google.com web page. # /usr/bin/wkhtmltopdf http://google.com google.pdf Step…

Read More

Public IP is used for communication between computers over the Internet. A computer running with public IP is accessible all over the world using the Internet. So we can say that it is the identity of the computer on the internet. Now the question is how do we know our public IP?. For computers having GUI can easily get there IP using web tools like this but how to get public IP of the computers having terminal access only. The solution is here – use one of the following commands to find public IP of your system using Linux terminal.…

Read More

VLC is a free, open-source, and cross-platform multimedia player. It’s useful to play music and videos on the system. This article will help you to install VLC on Fedora Systems. This tutorial provides you with two methods for installing VLC on Fedora systems. The first method will use the Snap package to install VLC and the second method will use the traditional way with rpm repositories for installing VLC on the Fedora system. Method 1 – Installing VLC on Fedora via Snap The Snapcraft is the latest way for installing Packages on Linux systems. It provides cross-platform applications to install…

Read More

Hi Guys, This tutorial will help to for installing MySQL 5.6 on CentOS/RHEL system. I am using CentOS 6, 32 bit version. For other OS version you can download files from here. Also change the rpm names in all given commands in this tutorial. Step 1: Download RPMs from MySQL Download required rpm files from MySQL cdn network using following download links. # cd /opt/ # wget http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-server-5.6.15-1.el6.i686.rpm # wget http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-client-5.6.15-1.el6.i686.rpm # wget http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-shared-5.6.15-1.el6.i686.rpm Step 2: Install MysQL RPMs Install downloaded rpms using rpm command line tool. # rpm -ivh MySQL-server-5.6.15-1.el6.i686.rpm # rpm -ivh MySQL-client-5.6.15-1.el6.i686.rpm # rpm -ivh MySQL-shared-5.6.15-1.el6.i686.rpm Step…

Read More

This article will help to how to add SPF records for all accounts on cPanel server 1. For Single Account cPanel provides scripts to add SPF record in accounts. If you want to add SPF record in single account use following command as root user. # /usr/local/cpanel/bin/spf_installer <username> <username> : cPanel account name to which SPF need to configure. 2. For All Accounts Use following script to add SPF records for all accounts on cPanel server. # for USER in /var/cpanel/users/*; do /usr/local/cpanel/bin/spf_installer “${USER##*/}”; done Reference: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/EmailAuthentication

Read More

The dd is an command which stands for “data duplicator”. This command is used for copying and converting data. The dd command simply copies standard input to standard output, read in 512-byte blocks. You can use the dd command to backup the entire hard disk or partition. Using dd command you can also backup the MBR. Go through this tutorial and understand the uses of dd command. #1 – Create Backup of Existing Partition The following command will create a backup of entire partition /dev/sdb1 and write to /backup/sdb1.img file. dd if=/dev/sdb1 of=/backup/sdb1.img Sample Output 16064937+0 records in 16064937+0 records…

Read More

SQLite is a lightweight SQL database that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. Except some of the commands, SQLite uses similar command syntax as used by MySQL, Oracle. This article will help to How to use SQLite database using the command line. 1. Create SQLite Database SQLite provides a simple command to create database. Use following command to create an sqlite database. sqlite3 tecadmin.db Basically SQLite database is a file that gets created in your currect working directory. ls -l tecadmin.db -rw-r–r–. 1 root root 3072 May 11 14:32 tecadmin.db 2. Create Tables in SQLite Database After…

Read More

Until today I was using the basic HAProxy settings, Today i found a task about selection of backend server basis of url request. While working on this task, I learned about HAProxy ACLs. Task: I have wordpress installed as http://domainname.com/blog . This domain is running from 2 back-end server and balanced by HAProxy, The task is to redirect all /blog request to only single server. Network Scenario for this setup HAProxy Server: 192.168.1.90 WEB1 : 192.168.1.103 WEB2 : 192.168.1.105 Domain: tecadmin.net The below example includes ACL for url_beg. url_beg matches the string used in url submitted. Using the url all…

Read More

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is easy to learn and has a tiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows. This how to guide will help you to upgrade git version on your CentOS/RHEL 6 system. Step 1: Install rpmforge Repository Download and install rpmforge repository rpm using following commands. RHEL/CentOS 6 – 64bit # rpm -i ‘http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm’ #…

Read More