<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7440590691056881811</id><updated>2024-09-09T03:59:09.206-07:00</updated><category term="Linux"/><category term="Ubuntu"/><category term="AIX"/><category term="Install"/><category term="Java"/><category term="SSH"/><category term="apt-get"/><category term="kdump"/><category term="Add User To Sudoers"/><category term="Apache"/><category term="Cloud"/><category term="DDOS"/><category term="Error"/><category term="Firefox"/><category term="Firewall"/><category term="Flash Player"/><category term="Grub Boot Loader"/><category term="IAAS"/><category term="Install java"/><category term="Iptables"/><category term="JRE"/><category term="Kernel"/><category term="LUN"/><category term="Linux Clients"/><category term="Mobile"/><category term="Monitoring"/><category term="Nagios"/><category term="Network"/><category term="Orphan"/><category term="PAAS"/><category term="Process"/><category term="Proxy"/><category term="Recover"/><category term="Remote Mount"/><category term="Repair"/><category term="SAAS"/><category term="SSHFS"/><category term="SSL"/><category term="Security"/><category term="Setup Password"/><category term="Shell Script"/><category term="Squid"/><category term="Transparent"/><category term="Unix"/><category term="User Add"/><category term="Virtual Host"/><category term="Virtualization"/><category term="Web Server"/><category term="Windows AD"/><category term="Wireless"/><category term="Zombie"/><category term="authconfig"/><category term="configure kdump"/><category term="crash kernel"/><category term="dos"/><category term="encryption disk centos rhel 6"/><category term="find command"/><category term="install kdump"/><category term="iscsi initiator"/><category term="iscsi target"/><category term="java7"/><category term="kdump error"/><category term="ntp"/><category term="ntp update"/><category term="ntpdate"/><category term="perl install"/><category term="single user mode"/><category term="source code"/><category term="synchronization"/><category term="time"/><category term="time sync"/><category term="update"/><category term="wifi"/><title type='text'>Linux How Tos : Tutorials</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>42</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-1576462378015243212</id><published>2017-03-07T23:48:00.001-08:00</published><updated>2017-03-07T23:58:58.662-08:00</updated><title type='text'>Docker : Static Website</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; margin-bottom: 16px; text-align: left;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;Before moving
forward make sure, you have up and running&amp;nbsp;&lt;b&gt;&lt;a href=&quot;http://linuxtroubleshoot.blogspot.in/2017/02/docker-installation-on-ubuntu-1604.html&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Docker&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&amp;nbsp;instance&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;br /&gt;
1) Run a static website in a container&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;br /&gt;
&lt;b&gt;docker run -d seqvence/static-site&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;So, what happens when you run this command?Since the image&amp;nbsp;&lt;b&gt;doesn&#39;t
exist on your Docker host&lt;/b&gt;, the&amp;nbsp;&lt;b&gt;Docker daemon first fetches&lt;/b&gt;&amp;nbsp;it
from the&amp;nbsp;&lt;b&gt;registry&lt;/b&gt;&amp;nbsp;and then runs it as a container&lt;/span&gt;&lt;span style=&quot;color: #777777; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #c7254e; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;-d&lt;/span&gt;&lt;span style=&quot;color: #777777; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;flag
enables&amp;nbsp;&lt;b&gt;detached mode&lt;/b&gt;, which detaches the running container from the
terminal/shell and returns your prompt after the container starts&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #777777; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;br /&gt;
2) Verify if container in running state&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #777777; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;br /&gt;
docker ps&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: #777777; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;br /&gt;
CONTAINER ID &amp;nbsp; &amp;nbsp;IMAGE &amp;nbsp; &amp;nbsp;COMMAND &amp;nbsp; &amp;nbsp;CREATED
&amp;nbsp; STATUS &amp;nbsp; &amp;nbsp;PORTS &amp;nbsp; NAME&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: #777777; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;br /&gt;
Sb3b30fab0bc2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;seqvence/static-site &amp;nbsp;
&quot;/bin/sh -c &#39;cd /u...&quot; &amp;nbsp; 5 seconds ago &amp;nbsp; &amp;nbsp; &amp;nbsp; Up 4
seconds &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;80/tcp, 443/tcp &amp;nbsp; &amp;nbsp;
wizardly_hypatia&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: #777777; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;3) But running container like in step 1) will
not expose ports running in container to host machine. So, we need mention
following flags for&amp;nbsp;&lt;b&gt;mapping/publish container ports&lt;/b&gt;&amp;nbsp;on&amp;nbsp;&lt;b&gt;Docker
Host&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #c7254e; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;-d&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&amp;nbsp;will
     create a container with the process detached from our terminal&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #c7254e; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;-P&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&amp;nbsp;will
     publish all the exposed container ports to random ports on the Docker host&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #c7254e; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;-e&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&amp;nbsp;is
     how you pass environment variables to the container&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #c7254e; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;--name&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&amp;nbsp;allows you to specify a container name&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #c7254e; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;AUTHOR&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&amp;nbsp;is the environment variable name and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #c7254e; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;Your
     Name&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&amp;nbsp;is
     the value that you can pass&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;docker run --name static-site -e AUTHOR=&quot;Your Name&quot; -d
