<?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>Tue, 03 Aug 2010 22:10:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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 you need the actual distro [...]]]></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>
]]></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 called sma.
svcadm enable svc:/application/management/sma:default
To [...]]]></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" onclick="javascript:pageTracker._trackPageview ('/outbound/docs.sun.com');">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)
$(uname -r) in the above [...]]]></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 href="http://linux.dell.com/dkms/" title="What is DKMS ?" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/linux.dell.com');">dkms</a> and the <a href="http://gcc.gnu.org/" title="GNU C Compiler" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/gcc.gnu.org');">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 use
lsof -i TCP
Type [...]]]></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 running [...]]]></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 the end of this line, [...]]]></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, C and V keys are placed far apart and awkward to use. In [...]]]></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>
		<item>
		<title>Configuring Pidgin to work with Google Talk</title>
		<link>http://nsfw.ibnmasud.com/how-to-configure-pidgin-to-work-with-google-talk/</link>
		<comments>http://nsfw.ibnmasud.com/how-to-configure-pidgin-to-work-with-google-talk/#comments</comments>
		<pubDate>Thu, 02 Aug 2007 15:41:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[gtalk]]></category>
		<category><![CDATA[IM]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/archives/6</guid>
		<description><![CDATA[Pidgin (formerly GAIM) is an open-source multi-protocol IM client which can allow to chat over MSN, Yahoo, AIM and many other protocols. The following settings will allow Pidgin to work with Google Talk.

1. Open Pidgin and go to Add / Edit under the Account menu.
2. Click on Add.
3. On the Basic tab, Use the following [...]]]></description>
			<content:encoded><![CDATA[<p>Pidgin (formerly GAIM) is an open-source multi-protocol IM client which can allow to chat over MSN, Yahoo, AIM and many other protocols. The following settings will allow Pidgin to work with Google Talk.<br />
<span id="more-6"></span><br />
1. Open Pidgin and go to Add / Edit under the Account menu.</p>
<p>2. Click on Add.</p>
<p>3. On the Basic tab, Use the following settings under Login Options:</p>
<ul>Protocol: <strong>XMPP</strong><br />
Screen name: <strong>google id</strong> (everything before the @ symbol)<br />
Domain: <strong>gmail.com</strong> (use googlemail.com if your email ends in @googlemail.com)<br />
Password: <strong>your password</strong><br />
Remember Password: <strong>check for automatic login</strong></ul>
<p>The Resource and Local Alias fields are not required</p>
<p><a href="http://nomi.ibnmasud.com/wp-content/uploads/2007/08/tabs.png" title="Pidgin settings"><img src="http://nomi.ibnmasud.com/wp-content/uploads/2007/08/tabs.png" alt="Pidgin settings" /></a></p>
<p>4. On the Advanced tab,</p>
<ul>Force old (port 5223) SSL: <strong>Checked</strong><br />
Allow plaintext auth over unencrypted streams: <strong>Unchecked</strong><br />
Connect Port: <strong>443</strong><br />
Connect Server: <strong>talk.google.com</strong><br />
Proxy type: <strong>Use Global Proxy Settings</strong></ul>
<p>5. Click the Save button.</p>
<p>Troubleshooting:<br />
If you&#8217;ve tried a number of settings prior to this guide and are still unable to connect,</p>
<p><a href="http://nomi.ibnmasud.com/wp-content/uploads/2007/08/pidgin-accounts.jpg" title="Pidgin Accounts Window"><img src="http://nomi.ibnmasud.com/wp-content/uploads/2007/08/pidgin-accounts.jpg" alt="Pidgin Accounts Window" /></a></p>
<ol>
<li>Click the Save button and not the Register button after modifying any settings.</li>
<li>The Enable checkbox next to your account in the Accounts window needs to be checked.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/how-to-configure-pidgin-to-work-with-google-talk/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
