Showing posts from March, 2018

How to install docker in Ubuntu 16.04

                 How to install Docker on Ubuntu 16.04                                                

Docker is a opensource platform, Docker help us to deploy the code to shift the code and run the application in production environment. 
Docker engine allow us to create number of containers, Containers are not the complete operating system, The operating system is with host OS.Containers only have the required binaries and libraries which support the application.
Basically in Docker technology we need single operating system which we called host OS. 
on single OS we can create number of containers and this containers hold the applications.

Docker is available in two edition, Docker community edition and docket enterprise edition, Docker community addition. Just take Docker CE if you don't have any idea which to take.

Prerequisites :
64 bit ubuntu 16.4 
3.11.0-15-generic or higher kernel 

To check your operating system kernel version :

root@ip-10-0-1-59:~# uname -a

Linux ip-10-0-1-59 4.4.0-…

How to install jenkins in ubuntu

In this article i am going to explain you how to install and configure Jenkins on your ubuntu operating system. Jenkins is an application that monitors execution of repeated jobs such as building a software project, it can be java, C++ or any other projects, Jenkins is a continuous integration and continuous delivery system which is written in Java, which automatically build,test and deploy software projects, Jenkins focusing on building and testing software projects continuously ,   

In order to have Jenkins on a Ubuntu operating system you need to have java JDK on your ubuntu operating system, SO we will install java JDK 

Java Installation :
#add-apt-repository ppa:webupd8team/java
#apt-get update
#apt-get install oracle-java8-installer

to check java version :

#javac --version

 Install Jenkins :

#wget -q -O - | sudo apt-key add -
#echo deb binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
#apt-get updat…

HTTP Error and Status Codes

In this Article i will show you HTTP protocol error with their codes. If you are sys admin then its impotent that you know all type of HTTP errors.

Successful Client Requests

200OK 201Created 202Accepted 203Non-Authorative Information 204No Content 205Reset Content 206Partial Content

Client Request Redirected

300Multiple Choices301Moved Permanently302Moved Temporarily303See Other304Not Modified305Use Proxy

Client Request Errors

400Bad Request401Authorization Required402Payment Required (not used yet)403Forbidden404Not Found405Method Not Allowed406Not Acceptable (encoding)407Proxy Authentication Required408Request Timed Out409Conflicting Request410Gone411Content Length Required412Precondition Failed413Request Entity Too Long414Request URI Too Long415Unsupported Media Type

Server Errors

500Internal Server Error501Not Implemented502Bad Gateway503Service Unavailable504Gateway Timeout505HTTP Version Not Supported

How to install and configure samba on centos 7

In this turorial i will explain you to how to install and configure samba server on CentOs 7 with secure user authentication and anoimous(passwordless), Samba is a open source software which allow us to share files, foldes and printer between linux and windows client machine. also i will explain you to block cirtain type of file using samba.

Install samba package using yum :

# yum -y install samba*

Create a directory which you want to share and set full permission on that directory.

# mkdir -p /home/samba
# chmod -R 0777 /home/samba
# chmod -R 0777 /home/samba/

Now open samba configuration file and make some changes for share anonymous (password less directory sharing).

vim /etc/samba/smb.conf

Make changes in file which marked in bold.

workgroup = workgroup
security = user 
        passdb backend = tdbsam
map to guest = Bad User
        printing = cups
        printcap name = cups
        load printers = yes
        cups options = raw

[guest share]
path = /home/samba
writable = yes

How to Install and Configure vsftpd on CentOS 7

Vsftpd [Very Secure File Transport Protocol Daemon] is a fast and secure file transfer service for linux/Unix.  Ftp server is used to transfer and exchange files between computers over network, In this article i will explain you to how to install and configure ftp server in Linux machine.

Update your server yum repository and install VSFTPD.

# yum check-update
# yum -y install vsftpd

Open VSFTPD configuration file and make changes as below.
# vim /etc/vsftpd/vsftpd.conf

Change anonymous login yes to no.

Uncomment below lines:


Add below line to the end of file.


Restart VSFTPD service and make enable to automatic start on boot.

# systemctl restart vsftpd.service
# systemctl enable vsftpd.service

Allow ftp service and port ftom firewall.

# firewall-cmd --permanent --add-service=ftp
# firewall-cmd --permanent --add-…

how to install and configure drupal on ubuntu

Drupal is an opensource content management system that allows anyone to build amazing websites. It’s free and has a community of dedicated supporters building cool tools to enhance it. Drupal is a free and open source content-management framework written in PHP and distributed under the GNU General Public License. Drupal runs on any computing platform that supports both a Web server capable of running PHP and a database to store content and configuration.

Uptate the ubuntu packages.
#apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove

Install apache2 services and enable
# apt-get install apache2
# systemctl start apache2.service
# systemctl enable apache2.service

Install Mysql service and configure database.
# apt-get -y install mysql-server mysql-client
# systemctl start mysql.service
# systemctl enable mysql.service

Run the commands below to secure MySQL server.
# mysql_secure_installation

Login to mysql and configure database :
# mysql -u root -p


How to check if the package is installed in linux

Commands for check installed package :

With Apt command : 

List all installed packaged :
# apt list --installed

For check particular package :
# apt list --installed | grep -i apache

With DPKG Command 

List all installed package
# dpkg -l

List particular package name
# dpkg -l | grep apache2


# dpkg -l | grep apahce2 | awk '{print $2, $3}'

the second version prints just the name and version of the package.
If the package is not installed nothing is printed to the terminal.

For Cent OS :

List all enabled repository on your system.
# yum list installed

List particular package with yum
# yum list installed | grep php

From RPM :
# rpm -qa | grep httpd

By Vishal Vyas