<?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; howto</title>
	<atom:link href="http://nsfw.ibnmasud.com/category/howto/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>Remote management of Exchange 2010 using PowerShell</title>
		<link>http://nsfw.ibnmasud.com/remote-management-of-exchange-2010-using-powershell/</link>
		<comments>http://nsfw.ibnmasud.com/remote-management-of-exchange-2010-using-powershell/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 16:57:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=118</guid>
		<description><![CDATA[You can run powershell commands on your Exchange 2010 server from machines whether or not they have the Exchange Management Tools installed using implicit remoting. Even when you run the Exchange Management Shell on your exchange server, you&#8217;re essentially creating a powershell remoting session. The following steps take place in the background when you click [...]]]></description>
			<content:encoded><![CDATA[<p>You can run powershell commands on your Exchange 2010 server from machines whether or not they have the Exchange Management Tools installed using implicit remoting.</p>
<p>Even when you run the Exchange Management Shell on your exchange server, you&#8217;re essentially creating a powershell remoting session. The following steps take place in the background when you click the EMS icon:</p>
<li>Load the Microsoft.Exchange.Management.PowerShell.E2010 snap-in gets loaded</li>
<li>The RemoteExchange.ps1 script is dot sourced</li>
<li>The Connect-ExchangeServer function is executed</li>
<p>You can set up implicit remoting from any maching using powershell v2. This imports the commands from your exchange server to your local powershell session so you don&#8217;t need any Exchange tools installed.</p>
<p>First we create a session using the New-PSSession cmdlet:</p>
<p><code>$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://&lt;CAS FQDN&gt;/PowerShell/ -Authentication Kerberos</code></p>
<p>Then, import the session using the Import-PSSession cmdlet:</p>
<p><code>Import-PSSession $s</code></p>
<p>The Exchange Management Shell commands are now imported into the local PowerShell session.</p>
<p>You could use the same method to setup a scheduled task from your machine to run a commands on your exchange server.</p>
<p>[source: <a href="http://www.mikepfeiffer.net/2010/02/managing-exchange-2010-with-remote-powershell/"> ]</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/remote-management-of-exchange-2010-using-powershell/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>Batch editing Dial-up or VPN access settings in Active Directory</title>
		<link>http://nsfw.ibnmasud.com/batch-editing-dial-up-or-vpn-access-settings-in-active-directory/</link>
		<comments>http://nsfw.ibnmasud.com/batch-editing-dial-up-or-vpn-access-settings-in-active-directory/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 17:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[2003]]></category>
		<category><![CDATA[active directory]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=88</guid>
		<description><![CDATA[Script to edit Remote Access Permissions in the Dial-in tab in Active Directory for multiple users in an OU.]]></description>
			<content:encoded><![CDATA[<p>Active Directory doesn&#8217;t let you edit the Dial-up of VPN access policies for multiple users at once through the GUI. You have to edit this setting one at a time for each user. This can be painstaking if you a lot of users. Luckily there is a VB script available like for almost everything else in AD.<br />
<code><br />
Dim aConnection, aCommand, aResult, strLDAPPath, user, objUser<br />
Const ADS_PROPERTY_CLEAR = 1<br />
strLDAPPath = InputBox("Please enter the LDAP path of the OU:")<br />
WScript.Echo strLDAPPath<br />
Set aConnection = CreateObject("ADODB.Connection")<br />
Set aCommand = CreateObject("ADODB.Command")<br />
aConnection.Provider = "ADsDSOObject"<br />
aConnection.Open<br />
aCommand.ActiveConnection = aConnection<br />
aCommand.CommandText="<LDAP://" &#038; strLDAPPath &#038; ">;(&#038;(objectCategory=Person)(objectClass=User));distinguishedName;subTree"<br />
Set aResult = aCommand.Execute()<br />
Do While Not aResult.EOF<br />
	strDN = aResult.Fields("distinguishedName")<br />
	WScript.Echo strDN<br />
	Set objUser = GetObject("LDAP://" &#038; strDN)<br />
'	Comment the following line to manage connection through Remote Access Policy<br />
	objUser.Put "msNPAllowDialin", FALSE<br />
'	Uncomment the following line to manage connection through Remote Access Policy<br />
'	objUser.PutEx ADS_PROPERTY_CLEAR, "msNPAllowDialin", 0<br />
	objUser.SetInfo<br />
	aResult.MoveNext<br />
Loop</p>
<p></code><br />
This script will update the access settings for a group of users in a particular OU. Once you run the script, a dialog box will ask you for this OU. Once this is set all users in that OU will be updated. </p>
<p>The AD property this script modifies is &#8216;msNPAllowDialin&#8217;. This property is accepts boolean values. So the three options are </p>
<li>TRUE (to allow access)</li>
<li>FALSE (to deny access)</li>
<p>To manage access via the Remote Access Policy, comment out the<br />
<code><br />
	objUser.Put "msNPAllowDialin", FALSE<br />
</code><br />
and uncomment the<br />
<code><br />
'	objUser.PutEx ADS_PROPERTY_CLEAR, "msNPAllowDialin", 0<br />
</code><br />
line.</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/batch-editing-dial-up-or-vpn-access-settings-in-active-directory/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>How to tell if .Net Framework is installed</title>
		<link>http://nsfw.ibnmasud.com/how-to-tell-if-net-framework-is-installed/</link>
		<comments>http://nsfw.ibnmasud.com/how-to-tell-if-net-framework-is-installed/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 17:59:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=72</guid>
		<description><![CDATA[The officially supported method of detecting the presence of the .NET Framework 2.0 is to check the following registry key/value: [HKEY_LOCAL_MACHINE\Software\Microsoft\Net Framework Setup\NDP\v2.0.50727] Install = 1 (REG_DWORD)]]></description>
			<content:encoded><![CDATA[<p>The officially supported method of detecting the presence of the .NET Framework 2.0 is to check the following registry key/value:</p>
<p><code>[HKEY_LOCAL_MACHINE\Software\Microsoft\Net Framework Setup\NDP\v2.0.50727]<br />
Install = 1 (REG_DWORD)</code></p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/how-to-tell-if-net-framework-is-installed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change password from the command line</title>
		<link>http://nsfw.ibnmasud.com/change-password-from-the-command-line/</link>
		<comments>http://nsfw.ibnmasud.com/change-password-from-the-command-line/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 15:50:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[howto password windows]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/change-password-from-the-command-line/</guid>
		<description><![CDATA[net user &#60;username&#62; &#60;password&#62; Or if you want to hide the password and enter it at a prompt net user &#60;username&#62; *]]></description>
			<content:encoded><![CDATA[<p><code>net user &lt;username&gt; &lt;password&gt;</code><br />
Or if you want to hide the password and enter it at a prompt<br />
<code>net user &lt;username&gt; *</code></p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/change-password-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Allowing non-admin Windows users to change IP addresses</title>
		<link>http://nsfw.ibnmasud.com/allowing-non-admin-windows-users-to-change-ip-addresses/</link>
		<comments>http://nsfw.ibnmasud.com/allowing-non-admin-windows-users-to-change-ip-addresses/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 15:34:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[2003]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=54</guid>
		<description><![CDATA[How to allow non-admin users change their IP address.]]></description>
			<content:encoded><![CDATA[<p>If you want to allow non-admin users in Windows to change the IP address settings on their PCs, you can add them to the built-in &#8220;Network Configuration Operators&#8221; group. This can be done from the command line as</p>
<p><code>net localgroup "Network Configuration Operators" /add &lt;username&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/allowing-non-admin-windows-users-to-change-ip-addresses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

