<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kirrus' Blog &#187; monit</title>
	<atom:link href="http://kirrus.co.uk/tag/monit/feed/" rel="self" type="application/rss+xml" />
	<link>http://kirrus.co.uk</link>
	<description>MindDump. Photos. And random ramblings.</description>
	<lastBuildDate>Sat, 21 Apr 2012 14:22:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Useful Linux (Ubuntu) Tidbits</title>
		<link>http://kirrus.co.uk/2007/09/useful-linux-ubuntu-tidbits/</link>
		<comments>http://kirrus.co.uk/2007/09/useful-linux-ubuntu-tidbits/#comments</comments>
		<pubDate>Wed, 12 Sep 2007 12:02:13 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Remember This]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[monit]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=21</guid>
		<description><![CDATA[Here are just some morsels of information about the Linux Command line, and more specifically, Ubuntu Linux Command line / system. Users can be added to a group with the command: sudo adduser &#60;username&#62; &#60;groupname&#62; In ubuntu, the default system shell is &#8220;Dash&#8221;. That does speed up your system boot, but it also introduces problems [...]]]></description>
			<content:encoded><![CDATA[<p>Here are just some morsels of information about the Linux Command line, and more specifically, Ubuntu Linux Command line / system.</p>
<ul>
<li>Users can be added to a group with the command:</li>
</ul>
<blockquote>
<pre>sudo adduser &lt;username&gt; &lt;groupname&gt;</pre>
</blockquote>
<p>In ubuntu, the default system shell is &#8220;Dash&#8221;. That does speed up your system boot, but it also introduces problems with those scripts which are designed to run in bash, but use /bin/sh to execute. (Which is a surprising amount&#8230; this has solved many problems for me. Especially with Asterisk and freePBX.)</p>
<ul>
<li>To set Ubuntu back to using bash from dash, run the following command&#8230;</li>
</ul>
<blockquote>
<pre>cd /bin &amp;&amp; sudo rm sh &amp;&amp; sudo ln -s /bin/bash /bin/sh</pre>
</blockquote>
<ul>
<li>To add a user to the sudoer list (the list that controls who can use &#8220;sudo&#8221;) use the command</li>
</ul>
<blockquote>
<pre>sudo visudo</pre>
</blockquote>
<ul>
<li>Add a user underneath the &#8220;# User privalage specification&#8221; comment. If you want just a bog standard sudo user, able to do all on the system, add the line:</li>
</ul>
<blockquote>
<pre>&lt;username&gt;    ALL=(ALL) ALL</pre>
</blockquote>
<ul>
<li>?Fun? tip: add &#8220;insults&#8221; to the end of the list of &#8220;Defaults&#8221; in visudo, so it will look like:</li>
</ul>
<blockquote>
<pre>Defaults        !lecture,tty_tickets,!fqdn,insults</pre>
</blockquote>
<ul>
<li>The system will insult you every time you enter your sudo password wrongly. For a random example, it just gave me this when I deliberately triggered it:</li>
</ul>
<blockquote>
<pre>You speak an infinite deal of nothing</pre>
</blockquote>
<ul>
<li>In Firefox, select the address bar quickly by hitting the &#8220;F6&#8243; key.</li>
</ul>
<ul>
<li>Type &#8220;pwd&#8221; to get the full path to your current directory. e.g.:</li>
</ul>
<blockquote>
<pre>kirrus@asus:~$ pwd
/home/kirrus</pre>
</blockquote>
<ul>
<li>Monit is a useful program, that gives you a good way of keeping an eye on your servers, making sure they don&#8217;t run out of harddisk space, or get a high CPU load. It can either perform some function (like stopping a program from running) during high CPU, or send you a warning email.</li>
</ul>
<p style="padding-left: 60px;"><span class="link-external"><a href="http://debianhelp.co.uk/monit.htm">http://debianhelp.co.uk/monit.htm</a></span> (useful howto/basic guide)</p>
<p style="padding-left: 60px;"><span class="link-external"><a href="http://www.tildeslash.com/monit/">http://www.tildeslash.com/monit/</a></span> (main website)</p>
<p style="padding-left: 60px;">Monit is in the ubuntu repositories:</p>
<pre style="padding-left: 60px;">aptitude install monit</pre>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2007/09/useful-linux-ubuntu-tidbits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

