<?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>The RoarinPenguin Techiezone</title>
	<atom:link href="http://techiezone.rottigni.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://techiezone.rottigni.net</link>
	<description>Notes, hints, tips... in one word: experience!</description>
	<lastBuildDate>Thu, 26 Jan 2012 03:17:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Ext2/Ext3 Support on MAC OS X Lion</title>
		<link>http://techiezone.rottigni.net/2012/01/ext2ext3-support-on-mac-os-x-lion/</link>
		<comments>http://techiezone.rottigni.net/2012/01/ext2ext3-support-on-mac-os-x-lion/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 03:14:41 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[ext2]]></category>
		<category><![CDATA[ext2-fuse]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[hard disk]]></category>
		<category><![CDATA[Lion]]></category>
		<category><![CDATA[macfuse]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[osxfuse]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/?p=198</guid>
		<description><![CDATA[As usual, not that immediate to find a proper answer on the &#8216;Net, hence I&#8217;m providing one here. While in Snow Leopard was quite easy to see your ext2/ext3 formatted disks via MacFuse and ext2-fuse, in Lion you need to install another fuse fork and select a special option. That new fork is OSXFUSE, which [...]]]></description>
			<content:encoded><![CDATA[<p>As usual, not that immediate to find a proper answer on the &#8216;Net, hence I&#8217;m providing one here.</p>
<p>While in Snow Leopard was quite easy to see your ext2/ext3 formatted disks via MacFuse and <a href="http://sourceforge.net/projects/fuse-ext2/" target="_blank">ext2-fuse</a>, in Lion you need to install another fuse fork and select a special option. That new fork is <a href="http://osxfuse.github.com/" target="_blank">OSXFUSE</a>, which latest release at the time of this post if from December 2011.</p>
<p>The most common symptom indicating you need this is to try mounting an ext2/3 formatted drive and see the following error:</p>
<pre>fuse-ext2 /dev/disk3s1 /Volumes/Movies
dyld: Library not loaded: /usr/local/lib/libfuse.2.dylib
 Referenced from: /usr/local/bin/fuse-ext2
 Reason: image not found</pre>
<p>During the installation of OSXFUSE, you need to enable MacFuse Compatibility Layer by flagging the appropriate checkbox as shown below:</p>
<div id="attachment_199" class="wp-caption alignnone" style="width: 444px"><a href="http://techiezone.rottigni.net/wp-content/uploads/2012/01/osxfuseinstall.png"><img class=" wp-image-199" title="osxfuseinstall" src="http://techiezone.rottigni.net/wp-content/uploads/2012/01/osxfuseinstall.png" alt="" width="434" height="308" /></a><p class="wp-caption-text">click to zoom</p></div>
<p>Once you&#8217;re done with this, replug your ext2/3 formatted drive and it&#8217;ll automagically mount it in Finder, giving your deserved magnificent user experience of a Mac user <img src='http://techiezone.rottigni.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2012/01/ext2ext3-support-on-mac-os-x-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Root DN Password on OpenLDAP</title>
		<link>http://techiezone.rottigni.net/2011/12/change-root-dn-password-on-openldap/</link>
		<comments>http://techiezone.rottigni.net/2011/12/change-root-dn-password-on-openldap/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 10:19:47 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[OpenLDAP]]></category>
		<category><![CDATA[Change Password]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Root DN]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/?p=196</guid>
		<description><![CDATA[Took me BIG time, some hack and research on the internet to find the information contained in this post. Don&#8217;t want to redo it again therefore I &#8220;took note&#8221; in my universally accessible internet notepad The problem is the following: when I installed OpenLDAP, I have set a password for my OpenLDAP administrator that I [...]]]></description>
			<content:encoded><![CDATA[<p>Took me BIG time, some hack and research on the internet to find the information contained in this post.</p>
<p>Don&#8217;t want to redo it again therefore I &#8220;took note&#8221; in my universally accessible internet notepad <img src='http://techiezone.rottigni.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The problem is the following: when I installed OpenLDAP, I have set a password for my OpenLDAP administrator that I would like to change. Admin account is normally NOT stored in the main LDAP bridge where other accounts are stored, and it is particularly difficult to find good documentation about how to do it.</p>
<p>If you find yourself in the same situation, here a working procedure you can follow (which at least worked on my OpenLDAP running on Ubuntu 10.10).</p>
<p>Although you can type in the password straight in a certain file in cleartext if you have root access to the machine, the more &#8220;elegant&#8221; way is to use the proper <em>ldapmodify</em> command.</p>
<p>First, we need to find a way to locate the credentials information of the administrator account in the correct database within the LDAP tree.</p>
<p>This can be done using the command:</p>
<p>ldapsearch -LLL -Y EXTERNAL -H ldapi:/// -b  cn=config olcRootDN=<span style="color: #3366ff;">cn=admin,dc=example,dc=com</span> dn olcRootDN olcRootPW</p>
<p>(replace olcRootDN value highlighted in blue with the correct value to match your configuration)</p>
<p>This command will return:</p>
<pre>SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
dn: olcDatabase={1}hdb,cn=config
olcRootDN: cn=admin,dc=example,dc=com
olcRootPW: {SHA}ksixAVfgRXavGCpkPefc6hRHL4X=</pre>
<p>There are two interesting information we know now:</p>
<ol>
<li>we need to modify the entry &#8220;<em>dn: olcDatabase={1}hdb,cn=config</em>&#8220;</li>
<li>the current password is hashed with SHA1 algorythm.<br />
Therefore we need to generate our new password with the same algorythm using the command <em>slappasswd</em> using the syntax</li>
</ol>
<pre>slappasswd -h &lt;<em>the hashing scheme we want to use - for example {SHA}</em>&gt;</pre>
<p>The system will then prompt us twice for the new password to use and will finally display the hashed value we&#8217;re interested in (example below with password = <em>password</em>)</p>
<pre>root@testbox:~# slappasswd -h {SHA} New password:
Re-enter new password:
{SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=</pre>
<p>Then we&#8217;ll proceed to modify the entry we&#8217;ve identified above using the command:</p>
<pre>root@testbox:~# ldapmodify -Y EXTERNAL -H ldapi:///</pre>
<p>The system will start the listening mode for modifying commands:</p>
<pre>SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0</pre>
<pre></pre>
<p>First, we enter the entry we want to modify:</p>
<pre>dn: olcDatabase={1}hdb,cn=config</pre>
<p>Second, we type in the parameter we want to modify:</p>
<pre>replace: olcRootPW</pre>
<p>Third, we type in the new password generated above (copy and paste is MUCH less error prone than manual typing at this point <img src='http://techiezone.rottigni.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )</p>
<pre>olcRootPW: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=</pre>
<p>Hit Enter another time to commit the modification and the following line will appear:</p>
<pre>modifying entry "olcDatabase={1}hdb,cn=config"</pre>
<p>After this, you can exit the listening mode with CTRL+C and restart the LDAP database service using</p>
<pre>service slapd stop</pre>
<pre>service slapd start</pre>
<p>and login now with the new password set.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2011/12/change-root-dn-password-on-openldap/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Format file in FAT32 on a Mac</title>
		<link>http://techiezone.rottigni.net/2011/12/format-file-in-fat32-on-a-mac/</link>
		<comments>http://techiezone.rottigni.net/2011/12/format-file-in-fat32-on-a-mac/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 20:50:22 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[format fat32]]></category>
		<category><![CDATA[MAC OS X]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/?p=190</guid>
		<description><![CDATA[Had a need, found a solution, reporting the procedure here. First, you need to understand what is the disk name of the device you want to format. For example, if you have a MacBook Pro and a SD card, this is done using disk utility, selecting the card reader where you inserted the SD card [...]]]></description>
			<content:encoded><![CDATA[<p>Had a need, found a solution, reporting the procedure here.</p>
<p>First, you need to understand what is the disk name of the device you want to format.</p>
<p>For example, if you have a MacBook Pro and a SD card, this is done using disk utility, selecting the card reader where you inserted the SD card and clicking on Info button to get information about the storage.</p>
<p>Click to enlarge the picture below.</p>
<p>&nbsp;</p>
<p><a href="http://techiezone.rottigni.net/wp-content/uploads/2011/12/disk-utility.png"><img class="alignnone size-medium wp-image-191" title="disk utility" src="http://techiezone.rottigni.net/wp-content/uploads/2011/12/disk-utility-300x244.png" alt="" width="300" height="244" /></a></p>
<p>Even with an italian screenshot, you can grab that in my example the device name is <strong>disk4.</strong></p>
<p>Open <em>Terminal</em> and type the command reported below to proceed with the format:</p>
<p>diskutil partitionDisk <span style="color: #008080;">/dev/disk4</span> MBRFormat &#8220;<span style="color: #993300;">MS-DOS FAT32</span>&#8221; &#8220;<span style="color: #3366ff;">2G</span>&#8221; <span style="color: #ff9900;">2Gb</span></p>
<p>This will create on <span style="color: #008080;">/dev/disk4</span> a <span style="color: #993300;">FAT 32</span> (MS-DOS FAT16 will do a 16bit one) partition labeled <span style="color: #3366ff;">2G</span> of <span style="color: #ff9900;">2 Gb</span> in size.</p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2011/12/format-file-in-fat32-on-a-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Move running processes to another tty or screen</title>
		<link>http://techiezone.rottigni.net/2011/12/move-running-processes-to-another-tty-or-screen/</link>
		<comments>http://techiezone.rottigni.net/2011/12/move-running-processes-to-another-tty-or-screen/#comments</comments>
		<pubDate>Sun, 04 Dec 2011 09:59:42 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[move process]]></category>
		<category><![CDATA[reptyr]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/?p=187</guid>
		<description><![CDATA[How many times I did find myself launching a script, or worst, seeing a process running on a system and wishing to take control over it&#8230; the answer is too many Today I&#8217;ve found a nice solution at least for Linux systems with the utility reptyr. While I&#8217;m writing this post the package is still [...]]]></description>
			<content:encoded><![CDATA[<p>How many times I did find myself launching a script, or worst, seeing a process running on a system and wishing to take control over it&#8230; the answer is too many <img src='http://techiezone.rottigni.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Today I&#8217;ve found a nice solution at least for Linux systems with the utility <strong><a href="http://packages.qa.debian.org/r/reptyr.html" target="_blank">reptyr</a></strong>.</p>
<p>While I&#8217;m writing this post the package is still in unstable dist, hence not part of the &#8220;standard&#8221; repositories for a Debian Linux system.</p>
<p>But you can download it using command:</p>
<pre>wget http://http.us.debian.org/debian/pool/main/r/reptyr/reptyr_0.3-2_i386.deb</pre>
<p>for i386 architecture.</p>
<p>Then, to install</p>
<pre>qpkg -i reptyr_0.3-2_i386.deb</pre>
<p>And finally you run it.</p>
<p>For example, to bring a process with pid 4242 to your running tty you type:</p>
<pre>reptyr 4242</pre>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2011/12/move-running-processes-to-another-tty-or-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to exit screen terminal emulator in Mac</title>
		<link>http://techiezone.rottigni.net/2011/11/how-to-exit-screen-terminal-emulator-in-mac/</link>
		<comments>http://techiezone.rottigni.net/2011/11/how-to-exit-screen-terminal-emulator-in-mac/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 16:56:56 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[terminal emulation]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/?p=185</guid>
		<description><![CDATA[Since I always fail to remember this&#8230; Control+A ==&#62; send commands to screen Control+A, followed by Control+\ exit the session &#160;]]></description>
			<content:encoded><![CDATA[<p>Since I always fail to remember this&#8230; <img src='http://techiezone.rottigni.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Control+A ==&gt; send commands to screen</p>
<p>Control+A, followed by Control+\ exit the session</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2011/11/how-to-exit-screen-terminal-emulator-in-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting ATEN USB-to-Serial to work (again) on MAC OS X Lion</title>
		<link>http://techiezone.rottigni.net/2011/11/getting-aten-usb-to-serial-to-work-again-on-mac-os-x-lion/</link>
		<comments>http://techiezone.rottigni.net/2011/11/getting-aten-usb-to-serial-to-work-again-on-mac-os-x-lion/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 16:49:30 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Aten]]></category>
		<category><![CDATA[Lion]]></category>
		<category><![CDATA[UC-232A]]></category>
		<category><![CDATA[USB to Serial adapter]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/?p=182</guid>
		<description><![CDATA[This awesome USB to Serial adapter was working perfectly in MAC OS X Snow Leopard, but it did stop when I upgraded to Lion. Luckily I&#8217;ve found good hints on few websites and because I&#8217;ve been able to fix it and now I have this working again, I&#8217;ve decided to document here how to make [...]]]></description>
			<content:encoded><![CDATA[<p>This awesome USB to Serial adapter was working perfectly in MAC OS X Snow Leopard, but it did stop when I upgraded to Lion.</p>
<p>Luckily I&#8217;ve found good hints on few websites and because I&#8217;ve been able to fix it and now I have this working again, I&#8217;ve decided to document here how to make it working.</p>
<p>First, you need to download the drivers for MAC OS X 10.6 <a href="http://www.prolific.com.tw/eng/downloads.asp?id=31">provided by the vendor</a>.</p>
<p>Then, use the application USB Prober in Mac to find out what is the Vendor ID and Product ID of the adapter you are using.</p>
<p>The screenshot below shows example in my case (click to zoom):</p>
<p><a href="http://techiezone.rottigni.net/wp-content/uploads/2011/11/Screen-Shot-2011-11-17-at-5.50.55-PM.png"><img class="alignnone size-medium wp-image-183" title="Screen Shot 2011-11-17 at 5.50.55 PM" src="http://techiezone.rottigni.net/wp-content/uploads/2011/11/Screen-Shot-2011-11-17-at-5.50.55-PM-300x283.png" alt="" width="300" height="283" /></a></p>
<p>Take not of the decimal values and go edit (with sudo) the file /System/Library/Extensions/ProlificUsbSerial.kext/Contents/Info.plist</p>
<p>Locate the keywords described below:</p>
<p><code>&lt;key&gt;idProduct&lt;/key&gt;<br />
</code><span class="Apple-style-span" style="font-family: monospace;">&lt;integer&gt;xxxx&lt;/integer&gt;<br />
</span><span class="Apple-style-span" style="font-family: monospace;">&lt;key&gt;idVendor&lt;/key&gt;<br />
</span><span class="Apple-style-span" style="font-family: monospace;">&lt;integer&gt;xxxx&lt;/integer&gt;</span></p>
<p>Replace the xxxx values with the numbers indicated below:</p>
<p><code>&lt;key&gt;idProduct&lt;/key&gt;<br />
</code><span class="Apple-style-span" style="font-family: monospace;">&lt;integer&gt;8200&lt;/integer&gt;<br />
</span><span class="Apple-style-span" style="font-family: monospace;">&lt;key&gt;idVendor&lt;/key&gt;<br />
</span><span class="Apple-style-span" style="font-family: monospace;">&lt;integer&gt;1367&lt;/integer&gt;</span></p>
<p>Save and close the file.</p>
<p>Execute the following commands:</p>
<p><code>sudo kextunload ProlificUsbSerial.kext</code></p>
<div>
<p><code>sudo kextload ProlificUsbSerial.kext</code></p>
<p>After this, you should be able to find the device <em>cu.usbserial</em> in <em>/dev </em>directory, which is the proof that the adapter is working.</p>
<p>You can then use the command screen cu.usbserial and get your marvelous adapter to work again.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2011/11/getting-aten-usb-to-serial-to-work-again-on-mac-os-x-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Create a Bootable Image of Ubuntu (or any bootable ISO) on a Mac</title>
		<link>http://techiezone.rottigni.net/2011/11/how-to-create-a-bootable-image-of-ubuntu-or-any-bootable-iso-on-a-mac/</link>
		<comments>http://techiezone.rottigni.net/2011/11/how-to-create-a-bootable-image-of-ubuntu-or-any-bootable-iso-on-a-mac/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 10:40:53 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[LiveCD and Bootable USB]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[bootable usb stick]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/?p=179</guid>
		<description><![CDATA[Found this process well described on Ubuntu website, hence thought it was a good idea to report here also, for future usage. Note: this procedure requires an .img file that you will be required to create from the .iso file you download. TIP: Drag and Drop a file from Finder to Terminal to &#8216;paste&#8217; the [...]]]></description>
			<content:encoded><![CDATA[<p>Found this process well described on <a href="http://www.ubuntu.com" target="_blank">Ubuntu</a> website, hence thought it was a good idea to report here also, for future usage.</p>
<p>Note: this procedure requires an .img file that you will be required to create from the .iso file you download.</p>
<p>TIP: Drag and Drop a file from Finder to Terminal to &#8216;paste&#8217; the full path without typing and risking type errors.</p>
<p>&nbsp;</p>
<p>1. Download the desired file</p>
<p>2. Open the Terminal (in /Applications/Utilities/ or query Terminal in Spotlight)</p>
<p>3. Convert the .iso file to .img using the convert option of hdiutil (e.g.,hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso)</p>
<p>4. Note: OS X tends to put the .dmg ending on the output file automatically.</p>
<p>5. Run diskutil list to get the current list of devices</p>
<p>6. Insert your flash media</p>
<p>7. Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)</p>
<p>8. Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2)</p>
<p>9. Execute sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m (replace /path/to/downloaded.img with the path where the image file is located; for example,./ubuntu.img or ./ubuntu.dmg).</p>
<p style="padding-left: 30px;">▪ Using /dev/rdisk instead of /dev/disk may be faster.</p>
<p style="padding-left: 30px;">▪ If you see the error dd: Invalid number &#8217;1m&#8217;, you are using GNU dd. Use the same command but replace bs=1m with bs=1M.</p>
<p style="padding-left: 30px;">▪ If you see the error dd: /dev/diskN: Resource busy, make sure the disk is not in use. Start the &#8216;Disk Utility.app&#8217; and unmount (don&#8217;t eject) the drive.</p>
<p>10. Run diskutil eject /dev/diskN and remove your flash media when the command completes</p>
<p>11. Restart your Mac and press alt while the Mac is restarting to choose the USB-Stick</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2011/11/how-to-create-a-bootable-image-of-ubuntu-or-any-bootable-iso-on-a-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nice way to generate a password</title>
		<link>http://techiezone.rottigni.net/2011/05/nice-way-to-generate-a-password/</link>
		<comments>http://techiezone.rottigni.net/2011/05/nice-way-to-generate-a-password/#comments</comments>
		<pubDate>Sun, 15 May 2011 06:11:28 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[authentication]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Password generation]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/2011/05/nice-way-to-generate-a-password/</guid>
		<description><![CDATA[Nice way, grabbed from a discussion, to generate a password. You should have a Linux console available or an MD5 hashing utility. Console Linux: $ echo &#8220;nel mezzo del cammin di nostra vita&#8221; &#124; md5sum 5b14c45d2ae299904da0c4c8e251a05f]]></description>
			<content:encoded><![CDATA[<p>Nice way, grabbed from a discussion, to generate a password.<br />
You should have a Linux console available or an MD5 hashing utility.</p>
<p>Console Linux:</p>
<p>$ echo &#8220;nel mezzo del cammin di nostra vita&#8221; | md5sum<br />
5b14c45d2ae299904da0c4c8e251a05f</p>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2011/05/nice-way-to-generate-a-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo add Radius Authentication to Apache2</title>
		<link>http://techiezone.rottigni.net/2011/04/howto-add-radius-authentication-to-apache2/</link>
		<comments>http://techiezone.rottigni.net/2011/04/howto-add-radius-authentication-to-apache2/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 12:48:24 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[mod_radius]]></category>
		<category><![CDATA[Radius]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/?p=174</guid>
		<description><![CDATA[Few notes to myself, to avoid forgetting a cool thing I&#8217;ve just learned. The need is to implement radius based authentication to access a directory on Apache2 Web server. Here&#8217;s how to proceed (instructions have been tested on an Ubuntu 10.10). First, you need to install the needed module for Radius authentication on Apache2, using [...]]]></description>
			<content:encoded><![CDATA[<p>Few notes to myself, to avoid forgetting a cool thing I&#8217;ve just learned.</p>
<p>The need is to implement radius based authentication to access a directory on Apache2 Web server.</p>
<p>Here&#8217;s how to proceed (instructions have been tested on an Ubuntu 10.10).</p>
<p>First, you need to install the needed module for Radius authentication on Apache2, using the command:</p>
<p>apt-get install libapache2-mod-auth-radius</p>
<p>Then, you need to enable it with command:</p>
<p>a2enmod auth_radius</p>
<p>You need now to make your apache web server aware of where to send authentication requests for Radius. There are two ways, depending if you want to make this configuration apache-wide (therefore edit /etc/apache2/http.conf) or if you want to limit it to a specific virtual host (thus you&#8217;ll edit /etc/apache2/sites-enabled/&lt;yoursitename&gt;.conf).</p>
<p>Add the line:</p>
<p>AddRadiusAuth &lt;IP address of the Radius server&gt;:&lt;port where Radius service is listening&gt; &lt;shared secret&gt; [timeout [:retries]]</p>
<p>Assuming you want to protect a specific directory called auth-test, you can insert the following directive in your site/virtualhost configuration file (/etc/apache2/sites-enabled/&lt;yoursitename&gt;.conf):</p>
<p>&lt;Directory &#8220;/var/www/testmyauth&#8221;&gt;<br />
Options Indexes FollowSymlinks<br />
AuthType Basic<br />
AuthName &#8220;Roarin RADIUS Authentication&#8221;<br />
AuthBasicAuthoritative Off<br />
AuthBasicProvider radius<br />
AuthRadiusAuthoritative on<br />
AuthRadiusActive On<br />
Require valid-user<br />
&lt;/Directory&gt;</p>
<p>&nbsp;</p>
<p>Naturally you might add the above directives also in a .htaccess file in the directory you want to protect with Radius based authentication&#8230;</p>
<p>Finally, restart or reload you apache2 using one of the commands:</p>
<p>service apache2 reload</p>
<p>service apache2 restart</p>
<p>Enjoy <img src='http://techiezone.rottigni.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2011/04/howto-add-radius-authentication-to-apache2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Print from PHP on a Linux system printer</title>
		<link>http://techiezone.rottigni.net/2011/02/print-from-php-on-a-linux-system-printer/</link>
		<comments>http://techiezone.rottigni.net/2011/02/print-from-php-on-a-linux-system-printer/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 15:11:23 +0000</pubDate>
		<dc:creator>RoarinPenguin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[shell scripting]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[variable]]></category>

		<guid isPermaLink="false">http://techiezone.rottigni.net/?p=170</guid>
		<description><![CDATA[Suppose you have a script in PHP and you want to print on the system&#8217;s default printer, you can use the function system (&#60;command&#62;, $retval) The following example shows the printing of a content including a variable coming from the PHP script: system('echo "'.$message.'"&#124;lpr -o page-left=35 ', $retval );]]></description>
			<content:encoded><![CDATA[<p>Suppose you have a script in PHP and you want to print on the system&#8217;s default printer, you can use the function</p>
<pre><a href="http://php.net/manual/en/function.system.php" target="_blank">system (&lt;command&gt;, $retval)</a></pre>
<p>The following example shows the printing of a content including a variable coming from the PHP script:</p>
<pre>system('echo "'.$message.'"|lpr -o page-left=35 ', $retval );</pre>
]]></content:encoded>
			<wfw:commentRss>http://techiezone.rottigni.net/2011/02/print-from-php-on-a-linux-system-printer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