-P seqvence/static-site&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;4) Now run below command to see how ports are published on
docker host&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;br /&gt;
&lt;b&gt;docker port static-site&lt;/b&gt;443/tcp -&amp;gt; 0.0.0.0:3276880/tcp -&amp;gt;
0.0.0.0:32769&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;br /&gt;
5) Try running http://docker-host:32768&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;br /&gt;
6) If we need to map/publish custom host port to the container web server. Try
running site 2 at the same time with custom port&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;br /&gt;
&lt;b&gt;docker run --name static-site-2 -e AUTHOR=&quot;Manoj Kumar&quot; -d -p
8888:80 seqvence/static-site&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;docker
ps&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;CONTAINER
ID &amp;nbsp; &amp;nbsp;IMAGE &amp;nbsp; &amp;nbsp; COMMAND &amp;nbsp; &amp;nbsp;CREATED &amp;nbsp; &amp;nbsp;
&amp;nbsp; STATUS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PORTS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp;NAMES&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;c5d9d6bc66d1
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;seqvence/static-site &amp;nbsp; &quot;/bin/sh -c &#39;cd
/u...&quot; &amp;nbsp; 3 seconds ago &amp;nbsp; &amp;nbsp; &amp;nbsp; Up 3 seconds &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp;443/tcp, 0.0.0.0:8888-&amp;gt;80/tcp &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; static-site-2&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;br /&gt;
&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt;
&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;7) Try
running http://docker-host:8888&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;br /&gt;
&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt;
&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12pt;&quot;&gt;NOTE:
If you have stopped container and trying to start container again with
different environment variable, if will through&lt;b&gt;&amp;nbsp;conflict as container
already created and in stopped state&lt;/b&gt;. If you want to pass more/updated
environment variables, 1st remove container and start again&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;comic sans ms&amp;quot;; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #777777; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/1576462378015243212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2017/03/docker-with-static-website.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/1576462378015243212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/1576462378015243212'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2017/03/docker-with-static-website.html' title='Docker : Static Website'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-8000848635827627352</id><published>2017-02-28T05:22:00.002-08:00</published><updated>2017-02-28T05:22:13.641-08:00</updated><title type='text'>Docker : failed to get default registry endpoint from daemon, permission denied</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you are getting error while running docker commands by non root user like&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.26/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/&lt;br /&gt;
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.26/images/create?fromImage=alpine&amp;amp;tag=latest: dial unix /var/run/docker.sock: connect: permission denied&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the non-root-user to group docker by updating /etc/group file or by running following command&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
usermod -aG docker non-root-user&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/8000848635827627352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2017/02/docker-failed-to-get-default-registry.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/8000848635827627352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/8000848635827627352'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2017/02/docker-failed-to-get-default-registry.html' title='Docker : failed to get default registry endpoint from daemon, permission denied'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-7757385448260377451</id><published>2017-02-28T05:21:00.004-08:00</published><updated>2017-03-07T23:22:10.279-08:00</updated><title type='text'>Docker Basic Commands</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;Commands which are available to use in Docker to play with images or containers&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;## Download/Pull an image&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;docker pull alpine &amp;nbsp; ## alpine is an images located in local or docker hub repository&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;## List Docker images available locally&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;docker images&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;## Run Docker images&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;docker run alpine ls -l &amp;nbsp; &amp;nbsp; #&lt;b&gt;run&amp;nbsp;&lt;/b&gt;command will look for image alpine locally if does not exist it will pull from docker hub, creates container and start/run a command in that container&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;docker run alpine&amp;nbsp;&lt;span style=&quot;color: inherit; font-size: 13.6px; white-space: pre-wrap;&quot;&gt;echo &quot;hello from alpine&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;docker run alpine&amp;nbsp;&lt;span style=&quot;color: inherit; font-size: 13.6px; white-space: pre-wrap;&quot;&gt;/bin/sh&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: inherit; font-size: 13.6px; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;span style=&quot;background-color: white; color: #333333; font-size: 16px;&quot;&gt;Wait, nothing happened! Is that a bug? Well, no. These interactive shells will exit after running any scripted commands, unless they are run in an interactive terminal - so for this example to not exit, you need to&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: rgba(0, 0, 0, 0.0392157); border-radius: 3px; box-sizing: border-box; color: #c7254e; font-size: 13.6px; margin: 0px; padding: 0.2em 0px;&quot;&gt;docker run -it alpine /bin/sh&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;## List running containers&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;docker ps&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;## List all containers we ran&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;docker ps -a&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;## Run a container with attached tty&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;docker run -it alpine /bin/sh&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;This will drop you at /bin/sh shell in container (with tty) where you can run any command as similar to on OS&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;docker run -it alpine /bin/sh&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;/ #&amp;nbsp;&lt;b&gt;df -h&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size &amp;nbsp; &amp;nbsp; &amp;nbsp;Used Available Use% Mounted on&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;none &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 18.1G &amp;nbsp; &amp;nbsp; &amp;nbsp;1.8G &amp;nbsp; &amp;nbsp; 15.3G &amp;nbsp;11% /&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 496.2M &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;496.2M &amp;nbsp; 0% /dev&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 496.2M &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;496.2M &amp;nbsp; 0% /sys/fs/cgroup&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;/dev/mapper/dockertest--vg-root&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;18.1G &amp;nbsp; &amp;nbsp; &amp;nbsp;1.8G &amp;nbsp; &amp;nbsp; 15.3G &amp;nbsp;11% /etc/resolv.conf&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;/dev/mapper/dockertest--vg-root&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;18.1G &amp;nbsp; &amp;nbsp; &amp;nbsp;1.8G &amp;nbsp; &amp;nbsp; 15.3G &amp;nbsp;11% /etc/hostname&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;/dev/mapper/dockertest--vg-root&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;18.1G &amp;nbsp; &amp;nbsp; &amp;nbsp;1.8G &amp;nbsp; &amp;nbsp; 15.3G &amp;nbsp;11% /etc/hosts&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;shm &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;64.0M &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; 64.0M &amp;nbsp; 0% /dev/shm&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 496.2M &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;496.2M &amp;nbsp; 0% /proc/kcore&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 496.2M &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;496.2M &amp;nbsp; 0% /proc/timer_list&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 496.2M &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;496.2M &amp;nbsp; 0% /proc/timer_stats&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 496.2M &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;496.2M &amp;nbsp; 0% /proc/sched_debug&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 496.2M &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp;496.2M &amp;nbsp; 0% /sys/firmware&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;## Inspect any image/container. INSPECT will Return low-level information on a container or image in JSON format&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;docker inspect alpine&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;## Remove containers&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;get the Container ID&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;docker ps -a&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;##docker rm &lt;b&gt;container-ID&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: georgia, times new roman, serif;&quot;&gt;&amp;nbsp;docker rm 2db0a4bcb909&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
## Remove images&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
get the images IDs&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
docker images&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
## docker image rm &lt;b&gt;image-ID &amp;nbsp; # but make sure containers using this image should be removed first else they will be in unstable state if image is removed&lt;/b&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;docker image rm 48b5124b2768&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;Terminologies&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-size: 16px; margin-bottom: 16px; margin-top: 0px; padding-left: 2em;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Images&lt;/em&gt;&amp;nbsp;- The file system and configuration of our application which are used to create containers&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Containers&lt;/em&gt;&amp;nbsp;- Running instances of Docker images — containers run the actual applications. A container includes an application and all of its dependencies. It shares the kernel with other containers, and&amp;nbsp;&lt;b&gt;runs as an isolated process in user space on the host OS&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Docker daemon&lt;/em&gt;&amp;nbsp;- The background service running on the host that manages building, running and distributing Docker containers&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Docker client&lt;/em&gt;&amp;nbsp;- The command line tool that allows the user to interact with the Docker daemon&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin-top: 0.25em;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Docker Hub&lt;/em&gt;&amp;nbsp;- A&amp;nbsp;&lt;a href=&quot;https://hub.docker.com/explore/&quot; style=&quot;background-color: transparent; box-sizing: border-box; color: #4078c0; text-decoration: none;&quot;&gt;registry&lt;/a&gt;&amp;nbsp;of Docker images. You can think of the registry as a directory of all available Docker images&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/7757385448260377451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2017/02/docker-basic-commands.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/7757385448260377451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/7757385448260377451'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2017/02/docker-basic-commands.html' title='Docker Basic Commands'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-5416304605386291981</id><published>2017-02-28T05:21:00.001-08:00</published><updated>2017-02-28T05:21:03.170-08:00</updated><title type='text'>Docker Installation On Ubuntu 16.04</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;This post is about installation of Docker on Ubuntu 16.04 (must be&amp;nbsp;&lt;span style=&quot;background-color: white; font-size: 16px; letter-spacing: 0.32px;&quot;&gt;&lt;b&gt;64-bit version&lt;/b&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;Pre-requisites:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;1) Download Ubuntu 16.04 (http://releases.ubuntu.com/16.04/ubuntu-16.04.2-server-amd64.iso)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;2) Install Ubuntu 16.04 (https://help.ubuntu.com/lts/installation-guide/amd64/install.en.pdf)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;3) Internet connection available to update and install docker packages and its dependencies&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;Steps to install Docker:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; white-space: pre-wrap;&quot;&gt;apt-get &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; font-weight: bold; white-space: pre-wrap;&quot;&gt;update&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; font-weight: bold; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; white-space: pre-wrap;&quot;&gt;apt-&lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; font-weight: bold; white-space: pre-wrap;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; font-weight: bold; white-space: pre-wrap;&quot;&gt;install&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; white-space: pre-wrap;&quot;&gt; -y &lt;/span&gt;&lt;span class=&quot;hljs-comment&quot; style=&quot;box-sizing: inherit; color: #999988; font-size: 13px; font-style: italic; white-space: pre-wrap;&quot;&gt;--no-install-recommends &lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; white-space: pre-wrap;&quot;&gt;linux-image-extra-&lt;/span&gt;&lt;span class=&quot;k&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; white-space: pre-wrap;&quot;&gt;$(&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; white-space: pre-wrap;&quot;&gt;uname -r&lt;/span&gt;&lt;span class=&quot;k&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; white-space: pre-wrap;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; white-space: pre-wrap;&quot;&gt;linux-image-extra-&lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; font-weight: bold; white-space: pre-wrap;&quot;&gt;virtual&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif; font-size: 16px; letter-spacing: 0.32px;&quot;&gt;NOTE : linux-image-extra-* allow docker to use the aufs storage drivers&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: whitesmoke; font-size: 16px; letter-spacing: 0.32px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; font-size: 16px; letter-spacing: 0.32px;&quot;&gt;Ref AUFS -&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot; , &amp;quot;liberation mono&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;span style=&quot;letter-spacing: 0.32px;&quot;&gt;http://www.thegeekstuff.com/2013/05/linux-aufs/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 16px; letter-spacing: 0.32px;&quot;&gt;## Allow&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;background-color: whitesmoke; border-width: 0px; box-sizing: inherit; font-size: 16px; letter-spacing: 0.32px;&quot;&gt;apt&lt;/code&gt;&lt;span style=&quot;background-color: white; font-size: 16px; letter-spacing: 0.32px;&quot;&gt;&amp;nbsp;to use/communicate a repository over HTTPS&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 16px; letter-spacing: 0.32px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;apt-get &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; font-weight: bold; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;install&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt; -y &lt;/span&gt;&lt;span class=&quot;hljs-comment&quot; style=&quot;box-sizing: inherit; color: #999988; font-size: 13px; font-style: italic; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;--no-install-recommends &lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;apt-transport-https &lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;ca-certificates &lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;curl &lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;software-properties-common&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;## Add Docker official GPG Key&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;curl -fsSL &lt;/span&gt;&lt;span class=&quot;hljs-symbol&quot; style=&quot;box-sizing: inherit; color: #990073; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;https:&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;hljs-regexp&quot; style=&quot;box-sizing: inherit; color: #009926; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;/apt.dockerproject.org/gpg&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt; | sudo apt-key add -&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;##&amp;nbsp;&lt;span style=&quot;background-color: white; font-size: 16px; letter-spacing: 0.32px;&quot;&gt;Verify that the key ID is&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;background-color: whitesmoke; border-width: 0px; box-sizing: inherit; font-size: 16px; letter-spacing: 0.32px;&quot;&gt;58118E89F3A912897C070ADBF76221572C52609D&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;apt-key fingerprint &lt;/span&gt;&lt;span class=&quot;hljs-number&quot; style=&quot;box-sizing: inherit; color: teal; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;58118&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;E89F3A912897C070ADBF76221572C52609D&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;## Add Docker stable repository&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;add-apt-repository &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #dd1144;&quot;&gt;&quot;deb https://apt.dockerproject.org/repo/&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #dd1144;&quot;&gt;ubuntu-&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;k&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #dd1144;&quot;&gt;&lt;span class=&quot;hljs-variable&quot; style=&quot;box-sizing: inherit; color: teal;&quot;&gt;$(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #dd1144; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;hljs-variable&quot; style=&quot;box-sizing: inherit; color: teal;&quot;&gt;lsb_release -cs&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;k&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #dd1144;&quot;&gt;&lt;span class=&quot;hljs-variable&quot; style=&quot;box-sizing: inherit; color: teal;&quot;&gt;) &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #dd1144;&quot;&gt;main&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;## Install Docker&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;## update repositories to get the latest packages available to install&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;apt-get &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; font-weight: bold; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;update&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;## Installing Docker enginer&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;apt-get -y &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; font-weight: bold; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;install&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt; docker-&lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; font-weight: bold; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;engine&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;## Verify docker is installed correctly&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;docker &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #333333; font-size: 13px; font-weight: bold; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt;run&lt;/span&gt;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-size: 13px; letter-spacing: 0.32px; white-space: pre-wrap;&quot;&gt; hello-world&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;It&#39;s output should be like&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;docker run hello-world&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Unable to find image &#39;hello-world:latest&#39; locally&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;latest: Pulling from library/hello-world&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;78445dd45222: Pull complete&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Digest: sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Status: Downloaded newer image for hello-world:latest&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Hello from Docker!&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;This message shows that your installation appears to be working correctly.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;To generate this message, Docker took the following steps:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp;1. The Docker client contacted the Docker daemon.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp;2. The Docker daemon pulled the &quot;hello-world&quot; image from the Docker Hub.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp;3. The Docker daemon created a new container from that image which runs the&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; executable that produces the output you are currently reading.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp;4. The Docker daemon streamed that output to the Docker client, which sent it&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; to your terminal.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;To try something more ambitious, you can run an Ubuntu container with:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp;$ docker run -it ubuntu bash&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Share images, automate workflows, and more with a free Docker ID:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp;https://cloud.docker.com/&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;For more examples and ideas, visit:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp;https://docs.docker.com/engine/userguide/&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;Yay!! You are ready to go with Docker containerization :-)&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/5416304605386291981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2017/02/docker-installation-on-ubuntu-1604.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/5416304605386291981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/5416304605386291981'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2017/02/docker-installation-on-ubuntu-1604.html' title='Docker Installation On Ubuntu 16.04'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-5378721303764120769</id><published>2014-11-05T05:44:00.002-08:00</published><updated>2014-12-20T14:40:50.205-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIX"/><category scheme="http://www.blogger.com/atom/ns#" term="perl install"/><category scheme="http://www.blogger.com/atom/ns#" term="source code"/><title type='text'>How to install Perl modules on AIX Server?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 115%;&quot;&gt;How to install Perl
modules on AIX Server?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Download perl module from &lt;a href=&quot;http://search.cpan.org/&quot;&gt;http://search.cpan.org&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Execute following commands to install module&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;gunzip –d package-module.tar.gz&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;tar xvf package-module.tar&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;cd package-module&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;perl Makefile.PL&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
If &lt;b&gt;perl &lt;/b&gt;is installed
on different location i.e.; &lt;b&gt;/home/user/perl&lt;/b&gt;.
Then follow below command&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;/home/user/perl/bin/perl
Makefile.PL&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;make&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;make test&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;make install&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Check installed &lt;b&gt;perl
module&lt;/b&gt; version&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;/home/user/perl/bin/perl
–Mpackage::name –le ‘print $package::name::version’&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
For example, for &lt;b&gt;EMail-Simple&lt;/b&gt;
module&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;FR&quot; style=&quot;font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;/home/user/perl/bin/perl
-MEmail:&lt;span id=&quot;oc_preserve&quot;&gt;:S&lt;/span&gt;imple -le &#39;print $Email:&lt;span id=&quot;oc_preserve&quot;&gt;:S&lt;/span&gt;imple::VERSION&#39;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;FR&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/5378721303764120769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/11/how-to-install-perl-modules-on-aix.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/5378721303764120769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/5378721303764120769'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/11/how-to-install-perl-modules-on-aix.html' title='How to install Perl modules on AIX Server?'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-5379731053257024328</id><published>2014-11-05T04:47:00.002-08:00</published><updated>2014-11-05T04:47:49.221-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIX"/><category scheme="http://www.blogger.com/atom/ns#" term="Install java"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="java7"/><title type='text'>How to install IBM Java 7?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you want to run Java programs, then you should install JRE&lt;br /&gt;
If you want to develop Java programs, then you should install Java SDK (previously called as JDK). SDK also contains JRE&lt;br /&gt;
&lt;br /&gt;
So, if someone ask you to install Java then install Java SDK&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;How to install Java 7 on AIX 7?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
1st check what version of Java is compatible with AIX OS version&lt;br /&gt;
&lt;br /&gt;
Refer :&amp;nbsp;http://www.ibm.com/developerworks/java/jdk/aix/service.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;oslevel&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;### check AIX OS version&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;bootinfo -K&lt;/b&gt; &amp;nbsp; &amp;nbsp; ### AIX OS architecture 32bit or 64bit&lt;br /&gt;
&lt;br /&gt;
Lets say it&#39;s 64bit, so we want to install 64bit java version&lt;br /&gt;
&lt;br /&gt;
We must be registered with IBM with some login name and password to download Java SDK software&lt;br /&gt;
&lt;br /&gt;
Once downloaded perform following steps to install:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Download Java and save in /tmp/ directory&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;mkdir /tmp/java7_64&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;cp /tmp/Java7r1_64.sdk.tar.gz /tmp/java7_64&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;cd /tmp/java7_64&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;gunzip -d Java7r1_64.sdk.tar.gz&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;tar xvf Java7r1_64.sdk.tar&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;inutoc .&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;smitty installp&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Select &quot;&lt;b&gt;Install Software&lt;/b&gt;&quot;&lt;br /&gt;
&lt;br /&gt;
INPUT device / directory for software &lt;b&gt;[./]&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;### Directory where java installer available&lt;br /&gt;
SOFTWARE to install &lt;b&gt;[_all_latest]&lt;/b&gt;&lt;br /&gt;
PREVIEW only? (install operation will NOT occur) &lt;b&gt;no&lt;/b&gt;&lt;br /&gt;
COMMIT software updates? &lt;b&gt;yes&lt;/b&gt;&lt;br /&gt;
SAVE replaced files? &lt;b&gt;no&lt;/b&gt;&lt;br /&gt;
AUTOMATICALLY install requisite software? &lt;b&gt;yes&lt;/b&gt;&lt;br /&gt;
EXTEND file systems if space needed? &lt;b&gt;yes&lt;/b&gt;&lt;br /&gt;
OVERWRITE same or newer versions? &lt;b&gt;no&lt;/b&gt;&lt;br /&gt;
VERIFY install and check file sizes? &lt;b&gt;no&lt;/b&gt;&lt;br /&gt;
Include corresponding LANGUAGE filesets? &lt;b&gt;yes&lt;/b&gt;&lt;br /&gt;
DETAILED output? &lt;b&gt;no&lt;/b&gt;&lt;br /&gt;
Process multiple volumes? &lt;b&gt;yes&lt;/b&gt;&lt;br /&gt;
ACCEPT new license agreements? &lt;b&gt;yes&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ### Use Tab to change No to Yes&lt;br /&gt;
&lt;br /&gt;
Press enter to install&lt;br /&gt;
&lt;br /&gt;
That&#39;s it!!&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/5379731053257024328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/11/how-to-install-ibm-java-7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/5379731053257024328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/5379731053257024328'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/11/how-to-install-ibm-java-7.html' title='How to install IBM Java 7?'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-6268724770455309515</id><published>2014-10-28T09:48:00.001-07:00</published><updated>2014-10-28T09:48:21.664-07:00</updated><title type='text'>CentOS / RHEL 6 - Setup SELinux to work with Apache</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
By default SeLinux is enabled and it will mark some labeling on each and every &lt;b&gt;file and ports&lt;/b&gt; on OS based on Service.&lt;br /&gt;
&lt;br /&gt;
SeLinux work on following parameters:&lt;br /&gt;
&lt;br /&gt;
1) Context&lt;br /&gt;
2) Boolean&lt;br /&gt;
&lt;br /&gt;
1) Context, we can say label. Commands chcon and &lt;b&gt;semanage&lt;/b&gt;&lt;br /&gt;
2) Boolean, SeLinux having properties for each service like need to enable read or write access to directory, enable http with ftp or not etc.. Commands &lt;b&gt;semanage, getseboolean, setseboolean&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In our case we are going to setup SeLinux to work with Apache&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;u&gt;Context&lt;/u&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;b&gt;&lt;u&gt;Port Settings&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
As per SeLinux, services can work on only assigned specific ports like&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;semanage port -l|grep -i mysql&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
mysqld_port_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tcp &amp;nbsp; &amp;nbsp; &amp;nbsp;1186, 3306, 63132-63164&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;semanage port -l|grep -i http_port_t&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
http_port_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tcp &amp;nbsp; &amp;nbsp; &amp;nbsp;80, 81, 443, 488, 8008, 8009, 8443, 9000&lt;br /&gt;
&lt;br /&gt;
So, port given in above output, by default allowed for mysql and apache services&lt;br /&gt;
&lt;br /&gt;
Lets, take an example and change following line in /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
Listen *:2222&lt;br /&gt;
&lt;br /&gt;
Save and restart httpd service&lt;br /&gt;
&lt;br /&gt;
While httpd restart, this will show following:&lt;br /&gt;
&lt;br /&gt;
service httpd restart&lt;br /&gt;
Stopping httpd: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[FAILED]&lt;br /&gt;
Starting httpd: httpd: Could not reliably determine the server&#39;s fully qualified domain name, using 192.168.56.103 for ServerName&lt;br /&gt;
(13)Permission denied: make_sock: could not bind to address [::]:2222&lt;br /&gt;
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:2222&lt;br /&gt;
no listening sockets available, shutting down&lt;br /&gt;
Unable to open logs&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[FAILED]&lt;br /&gt;
&lt;br /&gt;
It&#39;s showing &lt;b&gt;Permission denied: make_sock, &lt;/b&gt;that means SeLinux not allowing to create sock on &lt;b&gt;2222 port&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
As we want run Apache / httpd on 2222 port, execute following command to enable 2222 port for httpd service&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;semanage port -a -t http_port_t -p tcp 2222&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;semanage port -l|grep -i http_port_t&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
http_port_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tcp &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;2222&lt;/b&gt;, 80, 81, 443, 488, 8008, 8009, 8443, 9000&lt;br /&gt;
&lt;br /&gt;
Now &lt;b&gt;2222&lt;/b&gt; port has been assigned to &lt;b&gt;http_port&lt;/b&gt; i.e.; http/apache service&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Start http/apache service&lt;/b&gt;, you should not get any error this time&lt;br /&gt;
&lt;br /&gt;
service httpd start&lt;br /&gt;
Starting httpd: httpd: Could not reliably determine the server&#39;s fully qualified domain name, using 192.168.56.103 for ServerName&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ &amp;nbsp;OK &amp;nbsp;]&lt;br /&gt;
&lt;br /&gt;
netstat -antp|grep http&lt;br /&gt;
tcp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp;0 :::&lt;b&gt;2222&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :::* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LISTEN &amp;nbsp; &amp;nbsp; &amp;nbsp;1403/httpd&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;File/Folder Labeling&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
SeLinux keep labeling on each and every file which is as per service&lt;br /&gt;
&lt;br /&gt;
ls -ldZ /var/www/&lt;br /&gt;
&lt;br /&gt;
drwxr-xr-x. root root system_u:object_r:&lt;b&gt;httpd_sys_content_t&lt;/b&gt;:s0 /var/www/&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ls -ldZ /var/www/html/&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
drwxr-xr-x. root root system_u:object_r:&lt;b&gt;httpd_sys_content_t&lt;/b&gt;:s0 /var/www/html/&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ls -ldZ /etc/httpd/&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
drwxr-xr-x. root root system_u:object_r:&lt;b&gt;httpd_config_t&lt;/b&gt;:s0 /etc/httpd/&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ls -ldZ /etc/httpd/conf&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
drwxr-xr-x. root root system_u:object_r:&lt;b&gt;httpd_config_t&lt;/b&gt;:s0 /etc/httpd/conf&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ls -lZ /usr/sbin/httpd&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
-rwxr-xr-x. root root system_u:object_r:&lt;b&gt;httpd_exec_t&lt;/b&gt;:s0 /usr/sbin/httpd&lt;br /&gt;
&lt;br /&gt;
Here (starting with http means its Domain for only httpd service):&lt;br /&gt;
&lt;br /&gt;
httpd_config_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# http configuration&lt;br /&gt;
httpd_sys_content_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # http system content&lt;br /&gt;
httpd_exec_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# http executable&lt;br /&gt;
&lt;br /&gt;
So, each and every called by httpd/apache service should have proper label.&lt;br /&gt;
&lt;br /&gt;
Lets try to run &lt;b&gt;httpd&lt;/b&gt; with different &lt;b&gt;DocumentRoot&lt;/b&gt;&amp;nbsp;with im-proper labeling on files and folders&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;mkdir /data/www -p&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ls -ldZ /data/&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
drwxr-xr-x. root root unconfined_u:object_r:&lt;b&gt;default_t&lt;/b&gt;:s0 /data/&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ls -ldZ /data/www/&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
drwxr-xr-x. root root unconfined_u:object_r:&lt;b&gt;default_t&lt;/b&gt;:s0 /data/www/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
cat &amp;gt; /data/www/index.html&lt;br /&gt;
this is test&lt;br /&gt;
&lt;br /&gt;
ctrl+D&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ls -lZ /data/www/index.html&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
-rw-r--r--. root root unconfined_u:object_r:&lt;b&gt;default_t&lt;/b&gt;:s0 /data/www/index.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Restart httpd service and access through your web browser http://server-IP:2222&lt;br /&gt;
&lt;br /&gt;
You should get following error in web broweser:&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;
Forbidden&lt;/h1&gt;
You don&#39;t have permission to access / on this server.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
and following in apache/httpd service error logs:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;[Tue Oct 28 21:17:07 2014] [error] [client 192.168.56.1] (13)Permission denied: access to /index.html denied&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How to recover from above error:&lt;br /&gt;
&lt;br /&gt;
Change label of DocumentRoot i.e.; /data/www and its files&lt;br /&gt;
&lt;br /&gt;
As this is going to be http content directory, we should change label to httpd_sys_content_t&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;chcon -t httpd_sys_content_t /data -R&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
for permanent changes&lt;br /&gt;
&lt;br /&gt;
semanage fcontext -t httpd_sys_content_t /data&lt;br /&gt;
semanage fcontext -t httpd_sys_content_t /data/www&lt;br /&gt;
&lt;br /&gt;
Now you should be able to access server pages without any error&lt;br /&gt;
&lt;br /&gt;
Command to see running process context&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ps auxZ&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # will provide process context too&lt;br /&gt;
&lt;h2 style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;u&gt;Boolean&lt;/u&gt;&lt;/b&gt;&lt;/h2&gt;
Commands to get or set Boolean variables&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;getsebool&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;setsebool&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Some of the http/apache boolean variables&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;getsebool -a|grep http&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
httpd_enable_cgi --&amp;gt; on&lt;br /&gt;
httpd_enable_homedirs --&amp;gt; off&lt;br /&gt;
httpd_unified --&amp;gt; on&lt;br /&gt;
httpd_use_cifs --&amp;gt; off&lt;br /&gt;
httpd_use_fusefs --&amp;gt; off&lt;br /&gt;
httpd_use_gpg --&amp;gt; off&lt;br /&gt;
httpd_use_nfs --&amp;gt; off&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If you do not want to disable apache/http to serve cgi files&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;setsebool httpd_enable_cgi off&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Enable user&#39;s home directory to be used for data/pages serving for apache/http&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;setsebool httpd_enable_homedirs on&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Enable Apache/http to use CIFS/NFS directory to serve pages&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;setsebool httpd_use_cifs off&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;setsebool httpd_use_nfs off&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Other commands to use&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;u&gt;Disable SeLinux&lt;/u&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;setenforce 0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
modify /etc/sysconfig/selinux file and set&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;SELINUX=disabled&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Reboot machine&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Command to restore context&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
restorecon -Rv /data&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Create &lt;b&gt;/.autorelabel&lt;/b&gt; for allow OS to relabel complete system at next boot time&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/6268724770455309515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/10/centos-rhel-6-setup-selinux-to-work.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/6268724770455309515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/6268724770455309515'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/10/centos-rhel-6-setup-selinux-to-work.html' title='CentOS / RHEL 6 - Setup SELinux to work with Apache'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-6383883791400469458</id><published>2014-10-01T03:57:00.000-07:00</published><updated>2014-10-01T03:57:54.872-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ntp"/><category scheme="http://www.blogger.com/atom/ns#" term="ntp update"/><category scheme="http://www.blogger.com/atom/ns#" term="ntpdate"/><category scheme="http://www.blogger.com/atom/ns#" term="synchronization"/><category scheme="http://www.blogger.com/atom/ns#" term="time"/><category scheme="http://www.blogger.com/atom/ns#" term="time sync"/><title type='text'>How to Install and Configure NTP Server and Client in RHEL/CentOS6?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;NTP Server&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
1) Install NTP package using yum&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;yum -y install ntp&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
2) Setup Restrict Values&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;vim /etc/ntp.conf &lt;/b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Add below given lines&lt;br /&gt;
&lt;br /&gt;
# Permit time synchronization with our time source, but do not # permit the source to query or modify the service on this system.&lt;div&gt;
&lt;b&gt;restrict default kod nomodify notrap nopeer noquery&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;restrict -6 default kod nomodify notrap nopeer noquery&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21.9939994812012px; list-style: square; margin: 0px 0px 1.571em 1.571em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;noquery prevents dumping status data from ntpd.&lt;/li&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;notrap prevents control message trap service.&lt;/li&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;nomodify prevents all ntpq queries that attempts to modify the server.&lt;/li&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;nopeer prevents all packets that attempts to establish a peer association.&lt;/li&gt;
&lt;li style=&quot;margin: 0px; padding: 0px;&quot;&gt;Kod – Kiss-o-death packet is to be sent to reduce unwanted queries&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21.9939994812012px;&quot;&gt;The value -6 in the second line allows forces the DNS resolution to the IPV6 address resolution. For more information on the access parameters list, Please refer to documentation on “man ntp_acc”&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21.9939994812012px;&quot;&gt;The value -6 in the second line allows forces the DNS resolution to the IPV6 address resolution.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21.9939994812012px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21.9939994812012px;&quot;&gt;3) Allow network / IP range for synchronizing time from this server&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap&lt;br /&gt;restrict 127.0.0.1&lt;/b&gt;&lt;div&gt;
&lt;br /&gt;&lt;div&gt;
4) Add local clock as backup&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
In case NTP server disconnected from internet, NTP server will provide time from its local system clock&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;server 127.127.1.0 # local clock&lt;/b&gt;&lt;div&gt;
&lt;b&gt;fudge 127.127.1.0 stratum 10&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
5) Specify log files&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;driftfile /var/lib/ntp/ntp.drift&lt;/b&gt;&lt;div&gt;
&lt;b&gt;logfile /var/log/ntp.log&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
6) Finally start NTP server&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;service ntpd start&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;NTP Client&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1) Modify /etc/ntp.conf configuration file,&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Sample entries, for internet servers :&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;server 0.centos.pool.ntp.org iburst&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;server 1.centos.pool.ntp.org iburst&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;server 2.centos.pool.ntp.org iburst&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;server 3.centos.pool.ntp.org iburst&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;iburst&lt;/b&gt;: After every poll, a burst of eight packets is sent instead of one. When the server is not responding, packets are sent 16s interval. When the server responds, packets are sent every 2s.&lt;br /&gt;&lt;br /&gt;Edit your NTP.conf to reflect appropriate entries for your own NTP server.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;server 10.0.0.1 prefer&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21.9939994812012px;&quot;&gt;&lt;b&gt;prefer&lt;/b&gt;: If this option is specified that server is preferred over other servers.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21.9939994812012px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21.9939994812012px;&quot;&gt;2) Start NTP service&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21.9939994812012px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21.9939994812012px;&quot;&gt;&lt;b&gt;service ntpd start&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21.9939994812012px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #111111; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px; line-height: 21.9939994812012px;&quot;&gt;3) Finally check NTP status&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #111111; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px; line-height: 21.9939994812012px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #111111; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px; line-height: 21.9939994812012px;&quot;&gt;&lt;b&gt;ntpq -p&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #111111; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px; line-height: 21.9939994812012px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
4) Set date and time synchronized with desired server&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;ntpdate -u SERVER-NAME&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
5) Get the current status of &amp;nbsp;ntpd:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;ntpdc -c sysinfo&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
system peer: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;web10.hnshosting.com&lt;/div&gt;
&lt;div&gt;
system peer mode: &amp;nbsp; &amp;nbsp; client&lt;/div&gt;
&lt;div&gt;
leap indicator: &amp;nbsp; &amp;nbsp; &amp;nbsp; 00&lt;/div&gt;
&lt;div&gt;
stratum: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/div&gt;
&lt;div&gt;
precision: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-24&lt;/div&gt;
&lt;div&gt;
root distance: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.20857 s&lt;/div&gt;
&lt;div&gt;
root dispersion: &amp;nbsp; &amp;nbsp; &amp;nbsp;0.27481 s&lt;/div&gt;
&lt;div&gt;
reference ID: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [120.88.46.10]&lt;/div&gt;
&lt;div&gt;
reference time: &amp;nbsp; &amp;nbsp; &amp;nbsp; d7d65c1f.14c6b054 &amp;nbsp;Wed, Oct &amp;nbsp;1 2014 16:25:27.081&lt;/div&gt;
&lt;div&gt;
system flags: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; auth monitor ntp kernel stats&lt;/div&gt;
&lt;div&gt;
jitter: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.014099 s&lt;/div&gt;
&lt;div&gt;
stability: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.000 ppm&lt;/div&gt;
&lt;div&gt;
broadcastdelay: &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.000000 s&lt;/div&gt;
&lt;div&gt;
authdelay: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.000000 s&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/6383883791400469458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/10/how-to-install-and-configure-ntp-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/6383883791400469458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/6383883791400469458'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/10/how-to-install-and-configure-ntp-server.html' title='How to Install and Configure NTP Server and Client in RHEL/CentOS6?'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-4602029572545887254</id><published>2014-09-28T11:16:00.002-07:00</published><updated>2014-10-05T00:08:35.917-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iscsi initiator"/><category scheme="http://www.blogger.com/atom/ns#" term="iscsi target"/><category scheme="http://www.blogger.com/atom/ns#" term="LUN"/><title type='text'>RHEL / CentOS 6 - How to setup iscsi target and initiator ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif; font-size: x-large;&quot;&gt;&lt;u&gt;How to setup ISCSI Target?&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Server Side&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;1) Install scsi-target-utils using yum&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;yum -y install scsi-target-utils&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;2) Edit iSCSI target configuration&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;vim /etc/tgt/targets.conf&lt;/span&gt;&lt;br /&gt;
&lt;target b=&quot;&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/target&gt;
&lt;target b=&quot;&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;target iqn.2014-09.net.node1:server.target01=&quot;&quot;&gt;&lt;/target&gt;&lt;/span&gt;&lt;/target&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgaS65Beaxftj9SqkmhIgsurpvN0AoX4_msmqMCdYDK924t9lukkzVwLrm60gf7JZyxDcgcVZ7FlDBAwoX9Gz7CaMzd5Pz-beYKs9qa-HvwTFX3ydr5Ct1NbkiGK7p1eoiyMlzhNYo-Gs/s1600/iscsi_target.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgaS65Beaxftj9SqkmhIgsurpvN0AoX4_msmqMCdYDK924t9lukkzVwLrm60gf7JZyxDcgcVZ7FlDBAwoX9Gz7CaMzd5Pz-beYKs9qa-HvwTFX3ydr5Ct1NbkiGK7p1eoiyMlzhNYo-Gs/s1600/iscsi_target.jpg&quot; height=&quot;81&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;b&gt;initiator-address 192.168.56.102 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;##Initiator IP/Name&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;b&gt;incominguser myuser redhat &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;##Username = myuser and password = redhat&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&quot;&lt;/span&gt;&lt;b style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;iqn.2014-09.net.node1:server.target01&quot; ##C&lt;/b&gt;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;an be anything&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;b style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif; line-height: 16px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;b style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif; line-height: 16px;&quot;&gt;There are 2 types of storage devices:&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif; line-height: 16px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif; line-height: 16px;&quot;&gt;backing-store&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif; line-height: 16px;&quot;&gt; - defines a virtual device on the target.&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;border: 0px; color: #333333; line-height: 16px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;
&lt;b&gt;direct-store&lt;/b&gt;  - defines a direct mapped device with the same properties as the physical device (such as VENDOR_ID, SERIAL_NUM, etc.)&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;3) Start iSCSI target and on boot&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;service tgtd start&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Start on boot&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;chkconfig tgtd on&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;4) Enable 3260 port at firewall&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;5) Check iSCSI target configuration&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;tgtadm --mode target --op show&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;6) Check if everything works as expected&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;tgt-admin -s&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif; font-size: x-large;&quot;&gt;&lt;u&gt;How to setup iSCSI initiator?&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Client Side&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;1) Install iscsi-initiator-utils using yum&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;yum -y install iscsi-initiator-utils&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;2) Edit initiator configuration file&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;vim /etc/iscsi/initiatorname.iscsi&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;InitiatorName=&lt;b&gt;iqn.2014-09.net.node1&lt;/b&gt;:san.initiator01&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;InitiatorAlias=node2&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;3) Edit iscsi client configuration /etc/iscsi/iscsid.conf&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;node.session.auth.authmethod = CHAP&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;node.session.auth.username = manoj&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;node.session.auth.password = redhat&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;4) Start iscsi client service&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;service iscsid start&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;5) Start iscsi client on boot&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;chkconfig iscsid on&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;6) Discovering targets in our iSCSI server&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;iscsiadm -m discovery -t st --portal Target-server-IP&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;7) Login with iSCSI LUN&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;iscsiadm -m node --targetname&amp;nbsp;&lt;b&gt;iqn.2014-09.net.node1:server.target01 &lt;/b&gt;--portal Target-Server-IP --login&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;8) Checking session status with the target&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;iscsiadm --mode session --op show&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Thats it!!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Please do not forget to update with your feedback :-)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/4602029572545887254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/09/rhel-centos-6-how-to-setup-iscsi-target.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/4602029572545887254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/4602029572545887254'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/09/rhel-centos-6-how-to-setup-iscsi-target.html' title='RHEL / CentOS 6 - How to setup iscsi target and initiator ?'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgaS65Beaxftj9SqkmhIgsurpvN0AoX4_msmqMCdYDK924t9lukkzVwLrm60gf7JZyxDcgcVZ7FlDBAwoX9Gz7CaMzd5Pz-beYKs9qa-HvwTFX3ydr5Ct1NbkiGK7p1eoiyMlzhNYo-Gs/s72-c/iscsi_target.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-6607810567629608795</id><published>2014-09-26T06:13:00.003-07:00</published><updated>2014-10-11T23:36:41.555-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="encryption disk centos rhel 6"/><title type='text'>Encrypting Disks With LUKS (RHEL 6 / CentOS 6)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
LUKs a concept used to encrypt disks for securing data. Partitions will not be accessible without decrypting that device with an defined PASSPHRASE&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;u&gt;How to setup encrypted disks with LUKs?&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
1) Install LUKs utilities&lt;br /&gt;
&lt;br /&gt;
yum -y install crypt*&lt;br /&gt;
&lt;br /&gt;
2) Load dm_crypt module&lt;br /&gt;
&lt;br /&gt;
modprobe dm_crypt&lt;br /&gt;
&lt;br /&gt;
3) Add dm_crypt in system, so that after reboot this should be loaded&lt;br /&gt;
&lt;br /&gt;
cat &amp;gt; /etc/sysconfig/modules/dm_crypt.modules&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
modprobe dm_crypt&lt;br /&gt;
&lt;br /&gt;
save and exit with &amp;nbsp;CTRL+D&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;chmod 755 /etc/sysconfig/modules/dm_crypt.modules&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: &lt;b&gt;dm_crypt.modules script created to loaod module&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4) Lets say /dev/sdb is the disk to encrypt, First Create setup and format /dev/sdb with following command:&lt;br /&gt;
&lt;br /&gt;
cryptsetup luksFormat /dev/sdb&lt;br /&gt;
&lt;br /&gt;
This will ask for passphrase which will be used to decrypt/open this disk before using this disk&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;To mount or use /dev/sdb disk follow below given steps as &lt;span style=&quot;font-size: large;&quot;&gt;at this point /dev/sdb will not be available to mount&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
5) Open LUKs disk/device by mapping/assigning an name, this will create and file/mapping in &lt;b&gt;/dev/mapper&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
cryptsetup luksOpen /dev/sdb &lt;b&gt;myluksdev_map&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
This will ask for passphrase to decrypt disk. Enter passphrase set in &lt;b&gt;step number 4&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
NOTE : &lt;b&gt;myluksdev_map given name can be anything as per your desire&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
6) As above command has opened/decrypted disk, now we can format with ext4&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;mkfs.ext4 /dev/mapper/myluksdev_map&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
7) Create an folder and mount /dev/sdb&lt;br /&gt;
&lt;br /&gt;
mkdir /mnt/my_secret_dir&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;mount /dev/mapper/myluksdev_map /mnt/my_secret_dir&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
[Above &lt;b&gt;/dev/mapper/myluksdev_map&lt;/b&gt; is name which is given at the time of opening/decrypting /dev/sdb device]&lt;br /&gt;
&lt;br /&gt;
8) If we want to close encryption, have to follow given steps&lt;br /&gt;
&lt;br /&gt;
umount /mnt/my_secret_dir&lt;br /&gt;
cryptsetup luksClose myluksdev_map&lt;br /&gt;
&lt;br /&gt;
8) To make partition persistent or permanent after reboot we should add &lt;b&gt;MOUNT entry in /etc/fstab but for mounting encrypted&lt;/b&gt; file system, &lt;b&gt;we should decrypt disk/device&lt;/b&gt;. So, we should follow given steps to mount disks at the time of boot&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; a) Create a file /etc/crypttab&lt;br /&gt;
&amp;nbsp; &amp;nbsp; b) Update with given content&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MAPname &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Device/path &amp;nbsp; &amp;nbsp; ------------------- example&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; In our case MAPname = myluksdev_map , Device Path = /dev/sdb&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; c) Content should be&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cat /etc/crypttab&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myluksdev_map &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/sdb&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;d) Now update /etc/fstab file with below content&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/dev/mapper/myluksdev_map &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/mnt/my_secret_dir &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ext4 &amp;nbsp; &amp;nbsp; &amp;nbsp;defaults &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now reboot your server, this will ask for PASSPHRASE while mounting device /dev/mapper/myluksdev_map&lt;br /&gt;
&lt;br /&gt;
To automatically unlock passphrase or avoiding asking password use below given steps:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; a) Create an file, lets say /root/cpasswd which will store password&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;echo -n &quot;password&quot; &amp;gt; /root/cpasswd&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;chmod 600 /root/cpasswd &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;b) Now update /etc/crypttab like this&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MAPNAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /DEVICE/PATH &amp;nbsp; &amp;nbsp; &amp;nbsp;/PASSWORD/FILE&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;So, in our case this should be&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myluksdev_map &amp;nbsp; &amp;nbsp; /dev/sdb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /root/cpasswd&lt;br /&gt;
&lt;br /&gt;
Now try rebooting your server, this should not ask for password.&lt;br /&gt;
&lt;br /&gt;
Thats it!!!&lt;br /&gt;
&lt;br /&gt;
Please comment with your feedback :-)&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/6607810567629608795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/09/encrypting-disks-with-luks-rhel-6.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/6607810567629608795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/6607810567629608795'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/09/encrypting-disks-with-luks-rhel-6.html' title='Encrypting Disks With LUKS (RHEL 6 / CentOS 6)'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-3966270466041799719</id><published>2014-09-19T00:22:00.001-07:00</published><updated>2014-09-29T10:23:22.647-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="crash kernel"/><category scheme="http://www.blogger.com/atom/ns#" term="kdump"/><category scheme="http://www.blogger.com/atom/ns#" term="kdump error"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Troubleshooting Kdump error &quot;Memory for crashkernel is not reserved&quot;</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In case getting following error while starting &lt;b&gt;kdump&lt;/b&gt; service&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: repeat white; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); border-style: solid; border-width: 1px 1px 1px 2px; color: #333333; font-family: &#39;Liberation Sans&#39;, &#39;Luxi Sans&#39;, &#39;Trebuchet MS&#39;, &#39;Bitstream Vera Sans&#39;, helvetica, verdana, arial, sans-serif; font-size: 13px; line-height: 18.2000007629395px; margin: 10px 20px; overflow-x: auto; padding: 10px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: transparent; border: 0px; font-size: 11px; margin: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;b&gt;Memory for crashkernel is not reserved
Please reserve memory by passing &quot;crashkernel=X@Y&quot; parameter to the kernel&lt;/b&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
If your server is having more than&amp;nbsp;&lt;b&gt;4GB&lt;/b&gt;&amp;nbsp;of RAM then&amp;nbsp;&lt;b&gt;crashkernel=auto&lt;/b&gt;&amp;nbsp;(in /etc/grub.conf line starting with &lt;b&gt;kernel&lt;/b&gt;)will automatically Reserve memory else need to specify in following format:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
crashkernel=0M-2G:128M,2G-6G:256M&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKLpaAg2wLDlWOHd-zb6xr5NN58SB2QlZ3QL7mnNrQBJtJByAFcM5CrFHzv2CDyRXxk79t3xnIfSV0L6lkR6r49wG-y2zWq6UtLV3vj18pAJl-IxDFbpPqccm4Dv0SA9ST-9dYqCvCoLg/s1600/crashkerne_img.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKLpaAg2wLDlWOHd-zb6xr5NN58SB2QlZ3QL7mnNrQBJtJByAFcM5CrFHzv2CDyRXxk79t3xnIfSV0L6lkR6r49wG-y2zWq6UtLV3vj18pAJl-IxDFbpPqccm4Dv0SA9ST-9dYqCvCoLg/s1600/crashkerne_img.jpg&quot; height=&quot;53&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
If physical memory is 0MB to 2GB then 128MB of memory will be reserved&lt;br /&gt;
If physical memory is 2MB to 6GB then 256MB of memory will be reserved&lt;br /&gt;
&lt;br /&gt;
Now&amp;nbsp;&lt;b&gt;REBOOT&lt;/b&gt;&amp;nbsp;server for kdump changes to take effect (1st time after kdump installed, a new &lt;b&gt;INITRD&lt;/b&gt; will be generated)&lt;br /&gt;
&lt;br /&gt;
Thats it!!!&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/3966270466041799719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/09/troubleshooting-kdump-error-memory-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/3966270466041799719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/3966270466041799719'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/09/troubleshooting-kdump-error-memory-for.html' title='Troubleshooting Kdump error &quot;Memory for crashkernel is not reserved&quot;'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKLpaAg2wLDlWOHd-zb6xr5NN58SB2QlZ3QL7mnNrQBJtJByAFcM5CrFHzv2CDyRXxk79t3xnIfSV0L6lkR6r49wG-y2zWq6UtLV3vj18pAJl-IxDFbpPqccm4Dv0SA9ST-9dYqCvCoLg/s72-c/crashkerne_img.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-1898024291069777015</id><published>2014-09-19T00:12:00.000-07:00</published><updated>2014-09-29T10:23:36.791-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="configure kdump"/><category scheme="http://www.blogger.com/atom/ns#" term="install kdump"/><category scheme="http://www.blogger.com/atom/ns#" term="kdump"/><title type='text'>How To setup Kdump on Linux (Redhat/CentOS 6)?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1) Install kdump package using YUM&lt;br /&gt;
&lt;br /&gt;
yum -y install kexec-tools&lt;br /&gt;
&lt;br /&gt;
2) Once installed, check /etc/init.d/kdump file/service should be available&lt;br /&gt;
&lt;br /&gt;
ls -l /etc/init.d/kdump&lt;br /&gt;
&lt;br /&gt;
3) Enable kdump at boot&lt;br /&gt;
&lt;br /&gt;
chkconfig kdump on&lt;br /&gt;
&lt;br /&gt;
4) Reboot server for kdump to take effect (new &lt;b&gt;initrd&lt;/b&gt;&amp;nbsp;will be generated)&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
5) Once rebooted kdump status should be Operational&lt;br /&gt;
&lt;br /&gt;
service kdump status&lt;br /&gt;
&lt;br /&gt;
if it&#39;s not Operational check error with&lt;br /&gt;
&lt;br /&gt;
service kdump restart/start&lt;br /&gt;
&lt;br /&gt;
If error is &quot;&lt;b style=&quot;color: #333333; font-family: &#39;Liberation Sans&#39;, &#39;Luxi Sans&#39;, &#39;Trebuchet MS&#39;, &#39;Bitstream Vera Sans&#39;, helvetica, verdana, arial, sans-serif; font-size: 11px; line-height: 18.2000007629395px;&quot;&gt;Memory for crashkernel is not reserved&quot;&amp;nbsp;&lt;/b&gt;follow given link&lt;br /&gt;
&lt;br /&gt;
http://linuxtroubleshoot.blogspot.in/2014/09/troubleshooting-kdump-error-memory-for.html&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/1898024291069777015/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/09/how-to-install-and-configure-kdump-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/1898024291069777015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/1898024291069777015'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/09/how-to-install-and-configure-kdump-on.html' title='How To setup Kdump on Linux (Redhat/CentOS 6)?'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-4345085907201945564</id><published>2014-03-19T03:04:00.002-07:00</published><updated>2014-03-19T03:04:56.737-07:00</updated><title type='text'>How to set QLogic HBA Adapter Speed?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=7440590691056881811&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=7440590691056881811&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=7440590691056881811&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=7440590691056881811&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=7440590691056881811&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=7440590691056881811&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=7440590691056881811&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=7440590691056881811&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;u&gt;&lt;b&gt;Here we are going to discuss steps which needs to follow for QLogic HBA Adapter&lt;/b&gt;&lt;/u&gt;&lt;/span&gt; &lt;/div&gt;
&lt;br /&gt;
Reboot the server and go to Qlogic HBA BIOS by entering ctrl + Q when it appears on the screen.&lt;br /&gt;
&lt;br /&gt;
1) Ctrl + Q&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2) HBA BIOS, select the HBA port and press enter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) Select &quot;Configuration Settings&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4) Select &quot;Data Rate&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5) Finally Select Speed as per requirement&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thats it!!&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/4345085907201945564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/03/how-to-set-qlogic-hba-adapter-speed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/4345085907201945564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/4345085907201945564'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2014/03/how-to-set-qlogic-hba-adapter-speed.html' title='How to set QLogic HBA Adapter Speed?'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-2720024787585705743</id><published>2013-12-30T13:24:00.002-08:00</published><updated>2013-12-30T13:25:18.722-08:00</updated><title type='text'>Linux login issue - Can not login: Resource temporarily not available</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Sometime we get following error while user login:&lt;br /&gt;
&lt;br /&gt;
$su - username&lt;br /&gt;
Coud not login: Resource temporarily not available&lt;br /&gt;
&lt;br /&gt;
Most of the times this is because of processes or number of files available to user is already used. So, could not arrange more files/processes to login, in this case we required to increase the limits for user in /etc/security/limits.conf (PAM module)&lt;br /&gt;
&lt;br /&gt;
username &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; soft&amp;nbsp;&amp;nbsp;&amp;nbsp; nproc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3000&lt;br /&gt;
username &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hard&amp;nbsp;&amp;nbsp;&amp;nbsp; nproc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096&lt;br /&gt;
username &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; soft&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nofile &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6000&lt;br /&gt;
username &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hard&amp;nbsp;&amp;nbsp;&amp;nbsp; nofile &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8192&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Set these values as per requirement else setting up these values higher may result in server inaccessible in case that particular uses all file descriptors, process and higher memory of server.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/2720024787585705743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2013/12/linux-login-issue-can-not-login.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/2720024787585705743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/2720024787585705743'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2013/12/linux-login-issue-can-not-login.html' title='Linux login issue - Can not login: Resource temporarily not available'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-1186086548957532995</id><published>2013-12-02T03:41:00.000-08:00</published><updated>2013-12-02T03:41:24.881-08:00</updated><title type='text'>Linux Resize LUN Without Reboot</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Try running following command&lt;span style=&quot;font-size: small;&quot;&gt;s&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Check &lt;span style=&quot;font-size: small;&quot;&gt;OS&lt;/span&gt; using what devices for attached LUNs:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;multipath -l&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote style=&quot;border: medium none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;&quot;&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;mpath&lt;span style=&quot;font-size: small;&quot;&gt;5&lt;/span&gt;&lt;/b&gt; (360060.......................) dm-15 &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;[size=100G][features=1 queue_if_no_path][hwhandler=1 emc][rw]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;\_ round-robin 0 [prio=0][active]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;\_ 1:0:0:14 &lt;b&gt;sdb&lt;/b&gt; 66:192 [active][undef]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;\_ 0:0:0:14&lt;b&gt; sdc&lt;/b&gt;&amp;nbsp; 8:224 &amp;nbsp;[active][undef]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;\_ round-robin 0 [prio=0][enabled]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;\_ 0:0:1:14 &lt;b&gt;sdd&lt;/b&gt; 66:112 [active][undef]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;\_ 1:0:1:14 &lt;b&gt;sde&lt;/b&gt; 67:176 [active][undef]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Rescan all paths:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;blockquote style=&quot;border: medium none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;echo 1 &amp;gt; /sys/block/sdb/device/rescan&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;echo 1 &amp;gt; /sys/block/sdc/device/rescan&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;echo 1 &amp;gt; /sys/block/sdd/device/rescan&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;echo 1 &amp;gt; /sys/block/sde/device/rescan&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Then run:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;partprobe&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;multipathd -k&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;resize map &lt;b&gt;mpath&lt;span style=&quot;font-size: small;&quot;&gt;5&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;If LVM is used, also required&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;following:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;


