<?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-7232681623728367576</id><updated>2024-09-05T12:16:30.499-07:00</updated><category term="shell script"/><category term="Geany"/><category term="Note pad"/><category term="Notepad++"/><category term="arguments"/><category term="arrays"/><category term="command line arguments"/><category term="Arithmetic operations"/><category term="Bash script"/><category term="IM"/><category term="Logs"/><category term="Partition"/><category term="Pidgin"/><category term="Wine"/><category term="addition"/><category term="env"/><category term="environment"/><category term="environment variables"/><category term="functions"/><category term="gparted"/><category term="jdk"/><category term="jenkins"/><category term="linux"/><category term="media player"/><category term="network"/><category term="route"/><category term="serial cable"/><category term="synaptic"/><category term="vlc"/><title type='text'>eGuys</title><subtitle type='html'>Best ever stuff...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.eguys.org/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://www.eguys.org/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Fuzzy</name><uri>http://www.blogger.com/profile/15941980593803281936</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>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7232681623728367576.post-4657510022981513427</id><published>2014-10-19T08:48:00.000-07:00</published><updated>2015-03-17T08:49:41.815-07:00</updated><title type='text'>Bash Shortcuts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;wiki-content&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;ins&gt;Command Editing Shortcuts&lt;/ins&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;ins&gt; &lt;/ins&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Ctrl + 
a&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- go to the start of the command 
line&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Ctrl + 
e&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- go to the end of the command line&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Ctrl + k&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- delete from cursor to the end of the command line&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Ctrl + u&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- delete from cursor to the start of the command line&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Ctrl + w&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- delete from cursor to start of word (i.e. delete backwards one 
word)&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Ctrl + 
y&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- paste word or text that was cut using one of 
the deletion shortcuts (such as the one above) after the cursor&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Ctrl + xx&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- move between start of command line and current cursor position 
(and back again)&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Alt + b&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- move backward one word 
(or go to start of word the cursor is currently on)&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Alt + f&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- move forward one word (or go to end of word the cursor is 
currently on)&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Alt + 
d&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- delete to end of word starting at cursor 
(whole word if cursor is at the beginning of word)&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Alt + c&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- capitalize to end of word starting at cursor (whole word if 
cursor is at the beginning of word)&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Alt + u&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- make uppercase from 
cursor to end of word&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Alt + l&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- make lowercase from 
cursor to end of word&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Alt + t&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- swap current word with 
previous&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Ctrl + 
f&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- move forward one character&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Ctrl + b&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- move backward one character&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Ctrl + d&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- delete character under the cursor&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Ctrl + h&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- delete character before the cursor&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Ctrl + t&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;- swap character under cursor with the previous one&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; &lt;/span&gt;&lt;br /&gt;

&lt;hr /&gt;

&lt;b&gt;&lt;ins&gt;Command Recall Shortcuts&lt;/ins&gt;&lt;/b&gt;&lt;b&gt;&lt;ins&gt; &lt;/ins&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Ctrl + 
r&lt;/b&gt; - search the history backwards &lt;br /&gt;&lt;b&gt;Ctrl + g&lt;/b&gt; - escape from history 
searching mode &lt;br /&gt;&lt;b&gt;Ctrl + p&lt;/b&gt; - previous command in history (i.e. walk back 
through the command history)&lt;br /&gt;&lt;b&gt;Ctrl + n&lt;/b&gt; - next command in history (i.e. 
walk forward through the command history) &lt;br /&gt;&lt;b&gt;Alt + .&lt;/b&gt; - use the last word 
of the previous command &lt;br /&gt;

&lt;hr /&gt;

&lt;b&gt;&lt;ins&gt;Command Control Shortcuts&lt;/ins&gt;&lt;/b&gt;&lt;b&gt;&lt;ins&gt; &lt;/ins&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Ctrl + 
l&lt;/b&gt; - clear the screen &lt;br /&gt;&lt;b&gt;Ctrl + s&lt;/b&gt; - stops the output to the screen 
(for long running verbose command) &lt;br /&gt;&lt;b&gt;Ctrl + q&lt;/b&gt; - allow output to the 
screen (if previously stopped using command above) &lt;br /&gt;&lt;b&gt;Ctrl + c&lt;/b&gt; - 
terminate the command &lt;br /&gt;&lt;b&gt;Ctrl + z&lt;/b&gt; - suspend/stop the command&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.eguys.org/feeds/4657510022981513427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.eguys.org/2014/10/bash-shortcuts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/4657510022981513427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/4657510022981513427'/><link rel='alternate' type='text/html' href='http://www.eguys.org/2014/10/bash-shortcuts.html' title='Bash Shortcuts'/><author><name>rhels</name><uri>http://www.blogger.com/profile/08954798942285057103</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-7232681623728367576.post-1849439877152746872</id><published>2014-05-17T09:17:00.000-07:00</published><updated>2014-06-28T09:23:10.105-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jenkins"/><title type='text'>Jenkins is hanging.</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: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;I am running master-slave&amp;nbsp; model with windows and linux slaves. &lt;span style=&quot;color: #1a1a1a;&quot;&gt;Occasionally&lt;/span&gt; jobs are getting struck and Jenkins was not able to execute any further build. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;The typical scenario is as follows&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
A job hangs.*&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
The node becomes unusable. A job starting on the node stops at &quot;Building remotely on MySlave&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
GIT polling gets stuck.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Polling only resumes after a Hudson restart.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;The issue does not seem to be specific to one SCM, we are using Hg, SVN and 
GIT. This problem become even worse, the only way to unlock blocking is to restart the jenkins service for every three hours. I checked memory details and it looks fine but observed git zombie process. More zombie process with more uptime. We were rebooting the server to clear these process.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;http://www.jenkins.com/threaddump&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;There are more SCM polling activities scheduled than handled, so the 
threads are not keeping up with the demands. It is observed that there are more SCM polling happening every hour that to first minute of the hour&amp;nbsp; 0 * * * * . &lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Solution is change SCM polling &lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;from happening all at once i.e.,&lt;/span&gt;&lt;/span&gt; 0 * * * * to be &lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;more spread out over the course of an hour &lt;/span&gt;&lt;/span&gt;@hourly or H * * * * .&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Did a find and replace.&amp;nbsp; Problem is resolved.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;If job relies on hooks from scm to trigger builds, then disabling polling in your job altogether is recommended.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt; In order for the SCM hook to work, the 
‘Poll SCM’ checkbox needs to be checked in the Jenkins job 
configuration. However, it’s ok to leave the ‘schedule’ field
 blank. &amp;nbsp;This way no polling will happen, and SCM will be able to 
