Posts

Showing posts from March, 2018

How to install docker in Ubuntu 16.04

Image
                 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:~# un

How to install jenkins in ubuntu

Image
  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 - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add - #echo deb https://pkg.jen

HTTP Error and Status Codes

Image
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 200 OK  201 Created  202 Accepted  203 Non-Authorative Information  204 No Content  205 Reset Content  206 Partial Content Client Request Redirected 300 Multiple Choices 301 Moved Permanently 302 Moved Temporarily 303 See Other 304 Not Modified 305 Use Proxy Client Request Errors 400 Bad Request 401 Authorization Required 402 Payment Required (not used yet) 403 Forbidden 404 Not Found 405 Method Not Allowed 406 Not Acceptable (encoding) 407 Proxy Authentication Required 408 Request Timed Out 409 Conflicting Request 410 Gone 411 Content Length Required 412 Precondition Failed 413 Request Entity Too Long 414 Request URI Too Long 415 Unsupported Media Type Server Errors 500 Internal Server Error 501 Not Implemented 502 Bad Ga

How to install and configure samba on centos 7

Image
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. [global]         workgroup = workgroup         security = user          passdb backend = tdbsam         map to guest = Bad User         printing = cups         printcap name = cups         load printers = yes    

How to Install and Configure vsftpd on CentOS 7

Image
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. anonymous_enable=NO Uncomment below lines: ascii_upload_enable=YES ascii_download_enable=YES chroot_local_user=YES Add below line to the end of file. allow_writeable_chroot=YES pasv_enable=Yes pasv_min_port=40000 pasv_max_port=40100 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-servic

how to install and configure drupal on ubuntu

Image
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 databas

How to check if the package is installed in linux

Image
  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 -OR- # 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