<?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>!NSFW &#187; *nix</title>
	<atom:link href="http://nsfw.ibnmasud.com/category/nix/feed/" rel="self" type="application/rss+xml" />
	<link>http://nsfw.ibnmasud.com</link>
	<description>Safe for Work</description>
	<lastBuildDate>Thu, 13 Oct 2011 16:48:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>extract &amp; untar</title>
		<link>http://nsfw.ibnmasud.com/extract-untar/</link>
		<comments>http://nsfw.ibnmasud.com/extract-untar/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 23:17:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=139</guid>
		<description><![CDATA[This is a one step command to extract and untar a tar.gz file. tar zxvf filename.tar.gz z = Gunzip(uncompress) it before extracting, used on file ending in .tar.gz or .tgz x = Extract the contents of the TAR file v = Verbose &#8211; display contents as it is tarring or extracting f = Filename to [...]]]></description>
			<content:encoded><![CDATA[<p>This is a one step command to <strong>extract </strong>and <strong>untar</strong> a tar.gz file.</p>
<p><code>tar zxvf filename.tar.gz</code></p>
<p>z = Gunzip(uncompress) it before extracting, used on file ending in .tar.gz or .tgz<br />
x = Extract the contents of the TAR file<br />
v = Verbose &#8211; display contents as it is tarring or extracting<br />
f =  Filename to follow</p>
<p>Note: If the file does not have &#8220;.gz&#8221; extension that means its already uncompressed and one has to just extract it using &#8220;tar xvf&#8221; command.</p>
<p>This is a two step command to <strong>extract </strong>and <strong>untar</strong> the file.</p>
<p><code>gunzip filename.tar.gz</code></p>
<p><code>tar xvf filename.tar</code></p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/extract-untar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Active Directory integration in CentOS using SAMBA</title>
		<link>http://nsfw.ibnmasud.com/active-directory-integration-in-centos/</link>
		<comments>http://nsfw.ibnmasud.com/active-directory-integration-in-centos/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 21:22:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=111</guid>
		<description><![CDATA[This is perhaps the best tutorial on how to set up Active Directory integration in CentOS. http://www.linuxmail.info/active-directory-integration-samba-centos-5/ Update: A related link on setting up Kerberos http://www.howtoforge.com/samba_ads_security_mode]]></description>
			<content:encoded><![CDATA[<p>This is perhaps the best tutorial on how to set up Active Directory integration in CentOS.</p>
<p><a href="http://www.linuxmail.info/active-directory-integration-samba-centos-5/">http://www.linuxmail.info/active-directory-integration-samba-centos-5/</a></p>
<p>Update:<br />
A related link on setting up Kerberos<br />
<a href="http://www.howtoforge.com/samba_ads_security_mode">http://www.howtoforge.com/samba_ads_security_mode</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/active-directory-integration-in-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to tell what distro you are running?</title>
		<link>http://nsfw.ibnmasud.com/how-to-tell-what-distro-you-are-running/</link>
		<comments>http://nsfw.ibnmasud.com/how-to-tell-what-distro-you-are-running/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 22:09:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=97</guid>
		<description><![CDATA[So you inherit a box running linux and you have no idea which flavor of linux it is. How do you find out? If all you need the kernel version you can try uname -a This outputs something like this Linux localhost.localdomain 2.4.20-31.9 #1 Tue Apr 13 18:04:23 EDT 2004 i686 i686 i386 GNU/Linux If [...]]]></description>
			<content:encoded><![CDATA[<p>So you inherit a box running linux and you have no idea which flavor of linux it is. How do you find out?</p>
<p>If all you need the kernel version you can try<br />
<code>uname -a</code></p>
<p>This outputs something like this</p>
<blockquote><p>Linux localhost.localdomain 2.4.20-31.9 #1 Tue Apr 13 18:04:23 EDT 2004 i686 i686 i386 GNU/Linux</p></blockquote>
<p>If you need the actual distro name you can try<br />
<code>cat /etc/*release</code></p>
<p>In Ubuntu it shows up as</p>
<blockquote><p>DISTRIB_ID=Ubuntu<br />
DISTRIB_RELEASE=9.04<br />
DISTRIB_CODENAME=jaunty<br />
DISTRIB_DESCRIPTION=&#8221;Ubuntu 9.04&#8243;</p></blockquote>
<p>Or even<br />
<code>cat /etc/issue</code></p>
<p>which spits out the following on Ubuntu</p>
<blockquote><p>Ubuntu 9.04 \n \l</p></blockquote>
<p>You can combine all three to get the following<br />
<code>uname -a &#038;&#038; cat /etc/*release &#038;&#038; cat /etc/issue</code></p>
<p><strong>Update: </strong><br />
Another one to add to the list<br />
<code>cat /proc/version</code></p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/how-to-tell-what-distro-you-are-running/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SNMP on OpenSolaris</title>
		<link>http://nsfw.ibnmasud.com/snmp-on-open-solaris/</link>
		<comments>http://nsfw.ibnmasud.com/snmp-on-open-solaris/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 14:46:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=85</guid>
		<description><![CDATA[SNMP is not installed by default on Open Solaris but really easy to set up. You don&#8217;t need to compile it from source as some would suggest. All you&#8217;ll need is to install the SUNWsmmgr package. pkg install SUNWsmmgr All of the config files, including snmpd.conf are in /etc/sma/snmp. The service to enable snmp is [...]]]></description>
			<content:encoded><![CDATA[<p>SNMP is not installed by default on Open Solaris but really easy to set up. You don&#8217;t need to compile it from source as some would suggest.</p>
<p>All you&#8217;ll need is to install the <a href="http://docs.sun.com/app/docs/doc/817-3000/configure-1?a=view">SUNWsmmgr</a> package.<br />
<code>pkg install SUNWsmmgr</code><br />
All of the config files, including snmpd.conf are in /etc/sma/snmp.</p>
<p>The service to enable snmp is called sma.<br />
<code>svcadm enable svc:/application/management/sma:default</code></p>
<p>To install utilities like snmpwalk and snmpget, you can install the SUNWsmcmd package. </p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/snmp-on-open-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing VirtualBoxAdditions in Ubuntu</title>
		<link>http://nsfw.ibnmasud.com/adding-virtualboxadditions-on-your-ubuntu-guest-os/</link>
		<comments>http://nsfw.ibnmasud.com/adding-virtualboxadditions-on-your-ubuntu-guest-os/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 18:56:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=79</guid>
		<description><![CDATA[In order to install Virtual Box Additions on your newly install Ubuntu virtual machine, you will need to fulfill the following dependencies. Install dkms and the GNU C Compiler using the following command: sudo apt-get install dkms gcc Install the build and header files for Ubuntu using the following command: sudo apt-get install linux-headers-$(uname -r) [...]]]></description>
			<content:encoded><![CDATA[<p>In order to install Virtual Box Additions on your newly install Ubuntu virtual machine, you will need to fulfill the following dependencies.</p>
<p>Install <a title="What is DKMS ?" href="http://linux.dell.com/dkms/" target="_blank">dkms</a> and the <a title="GNU C Compiler" href="http://gcc.gnu.org/" target="_blank">GNU C Compiler</a> using the following command:</p>
<p><code>sudo apt-get install dkms gcc</code></p>
<p>Install the build and header files for Ubuntu using the following command:</p>
<p><code>sudo apt-get install linux-headers-$(uname -r)</code></p>
<p>$(uname -r) in the above command just passes your kernel version to apt-get</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/adding-virtualboxadditions-on-your-ubuntu-guest-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restrict SSH login access on CentOS</title>
		<link>http://nsfw.ibnmasud.com/restrict-ssh-login-access-on-centos/</link>
		<comments>http://nsfw.ibnmasud.com/restrict-ssh-login-access-on-centos/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 19:48:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=21</guid>
		<description><![CDATA[By default CentOS allows ssh access to all users who can authenticate with the server. This can be a security risk especially when you have setup the server to authenticate against an Active Directory domain. In this case all the users on the domain can login via ssh to your CentOS server. You can, however, [...]]]></description>
			<content:encoded><![CDATA[<p>By default CentOS allows ssh access to all users who can authenticate with the server. This can be a security risk especially when you have setup the server to authenticate against an Active Directory domain. In this case all the users on the domain can login via ssh to your CentOS server. You can, however, very easily restrict logins to specific users, computers, or even users on specific computers.</p>
<p>To do this, edit /etc/ssh/sshd_config by adding the AllowUsers directive in the following format.</p>
<p><code>AllowUsers user@host</code></p>
<p>This allows the user &#8216;user&#8217; to login at the host named &#8216;host&#8217;. Multiple users can listed by separating each with a space. You can also use * to specify wildcards. You can also specify IP addresses and ranges using *.</p>
<p><code>AllowUsers *@192.168.1.* johndoe@192.168.1.3</code></p>
<p>This will allow all users to log into all computers with address starting with 192.168.1 and the user johndoe to log only into the with IP address 192.168.1.3.</p>
<p>This will work for other Linux OSes as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/restrict-ssh-login-access-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Listing used ports in Linux</title>
		<link>http://nsfw.ibnmasud.com/listing-used-ports-in-linux/</link>
		<comments>http://nsfw.ibnmasud.com/listing-used-ports-in-linux/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 17:32:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=18</guid>
		<description><![CDATA[The lsof command can display all open files in Linux. With some filtering you can use it to show all open/utilized ports as well. lsof -i TCP:443 This command will list all processes, their pids, and user under which the process is running, that are utilizing port 443. To list all TCP ports, one could [...]]]></description>
			<content:encoded><![CDATA[<p>The lsof command can display all open files in Linux. With some filtering you can use it to show all open/utilized ports as well.</p>
<p><code>lsof -i TCP:443</code><br />
This command will list all processes, their pids, and user under which the process is running, that are utilizing port 443.</p>
<p>To list all TCP ports, one could use<br />
<code>lsof -i TCP</code></p>
<p>Type lsof &#8211;help for more options.</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/listing-used-ports-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Ubuntu to Active Directory with Likewise Open</title>
		<link>http://nsfw.ibnmasud.com/adding-ubuntu-to-active-directory-with-likewise-open/</link>
		<comments>http://nsfw.ibnmasud.com/adding-ubuntu-to-active-directory-with-likewise-open/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 20:15:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=14</guid>
		<description><![CDATA[The company I work for has been a Windows only shop for a long time and has recently starting moving towards Linux. We&#8217;re growing at fast pace and sustaining our operations remaining a Windows shop will be too expensive. That&#8217;s not to say we&#8217;re completely ditching MS. I recently put into service a new server [...]]]></description>
			<content:encoded><![CDATA[<p>The company I work for has been a Windows only shop for a long time and has recently starting moving towards Linux. We&#8217;re growing at fast pace and sustaining our operations remaining a Windows shop will be too expensive. That&#8217;s not to say we&#8217;re completely ditching MS.</p>
<p>I recently put into service a new server running Ubuntu Server 8.04.1 to host our SVN and continuous build server (Hudson). I was looking for a way to authenticate the server against Active Directory and came across Likewise Open. I was surprised at the simplicity of the whole setup.</p>
<ol>
<li><span>sudo apt-get install likewise-open</span></li>
<li><span>sudo domainjoin-cli join yourdomain.com yourADusername</span></li>
<li><span>sudo update-rc.d likewise-open defaults</span></li>
<li><span>sudo /etc/init.d/likewise-open start</span></li>
</ol>
<p>Just make sure to replace yourdomain.com and yourADusername with your own domain name and active directory username. If you&#8217;re using a firewall, which you should be, make sure the required TCP/UDP ports are open.</p>
<p>I still need to figure out how to mount network shares automatically. I&#8217;ll keep this post updated with my findings.</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/adding-ubuntu-to-active-directory-with-likewise-open/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reset your lost Ubuntu Password</title>
		<link>http://nsfw.ibnmasud.com/reset-your-lost-ubuntu-password/</link>
		<comments>http://nsfw.ibnmasud.com/reset-your-lost-ubuntu-password/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 05:08:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/archives/8</guid>
		<description><![CDATA[If you ever get locked out of your Ubuntu installation as I found myself to be tonight, you can reset your password quite easily using the following steps. Power up your computer. Press ESC at the grub menu. Press e for edit. Highlight the line that begins &#8220;Ubuntu, KERNEL ………&#8221; and press e. Go to [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever get locked out of your Ubuntu installation as I found myself to be tonight, you can reset your password quite easily using the following steps.</p>
<ol>
<li>Power up your computer.</li>
<li>Press ESC at the grub menu.</li>
<li>Press e for edit.</li>
<li>Highlight the line that begins &#8220;Ubuntu, KERNEL ………&#8221; and press e.</li>
<li>Go to the end of this line, add <em>rw init=/bin/bash</em> and press enter.</li>
<li>Press b to boot your system.</li>
<li>Your system will boot up to a passwordless root shell.</li>
<li>Type in <em>passwd username</em> where username is the username you lost the password for.</li>
<li>Set your password.</li>
<li>Type in reboot.</li>
</ol>
<p>That is it! you can now log in using your new password. You can even reset your root password here but cannot login with it at the login screen.</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/reset-your-lost-ubuntu-password/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Alternate Shortcuts to cut-copy-paste</title>
		<link>http://nsfw.ibnmasud.com/alternate-shortcuts-to-cut-copy-paste/</link>
		<comments>http://nsfw.ibnmasud.com/alternate-shortcuts-to-cut-copy-paste/#comments</comments>
		<pubDate>Mon, 15 Oct 2007 15:25:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[shortcuts]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/archives/7</guid>
		<description><![CDATA[Did you know there are alternate shortcuts to the commonly used cut (ctrl+x), copy (ctrl+c) and paste (ctrl+v) shortcuts? Action Shortcut Alternate Shortcut Cut Ctrl+X Del+Shift Copy Ctrl+C Insert+Ctrl Paste Ctrl+V Insert+Shift These are kind of confusing so I&#8217;m sticking to the Ctrl+ shortcuts. For those who use different keyboard layouts like Dvorák the X, [...]]]></description>
			<content:encoded><![CDATA[<p>Did you know there are alternate shortcuts to the commonly used cut (ctrl+x), copy (ctrl+c) and paste (ctrl+v) shortcuts?</p>
<blockquote>
<table border="0" width="99%">
<tbody>
<tr>
<td width="33%"><strong>Action</strong></td>
<td width="33%"><strong>Shortcut</strong></td>
<td width="33%"><strong>Alternate Shortcut</strong></td>
</tr>
<tr>
<td width="33%">Cut</td>
<td width="33%">Ctrl+X</td>
<td width="33%">Del+Shift</td>
</tr>
<tr>
<td width="33%">Copy</td>
<td width="33%">Ctrl+C</td>
<td width="33%">Insert+Ctrl</td>
</tr>
<tr>
<td width="33%">Paste</td>
<td width="33%">Ctrl+V</td>
<td width="33%">Insert+Shift</td>
</tr>
</tbody>
</table>
</blockquote>
<p>These are kind of confusing so I&#8217;m sticking to the Ctrl+ shortcuts. For those who use different keyboard layouts like Dvorák the X, C and V keys are placed far apart and awkward to use. In such cases the alternate shortcuts maybe easier to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/alternate-shortcuts-to-cut-copy-paste/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