trigger Jenkins builds with the Jenkins hook.
&amp;nbsp;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.eguys.org/feeds/1849439877152746872/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.eguys.org/2014/05/jenkins-is-hanging.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/1849439877152746872'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/1849439877152746872'/><link rel='alternate' type='text/html' href='http://www.eguys.org/2014/05/jenkins-is-hanging.html' title='Jenkins is hanging.'/><author><name>rhels</name><uri>http://www.blogger.com/profile/08954798942285057103</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><georss:featurename>North America</georss:featurename><georss:point>35.173808317999587 -120.234375</georss:point><georss:box>10.099307317999585 -161.542969 60.248309317999585 -78.925781</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7232681623728367576.post-2459255697810954453</id><published>2014-04-15T07:55:00.000-07:00</published><updated>2014-06-28T09:24:13.550-07:00</updated><title type='text'>How to set environment variable for everyone under RHEL system</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In Ubuntu it is just adding key value pairs in &lt;i&gt;/etc/environment&lt;/i&gt;,&lt;br /&gt;
Where as in RHEL create a script under&amp;nbsp; &lt;i&gt;/etc/profile.d/&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
In below example I am trying to add Maven home environment variable and adding the installation to the path.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;cat /etc/profile.d/mvn.sh&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #666666;&quot;&gt;#Add Maven installation to the path&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #444444;&quot;&gt;export M2_HOME=/opt/jenkins/tools/hudson.tasks.Maven_MavenInstallation/default&lt;br /&gt;export M2=$M2_HOME/bin&lt;br /&gt;export PATH=$M2:$PATH&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Reboot your computer,&lt;br /&gt;
&lt;span class=&quot;comment-copy&quot;&gt;Verify &lt;b&gt;$echo $M2_HOME&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;comment-copy&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #444444;&quot;&gt;/opt/jenkins/tools/hudson.tasks.Maven_MavenInstallation/default&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
That is all.&lt;br /&gt;
&lt;br /&gt;
On boot up all the .sh files under &lt;i&gt;/etc/profile.d/ &lt;/i&gt;will be sourced, so this will effect for all users.&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
If you know any easier way than this please let me know.&lt;br /&gt;
Thank you&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.eguys.org/feeds/2459255697810954453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.eguys.org/2014/06/how-to-set-environment-variable-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/2459255697810954453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/2459255697810954453'/><link rel='alternate' type='text/html' href='http://www.eguys.org/2014/06/how-to-set-environment-variable-for.html' title='How to set environment variable for everyone under RHEL system'/><author><name>rhels</name><uri>http://www.blogger.com/profile/08954798942285057103</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><georss:featurename>North America</georss:featurename><georss:point>38.8225909761771 -115.6640625</georss:point><georss:box>13.748089976177102 -156.9726565 63.897091976177109 -74.3554685</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7232681623728367576.post-6773026459402842255</id><published>2014-02-22T08:32:00.000-08:00</published><updated>2014-06-28T09:32:51.620-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jdk"/><title type='text'>JDK for RHEL family</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Download the required Sun JDK rpm from Sun.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #666666;&quot;&gt;&lt;i&gt;wget --no-cookies --no-check-certificate --header &quot;Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie&quot; &quot;http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-x64.rpm&quot;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Once installation completed then normal, use yum&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #666666;&quot;&gt;&lt;i&gt;yum install jdk-7u60-linux-x64.rpm&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.eguys.org/feeds/6773026459402842255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.eguys.org/2014/02/jdk-for-rhel-family.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/6773026459402842255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/6773026459402842255'/><link rel='alternate' type='text/html' href='http://www.eguys.org/2014/02/jdk-for-rhel-family.html' title='JDK for RHEL family'/><author><name>rhels</name><uri>http://www.blogger.com/profile/08954798942285057103</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-7232681623728367576.post-4484878703968657566</id><published>2012-12-13T00:15:00.003-08:00</published><updated>2012-12-13T00:21:21.301-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="network"/><category scheme="http://www.blogger.com/atom/ns#" term="route"/><category scheme="http://www.blogger.com/atom/ns#" term="shell script"/><title type='text'>How to change default route on Linux box</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;br /&gt;
In computing, &lt;code&gt;&lt;b&gt;route&lt;/b&gt;&lt;/code&gt; is a command used to view and manipulate the TCP/IP routing table in both Unix-like and Microsoft Windows &lt;span style=&quot;color: black;&quot;&gt;operating systems&lt;/span&gt;. Manual manipulation of the routing table is characteristic of static routing.&lt;br /&gt;
&lt;br /&gt;
In Linux distributions based on 2.2.x Linux kernels, the &lt;code&gt;ifconfig&lt;/code&gt; and &lt;code&gt;route&lt;/code&gt; commands are operated together to connect a computer to a network, and to define routes between computer networks. Distributions based on later kernels have deprecated &lt;code&gt;ifconfig&lt;/code&gt; and &lt;code&gt;route&lt;/code&gt;, replacing them with &lt;code&gt;iproute2&lt;/code&gt;, which adds functions such as policy routing and traffic shaping.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;route&lt;/i&gt;&lt;/b&gt; (or) &lt;b&gt;&lt;i&gt;route -n&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Kernel IP routing table&lt;br /&gt;
Destination&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Gateway&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Genmask&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flags Metric Ref&amp;nbsp;&amp;nbsp;&amp;nbsp; Use Iface&lt;br /&gt;
default&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.50.32.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0.0.0&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; UG&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 wlan0&lt;br /&gt;
10.50.32.0&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; 255.255.240.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; U&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 wlan0&lt;br /&gt;
link-local&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; 255.255.0.0&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; U&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 eth0&lt;br /&gt;
192.168.195.0&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; 255.255.255.128 U&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 eth0&lt;br /&gt;
&lt;br /&gt;
You can use -n option, to display numerical addresses instead of trying 
to determine symbolic host names (via dns or /etc/hosts file). This is  
useful  if  you  are trying to determine why the route to your 
nameserver has vanished.&lt;br /&gt;
To delete current default route&lt;br /&gt;
&lt;i&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; &lt;b&gt;sudo route del default&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
To add default gateway&lt;i&gt; &lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;i&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; &lt;/i&gt;&lt;b&gt;sudo route add default gw 192.168.195.1 eth0&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/Route_%28command%29&quot; target=&quot;_blank&quot;&gt;More on route command&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.eguys.org/feeds/4484878703968657566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.eguys.org/2012/12/how-to-change-default-route-on-linux-box.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/4484878703968657566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/4484878703968657566'/><link rel='alternate' type='text/html' href='http://www.eguys.org/2012/12/how-to-change-default-route-on-linux-box.html' title='How to change default route on Linux box'/><author><name>Fuzzy</name><uri>http://www.blogger.com/profile/15941980593803281936</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-7232681623728367576.post-4912997900546373154</id><published>2012-05-01T03:10:00.000-07:00</published><updated>2015-03-17T08:51:06.438-07:00</updated><title type='text'>[How to] Auto mount Windows NTFS drives with executable permissions</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;u&gt;Step 1&lt;/u&gt;&lt;u&gt;: &lt;/u&gt;&lt;br /&gt;
Open terminal, type &lt;i&gt;&lt;b&gt;sudo blkid -c /dev/null&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
This will list all the partitions&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #d9d2e9; font-size: x-small;&quot;&gt;&lt;i&gt;/dev/sda1: UUID=&quot;052206fd-a307-4ff3-8aa5-fd8999a3c433&quot; TYPE=&quot;ext4&quot; &lt;br /&gt;/dev/sda2: LABEL=&quot;D&quot; UUID=&quot;78AC06E3AC069BAE&quot; TYPE=&quot;ntfs&quot; &lt;br /&gt;/dev/sda4: LABEL=&quot;E&quot; UUID=&quot;3941CE1615244BEB&quot; TYPE=&quot;ntfs&quot; &lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
In my system it lists below three partitions,&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;sda1 is ext4 type (Linux OS drive mounted to root /)&lt;/li&gt;
&lt;li&gt;sda2 ntfs type(Windows drive, This drive is has label &#39;D&#39;) &lt;/li&gt;
&lt;li&gt;sda3 ntfs type(Windows drive, This drive is has label &#39;E&#39;) 
&lt;/li&gt;
&lt;/ol&gt;
&lt;u&gt;Step 2:&lt;/u&gt; &lt;br /&gt;
You need to know your user id (UID) and your group id(GID), for that in terminal type &lt;br /&gt;
&lt;b&gt;echo $UID&lt;/b&gt;&lt;br /&gt;
GID will be same as your UID. However you can confirm your GID by typing the command &lt;b&gt;cat /etc/group&lt;/b&gt;&lt;br /&gt;
In most cases both UID and GID will be 1000&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Step 3:&lt;/u&gt; &lt;br /&gt;
List of partitions which need to mount on boot up will be stored in &lt;i&gt;/etc/fstab&lt;/i&gt; file.&lt;br /&gt;
In terminal, type &lt;i&gt;&lt;b&gt;sudo geany /etc/fstab&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;(Use any of your favorite text editor, I used Geany.)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hello there. If you&#39;re reading this then you&#39;re probably trying to get 
around the fact that NTFS partitions don&#39;t support Linux file 
permissions. This tutorial will, hopefully, show you how to get around 
this little problem. Fortunately for you, this only involves editing a 
single file. Easy, eh?&lt;br /&gt;
&lt;br /&gt;
The file in question is located at /etc/fstab. This file contains a list
 of partitions which you want mounted, one partition per line. Now, if 
you take a look at this file, you&#39;ll see that there are several lines 
already. &lt;b&gt;DO NOT EDIT THESE LINES&lt;/b&gt;. They are important. Editing them, even slightly, may cause your system to stop booting.&lt;br /&gt;
&lt;br /&gt;
If you take a look at this file, you&#39;ll see that there are several 
columns of information. Assuming that you haven&#39;t already created one, 
you&#39;ll need to add a new line for your NTFS partition. To know what to 
put as the information for the partition, we&#39;ll need to know a few 
things about it. Once you have all the information, you can edit fstab 
by running&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;gksu gedit /etc/fstab&lt;/pre&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Firstly: &lt;b&gt;which partition is it&lt;/b&gt;?&lt;br /&gt;
In this case, this needs to be a device node identifier. e.g. /dev/sda1, a partition UUID, or a partition label. Running&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;sudo blkid -c /dev/null&lt;/pre&gt;
&lt;/div&gt;
in a terminal will tell you all the relevant information about 
your partitions. Hopefully you can determine from this list which one is
 the correct partition.&lt;br /&gt;
&lt;br /&gt;
If you use a UUID or Label, you need to declare it as such. e.g. &quot;LABEL=&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;Windows&lt;/span&gt;&lt;/i&gt;&quot;, &quot;UUID=&lt;span style=&quot;color: red;&quot;&gt;&lt;i&gt;ABCDEFGHIJKLKLMNOP&lt;/i&gt;&lt;/span&gt;&quot;.&lt;/li&gt;
&lt;li&gt;Next, &lt;b&gt;where should it be mounted&lt;/b&gt;?&lt;br /&gt;
This part is simple: where do you want the partition to be accessible 
from? Ubuntu mounts partitions in /media by default, so if you want the 
partition to be mounted there, say so. e.g. &quot;/media/Windows&quot;. You will 
need to manually create this folder since fstab will complain if it&#39;s 
not there, so make sure that the folder isn&#39;t being used already, and 
run &lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;sudo mkdir /media/Windows&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Next, &lt;b&gt;which filesystem should it be mounted as&lt;/b&gt;?&lt;br /&gt;
Since we&#39;re mounting an ntfs partition, specify &quot;ntfs-3g&quot; for this 
column. Don&#39;t use &quot;ntfs&quot; unless you don&#39;t want to be able to write to 
the partition after it&#39;s mounted (by write, I mean making new files, 
editing files, moving  files and folders, etc.; the &quot;ntfs&quot; driver is 
outdated and only lets you read files.)&lt;/li&gt;
&lt;li&gt;Next, &lt;b&gt;what options should it be mounted with&lt;/b&gt;?&lt;br /&gt;
This is the most important column in this case, this is where you 
specify permissions. How you do this isn&#39;t immediately obvious, but 
there&#39;s a way, and it&#39;s actually rather simple.&lt;br /&gt;
&lt;br /&gt;
This is a comma separated list, so don&#39;t use spaces or tabs, or else 
you&#39;ll find that the mount line doesn&#39;t work as expected. To specify the
 permissions, you merely need to declare three things: UID, GID, and 
umask.&lt;ul&gt;
&lt;li&gt;uid=&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;####&lt;/span&gt;&lt;/i&gt; specifies which 
userid should own the files on the partition. e.g. &quot;uid=1000&quot; means that
 the user with the id &quot;1000&quot; should own the files. You can find out your
 UID by opening a terminal and running &quot;echo $UID&quot;.&lt;/li&gt;
&lt;li&gt;gid=&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;####&lt;/span&gt;&lt;/i&gt; specified which groupid 
should own the files on the partition. e.g. &quot;gid=1000&quot; means that the 
group with the id &quot;1000&quot; should own the files. Finding out groupids is 
slightly more difficult than finding out your userid because you can 
belong to several groups at the same time. Now, Ubuntu normally creates a
 group for every user, with the same ID as the UID, so you can probably 
use your UID as the GID. However, you can get a list of groups by 
running, in a terminal, &quot;cat /etc/group&quot;. This will display a list with 
upto four colon-separated fields per line. The lines will contain the 
following items: name, an encrypted password, the GID, and a list of 
users in the group. Find the group you want to use, and add it&#39;s GID to 
the options.&lt;/li&gt;
&lt;li&gt;umask=&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;UGO&lt;/span&gt;&lt;/i&gt; is the most important of 
the three options; it specifies what the permissions will be for the 
user, the group, and everyone else. The numbers used here need to be 
between 0 and 7, anything else will probably cause an error. These 
numbers are actually an inverse of normal permissions, so while &quot;7&quot; 
means &quot;read, write, and execute&quot; in normal permission setting, in fstab 
&quot;7&quot; means &quot;no permissions&quot;. Setting &quot;umask=000&quot; will give EVERYONE read,
 write, and execute permissions. For clarification, the U is the 
permissions for the user, G is for group, and O is for others. See &lt;a href=&quot;http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html&quot; target=&quot;_blank&quot;&gt;this&lt;/a&gt; for more details about umask.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
You may also add other things to this list. Generally speaking, it&#39;s 
best to start with the &quot;defaults&quot; option. &quot;auto&quot; makes the partition 
mount automatically when you boot up. Read more here: &lt;a href=&quot;http://www.tuxfiles.org/linuxhelp/fstab.html&quot; target=&quot;_blank&quot;&gt;http://www.tuxfiles.org/linuxhelp/fstab.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;The final two columns should be &quot;0&quot; and &quot;0&quot;&lt;/b&gt;.&lt;br /&gt;
These two columns are only used for Linux filesystems, so setting them to 0 stops any complications from arising.&lt;/li&gt;
&lt;/ul&gt;
A finished fstab line may look like:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;UUID=ABCDEFGHIJKLKLMNOP /media/Windows ntfs-3g defaults,auto,uid=1000,gid=1000,umask=002 0 0&lt;/pre&gt;
&lt;/div&gt;
another example:&lt;br /&gt;
&lt;div style=&quot;margin-top: 5px; margin: 20px;&quot;&gt;
&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;
Code:&lt;/div&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;/dev/sdb5 /mnt/Music ntfs-3g defaults,uid=1002,gid=1500,umask=227 0 0&lt;/pre&gt;
&lt;/div&gt;
The next time you boot up, or the next time you run &quot;sudo mount 
-a&quot;, the partition should be mounted where you want it, with the 
permissions you want it to have.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mount Windows NTFS drives with executable permissions on Linux machine.&lt;br /&gt;
&lt;br /&gt;
The scripts present in NTFS dri&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
sudo umount /media/D/&lt;br /&gt;
sudo mkdir /media/D/&lt;br /&gt;
sudo fdisk -l&lt;br /&gt;
sudo mount.ntfs-3g /dev/sda2 /media/D/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.eguys.org/feeds/4912997900546373154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.eguys.org/2012/05/how-to-auto-mount-windows-ntfs-drives.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/4912997900546373154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/4912997900546373154'/><link rel='alternate' type='text/html' href='http://www.eguys.org/2012/05/how-to-auto-mount-windows-ntfs-drives.html' title='[How to] Auto mount Windows NTFS drives with executable permissions'/><author><name>Fuzzy</name><uri>http://www.blogger.com/profile/15941980593803281936</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-7232681623728367576.post-3958866954517809165</id><published>2012-04-30T11:58:00.000-07:00</published><updated>2012-04-30T12:57:53.713-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Geany"/><category scheme="http://www.blogger.com/atom/ns#" term="gparted"/><category scheme="http://www.blogger.com/atom/ns#" term="IM"/><category scheme="http://www.blogger.com/atom/ns#" term="media player"/><category scheme="http://www.blogger.com/atom/ns#" term="Note pad"/><category scheme="http://www.blogger.com/atom/ns#" term="Notepad++"/><category scheme="http://www.blogger.com/atom/ns#" term="Partition"/><category scheme="http://www.blogger.com/atom/ns#" term="Pidgin"/><category scheme="http://www.blogger.com/atom/ns#" term="synaptic"/><category scheme="http://www.blogger.com/atom/ns#" term="vlc"/><category scheme="http://www.blogger.com/atom/ns#" term="Wine"/><title type='text'>Linux best/must to have applications</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;u&gt;VLC media player&lt;/u&gt;&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;a href=&quot;http://images1.videolan.org/images/largeVLC.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;http://images1.videolan.org/images/largeVLC.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
VLC is a free and open source cross-platform multimedia player and framework that plays most multimedia files as well as DVD, Audio CD, VCD, and various streaming protocols.&lt;br /&gt;
This should be the default for Linux instead of any other.&lt;br /&gt;
Plays almost everything, there won&#39;t be any format that VLC can not play.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: cyan;&quot;&gt;
&lt;a href=&quot;apt://vlc&quot;&gt;&lt;i&gt;sudo apt-get install vlc&lt;/i&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Synaptic package manager&lt;/u&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://www.nongnu.org/synaptic/images/0.53-main.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;222&quot; src=&quot;http://www.nongnu.org/synaptic/images/0.53-main.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Synaptic is a graphical package management tool based on GTK+ and APT. Synaptic enables you to install, upgrade and remove software packages in a user friendly way.&lt;br /&gt;
Besides these basic functions the following features are provided:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Search and filter the list of available packages&lt;/li&gt;
&lt;li&gt;Perform smart system upgrades&lt;/li&gt;
&lt;li&gt;Fix broken package dependencies&lt;/li&gt;
&lt;li&gt;Edit the list of used repositories (sources.list)&lt;/li&gt;
&lt;li&gt;Download the latest change log of a package&lt;/li&gt;
&lt;li&gt;Configure packages through the debconf system&lt;/li&gt;
&lt;li&gt;Browse all available documentation related to a package (dwww is required) &lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: cyan; text-align: center;&quot;&gt;
&lt;a href=&quot;apt://synaptic&quot;&gt;sudo apt-get install synaptic&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;u&gt;GParted Partition Editor&lt;/u&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://gparted.sourceforge.net/screens/gparted_1_big.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;217&quot; src=&quot;http://gparted.sourceforge.net/screens/gparted_1_big.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
GParted is a free partition editor for graphically managing your disk partitions.&lt;br /&gt;
With GParted you can resize, copy, and move partitions without data loss, enabling you to:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Grow or shrink your C: drive&lt;/li&gt;
&lt;li&gt;Create space for new operating systems&lt;/li&gt;
&lt;li&gt;Attempt data rescue from lost partitions&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: cyan; text-align: center;&quot;&gt;
&lt;a href=&quot;apt://gparted&quot;&gt;sudo apt-get install gparted&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;u&gt;Pidgin Internet Messenger&lt;/u&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://pidgin.im/shared/img/logo.pidgin.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://pidgin.im/shared/img/logo.pidgin.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
IM all your friends in one place&lt;br /&gt;
Pidgin is an easy to use and free chat client used by millions. Connect to AIM, MSN, Yahoo, and more chat networks all at once.&lt;br /&gt;
Supported chat networks:&lt;br /&gt;
AIM&amp;nbsp;&amp;nbsp;&amp;nbsp; Bonjour&amp;nbsp;&amp;nbsp;&amp;nbsp; Gadu-Gadu&amp;nbsp;&amp;nbsp;&amp;nbsp; Google Talk&amp;nbsp;&amp;nbsp;&amp;nbsp; Groupwise&amp;nbsp;&amp;nbsp;&amp;nbsp; ICQ&amp;nbsp;&amp;nbsp;&amp;nbsp; IRC&amp;nbsp;&amp;nbsp;&amp;nbsp; MSN&amp;nbsp;&amp;nbsp;&amp;nbsp; MXit&amp;nbsp;&amp;nbsp;&amp;nbsp; MySpaceIM&amp;nbsp;&amp;nbsp;&amp;nbsp; SILC&amp;nbsp;&amp;nbsp;&amp;nbsp; SIMPLE&amp;nbsp;&amp;nbsp;&amp;nbsp; Sametime&amp;nbsp;&amp;nbsp;&amp;nbsp; XMPP&amp;nbsp;&amp;nbsp;&amp;nbsp; Yahoo!&amp;nbsp;&amp;nbsp;&amp;nbsp; Zephyr&lt;br /&gt;
&lt;div style=&quot;background-color: cyan; text-align: center;&quot;&gt;
&lt;a href=&quot;apt://pidgin&quot;&gt;sudo apt-get install pidgin&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;u&gt;Geany: Replacement for Notepad++ in Linux&lt;/u&gt;&lt;/div&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;http://www.geany.org/uploads/Gallery/geany_main.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;265&quot; src=&quot;http://www.geany.org/uploads/Gallery/geany_main.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a href=&quot;http://www.geany.org/images/geany_main_small.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;
Geany is a text editor using the GTK2 toolkit with basic features of an integrated development environment. It was developed to provide a small and fast IDE, which has only a few dependencies from other packages. It supports many filetypes and has some nice features.&lt;br /&gt;
&lt;br /&gt;
I replaced my default text editor with Geany and I am happily working with it.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: cyan; text-align: center;&quot;&gt;
&lt;a href=&quot;apt://geany&quot;&gt;sudo apt-get install geany&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Wine (Wine Is Not an Emulator)&lt;/u&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://www.winehq.org/images/winehq_logo_glass_sm.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://www.winehq.org/images/winehq_logo_glass_sm.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Wine is a free and open source software application that aims to allow computer programs written for Microsoft Windows to run on Unix-like operating systems. Wine also provides a software library, known as Winelib, against which developers can compile Windows applications to help port them to Unix-like systems.&lt;br /&gt;
&lt;br /&gt;
Add the WineHQ PPA Repository: &lt;span style=&quot;background-color: cyan; color: black;&quot;&gt;sudo add-apt-repository ppa:ubuntu-wine/ppa&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;apt://wine&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;sudo apt-get install wine&lt;/span&gt;&lt;/a&gt;&lt;span id=&quot;goog_1332169381&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_1332169382&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.eguys.org/feeds/3958866954517809165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.eguys.org/2012/05/linux-bestmust-to-have-applications.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/3958866954517809165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/3958866954517809165'/><link rel='alternate' type='text/html' href='http://www.eguys.org/2012/05/linux-bestmust-to-have-applications.html' title='Linux best/must to have applications'/><author><name>Fuzzy</name><uri>http://www.blogger.com/profile/15941980593803281936</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-7232681623728367576.post-3335602683067634346</id><published>2012-04-30T03:20:00.001-07:00</published><updated>2012-04-30T11:59:02.596-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Geany"/><category scheme="http://www.blogger.com/atom/ns#" term="Note pad"/><category scheme="http://www.blogger.com/atom/ns#" term="Notepad++"/><title type='text'>Geany: Replacement for Notepad++ in Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I audited to &lt;a href=&quot;http://notepad-plus-plus.org/&quot; target=&quot;_blank&quot;&gt;Notepad++&lt;/a&gt; in Windows, and was searching for its replacement in Linux for long time. My search ends when I came to know about &lt;a href=&quot;http://www.geany.org/&quot; target=&quot;_blank&quot;&gt;Geany.&lt;/a&gt;&lt;br /&gt;
Geany has almost all the features that Notepad++ has.&lt;br /&gt;
Geany is little slow when searching in files, when compared to Notepad++, but it is hardly noticeable. &lt;br /&gt;
&lt;br /&gt;
I replaced my default text editor with Geany and I am happily working with it.&lt;br /&gt;
&lt;br /&gt;
To install Geany: &lt;i style=&quot;color: red;&quot;&gt;sudo apt-get install geany&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below is a brief introduction for Geany.&lt;br /&gt;
Geany is a small and lightweight Integrated Development Environment. It
was developed to provide a small and fast IDE, which has only a few
dependencies from other packages. Another goal was to be as independent
as possible from a special Desktop Environment like KDE or GNOME - Geany only requires the &lt;span class=&quot;wikiword&quot;&gt;GTK2&lt;/span&gt; runtime libraries.
&lt;br /&gt;
&lt;div class=&quot;vspace&quot;&gt;
Some basic features of Geany:
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Syntax highlighting
&lt;/li&gt;
&lt;li&gt;Code folding
&lt;/li&gt;
&lt;li&gt;Symbol name auto-completion
&lt;/li&gt;
&lt;li&gt;Construct completion/snippets
&lt;/li&gt;
&lt;li&gt;Auto-closing of XML and HTML tags
&lt;/li&gt;
&lt;li&gt;Call tips
&lt;/li&gt;
&lt;li&gt;Many supported filetypes including C, Java, PHP, HTML, Python, Perl,
Pascal (&lt;a class=&quot;wikilink&quot; href=&quot;http://www.geany.org/Main/AllFiletypes&quot;&gt;full list&lt;/a&gt;)
&lt;/li&gt;
&lt;li&gt;Symbol lists
&lt;/li&gt;
&lt;li&gt;Code navigation
&lt;/li&gt;
&lt;li&gt;Build system to compile and execute your code
&lt;/li&gt;
&lt;li&gt;Simple project management
&lt;/li&gt;
&lt;li&gt;Plugin interface (see &lt;a class=&quot;wikilink&quot; href=&quot;http://www.geany.org/Support/Plugins&quot;&gt;Plugins&lt;/a&gt;)
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;vspace&quot;&gt;
Geany is known to run under Linux, &lt;span class=&quot;wikiword&quot;&gt;FreeBSD&lt;/span&gt;, &lt;span class=&quot;wikiword&quot;&gt;NetBSD&lt;/span&gt;, &lt;span class=&quot;wikiword&quot;&gt;OpenBSD&lt;/span&gt;, &lt;span class=&quot;wikiword&quot;&gt;MacOS&lt;/span&gt;
 X, AIX v5.3, Solaris Express and Windows. More generally, it should run
 on every platform, which is supported by the GTK libraries.
Only the Windows port of Geany is missing some features.
&lt;/div&gt;
&lt;div class=&quot;vspace&quot;&gt;
The code is licensed under the terms of the GNU General Public Licence.
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.eguys.org/feeds/3335602683067634346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.eguys.org/2012/04/geany-replacement-for-notepad-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/3335602683067634346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/3335602683067634346'/><link rel='alternate' type='text/html' href='http://www.eguys.org/2012/04/geany-replacement-for-notepad-in-linux.html' title='Geany: Replacement for Notepad++ in Linux'/><author><name>Fuzzy</name><uri>http://www.blogger.com/profile/15941980593803281936</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-7232681623728367576.post-3222284134022541576</id><published>2012-04-30T03:06:00.000-07:00</published><updated>2012-04-30T12:59:04.398-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="env"/><category scheme="http://www.blogger.com/atom/ns#" term="environment"/><category scheme="http://www.blogger.com/atom/ns#" term="environment variables"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="shell script"/><title type='text'>System-wide environment variables</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 id=&quot;System-wide_environment_variables&quot;&gt;


System-wide environment variables&lt;/h2&gt;
&lt;span class=&quot;anchor&quot; id=&quot;line-129&quot;&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;line874&quot;&gt;
Environment
 variable settings that affect the system as a whole (rather then just a
 particular user) should not be placed in any of the many system-level 
scripts that get executed when the system or the desktop session are 
loaded, but into &lt;span class=&quot;anchor&quot; id=&quot;line-130&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-131&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;div class=&quot;line891&quot;&gt;
&lt;b&gt;/etc/environment&lt;/b&gt;
 - This file is specifically meant for system-wide environment variable 
settings. It is not a script file, but rather consists of assignment 
expressions, one per line. Specifically, this file stores the 
system-wide locale and path settings.&lt;/div&gt;
&lt;div class=&quot;line891&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line891&quot;&gt;
&amp;nbsp;ex: &lt;i&gt;sudo geany /etc/environment&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;line891&quot;&gt;
or&amp;nbsp; &lt;i&gt;sudo gedit /etc/environment&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;line891&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line891&quot;&gt;
geany is my text editor.&lt;/div&gt;
&lt;div class=&quot;line891&quot;&gt;
You can use gedit &lt;/div&gt;
&lt;div class=&quot;line891&quot;&gt;
&lt;span class=&quot;anchor&quot; id=&quot;line-132&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line891&quot;&gt;
&lt;span class=&quot;anchor&quot; id=&quot;line-133&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;line874&quot;&gt;
Not recommended: &lt;span class=&quot;anchor&quot; id=&quot;line-134&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;div class=&quot;line891&quot;&gt;
&lt;b&gt;/etc/profile&lt;/b&gt;
 - This file gets executed whenever a bash login shell is entered (e.g. 
when logging in from the console or over ssh), as well as by the Display&lt;b&gt;&lt;/b&gt;Manager
 when the desktop session loads. This is probably the file you will get 
referred to when asking veteran UNIX system administrators about 
environment variables. In Ubuntu, however, this file does little more 
then invoke the &lt;i&gt;/etc/bash.bashrc&lt;/i&gt; file. &lt;span class=&quot;anchor&quot; id=&quot;line-135&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-136&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;gap&quot;&gt;&lt;div class=&quot;line891&quot;&gt;
&lt;b&gt;/etc/bash.bashrc&lt;/b&gt; - This is the system-wide version of the &lt;i&gt;~/.bashrc&lt;/i&gt; file. Ubuntu is configured by default to execute this file whenever a user enters a shell or the desktop environment. &lt;span class=&quot;anchor&quot; id=&quot;line-137&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-138&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;line867&quot;&gt;
&lt;b&gt;Note:&lt;/b&gt;
 When dealing with end-user/home desktop systems may be appropriate to 
place settings in the user&#39;s ~/.pam_environment files discussed above 
rather then the system-wide ones, since those files do not require one 
to utilize root privileges in order to edit and are easily moved between
 systems. &lt;span class=&quot;anchor&quot; id=&quot;line-139&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-140&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line867&quot;&gt;
&lt;/div&gt;
&lt;h2 id=&quot;Launching_desktop_application_with_an_environment_variable&quot;&gt;


&lt;br /&gt;
&lt;/h2&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.eguys.org/feeds/3222284134022541576/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.eguys.org/2012/04/system-wide-environment-variables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/3222284134022541576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/3222284134022541576'/><link rel='alternate' type='text/html' href='http://www.eguys.org/2012/04/system-wide-environment-variables.html' title='System-wide environment variables'/><author><name>Fuzzy</name><uri>http://www.blogger.com/profile/15941980593803281936</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-7232681623728367576.post-7710927396692656482</id><published>2012-04-25T22:18:00.003-07:00</published><updated>2012-04-30T12:59:41.223-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="arrays"/><category scheme="http://www.blogger.com/atom/ns#" term="shell script"/><title type='text'>Arrays in Shell script</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Given the array defined by the following code:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #93c47d;&quot;&gt;
&lt;code&gt;names=( Jennifer Tonya Anna Sadie Molly Millie)&lt;/code&gt;&lt;/div&gt;
&lt;br /&gt;
The individual elements in the array can be accessed by their numeric index (remember that they start counting a zero) with:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: lime;&quot;&gt;
&lt;code&gt;${names[0]}  -&amp;gt; Jennifer
${names[3])  -&amp;gt; Sadie &lt;/code&gt;&lt;/div&gt;
&lt;br /&gt;
All of the elements can be accessed at the same time (which is useful in a for loop) with the following:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: lime;&quot;&gt;
&lt;code&gt;${names[@]}
${names[*]}&lt;/code&gt;&lt;/div&gt;
&lt;br /&gt;
The number of elements in the array can be obtained with:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: lime;&quot;&gt;
&lt;code&gt;${#names[@]}  -&amp;gt; 6&lt;/code&gt;&lt;/div&gt;
&lt;br /&gt;
A range of elements can easily be specified with the following syntax:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: lime;&quot;&gt;
&lt;code&gt;${names[@]:2:3}  -&amp;gt; Anna Sadie Molly
${names[@]:3}  -&amp;gt;  Sadie Molly Millie&lt;/code&gt;&lt;/div&gt;
&lt;br /&gt;
The first example starts at element 2 (the third element) and returns
 the next three elements (:2:3).  The second example starts at record 3 
and returns all of the remaining records (:3).&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.eguys.org/feeds/7710927396692656482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.eguys.org/2012/04/arrays-in-shell-script.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/7710927396692656482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/7710927396692656482'/><link rel='alternate' type='text/html' href='http://www.eguys.org/2012/04/arrays-in-shell-script.html' title='Arrays in Shell script'/><author><name>Fuzzy</name><uri>http://www.blogger.com/profile/15941980593803281936</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-7232681623728367576.post-7118700114276172798</id><published>2012-04-25T21:13:00.001-07:00</published><updated>2012-04-30T13:02:37.979-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="addition"/><category scheme="http://www.blogger.com/atom/ns#" term="arguments"/><category scheme="http://www.blogger.com/atom/ns#" term="Arithmetic operations"/><category scheme="http://www.blogger.com/atom/ns#" term="command line arguments"/><category scheme="http://www.blogger.com/atom/ns#" term="functions"/><category scheme="http://www.blogger.com/atom/ns#" term="shell script"/><title type='text'>[How to] Pass arguments to functions in Shell script</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: #ead1dc;&quot;&gt;
&lt;i&gt;#!/bin/bash &lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #ead1dc;&quot;&gt;
&lt;i&gt;fnSum()&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #ead1dc;&quot;&gt;
&lt;i&gt;{&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #ead1dc;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arg1=$1&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #ead1dc;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arg2=$2&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #ead1dc;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo `expr $1 + $2`&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #ead1dc;&quot;&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo $(($1+$2))&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #ead1dc;&quot;&gt;
&lt;i&gt;}&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #ead1dc;&quot;&gt;
&lt;i&gt;#calling function&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #ead1dc;&quot;&gt;
&lt;i&gt;fnSum 45 12&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #ead1dc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #d9d2e9;&quot;&gt;
output:&lt;/div&gt;
&lt;div style=&quot;background-color: #d9d2e9;&quot;&gt;
57&lt;/div&gt;
&lt;div style=&quot;background-color: #d9d2e9;&quot;&gt;
57&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.eguys.org/feeds/7118700114276172798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.eguys.org/2012/04/how-to-pass-arguments-to-functions-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/7118700114276172798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/7118700114276172798'/><link rel='alternate' type='text/html' href='http://www.eguys.org/2012/04/how-to-pass-arguments-to-functions-in.html' title='[How to] Pass arguments to functions in Shell script'/><author><name>Fuzzy</name><uri>http://www.blogger.com/profile/15941980593803281936</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-7232681623728367576.post-3672048565239419059</id><published>2012-04-25T02:43:00.002-07:00</published><updated>2012-04-30T13:03:42.704-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="arguments"/><category scheme="http://www.blogger.com/atom/ns#" term="arrays"/><category scheme="http://www.blogger.com/atom/ns#" term="Bash script"/><category scheme="http://www.blogger.com/atom/ns#" term="command line arguments"/><category scheme="http://www.blogger.com/atom/ns#" term="shell script"/><title type='text'>Comand Line Arguments in Shell and BAT</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
script.sh element1 element2 &lt;br /&gt;
&lt;br /&gt;
$# -&amp;gt; 2 SIZE&lt;br /&gt;
$* -&amp;gt; element1 element2 &lt;br /&gt;
$0 -&amp;gt; script.sh&lt;br /&gt;
$1 -&amp;gt; element1&lt;br /&gt;
$2 -&amp;gt; element2&lt;br /&gt;
&lt;br /&gt;
--------------------&lt;br /&gt;
&lt;br /&gt;
batch.bat element1 element2 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;lang-sh prettyprint&quot;&gt;&lt;code&gt;&lt;span class=&quot;kwd&quot;&gt;set&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; argC&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;0;&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;%%&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;x &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(%*)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;do&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Set&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;A argC&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;+=&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;; echo &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;argC&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;;&lt;b&gt; --2 --&amp;gt;size&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;b&gt;&lt;code&gt;&lt;/code&gt;&lt;/b&gt;&lt;/pre&gt;
%* -&amp;gt; element1 element2 &lt;br /&gt;
%0 -&amp;gt; batch.bat&lt;br /&gt;
%1 -&amp;gt; element1&lt;br /&gt;
%2 -&amp;gt; element2&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.eguys.org/feeds/3672048565239419059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.eguys.org/2012/04/comand-line-arguments-in-shell-and-bat.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/3672048565239419059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/3672048565239419059'/><link rel='alternate' type='text/html' href='http://www.eguys.org/2012/04/comand-line-arguments-in-shell-and-bat.html' title='Comand Line Arguments in Shell and BAT'/><author><name>Fuzzy</name><uri>http://www.blogger.com/profile/15941980593803281936</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-7232681623728367576.post-2877100839911871798</id><published>2012-04-03T06:28:00.002-07:00</published><updated>2012-04-30T13:04:25.369-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Logs"/><category scheme="http://www.blogger.com/atom/ns#" term="serial cable"/><title type='text'>RS232 output</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span id=&quot;internal-source-marker_0.8492223019775905&quot; style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Commands to see logs from serial cable:&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;internal-source-marker_0.8492223019775905&quot; style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;internal-source-marker_0.8492223019775905&quot; style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;stty -F /dev/ttyUSB0 115200&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;cat /dev/ttyUSB0&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.eguys.org/feeds/2877100839911871798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.eguys.org/2012/04/rs232-output.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/2877100839911871798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/2877100839911871798'/><link rel='alternate' type='text/html' href='http://www.eguys.org/2012/04/rs232-output.html' title='RS232 output'/><author><name>Fuzzy</name><uri>http://www.blogger.com/profile/15941980593803281936</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-7232681623728367576.post-4567066656143644638</id><published>2012-04-01T08:10:00.001-07:00</published><updated>2012-04-03T00:10:15.010-07:00</updated><title type='text'>First</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Use GoDaddy&#39;s configuration tool to automatically create the necessary 
Google Apps MX records. Log into the configuration tool at &lt;a href=&quot;https://www.godaddy.com/gdshop/google/gmail_login.asp&quot; target=&quot;_&amp;quot;blank&amp;quot;&quot;&gt;https://www.godaddy.com/gdshop/google/gmail_login.asp&lt;/a&gt;.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.eguys.org/feeds/4567066656143644638/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.eguys.org/2012/04/first.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/4567066656143644638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7232681623728367576/posts/default/4567066656143644638'/><link rel='alternate' type='text/html' href='http://www.eguys.org/2012/04/first.html' title='First'/><author><name>Fuzzy</name><uri>http://www.blogger.com/profile/15941980593803281936</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>