&lt;blockquote&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;#pvscan&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Check Disk Changes detected under LVM:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;


&lt;blockquote&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;#pvs &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;#vgscan&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&amp;nbsp; &lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Ch&lt;/span&gt;eck VG Size is Increased:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;


&lt;blockquote&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;#vgs &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Now Extend the LV:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;


&lt;blockquote&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;#lvextend -L +&lt;size_to_be_increased&gt;G &lt;lv_name&gt;&lt;/lv_name&gt;&lt;/size_to_be_increased&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Finally Extend the File System&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;


&lt;blockquote&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;#resize2fs &lt;lv_name&gt;&lt;/lv_name&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Thats it!!!&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/1186086548957532995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2013/12/linux-resize-lun-without-reboot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/1186086548957532995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/1186086548957532995'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2013/12/linux-resize-lun-without-reboot.html' title='Linux Resize LUN Without Reboot'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-3866958864598557905</id><published>2013-02-08T07:46:00.001-08:00</published><updated>2013-02-12T04:59:52.971-08:00</updated><title type='text'>Redhat Linux : Rollback RPMs</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;strong&gt;&lt;u&gt;RPM Rollback for Redhat 5.x versions&lt;/u&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;br /&gt;
1) Create a file /etc/rpm/macros and put following &lt;br /&gt;
&lt;br /&gt;
cat &amp;gt;&amp;gt; /etc/rpm/macros&lt;br /&gt;
%_repackage_all_erasures 1&lt;br /&gt;
&lt;br /&gt;
2) Add following at the end of /etc/yum.conf&lt;br /&gt;
&lt;br /&gt;
echo &quot;tsflags=repackage&quot; &amp;gt;&amp;gt; /etc/yum.conf&lt;br /&gt;
&lt;br /&gt;
After above entries, we can rollback rpms installed using yum&lt;br /&gt;
&lt;br /&gt;
3) Now update system with single rpm or complete using&lt;br /&gt;
&lt;br /&gt;
yum update&lt;br /&gt;
&lt;br /&gt;
4) Lets say we had update rpms 1 hour, 2 month and 1 day ago and wants to remove all those then use following commands:&lt;br /&gt;
&lt;br /&gt;
rpm --rollback &quot;1 day ago&quot;&lt;br /&gt;
rpm --rollback &quot;1hour ago&quot;&lt;br /&gt;
rpm --rollback &quot;2&amp;nbsp;month ago&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Will be posting for Redhat 6.x version soon.......&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/3866958864598557905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2013/02/redhat-linux-rollback-rpms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/3866958864598557905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/3866958864598557905'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2013/02/redhat-linux-rollback-rpms.html' title='Redhat Linux : Rollback RPMs'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-6171983518726338806</id><published>2013-02-08T05:10:00.003-08:00</published><updated>2013-02-12T05:01:02.429-08:00</updated><title type='text'>Redhat Device Mapper Multipathing</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong&gt;&lt;u&gt;REDHAT DEVICE MAPPER MULTIPATH&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;data:image/jpeg;base64,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&quot; imageanchor=&quot;1&quot; style=&quot;height: 208px; margin-left: 1em; margin-right: 1em; width: 401px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; class=&quot;rg_hi uh_hi&quot; data-height=&quot;160&quot; data-width=&quot;314&quot; height=&quot;326&quot; id=&quot;rg_hi&quot; src=&quot;data:image/jpeg;base64,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&quot; style=&quot;height: 160px; width: 314px;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
1) DM Software Installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;yum install device-mapper-multipath &lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2) Initialize /etc/multipath.conf file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;mpathconf --enable&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) Start multipath service&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;service multipathd start&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4) If you do not want to use user friendly name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;mpathconf --enable --user_friendly_names n&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5) Ignoring Local Disks when generating Multipath devices&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;multipath -v2 (shows local disk, /dev/sda, in the multipath map)&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
create: &lt;strong&gt;SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1&lt;/strong&gt; undef WINSYS,SF2372 size=33 GB features=&quot;0&quot; hwhandler=&quot;0&quot; wp=undef `-+- policy=&#39;round-robin 0&#39; prio=1 status=undef &lt;br /&gt;
- 0:0:0:0 sda 8:0 [---------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
device-mapper ioctl cmd 9 failed: Invalid argument device-mapper ioctl cmd 14 failed: No such device or address&lt;br /&gt;
&lt;br /&gt;
create: 3600a0b80001327d80000006d43621677 undef WINSYS,SF2372 size=12G features=&#39;0&#39; hwhandler=&#39;0&#39; wp=undef `-+- policy=&#39;round-robin 0&#39; prio=1 status=undef &lt;br /&gt;
- 2:0:0:0 sdb 8:16 undef ready running `- 3:0:0:0 sdf 8:80 undef ready running &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
create: 3600a0b80001327510000009a436215ec undef WINSYS,SF2372 size=12G features=&#39;0&#39; hwhandler=&#39;0&#39; wp=undef `-+- policy=&#39;round-robin 0&#39; prio=1 status=undef &lt;br /&gt;
- 2:0:0:1 sdc 8:32 undef ready running `- 3:0:0:1 sdg 8:96 undef ready running &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to prevent the device mapper from mapping &lt;strong&gt;/dev/sda&lt;/strong&gt; in its multipath maps, edit blacklist section in &lt;strong&gt;/etc/multipath.conf&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;blacklist {&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;wwid SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6) After updating file reload the changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;service multipathd reload&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7) Run following command to remove multipath device&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;multipath -f SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8) Now check if device removed from multipath&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;multipath&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
create: 3600a0b80001327d80000006d43621677 undef WINSYS,SF2372 size=12G features=&#39;0&#39; hwhandler=&#39;0&#39; wp=undef `-+- policy=&#39;round-robin 0&#39; prio=1 status=undef &lt;br /&gt;
- 2:0:0:0 sdb 8:16 undef ready running `- 3:0:0:0 sdf 8:80 undef ready running &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
create: 3600a0b80001327510000009a436215ec undef WINSYS,SF2372 size=12G features=&#39;0&#39; hwhandler=&#39;0&#39; wp=undef `-+- policy=&#39;round-robin 0&#39; prio=1 status=undef &lt;br /&gt;
- 2:0:0:1 sdc 8:32 undef ready running `- 3:0:0:1 sdg 8:96 undef ready running &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
....&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
9) Add storage that is not supported by default as a know multipath device lets say &quot;Vendor is HP, Product Open-V&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;To add information about the HP Open-V series the entry looks like this, where %n is the device name. Add following in /etc/multipath.conf file&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;strong&gt;devices {&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;device {&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;vendor &quot;HP&quot;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;product &quot;OPEN-V.&quot;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;getuid_callout &quot;/lib/udev/scsi_id --whitelisted --device=/dev/%n&quot;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To be continued..............&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/6171983518726338806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2013/02/redhat-device-mapper-multipathing.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/6171983518726338806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/6171983518726338806'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2013/02/redhat-device-mapper-multipathing.html' title='Redhat Device Mapper Multipathing'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-3826875782984253536</id><published>2012-04-20T04:03:00.000-07:00</published><updated>2012-04-20T04:03:12.587-07:00</updated><title type='text'>GRUB Image Files</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;GRUB consists of several
images: a variety of bootstrap images for starting GRUB in various ways, a
kernel image, and a set of modules which are combined with the kernel image to
form a core image. Here is a short overview of them:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12pt;&quot;&gt;boot.img&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;On PC BIOS systems, this image is the first part
of GRUB to start. It is written to a master boot record (MBR) or to the boot
sector of a partition. Because a PC boot sector is 512 bytes, the size of this
image is exactly 512 bytes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;The
sole function of&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12pt;&quot;&gt;boot.img&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&amp;nbsp;is to read the first sector of the core
image from a local disk and jump to it. Because of the size restriction,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12pt;&quot;&gt;boot.img&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&amp;nbsp;cannot understand
any file system structure, so&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12pt;&quot;&gt;grub-setup&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;hardcodes the location of the first sector of
the core image into&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12pt;&quot;&gt;boot.img&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&amp;nbsp;when installing GRUB.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12pt;&quot;&gt;diskboot.img&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;This image is used as the first sector of the
core image when booting from a hard disk. It reads the rest of the core image
into memory and starts the kernel. Since file system handling is not yet
available, it encodes the location of the core image using a block list format.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12pt;&quot;&gt;cdboot.img&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;This image is used as the first sector of the
core image when booting from a CD-ROM drive. It performs a similar function to&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12pt;&quot;&gt;diskboot.img&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12pt;&quot;&gt;pxeboot.img&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;This image is used as the start of the core
image when booting from the network using PXE. See&amp;nbsp;&lt;a href=&quot;http://www.gnu.org/software/grub/manual/grub.html#Network&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Network&lt;/span&gt;&lt;/a&gt;.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12pt;&quot;&gt;lnxboot.img&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;This image may be placed at the start of the
core image in order to make GRUB look enough like a Linux kernel that it can be
booted by LILO using an ‘&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12pt;&quot;&gt;image=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;’ section.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12pt;&quot;&gt;kernel.img&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;This image contains GRUB&#39;s basic run-time
facilities: frameworks for device and file handling, environment variables, the
rescue mode command-line parser, and so on. It is rarely used directly, but is
built into all core images.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12pt;&quot;&gt;core.img&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; margin-left: 0.5in; margin-right: 0in; margin-top: 0in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;This is the core image of GRUB. It is built
dynamically from the kernel image and an arbitrary list of modules by the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12pt;&quot;&gt;grub-mkimage&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&amp;nbsp;program. Usually,
it contains enough modules to access&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12pt;&quot;&gt;/boot/grub&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;, and loads everything else (including menu
handling, the ability to load target operating systems, and so on) from the
file system at run-time. The modular design allows the core image to be kept
small, since the areas of disk where it must be installed are often as small as
32KB.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12pt;&quot;&gt;Initrd.img&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; line-height: 115%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;initrd&amp;nbsp;(initial&lt;/span&gt;&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Ramdisk&quot; title=&quot;Ramdisk&quot;&gt;&lt;span style=&quot;color: black; text-decoration: none; text-underline: none;&quot;&gt;ramdisk&lt;/span&gt;&lt;/a&gt;) is a scheme for loading a temporary&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/File_system&quot; title=&quot;File system&quot;&gt;&lt;span style=&quot;color: black; text-decoration: none; text-underline: none;&quot;&gt;file system&lt;/span&gt;&lt;/a&gt;&amp;nbsp;into&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Computer_memory&quot; title=&quot;Computer memory&quot;&gt;&lt;span style=&quot;color: black; text-decoration: none; text-underline: none;&quot;&gt;memory&lt;/span&gt;&lt;/a&gt;&amp;nbsp;in the boot
process of the&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Linux_kernel&quot; title=&quot;Linux kernel&quot;&gt;&lt;span style=&quot;color: black; text-decoration: none; text-underline: none;&quot;&gt;Linux kernel&lt;/span&gt;&lt;/a&gt;.&amp;nbsp;initrd&amp;nbsp;and&amp;nbsp;initramfs&amp;nbsp;refer
to slightly different methods of achieving this.&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: Arial, sans-serif; font-size: 12pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;Both are commonly used to make preparations before the real&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; line-height: 115%; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Root_directory&quot; title=&quot;Root directory&quot;&gt;&lt;span style=&quot;color: black; text-decoration: none; text-underline: none;&quot;&gt;root&lt;/span&gt;&lt;/a&gt;&amp;nbsp;file system can be&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Mount_(Unix)&quot; title=&quot;Mount (Unix)&quot;&gt;&lt;span style=&quot;color: black; text-decoration: none; text-underline: none;&quot;&gt;mounted&lt;/span&gt;&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/3826875782984253536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2012/04/grub-image-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/3826875782984253536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/3826875782984253536'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2012/04/grub-image-files.html' title='GRUB Image Files'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-4179013203928909518</id><published>2012-04-20T03:26:00.001-07:00</published><updated>2013-01-18T08:12:04.033-08:00</updated><title type='text'>How to password protect GRUB?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;There are only 3 steps to password protect users to edit grub properties while system booting:&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;1) Run following command to generate MD5 encrypted password:&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;root@localhost# grub-md5-crypt&lt;br /&gt;Password:&lt;br /&gt;Retype password:&lt;br /&gt;$1$yAr5c0$ZYlcLULaS2rwOvry1B4gX/&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;2) Copy MD5 encrypted password of above command&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;3) Paste copied MD5 encrypted password in menu.list/grub.conf file :&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: white; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-size: 14px; line-height: 23px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;background-color: white; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-size: 14px; line-height: 23px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;default = 0&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;background-color: white; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-size: 14px; line-height: 23px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;timeout=5&lt;/span&gt;&lt;span style=&quot;background-color: white; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-size: 14px; line-height: 23px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;background-color: white; border-style: none; font-size: 14px; line-height: 23px; list-style-type: none; margin: 0px; outline-style: none; padding: 0px; vertical-align: baseline;&quot;&gt;password --md5&amp;nbsp;&lt;/span&gt;$1$yAr5c0$ZYlcLULaS2rwOvry1B4gX/&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Thats it!!!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Now whenever user&#39;s try to run GRUB commands or try to change booting parameters at the time of BOOT, above entered text password will be required!!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/4179013203928909518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2012/04/how-to-password-protect-grub.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/4179013203928909518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/4179013203928909518'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2012/04/how-to-password-protect-grub.html' title='How to password protect GRUB?'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-2547354262238213352</id><published>2012-04-04T03:36:00.001-07:00</published><updated>2012-07-10T10:18:17.542-07:00</updated><title type='text'>Linux : How To Recover From Bad SuperBlock Corrupted Ext3 File System??</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;I was getting following error:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;/dev/cciss/c0d0p1&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #666666; line-height: 22px;&quot;&gt;: Input/output error&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;mount:&amp;nbsp;/dev/cciss/c0d0p1: can&#39;t read superblock&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; line-height: 22px;&quot;&gt;In case you are also facing the same error with superblocks, you can follow below given steps to recover superblock:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;#### dumpe2fs&amp;nbsp;&lt;/span&gt; &lt;span style=&quot;line-height: 22px;&quot;&gt;/dev/cciss/c0d0p1&lt;/span&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;|grep -i superblock&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;dumpe2fs 1.39 (29-May-2006)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Filesystem features: &amp;nbsp; &amp;nbsp; &amp;nbsp;has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; Primary superblock at 1, Group descriptors at 2-2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; Backup superblock at 8193, Group descriptors at 8194-8194&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; Backup superblock at 24577, Group descriptors at 24578-24578&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; Backup superblock at 40961, Group descriptors at 40962-40962&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; Backup superblock at 57345, Group descriptors at 57346-57346&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; Backup superblock at 73729, Group descriptors at 73730-73730&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Above command output showing back&#39;d up superblock. Now we need to restore from these superblocks&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #666666;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;#### fsck -b&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;8193&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;/dev/cciss/c0d0p1&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;If still showing any error continue to restore with next Backup superblock i.e; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;24577,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;40961 etc....&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;After successful completion of above command i.e; output will be like this&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;span style=&quot;color: red; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-clip: initial; background-color: white; background-origin: initial; border-bottom: rgb(221,221,221) 1px solid; border-image: initial; border-left: rgb(221,221,221) 1px solid; border-right: rgb(221,221,221) 1px solid; border-top: rgb(221,221,221) 1px solid; clear: both; line-height: 1.5em; margin-bottom: 1.83em; overflow-x: auto; overflow-y: auto; padding-bottom: 0.66em; padding-left: 0.91em; padding-right: 0.91em; padding-top: 0.66em;&quot;&gt;&lt;y style=&quot;margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: red; font-family: Verdana, sans-serif;&quot;&gt;Free blocks count wrong for group #362 (32254, counted=32248).
Fix&lt;y style=&quot;margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;? yes
Free blocks count wrong for group #368 (32254, counted=27774).
Fix&lt;y style=&quot;margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;? yes
..........

&lt;span style=&quot;line-height: 22px; white-space: normal;&quot;&gt;/dev/cciss/c0d0p1&lt;/span&gt;: ***** FILE SYSTEM WAS MODIFIED *****

&lt;span style=&quot;line-height: 22px; white-space: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 22px; white-space: normal;&quot;&gt;/dev/cciss/c0d0p1&lt;/span&gt;: 59586/30539776 files (0.6% non-contiguous), 3604682/61059048 blocks&lt;/y&gt;&lt;/y&gt;&lt;/span&gt;&lt;/y&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now mount your file system&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;##### mount&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 22px;&quot;&gt;/dev/cciss/c0d0p1 /mnt&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 22px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Thats it!!!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/2547354262238213352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2012/04/linux-how-to-recover-bad-superblock.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/2547354262238213352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/2547354262238213352'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2012/04/linux-how-to-recover-bad-superblock.html' title='Linux : How To Recover From Bad SuperBlock Corrupted Ext3 File System??'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-5113645254326145763</id><published>2012-04-03T02:13:00.003-07:00</published><updated>2012-04-03T02:18:45.050-07:00</updated><title type='text'>How To Access GNU Screen Session Over SSH??</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 18px;&quot;&gt;We can attach a GNU&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: monospace; line-height: 18px;&quot;&gt;&lt;b&gt;SCREEN&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Georgia, &#39;Times New Roman&#39;, serif; line-height: 18px;&quot;&gt;session remotely over SSH; in this example we&#39;ll open a GNU screen session on &lt;b&gt;host1&lt;/b&gt;, and connect to it from &lt;b&gt;host2&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 10px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;First open and then detach a&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Georgia, &#39;Times New Roman&#39;, serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;screen&lt;/code&gt;&lt;span style=&quot;background-color: white; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp;session on host1, named testscreen:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #1f1f1f; line-height: 18px; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 10px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 15px; padding-right: 15px; padding-top: 15px; quotes: none; vertical-align: baseline;&quot;&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;host1 ~ $ screen -S testscreen&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 10px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Then detach from your&amp;nbsp;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;screen&lt;/code&gt;&amp;nbsp;session with the keyboard combination Ctrl+a+d:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #1f1f1f; line-height: 18px; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 10px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 15px; padding-right: 15px; padding-top: 15px; quotes: none; vertical-align: baseline;&quot;&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;[detached from 3829.testscreen]&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 10px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Do not &quot;exit&quot; from shell only use Ctrl+a+d to detach from that session. One of the main feature I like about screen is that we can trace whatever user was doing last time &lt;b&gt;(in case of script command a typescript file is created which show the complete working of user)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;You can verify that it&#39;s still there with this command:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #1f1f1f; line-height: 18px; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 10px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 15px; padding-right: 15px; padding-top: 15px; quotes: none; vertical-align: baseline;&quot;&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;host1 ~ $ screen -ls&lt;/b&gt;

There is a screen on:
        3941.testscreen (03/18/2012 12:43:42 PM) (Detached)
1 Socket in /var/run/screen/S-host1.&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 10px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Then re-attach to your screen session from &lt;b&gt;host2 &lt;/b&gt;(because we just detached our session last time not exited, so this will start from the last point were we were detached from session):&lt;/span&gt;&lt;/div&gt;
&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #1f1f1f; line-height: 18px; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 10px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 15px; padding-right: 15px; padding-top: 15px; quotes: none; vertical-align: baseline;&quot;&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;host2 ~ $ ssh -t user@host1 screen -r testscreen&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;You don&#39;t have to name the&amp;nbsp;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;screen&lt;/code&gt;&amp;nbsp;&lt;/span&gt;session if there is only one :)&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Ref:&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.itworld.com/it-managementstrategy/261500/16-ultimate-openssh-hacks&quot;&gt;http://www.itworld.com/it-managementstrategy/261500/16-ultimate-openssh-hacks&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/5113645254326145763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2012/04/how-to-access-gnu-screen-session-over.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/5113645254326145763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/5113645254326145763'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2012/04/how-to-access-gnu-screen-session-over.html' title='How To Access GNU Screen Session Over SSH??'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-5879797658340094948</id><published>2012-03-29T06:06:00.000-07:00</published><updated>2012-03-30T02:40:11.210-07:00</updated><title type='text'>Redhat/CentOS/Fedora Linux: How to Setup Chroot SSH/SFTP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Find below given steps to setup chrooted SSH:&lt;br /&gt;
&lt;br /&gt;
1) Create a group : groupadd sftpgroup&lt;br /&gt;
&lt;br /&gt;
2) Create a user : useradd -g sftpgroup -d /home/mysftpuser -s /sbin/nologin mysftpuser&lt;br /&gt;
&lt;br /&gt;
3)&amp;nbsp;Open /etc/ssh/sshd_config file and comment following line&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;#Subsystem &amp;nbsp; &amp;nbsp; &amp;nbsp;sftp &amp;nbsp; &amp;nbsp;/usr/libexec/openssh/sftp-server&lt;br /&gt;
&lt;br /&gt;
4) Add following lines to /etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Subsystem &amp;nbsp; &amp;nbsp; &amp;nbsp;sftp &amp;nbsp; &amp;nbsp;internal-sftp&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ChrootDirectory /home/%u&lt;br /&gt;
&lt;br /&gt;
5) Save and exit from /etc/ssh/sshd_config file&lt;br /&gt;
&lt;br /&gt;
6) Restart sshd service&lt;br /&gt;
&lt;br /&gt;
7) Try to login from server/client machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[nginx_test:main.LINUX5 ~]# sftp mysftp@127.0.0.1&lt;br /&gt;
Connecting to 127.0.0.1...&lt;br /&gt;
mysftp@127.0.0.1&#39;s password:&lt;br /&gt;
sftp&amp;gt;&lt;br /&gt;
&lt;br /&gt;
sftp&amp;gt; pwd&lt;br /&gt;
Remote working directory: /&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thats it!!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/5879797658340094948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2012/03/redhatcentosfedora-linux-how-to-setup.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/5879797658340094948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/5879797658340094948'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2012/03/redhatcentosfedora-linux-how-to-setup.html' title='Redhat/CentOS/Fedora Linux: How to Setup Chroot SSH/SFTP'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-8080792028984752171</id><published>2012-02-10T21:31:00.000-08:00</published><updated>2012-02-15T09:06:33.718-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="authconfig"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux Clients"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows AD"/><title type='text'>Script/Command To Authenticate Linux With Windows Active Directory Or Linux OpenLDAP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;For Authenticating with Windows AD:&lt;/b&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
In this lets assume windows domain name is&amp;nbsp;&lt;b&gt;win-pfb09prf78l.scvmm.local&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
/usr/bin/authconfig --disablecache --enablewinbind --enablewinbindauth --smbsecurity=ADS --smbworkgroup=scvmm --smbrealm=scvmm.local --smbservers=win-pfb09prf78l.scvmm.local --enablewinbindusedefaultdomain --winbindtemplatehomedir=/home/%U --winbindtemplateshell=/bin/bash --enablekrb5 --krb5realm=SCVMM.LOCAL --krb5adminserver=win-pfb09prf78l.scvmm.local --krb5kdc=win-pfb09prf78l.scvmm.local --enablekrb5kdcdns --enablekrb5realmdns --enablelocauthorize --enablemkhomedir --enablepamaccess --update&lt;br /&gt;
&lt;br /&gt;
echo &quot;Comnet@12&quot; | kinit administrator@SCVMM.LOCAL&lt;br /&gt;
&lt;br /&gt;
net ads join -UAdministrator%Comnet@12 -S win-pfb09prf78l.scvmm.local&lt;br /&gt;
&lt;br /&gt;
/bin/sed -i &#39;s/idmap gid/#idmap gid/g&#39; /etc/samba/smb.conf&lt;br /&gt;
&lt;br /&gt;
/bin/sed -i &#39;s/idmap uid/#idmap uid/g&#39; /etc/samba/smb.conf&lt;br /&gt;
&lt;br /&gt;
/bin/sed -i &quot;/#idmap uid/i idmap config scvmm:backend = rid&quot; /etc/samba/smb.conf&lt;br /&gt;
&lt;br /&gt;
/bin/sed -i &quot;/#idmap uid/i idmap config scvmm:base_rid = 500&quot; /etc/samba/smb.conf&lt;br /&gt;
&lt;br /&gt;
/bin/sed -i &quot;/#idmap uid/i idmap config scvmm:range = 500-10000000&quot; /etc/samba/smb.conf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;For Authenticating with OpenLDAP:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN&quot;&gt;/usr/bin/authconfig --enableldap --enableldapauth --ldapserver=10.17.138.6
--ldapbasedn=dc=domain,dc=myldap,dc=com --update --enablemkhomedir&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN&quot;&gt;&lt;/span&gt;&lt;/div&gt;
Please correct if something missing or wrong :-)&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/8080792028984752171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2012/02/scriptcommand-to-authenticat-linux-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/8080792028984752171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/8080792028984752171'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2012/02/scriptcommand-to-authenticat-linux-with.html' title='Script/Command To Authenticate Linux With Windows Active Directory Or Linux OpenLDAP'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-3624544720149207427</id><published>2012-02-10T09:19:00.000-08:00</published><updated>2012-02-10T09:19:22.585-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Orphan"/><category scheme="http://www.blogger.com/atom/ns#" term="Process"/><category scheme="http://www.blogger.com/atom/ns#" term="Unix"/><category scheme="http://www.blogger.com/atom/ns#" term="Zombie"/><title type='text'>What Are Unix/Linux Processes And Their Types.......</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;A process is a running instance of a program. In this article we used two terms ‘program’ and ‘running instance’. Suppose we run a program simultaneously 5 times, then corresponding to each instance there will be a process running in the system. So we say that a process is a “running instance” of a program.&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;span id=&quot;more-9598&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;As you already know, you can use ps command to view the processes running on your system. For effective use of the ps command, refer to&amp;nbsp;&lt;a href=&quot;http://www.thegeekstuff.com/2012/02/unix-process-overview/Refer%20to%20:%20http://www.thegeekstuff.com/2011/04/ps-command-examples/&quot; style=&quot;color: #2361a1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;7 Practical PS Command Examples for Process Monitoring&lt;/a&gt;.&lt;/div&gt;&lt;h3 style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 1.286em; font-weight: normal; line-height: 22px; margin-bottom: 0.611em; margin-left: 0px; margin-right: 0px; margin-top: 1.833em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;1. Peeping Inside a Process&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Now, since we are clear with what exactly a process is, lets dig a bit deeper to see what a process consists of. A Unix process can be thought of as a container which contains:&lt;/div&gt;&lt;h3 style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 1.286em; font-weight: normal; line-height: 22px; margin-bottom: 0.611em; margin-left: 0px; margin-right: 0px; margin-top: 1.833em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Program Instructions&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Program instructions are kept in text segments which are executed by CPU. Usually for programs like text editors which are executed frequently the text segment is shared. This segment has read only privileges which means that a program cannot modify its text segment.&lt;/div&gt;&lt;h3 style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 1.286em; font-weight: normal; line-height: 22px; margin-bottom: 0.611em; margin-left: 0px; margin-right: 0px; margin-top: 1.833em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Data&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Mostly the data is kept in data segment. Data segment can be classified into initialized data segment and uninitialized data segment. As the name suggest, initialized data segment contains those global variables which are initialized before hand while uninitialized data segment (also known as ‘BSS’ segment) contains uninitialized global variables. Also, static variables are stored in data segment.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Local variables which are local to functions are stored on stack. Stack is particular to a function and besides containing the information about local variables it also contains information about the address where the flow will return once the execution of function is done. Stack also contains information about the callers environment, like some of the machine registers are also stored on stack. A function which is called allocates memory for its local variables and temporary variables on stack itself. In case of recursive function an independent stack for each function call exists.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Then there is data which is stored on heap. This memory for this data is allocated on runtime on heap segment. Heap segment is not local to a process but shared across processes. This is the reason why C programmers worry a lot about memory leaks which are caused on heap segment and may affect other processes on the system.&lt;/div&gt;&lt;h3 style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 1.286em; font-weight: normal; line-height: 22px; margin-bottom: 0.611em; margin-left: 0px; margin-right: 0px; margin-top: 1.833em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Command line arguments and environment variables&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;A process also contains room for storing environment variables and the command line arguments that we pass to the program. Usually the vector containing the command line information is stored here and then the address of this vector of information and number of elements in vector is copied to ‘argv’ and ‘argc’ (the two arguments to ‘main()’ function).&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Besides the above information, a process also contains information like&lt;/div&gt;&lt;ul style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; list-style-image: initial; list-style-position: initial; list-style-type: square; margin-bottom: 1.571em; margin-left: 1.571em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;State of its I/O&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Its priority and other control information&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;One of the most important control information for a process is the privileges. A process directly inherits all the privileges of the user who has triggered this process. For example a process triggered by user who does not have superuser privileges cannot do stuff that require root privileges while a process triggered by root can do any thing that it is programmed to do. An exception to the above rule is where a process can acquire greater privileges than the user who triggered it if the setuid or setgid bit is set for that particular process. But we will not go into much detail about it here(refer to the man pages of setuid and setgid for more information on this).&lt;/div&gt;&lt;h3 style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 1.286em; font-weight: normal; line-height: 22px; margin-bottom: 0.611em; margin-left: 0px; margin-right: 0px; margin-top: 1.833em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;2. Background and foreground processes&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;As we already discussed that we can start a process by its name in Unix. Like some standard programs ‘ls’, ‘ps’ etc can be started by just typing their name on the shell prompt. There are two ways in which we can start a process&lt;/div&gt;&lt;ul style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; list-style-image: initial; list-style-position: initial; list-style-type: square; margin-bottom: 1.571em; margin-left: 1.571em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Starting in foreground&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Starting in background&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Suppose there is a utility that consumes some time and does a count. Lets say the the name of the utility is ‘count’ Now to trigger and run the program in foreground, I run the following command (where ‘count’ is the name of the binary from the code above) :&lt;/div&gt;&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(221, 221, 221); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; clear: both; color: #111111; font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin-bottom: 1.833em; overflow-x: auto; overflow-y: auto; padding-bottom: 0.667em; padding-left: 0.917em; padding-right: 0.917em; padding-top: 0.667em; text-align: -webkit-auto;&quot;&gt;$ ./count
Counting done&lt;/pre&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;So we see that, after running the binary ‘./count’, it took almost 10 seconds before the output was displayed on stdout and until then the shell was occupied by this process only. ie You could not perform any other operation on the same shell. Now, to trigger a process in background, add ‘&amp;amp;’ at the end of the command:&lt;/div&gt;&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(221, 221, 221); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; clear: both; color: #111111; font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin-bottom: 1.833em; overflow-x: auto; overflow-y: auto; padding-bottom: 0.667em; padding-left: 0.917em; padding-right: 0.917em; padding-top: 0.667em; text-align: -webkit-auto;&quot;&gt;$ ./count &amp;amp;
[1] 4120

$ # Do some work on shell while the above program is working in the background

$ Counting done&lt;/pre&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;The ampersand ‘&amp;amp;’ sign indicates that this process needs to be run as a background process. By running a background process, we can have access to the shell for doing any further operations. Like, in the output above, after running the binary ‘count’ in background, I used a couple of more commands on the same shell and when the binary ‘count’ was done with its processing, the output was thrown back on the same shell(the last line). So we can conclude that by default every process runs in foreground, receives input(if any) from keyboard and returns output to the user. While a background process is one which gets disconnected from the keyboard and user can use the same shell to do more operations.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;For more information on foreground and background processes refer to:&amp;nbsp;&lt;a href=&quot;http://www.thegeekstuff.com/2010/05/unix-background-job/&quot; style=&quot;color: #2361a1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;How to Manage UNIX Background Jobs&lt;/a&gt;&lt;/div&gt;&lt;h3 style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 1.286em; font-weight: normal; line-height: 22px; margin-bottom: 0.611em; margin-left: 0px; margin-right: 0px; margin-top: 1.833em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;3. Types of process&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;So we see that process is a concept that is fundamental to an operating system. Almost every activity on an OS takes form of a process to do some stuff. There are different types of processes running on a system, some of them are :&lt;/div&gt;&lt;h3 style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 1.286em; font-weight: normal; line-height: 22px; margin-bottom: 0.611em; margin-left: 0px; margin-right: 0px; margin-top: 1.833em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Child processes&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;A process that is created by some other process during run-time. Usually child processes are created to execute some binary from within an existing process. Child processes are created using fork() system call. Normally process are made to run through shell/terminal. In that case the shell becomes the parent and the executed process becomes the child process. On Unix/Linux each process has a parent except the init process(we will learn about this later).&lt;/div&gt;&lt;h3 style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 1.286em; font-weight: normal; line-height: 22px; margin-bottom: 0.611em; margin-left: 0px; margin-right: 0px; margin-top: 1.833em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Daemon Processes&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;These are special processes that run in background. They are system related process that have no associated terminal. These processes run will root permissions and usually provide services to processes. As we already know that a daemon process does not have an attached terminal, well to achieve this the process has to be detached from the terminal. The ideal way on Linux/Unix to do this is to run a process through terminal and from within this process create another process and then terminate the parent process. Since the parent is terminated so now the child will become independent of the terminal and would be taken over by init process and hence would become a daemon process. A typical example would be a mail daemon that waits for the arrival of e-mails and notify when a mail is received.&lt;/div&gt;&lt;h3 style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 1.286em; font-weight: normal; line-height: 22px; margin-bottom: 0.611em; margin-left: 0px; margin-right: 0px; margin-top: 1.833em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Orphan processes&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Usually a process creates a child process (as described above) and when the child process terminates, a signal is issued to the parent so that parent can do all the stuff that it is required to do when one of the child gets terminated. But there are situations when parent gets killed. In that case the child processes become orphan and then taken under by the init process. Though the init process takes the ownership of the orphan process but still these process are called as orphan as their original parents no longer exists.&lt;/div&gt;&lt;h3 style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 1.286em; font-weight: normal; line-height: 22px; margin-bottom: 0.611em; margin-left: 0px; margin-right: 0px; margin-top: 1.833em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;Zombie process&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;When a child process gets terminated or completes its execution, then its entry in the process table remains until the parent process fetches the status information of the terminated child. So, until then the terminated process enters zombie state and is known as zombie process.&amp;nbsp; When a process is terminated then all the memory and resources associated with the process are released but the entry of the process in process table exists. A signal SIGCHILD is send to the parent of the process (that just terminated). Typically, the handler of this signal in the parent executes a ‘wait’ call that fetches the exit status of the terminated process and then the entry of this zombie process from the process table is also removed.&lt;/div&gt;&lt;h3 style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 1.286em; font-weight: normal; line-height: 22px; margin-bottom: 0.611em; margin-left: 0px; margin-right: 0px; margin-top: 1.833em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;4. The init process&lt;/h3&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;As we discussed earlier, init process is the 5th stage in the&amp;nbsp;&lt;a href=&quot;http://www.thegeekstuff.com/2011/02/linux-boot-process/&quot; style=&quot;color: #2361a1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;6 Stage of Linux Boot Process&lt;/a&gt;.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;You would be cognizant of the famous ‘chicken and egg’ theory regarding who came first. In terms of processes, as each process has a parent process, the same question can be asked about parent or child process. Well, fortunately there is an answer here. The answer is the init process that is started as a first process during boot sequence. That means there is no parent of init process. Lets verify it, since PID of init is ’1′, we use the ps command :&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;So we see from the output that PPID is 0, which means that there is no parent for this process.&lt;/div&gt;&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(221, 221, 221); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; clear: both; color: #111111; font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin-bottom: 1.833em; overflow-x: auto; overflow-y: auto; padding-bottom: 0.667em; padding-left: 0.917em; padding-right: 0.917em; padding-top: 0.667em; text-align: -webkit-auto;&quot;&gt;$ ps -l 1
F S&amp;nbsp;&amp;nbsp; UID&amp;nbsp;&amp;nbsp; PID&amp;nbsp; PPID&amp;nbsp; C PRI&amp;nbsp; NI ADDR SZ WCHAN&amp;nbsp; TTY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME CMD
4 S&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 0&amp;nbsp; 80&amp;nbsp;&amp;nbsp; 0 -&amp;nbsp; 5952 poll_s ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0:00 /sbin/init&lt;/pre&gt;&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(221, 221, 221); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; clear: both; color: #111111; font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin-bottom: 1.833em; overflow-x: auto; overflow-y: auto; padding-bottom: 0.667em; padding-left: 0.917em; padding-right: 0.917em; padding-top: 0.667em; text-align: -webkit-auto;&quot;&gt;Reference : &lt;a href=&quot;http://www.thegeekstuff.com/2012/02/unix-process-overview/&quot; style=&quot;background-color: transparent; text-align: left;&quot;&gt;http://www.thegeekstuff.com/2012/02/unix-process-overview/&lt;/a&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/3624544720149207427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2012/02/what-are-unixlinux-processes-and-their.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/3624544720149207427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/3624544720149207427'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2012/02/what-are-unixlinux-processes-and-their.html' title='What Are Unix/Linux Processes And Their Types.......'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7440590691056881811.post-6237430849951905860</id><published>2012-02-09T02:44:00.000-08:00</published><updated>2012-02-09T02:44:03.768-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Add User To Sudoers"/><category scheme="http://www.blogger.com/atom/ns#" term="Setup Password"/><category scheme="http://www.blogger.com/atom/ns#" term="Shell Script"/><category scheme="http://www.blogger.com/atom/ns#" term="User Add"/><title type='text'>Shell Script To Add User, Password And Add User To Sudo</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Here&#39;s the Shell Script which required 2 parameters 1) UserName 2) Password.....&lt;br /&gt;
&lt;br /&gt;
After setting up user name and password, script will ask you if you want to add user to Super User / Sudo or not....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;#!/bin/bash&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;UCOM=&quot;/usr/sbin/useradd&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;PCOM=&quot;/usr/bin/passwd&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;DCOM=&quot;/usr/sbin/userdel&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;GCOM=&quot;/bin/grep&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;if [ &quot;$#&quot; != &quot;2&quot; ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo -e &quot;\033[33m Required 2 Parameters : User Name and Password...&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $UCOM $1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( echo $2; echo $2 ) | $PCOM $1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ &quot;$?&quot; != &quot;0&quot; ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $DCOM -r $1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo -e &quot;\033[35m User $1 Successfully Added To System&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo -e &quot;\033[0m&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;echo -e &quot;\033[33m Do You Want To Add User to Sudoers/Super User List (y/n)&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;read choice&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;echo -e &quot;\033[0m&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;if [ &quot;$choice&quot; == &quot;y&quot; -o &quot;$choice&quot; == &quot;Y&quot; ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $GCOM $1 /etc/sudoers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ &quot;$?&quot; == &quot;0&quot; ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo -e &quot;\033[31m User $1 Already Added To Sudoers File&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo -e &quot;\033[0m&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;$1&amp;nbsp;&amp;nbsp; ALL=(ALL)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALL&quot; | cat &amp;gt;&amp;gt; /etc/sudoers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo -e &quot;\033[35m User $1 Successfully Added To Sudoers!!!&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo -e &quot;\033[0m&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;elif [ &quot;$choice&quot; == &quot;n&quot; -o &quot;$choice&quot; == &quot;N&quot; ]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo -e &quot;\033[35m $1 User Not Added To Sudoers!!!&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo -e &quot;\033[0m&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo -e &quot;\033[37m Invalid Choice....User Not Added To Sudoers :-(&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo -e &quot;\033[0m&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;span lang=&quot;EN&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;&quot;&gt;That&#39;s it!!!&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast;&quot;&gt;Please use and update your responses......waiting for your responses :)&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxtroubleshoot.blogspot.com/feeds/6237430849951905860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2012/02/shell-script-to-add-user-password-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/6237430849951905860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7440590691056881811/posts/default/6237430849951905860'/><link rel='alternate' type='text/html' href='http://linuxtroubleshoot.blogspot.com/2012/02/shell-script-to-add-user-password-and.html' title='Shell Script To Add User, Password And Add User To Sudo'/><author><name>Manoj K Samtani</name><uri>http://www.blogger.com/profile/10523064467243501756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>