<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Linuxaria » Linuxaria – Everything about GNU/Linux and Open source </title>
	
	<link>http://linuxaria.com</link>
	<description>Everything about Linux</description>
	<lastBuildDate>Fri, 14 Jun 2013 16:10:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Linuxaria_En" /><feedburner:info uri="linuxaria_en" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license><feedburner:emailServiceId>Linuxaria_En</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>How to correct “Partition does not start on physical sector boundary” on Linux</title>
		<link>http://feedproxy.google.com/~r/Linuxaria_En/~3/fZBg_AcMl3Y/how-to-correct-partition-does-not-start-on-physical-sector-boundary-on-linux</link>
		<comments>http://linuxaria.com/pills/how-to-correct-partition-does-not-start-on-physical-sector-boundary-on-linux?lang=en#comments</comments>
		<pubDate>Fri, 14 Jun 2013 16:10:09 +0000</pubDate>
		<dc:creator>linuxari</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Pills]]></category>
		<category><![CDATA[ArchLinux]]></category>
		<category><![CDATA[cfdisk]]></category>
		<category><![CDATA[fdisk]]></category>
		<category><![CDATA[gparted]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[partition 4096]]></category>
		<category><![CDATA[partitions]]></category>
		<category><![CDATA[set partition]]></category>

		<guid isPermaLink="false">http://linuxaria.com/?p=7363</guid>
		<description><![CDATA[I&#8217;m in the process of re-installing ArchLinux on my new Dell Latitude 6530, this is because at the end of the first installation I noticed that while running fdisk -l I received a message like this one (that&#8217;s not my original disk, but the message was the same): Device Boot Start End Blocks Id System <a href='http://linuxaria.com/pills/how-to-correct-partition-does-not-start-on-physical-sector-boundary-on-linux?lang=en' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://linuxaria.com/pills/linux-shell-dfc-check-your-disk-space-with-style?lang=en' rel='bookmark' title='Linux shell: Dfc – Check your disk space with style'>Linux shell: Dfc – Check your disk space with style</a></li>
<li><a href='http://linuxaria.com/howto/how-to-play-minecraft-on-archlinux?lang=en' rel='bookmark' title='How to play Minecraft on Archlinux'>How to play Minecraft on Archlinux</a></li>
</ol>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m in the process of re-installing ArchLinux on my new Dell Latitude 6530, this is because at the end of the first installation I noticed that while running <code>fdisk -l</code> I received a message like this one (that&#8217;s not my original disk, but the message was the same):</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">Device Boot      Start         End      Blocks   Id  System
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1   <span style="color: #000000; font-weight: bold;">*</span>          <span style="color: #000000;">63</span>    <span style="color: #000000;">39070079</span>    <span style="color: #000000;">19535008</span>+  <span style="color: #000000;">83</span>  Linux
<span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>Partition <span style="color: #000000;">1</span> does not start on physical sector boundary.
<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda2        <span style="color: #000000;">39070080</span>    <span style="color: #000000;">46877669</span>     <span style="color: #000000;">3903795</span>   <span style="color: #000000;">82</span>  Linux swap <span style="color: #000000; font-weight: bold;">/</span> Solaris
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda3   <span style="color: #000000; font-weight: bold;">*</span>    <span style="color: #000000;">46877670</span>   <span style="color: #000000;">144536804</span>    <span style="color: #000000;">48829567</span>+  <span style="color: #000000;">86</span>  NTFS volume <span style="color: #000000; font-weight: bold;">set</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>Partition <span style="color: #000000;">3</span> does not start on physical sector boundary.
<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda4       <span style="color: #000000;">144536805</span>  <span style="color: #000000;">1250263727</span>   <span style="color: #000000;">552863461</span>+  <span style="color: #000000;">86</span>  NTFS volume <span style="color: #000000; font-weight: bold;">set</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>Partition <span style="color: #000000;">4</span> does not start on physical sector boundary.<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

<p>I &#8220;shrinked&#8221; the original Windows 7 to 40 GB with <a target="_blank" href="http://gparted.sourceforge.net/livecd.php">Gparted live</a> and created the partitions during the installation of ArchLinux with <code>cfdisk</code> so what&#8217;s wrong with these operations ?</p>
<p><span id="more-7363"></span><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* largone news */
google_ad_slot = "1311827757";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>The Problem is that the disk of Dell Latitude 6530 uses the <a target="_blank" href="https://wiki.archlinux.org/index.php/Advanced_Format">Advanced Format Technology</a>, in short</p>
<blockquote><p>The &#8216;advanced format&#8217; feature reduces overhead by using 4 kilobyte sectors instead of the traditional 512 byte sectors. The old format gave a format efficiency of 87%. Advanced Format results in a format efficiency of 96% which increases space by up to 11%. The 4k sector is slated to become the next standard for HDDs by 2014.</p></blockquote>
<p>Great, so I should worry of this message ?<br />
While looking around I found a very informative article on IBM website: <a target="_blank" href="http://www.ibm.com/developerworks/linux/library/l-4kb-sector-disks/">Linux on 4KB-sector disks: Practical advice</a> where you can find the following figure and much more information:</p>
<div id="attachment_7365" class="wp-caption aligncenter" style="width: 463px"><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/06/figure1.jpg" rel="lightbox[7363]"><img class="size-full wp-image-7365" alt="figure1" src="http://cdn.linuxaria.com/wp-content/uploads/2013/06/figure1.jpg" width="453" height="431" /></a><p class="wp-caption-text">A value of 1.00 means no penalty; higher values mean worse performance.</p></div>
<p>Reading it I understood that In theory this sort of partitioning may affect read/write IO rates somewhat, depending on your drive&#8217;s firmware, as my installation was just finished I&#8217;ve preferred to scratch everything and re-partition the drive correctly.</p>
<p>So now the question is how to do it ?</p>
<p><strong>First test: Gparted<br />
</strong><br />
I used my usb stick with Gparted Live to resize the partition that were affected by the problem, as the partitions are of some hundreds of GB this operation took around 15-20 minutes for each run, the idea was to leave some space before the partitions and align it to the disk -&gt; Failed<br />
I tried to set the option &#8220;align to cilinder&#8221; and in theory Gparted should be aware of disk geometry but in practice I was able to fix just 2 of my 4 partitions and also doing multiple tests I was unable to resize the partitions and align them.</p>
<p>So I decided to reinstall everything (with Arch it&#8217;s a good exercise anyway <img src='http://cdn.linuxaria.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) and be careful to create the partitions aligned from the start.<br />
From<a target="_blank" href="https://wiki.archlinux.org/index.php/Advanced_Format"> ArchLinux wiki</a> i see that the versions that supports this mode are:</p>
<ul>
<li><span style="font-size: 13px; line-height: 19px;">fdisk, since util-linux &gt;= 2.15. You should start with ‘-c -u’ to disable DOS compatibility and use sectors instead of cylinders.</span></li>
<li><span style="font-size: 13px; line-height: 19px;">parted, since parted &gt;= 2.1.</span></li>
<li><span style="font-size: 13px; line-height: 19px;">mdadm, since util-linux &gt;= 2.15</span></li>
<li><span style="font-size: 13px; line-height: 19px;">lvm2, since util-linux &gt;= 2.15</span></li>
</ul>
<p>So I&#8217;ve used fdisk with the option -c -u, so during the installation I run:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">fdisk</span> <span style="color: #660033;">-c</span> <span style="color: #660033;">-u</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda</pre></td></tr></table></div>

<p>And recreated all the partitions I need in my new Linux system, this time if I write fdisk everything is clean.</p>
<p>Perfect I can now complete my new ArchLinux installation.<br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* largone news */
google_ad_slot = "1311827757";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://linuxaria.com/pills/linux-shell-dfc-check-your-disk-space-with-style?lang=en' rel='bookmark' title='Linux shell: Dfc – Check your disk space with style'>Linux shell: Dfc – Check your disk space with style</a></li>
<li><a href='http://linuxaria.com/howto/how-to-play-minecraft-on-archlinux?lang=en' rel='bookmark' title='How to play Minecraft on Archlinux'>How to play Minecraft on Archlinux</a></li>
</ol></p>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
 <p><a href="http://linuxaria.com/?flattrss_redirect&amp;id=7363&amp;md5=8adf9432d05f05ced090f4ec4f3c24e2" title="Flattr" target="_blank"><img src="http://cdn.linuxaria.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=fZBg_AcMl3Y:xb_QSWTEwKc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=fZBg_AcMl3Y:xb_QSWTEwKc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=fZBg_AcMl3Y:xb_QSWTEwKc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?i=fZBg_AcMl3Y:xb_QSWTEwKc:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Linuxaria_En/~4/fZBg_AcMl3Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxaria.com/pills/how-to-correct-partition-does-not-start-on-physical-sector-boundary-on-linux?lang=en/feed&amp;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=linuxaria&amp;popout=1&amp;url=http%3A%2F%2Flinuxaria.com%2Fpills%2Fhow-to-correct-partition-does-not-start-on-physical-sector-boundary-on-linux%3Flang%3Den&amp;language=en_GB&amp;category=text&amp;title=How+to+correct+%26%238220%3BPartition+does+not+start+on+physical+sector+boundary%26%238221%3B+on+Linux&amp;description=I%26%238217%3Bm+in+the+process+of+re-installing+ArchLinux+on+my+new+Dell+Latitude+6530%2C+this+is+because+at+the+end+of+the+first+installation+I+noticed+that+while+running+fdisk+-l...&amp;tags=ArchLinux%2Ccfdisk%2Cfdisk%2Cgparted%2Clinux%2Cpartition+4096%2Cpartitions%2Cset+partition%2Cblog" type="text/html" />
	<feedburner:origLink>http://linuxaria.com/pills/how-to-correct-partition-does-not-start-on-physical-sector-boundary-on-linux?lang=en</feedburner:origLink></item>
		<item>
		<title>Libre Office Version 4 – Tantalizingly Close</title>
		<link>http://feedproxy.google.com/~r/Linuxaria_En/~3/WUdGvmT5_8I/libre-office-version-4-tantalizingly-close</link>
		<comments>http://linuxaria.com/article/libre-office-version-4-tantalizingly-close?lang=en#comments</comments>
		<pubDate>Thu, 13 Jun 2013 22:22:46 +0000</pubDate>
		<dc:creator>linuxari</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[Opinion]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[libreoffice 4]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Microsoft Office]]></category>
		<category><![CDATA[microsoft programs]]></category>
		<category><![CDATA[ms office]]></category>
		<category><![CDATA[office organization]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[openoffice]]></category>
		<category><![CDATA[publisher files]]></category>

		<guid isPermaLink="false">http://linuxaria.com/?p=7358</guid>
		<description><![CDATA[Article from Tcat Houser editor-in-chief of TRCBNews.com that recently ignited some fire with 2 articles: OpenOffice versus LibreOffice versus The World and The Biggest Failure in Open Source Is… &#8212; Some of the Linux faithful will look at this and say: &#8220;There he goes again, bashing open-source. He&#8217;s just a Microsoft shill.&#8221; They will use <a href='http://linuxaria.com/article/libre-office-version-4-tantalizingly-close?lang=en' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://linuxaria.com/article/ekiga-sip-skype?lang=en' rel='bookmark' title='Ekiga and SIP to replace Skype'>Ekiga and SIP to replace Skype</a></li>
<li><a href='http://linuxaria.com/article/windows-vs-linux-software?lang=en' rel='bookmark' title='Windows vs Linux Software'>Windows vs Linux Software</a></li>
</ol>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Article from Tcat Houser editor-in-chief of TRCBNews.com that recently ignited some fire with 2 articles:<br />
<a href="http://linuxaria.com/article/openoffice-versus-libreoffice-versus-the-world?lang=en">OpenOffice versus LibreOffice versus The World</a> and <a href="http://linuxaria.com/article/the-biggest-failure-in-open-source-is?lang=en">The Biggest Failure in Open Source Is…</a><br />
&#8212;</p>
<p>Some of the Linux faithful will look at this and say: &#8220;<em>There he goes again, bashing open-source. He&#8217;s just a Microsoft shill</em>.&#8221; They will use the fact I am an MCSE as &#8216;proof&#8217; of their opinion.</p>
<p><a target="_blank" href="https://www.libreoffice.org/">Version 4.0 of LOO</a> still suffers from the issue of cross file compatibility to Microsoft Office. However, the good news is the pain is less than ever before and we now get the ability to open Visio and Publisher files! Personally, I have not used either of these Microsoft programs in years so I cannot attest to how well they are handled.</p>
<p>Beyond my own daily use of LOO I have read in depth every review I could find on the Internet. My honest summary is they are far more negative than my feelings. Yes I must agree with everyone else that the most lacking area is complex documents not playing nice with MS Office. The second most cited shortcoming is the relatively confusing menus. I cannot really disagree there either. And there is always two sides to the coin. LOO&#8217;s brightside is shinier than ever. Less noticed is how much this version has pulled away to lead over Apache Open Office (AOO) formally known as Open Office Organization (OOO).<br />
More about that later.<br />
<span id="more-7358"></span><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Largone */
google_ad_slot = "1711601452";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
I&#8217;m not going to rehash what you can read in many dozens of other reviews. I will summarize with LLO runs faster than ever and is more compatible to Microsoft Office than ever. Instead let&#8217;s take a few minutes and focus on what LOO has done to get here and what it means for us tomorrow.</p>
<p>Java dependencies are being depreciated with either Python or native platform code. Given the security issues with Java, this is a good thing no matter what OS you use. This is one of several important trends for the sweet</p>
<p>The major flaw beyond file conversion has been this week could not handle content management in a large organization. It now adheres to a CMIS standard <a target="_blank" href="http://en.wikipedia.org/wiki/CMIS">http://en.wikipedia.org/wiki/CMIS</a>.</p>
<p>Large organizations have this barrier removed in the latest incarnation. Little noticed is the solution for reducing pagination issues with Microsoft Office easily handled by not using Microsoft specific fonts. Another former no removed is it can now import ink annotations from Word. Comments can now be attached to document text ranges. Another improvement is allowing a different header and footer on the first page without requiring a separate page style.<br />
Perhaps these are really specific things, but if you work with documents every day they are really important for your work and the look of your document.</p>
<p>Some people will like the fact that the PowerPoint work alike called Impress has a Remote Control App for Android.</p>
<p><iframe class='youtube-player youtuber' type='text/html' width='425' height='355' src='http://www.youtube.com/embed/hM5H4fUxq4M?rel=0&amp;fs=1' webkitAllowFullScreen mozallowfullscreen allowFullScreen frameborder='0'></iframe></p>
<p>Through all this there is a point I believe all the reviews have missed. It is my belief that the full measure of time will show that Libre Office Version 4 was the pivot point for this offering to really move into the mainstream. Certainly all the improvements I mentioned (and many more commented on elsewhere) are factors.</p>
<p>What I don&#8217;t see it mentioned anywhere is The Document Foundation has registered in Berlin a <strong><a target="_blank" href="http://en.wikipedia.org/wiki/Stiftung#Germany">Stiftung</a></strong>. This is a standard supervised by the German authorities with a history dating back to the year 1509. This gathered immediate support from major industry players showing that they are really in it for the long haul.</p>
<p>Backing this up is the fact that this is the year we see the first group of folks who will be blessed under the Certification Program for LibreOffice.</p>
<p>I know I am going to upset the Linux faithful. While this group wants mass-market acceptance, it also wants everything to be freedom of choice. And this is exactly why Open Source fails to win significant mind share.</p>
<p>Large organizations must have standards. It is the only way humans can handle large numbers without chaos. Senior management in large organizations looked for large organizations that had standards. Beyond knowing this was a requirement for them to get on with business, they also knew they had someone to sue if those standards were not met. And this is where open source has failed them.</p>
<p>Now having an international standards body deeply rooted in history, rapid yet orderly improved interoperability and CMS, LLO has set the stage to move into: The Limelight.</p>
<p>Today AOO/OOO has a larger installed base then LOO. That will change quickly. While both use ODF, not all ODA&#8217;s are equal. Monitoring the AOO list as I do, I found <a target="_blank" href="http://www.marshut.com/pinvr/odf-file-formats-vs-zip.html">a case</a> in point. A user was having an issue they were trying to solve. I cannot say the AOO group was unhelpful. They were in fact very kind and supportive. And it showed yet another way how LOO is pulling ahead.</p>
<p><em>&#8220;ODF has a flat file format without container too. This is implemented in LO but not in AOO. But in the flat format all pictures are stored in base64, because there is no folder to store them in original format.&#8221;</em></p>
<p>It has always been a long-standing feature of both Open Source office platforms that they could resurrect data from long abandoned platforms including Microsoft formats the company did not support in its own programs. And being free certainly did not hurt.</p>
<p>I want to conclude with a thought for my fellow MCSE&#8217;s. The IT department budget is always getting squeezed. Prior to LO V4, you just did not have the support to run the size of an operation you do. LO has given you the tools to make a solid business case. Just get away from the MS centric fonts when you&#8217;re doing your proof of concept.<br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Largone */
google_ad_slot = "1711601452";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://linuxaria.com/article/ekiga-sip-skype?lang=en' rel='bookmark' title='Ekiga and SIP to replace Skype'>Ekiga and SIP to replace Skype</a></li>
<li><a href='http://linuxaria.com/article/windows-vs-linux-software?lang=en' rel='bookmark' title='Windows vs Linux Software'>Windows vs Linux Software</a></li>
</ol></p>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
 <p><a href="http://linuxaria.com/?flattrss_redirect&amp;id=7358&amp;md5=c7d441057dd978a7bcbb09eee54f20b2" title="Flattr" target="_blank"><img src="http://cdn.linuxaria.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=WUdGvmT5_8I:F6wM2A2Lk9w:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=WUdGvmT5_8I:F6wM2A2Lk9w:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=WUdGvmT5_8I:F6wM2A2Lk9w:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?i=WUdGvmT5_8I:F6wM2A2Lk9w:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Linuxaria_En/~4/WUdGvmT5_8I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxaria.com/article/libre-office-version-4-tantalizingly-close?lang=en/feed&amp;lang=en</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=linuxaria&amp;popout=1&amp;url=http%3A%2F%2Flinuxaria.com%2Farticle%2Flibre-office-version-4-tantalizingly-close%3Flang%3Den&amp;language=en_GB&amp;category=text&amp;title=Libre+Office+Version+4+%26%238211%3B+Tantalizingly+Close&amp;description=Article+from+Tcat+Houser+editor-in-chief+of+TRCBNews.com+that+recently+ignited+some+fire+with+2+articles%3A+OpenOffice+versus+LibreOffice+versus+The+World+and+The+Biggest+Failure+in+Open+Source+Is%E2%80%A6+%26%238212%3B...&amp;tags=libreoffice+4%2Clinux%2CMicrosoft+Office%2Cmicrosoft+programs%2Cms+office%2Coffice+organization%2Copen+source%2Copenoffice%2Cpublisher+files%2Cblog" type="text/html" />
	<feedburner:origLink>http://linuxaria.com/article/libre-office-version-4-tantalizingly-close?lang=en</feedburner:origLink></item>
		<item>
		<title>How to use a Playstation 2 joypad with Linux</title>
		<link>http://feedproxy.google.com/~r/Linuxaria_En/~3/9b1nOjGP1kE/how-to-use-a-playstation-2-joypad-with-linux</link>
		<comments>http://linuxaria.com/article/how-to-use-a-playstation-2-joypad-with-linux?lang=en#comments</comments>
		<pubDate>Wed, 12 Jun 2013 19:41:05 +0000</pubDate>
		<dc:creator>Riccardo</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[joypad]]></category>
		<category><![CDATA[joystick]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux box]]></category>
		<category><![CDATA[mint]]></category>
		<category><![CDATA[playstation]]></category>
		<category><![CDATA[playstation 2]]></category>
		<category><![CDATA[qjoypad]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[usb port]]></category>

		<guid isPermaLink="false">http://linuxaria.com/?p=7349</guid>
		<description><![CDATA[Thanks to all the Indie games, Steam and Humble Bundle recently the market of games for Linux has become most active than ever and so I&#8217;ve bought some arcade/action/platform games. Perhaps it&#8217;s just me but I don&#8217;t like too much to manage around 10 different keys on the keyboard and remember all the combo that <a href='http://linuxaria.com/article/how-to-use-a-playstation-2-joypad-with-linux?lang=en' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://linuxaria.com/article/how-to-use-a-d-link-wireless-n-150-usb-adapter-on-linux?lang=en' rel='bookmark' title='How to use a D-LINK &#8211; Wireless N 150 usb adapter on Linux'>How to use a D-LINK &#8211; Wireless N 150 usb adapter on Linux</a></li>
<li><a href='http://linuxaria.com/article/cryptkeeper-an-applet-to-manage-your-encfs?lang=en' rel='bookmark' title='Cryptkeeper an applet to manage your EncFS'>Cryptkeeper an applet to manage your EncFS</a></li>
</ol>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
]]></description>
				<content:encoded><![CDATA[<p><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/06/2762imgcache.png" rel="lightbox[7349]"><img class=" wp-image-7351 alignleft" style="margin: 4px;" alt="linux-playstation2" src="http://cdn.linuxaria.com/wp-content/uploads/2013/06/2762imgcache.png" width="175" height="145" /></a></p>
<p>Thanks to all the Indie games, Steam and Humble Bundle recently the market of games for Linux has become most active than ever and so I&#8217;ve bought some arcade/action/platform games.</p>
<p>Perhaps it&#8217;s just me but I don&#8217;t like too much to manage around 10 different keys on the keyboard and remember all the combo that I&#8217;ve to do with them, a joypad it&#8217;s a much simpler way to play that kind of games, and what&#8217;s the best joypad around ?</p>
<p>In my opinion Playstation joypads are some of the best you can find around, probably Xbox are good too, but I&#8217;ve an unused playstation 2 and so I&#8217;ve choose to go in that direction.</p>
<p>And I must say that with a great surprise everything worked fine without too much problems !!</p>
<p><span id="more-7349"></span><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Largone */
google_ad_slot = "1711601452";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Please note I&#8217;ve tested this on my Linux Mint 14, that uses the same Kernel (3.5.x) and software of an Ubuntu 12.10.</p>
<h3>Playstation 2 to USB adapter</h3>
<p>As first thing you have to buy an adapter from the Playstation 2 joypad to a standard USB port.<br />
I&#8217;ve bought the following model from Ebay for 3€, I&#8217;ve choose this for 2 reasons:</p>
<ul>
<li><span style="font-size: 13px; line-height: 19px;">It&#8217;s really cheap</span></li>
<li><span style="font-size: 13px; line-height: 19px;">It can be used to plug in 2 joypads</span></li>
</ul>
<p><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/06/usb-play2.jpg" rel="lightbox[7349]"><img class="aligncenter size-full wp-image-7353" alt="usb-play2" src="http://cdn.linuxaria.com/wp-content/uploads/2013/06/usb-play2.jpg" width="600" height="600" /></a></p>
<p>Once plugged in your linux box run from a terminal the command <code><a href="http://linuxaria.com/article/lspci-lsusb?lang=en">lsusb</a></code>, you should see an output like this one:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">mint-desktop tmp <span style="color: #666666; font-style: italic;"># lsusb</span>
Bus 001 Device 002: ID <span style="color: #000000;">8087</span>:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID <span style="color: #000000;">8087</span>:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation <span style="color: #000000;">2.0</span> root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation <span style="color: #000000;">2.0</span> root hub
Bus 001 Device 003: ID 0951:<span style="color: #000000;">1643</span> Kingston Technology DataTraveler G3 4GB
Bus 001 Device 004: ID 058f:<span style="color: #000000;">6364</span> Alcor Micro Corp. AU6477 Card Reader Controller
Bus 002 Device 003: ID 0424:<span style="color: #000000;">2524</span> Standard Microsystems Corp. USB MultiSwitch Hub
Bus 002 Device 004: ID <span style="color: #000000;">2001</span>:3c19 D-Link Corp. DWA-<span style="color: #000000;">125</span> Wireless N <span style="color: #000000;">150</span> Adapter<span style="color: #7a0874; font-weight: bold;">&#40;</span>rev.A3<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>Ralink RT5370<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>Bus 002 Device 009: ID 0810:0001 Personal Communication Systems, Inc. Dual PSX Adaptor
<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>Bus 002 Device 006: ID 050d:<span style="color: #000000;">3201</span> Belkin Components F1DF102U<span style="color: #000000; font-weight: bold;">/</span>F1DG102U Flip KVM
Bus 002 Device 008: ID 046d:c01d Logitech, Inc. MX510 Optical Mouse
Bus 002 Device 007: ID 046d:c315 Logitech, Inc. Classic New Touch Keyboard</pre></td></tr></table></div>

<p>This means that so far is all good.</p>
<h3>Test the Joypad within Linux</h3>
<p>Connect the joipad of your Playstation 2 to the adapter, now how you can test it ?<br />
A software that does this work is <code>jstest</code>, so install the package that contains it with the command:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> joystick</pre></td></tr></table></div>

<p>Or equivalent if you are not using a .deb Linux distribution.<br />
Now you can run the following command from a terminal:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#jstest /dev/input/js0</span>
Driver version is 2.1.0.
Joystick <span style="color: #7a0874; font-weight: bold;">&#40;</span>Twin USB Joystick<span style="color: #7a0874; font-weight: bold;">&#41;</span> has <span style="color: #000000;">6</span> axes <span style="color: #7a0874; font-weight: bold;">&#40;</span>X, Y, Z, Rz, Hat0X, Hat0Y<span style="color: #7a0874; font-weight: bold;">&#41;</span>
and <span style="color: #000000;">12</span> buttons <span style="color: #7a0874; font-weight: bold;">&#40;</span>Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5, BaseBtn6<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
Testing ... <span style="color: #7a0874; font-weight: bold;">&#40;</span>interrupt to <span style="color: #7a0874; font-weight: bold;">exit</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
Axes:  <span style="color: #000000;">0</span>:     <span style="color: #000000;">0</span>  <span style="color: #000000;">1</span>:     <span style="color: #000000;">0</span>  <span style="color: #000000;">2</span>:     <span style="color: #000000;">0</span>  <span style="color: #000000;">3</span>:     <span style="color: #000000;">0</span>  <span style="color: #000000;">4</span>:     <span style="color: #000000;">0</span>  <span style="color: #000000;">5</span>:     <span style="color: #000000;">0</span> Buttons:  <span style="color: #000000;">0</span>:off  <span style="color: #000000;">1</span>:off  <span style="color: #000000;">2</span>:off  <span style="color: #000000;">3</span>:off  <span style="color: #000000;">4</span>:off  <span style="color: #000000;">5</span>:off  <span style="color: #000000;">6</span>:off  <span style="color: #000000;">7</span>:off  <span style="color: #000000;">8</span>:off  <span style="color: #000000;">9</span>:off <span style="color: #000000;">10</span>:off <span style="color: #000000;">11</span>:off</pre></td></tr></table></div>

<p>Now if you push the direction buttons or some other buttons you should see some changes:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#jstest /dev/input/js0</span>
Driver version is 2.1.0.
Joystick <span style="color: #7a0874; font-weight: bold;">&#40;</span>Twin USB Joystick<span style="color: #7a0874; font-weight: bold;">&#41;</span> has <span style="color: #000000;">6</span> axes <span style="color: #7a0874; font-weight: bold;">&#40;</span>X, Y, Z, Rz, Hat0X, Hat0Y<span style="color: #7a0874; font-weight: bold;">&#41;</span>
and <span style="color: #000000;">12</span> buttons <span style="color: #7a0874; font-weight: bold;">&#40;</span>Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5, BaseBtn6<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
Testing ... <span style="color: #7a0874; font-weight: bold;">&#40;</span>interrupt to <span style="color: #7a0874; font-weight: bold;">exit</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
Axes:  <span style="color: #000000;">0</span>:<span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>-<span style="color: #000000;">32767</span><span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>  <span style="color: #000000;">1</span>: <span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000;">32767</span><span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>  <span style="color: #000000;">2</span>:     <span style="color: #000000;">0</span>  <span style="color: #000000;">3</span>:     <span style="color: #000000;">0</span>  <span style="color: #000000;">4</span>:     <span style="color: #000000;">0</span>  <span style="color: #000000;">5</span>:     <span style="color: #000000;">0</span> Buttons:  <span style="color: #000000;">0</span>:off  <span style="color: #000000;">1</span>:<span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>on<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>   <span style="color: #000000;">2</span>:<span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>on<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>  <span style="color: #000000;">3</span>:off  <span style="color: #000000;">4</span>:off  <span style="color: #000000;">5</span>:off  <span style="color: #000000;">6</span>:off  <span style="color: #000000;">7</span>:off  <span style="color: #000000;">8</span>:off  <span style="color: #000000;">9</span>:off <span style="color: #000000;">10</span>:off <span style="color: #000000;">11</span>:off</pre></td></tr></table></div>

<p>If while pushing the buttons you see some number changing from off to on you&#8217;re done, that&#8217;s how the different buttons are mapped in Linux.</p>
<p><strong>Note</strong>: At first this was not working for me, I switched the connection of the Joypad in the adapter and everything started to works, so apparently there is in the adapter a port 1 and a port 2 and you have to use port 1.</p>
<h3>How to map the joypad buttons on keys</h3>
<p>The most simple thing to do to use the joypad is to map every button with a keyboard key, in this way you&#8217;ll be able to use it with all games that don&#8217;t have a native support for joypad, a good software that can do this is <a target="_blank" href="http://qjoypad.sourceforge.net/">QjoyPad</a>.<br />
QJoyPad takes input from a gamepad or joystick and translates it into key strokes or mouse actions, letting you control any XWindows program with your game controller.</p>
<p>Its main features are</p>
<ul>
<li><span style="font-size: 13px; line-height: 19px;">Move and click the mouse with your joystick</span></li>
<li><span style="font-size: 13px; line-height: 19px;">Auto-detects how many joysticks you have and how many buttons and axes each supports</span></li>
<li><span style="font-size: 13px; line-height: 19px;">Support for devices with more than two axes</span></li>
<li><span style="font-size: 13px; line-height: 19px;">Save as many layouts as you want and switch between them quickly</span></li>
<li><span style="font-size: 13px; line-height: 19px;">Swap layouts on the fly from the command line or from a script</span></li>
<li><span style="font-size: 13px; line-height: 19px;">Set or reset all the keys at once in a flash</span></li>
<li><span style="font-size: 13px; line-height: 19px;">Adjust the sensitivity of every axis independently</span></li>
<li><span style="font-size: 13px; line-height: 19px;">Quietly hides in your system tray, running in the background without taking up space</span></li>
<li><span style="font-size: 13px; line-height: 19px;">For window managers without a system tray, QJoyPad can run without the tray icon.</span></li>
<li><span style="font-size: 13px; line-height: 19px;">Make an axis &#8220;Gradient&#8221; so that a light push does a little and a harder push does more &#8211; now with customizable curves!</span></li>
<li><span style="font-size: 13px; line-height: 19px;">Make a button &#8220;Sticky&#8221; if you don&#8217;t feel like holding it down all the time</span></li>
<li><span style="font-size: 13px; line-height: 19px;">Turn on Rapid Fire so you don&#8217;t wear out your gamepad!</span></li>
<li><span style="font-size: 13px; line-height: 19px;">Native tray icon code making putting it in your start up entry simple</span></li>
<li><span style="font-size: 13px; line-height: 19px;">To install it on Debian, Ubuntu and Mint open a terminal and run the command</span></li>
</ul>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> qjoypad</pre></td></tr></table></div>

<p>Now you should find the qjoypad icon on the game menu, or you can start it from a terminal with the command <code>qjoypad</code>, in both way you should see a new joypad icon on your system tray.</p>
<p>If you left click on it the main window of qjoypad will open:</p>
<p><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/06/qjoypad.png" rel="lightbox[7349]"><img class="aligncenter size-full wp-image-7355" alt="qjoypad" src="http://cdn.linuxaria.com/wp-content/uploads/2013/06/qjoypad.png" width="381" height="513" /></a></p>
<p>From this window you can configure the keys for axis1 (Horizontal) and axis2 (vertical) and all the buttons, and save them in a layout.<br />
Once done save and &#8230; start your favorite game.</p>
<h3> Conclusions </h3>
<p>To be honest I was very skeptical about this solution, but in really few time I&#8217;ve been able to configure the joypad and use it with <a href="http://linuxaria.com/article/humble-indie-bundle-7-has-been-just-released?lang=en">Shank 2</a> a game unplayable with just the keyboard (at least for me).<br />
To me this demonstrate once more that the Gnu/Linux system is mature and setting up peripherals is now not harder than some years ago.</p>
<p><script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Largone */
google_ad_slot = "1711601452";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://linuxaria.com/article/how-to-use-a-d-link-wireless-n-150-usb-adapter-on-linux?lang=en' rel='bookmark' title='How to use a D-LINK &#8211; Wireless N 150 usb adapter on Linux'>How to use a D-LINK &#8211; Wireless N 150 usb adapter on Linux</a></li>
<li><a href='http://linuxaria.com/article/cryptkeeper-an-applet-to-manage-your-encfs?lang=en' rel='bookmark' title='Cryptkeeper an applet to manage your EncFS'>Cryptkeeper an applet to manage your EncFS</a></li>
</ol></p>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
 <p><a href="http://linuxaria.com/?flattrss_redirect&amp;id=7349&amp;md5=9c90cd42765618fd65234bd218b88f78" title="Flattr" target="_blank"><img src="http://cdn.linuxaria.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=9b1nOjGP1kE:jnZpREc8X1c:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=9b1nOjGP1kE:jnZpREc8X1c:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=9b1nOjGP1kE:jnZpREc8X1c:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?i=9b1nOjGP1kE:jnZpREc8X1c:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Linuxaria_En/~4/9b1nOjGP1kE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxaria.com/article/how-to-use-a-playstation-2-joypad-with-linux?lang=en/feed&amp;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=linuxaria&amp;popout=1&amp;url=http%3A%2F%2Flinuxaria.com%2Farticle%2Fhow-to-use-a-playstation-2-joypad-with-linux%3Flang%3Den&amp;language=en_GB&amp;category=text&amp;title=How+to+use+a+Playstation+2+joypad+with+Linux&amp;description=Thanks+to+all+the+Indie+games%2C+Steam+and+Humble+Bundle+recently+the+market+of+games+for+Linux+has+become+most+active+than+ever+and+so+I%26%238217%3Bve+bought+some+arcade%2Faction%2Fplatform+games....&amp;tags=joypad%2Cjoystick%2Ckernel%2Ckeyboard%2Clinux%2Clinux+box%2Cmint%2Cplaystation%2Cplaystation+2%2Cqjoypad%2Cubuntu%2Cusb+port%2Cblog" type="text/html" />
	<feedburner:origLink>http://linuxaria.com/article/how-to-use-a-playstation-2-joypad-with-linux?lang=en</feedburner:origLink></item>
		<item>
		<title>Out test with Linux Mint 15 Olivia, Cinnamon edition</title>
		<link>http://feedproxy.google.com/~r/Linuxaria_En/~3/YUCCg5SjKkg/out-test-with-linux-mint-15-olivia-cinnamon-edition</link>
		<comments>http://linuxaria.com/article/out-test-with-linux-mint-15-olivia-cinnamon-edition?lang=en#comments</comments>
		<pubDate>Mon, 10 Jun 2013 22:16:03 +0000</pubDate>
		<dc:creator>linuxari</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[Opinion]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Cinnamon]]></category>
		<category><![CDATA[GNU]]></category>
		<category><![CDATA[gnu linux]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux distribution]]></category>
		<category><![CDATA[mint]]></category>
		<category><![CDATA[mint 15]]></category>
		<category><![CDATA[olivia]]></category>
		<category><![CDATA[xfce desktop environment]]></category>
		<category><![CDATA[Xubuntu]]></category>

		<guid isPermaLink="false">http://linuxaria.com/?p=7337</guid>
		<description><![CDATA[I&#8217;ve changed the GNU/Linux distribution of my home computer from Xubuntu to Mint (XFCE edition) 2 releases ago, and from that date I&#8217;ve never regret it, so while I wait for the release of the XFCE edition of Olivia (the code name of Mint 15), I&#8217;m glad to publish an interesting article of Manuel and <a href='http://linuxaria.com/article/out-test-with-linux-mint-15-olivia-cinnamon-edition?lang=en' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://linuxaria.com/article/cinnamon-a-new-delicious-flavour-for-linux-users-to-enjoy?lang=en' rel='bookmark' title='Cinnamon: A New Delicious Flavour For Linux Users To Enjoy'>Cinnamon: A New Delicious Flavour For Linux Users To Enjoy</a></li>
<li><a href='http://linuxaria.com/article/news/new-computer-new-distro-or-goodbye-ubuntu-welcome-mint?lang=en' rel='bookmark' title='New computer, new distro or goodbye Ubuntu, welcome Mint'>New computer, new distro or goodbye Ubuntu, welcome Mint</a></li>
</ol>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
]]></description>
				<content:encoded><![CDATA[<p><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/06/Linux-Mint-Official-Logo.png" rel="lightbox[7337]"><img class="alignleft size-full wp-image-7338" style="margin: 4px;" alt="linux mint" src="http://cdn.linuxaria.com/wp-content/uploads/2013/06/Linux-Mint-Official-Logo.png" width="250" height="80" /></a></p>
<p>I&#8217;ve changed the GNU/Linux distribution of my home computer from Xubuntu to Mint (XFCE edition) 2 releases ago, and from that date I&#8217;ve never regret it, so while I wait for the release of the XFCE edition of Olivia (the code name of Mint 15), I&#8217;m glad to publish an <a target="_blank" href="http://www.boccaperta.com/i-nostri-test-con-linux-mint-15-olivia/">interesting article</a> of <a target="_blank" href="http://www.boccaperta.com/manuel/">Manuel</a> and it&#8217;s experiences with the Cinnamon edition of Mint 15.<br />
&#8212;</p>
<p>The new version of <a target="_blank" href="http://www.linuxmint.com/">Linux Mint</a> has just been released. The developers have arrived at version 15, the nick name of this version is Olivia. A lot of the changes are specified in the release notes. Among the most striking a new managment for the proprietary drivers and the repository. The writer already used successfully Mint, but in the variant with the <a target="_blank" href="http://www.xfce.org/">XFCE desktop environment</a>. This time, it was decided to give credit to the developers of Mint and use the official version with <a target="_blank" href="http://cinnamon.linuxmint.com/">Cinnamon</a> instead of XFCE.</p>
<p>No more pleasantries. The new Mint soon proved to be a bomb, with really gew things to complain about. Installed as usual directly from an USB stick, in around twenty minutes we had everything set and ready. All the hardware of our laptop Dell Inspiron 1525 has been recognized on the fly, but we had to turn on the of the proprietary wireless driver in order to use the wireless connection. A few automatic updates remained to be done, and so, we started with our tests.<br />
<span id="more-7337"></span><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Leader-text-image */
google_ad_slot = "4350381014";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
For simple matter of habit, coming from XFCE, we moved the main panel at the top. Linux Mint is installed with a lot software ready for use. We limited ourselves to add some tools which we use daily: IBus to handle input in Chinese, <a target="_blank" href="https://launchpad.net/~alexx2000/+archive/doublecmd">Double Commander</a>, the text editor <a target="_blank" href="http://www.geany.org/">Geany</a>, <a target="_blank" href="http://smplayer.sourceforge.net/">SMPlayer</a>, <a target="_blank" href="http://www.clementine-player.org/">Clementine</a> for music, <a target="_blank" href="https://www.dropbox.com/">Dropbox</a>, <a target="_blank" href="http://www.skype.com/">Skype</a> and little else.</p>
<p><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/06/Workspace-1_005.png" rel="lightbox[7337]"><img class="aligncenter size-full wp-image-7340" alt="mint workspace" src="http://cdn.linuxaria.com/wp-content/uploads/2013/06/Workspace-1_005.png" width="650" height="406" /></a></p>
<p>A small note for those who use Double Commander like us. The GTK version has a bug with the animation effects of the windows. If you try to delete a file, the popup of cancellation remains on the screen and it is impossible to get rid of it even after a restart of Cinnamon. To resolve this issue and get back to safely use Double Commander, simply avoid using the Fade effect in the settings of the effects of Cinnamon. We hope that soon this bug will be fixed.</p>
<p><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/06/Effects_003.png" rel="lightbox[7337]"><img class="aligncenter size-full wp-image-7341" alt="mint cinnamon effect menu" src="http://cdn.linuxaria.com/wp-content/uploads/2013/06/Effects_003.png" width="650" height="312" /></a></p>
<p>For those who do not know Double Commander or prefer to use what Linux Mint provides, the file manager <a target="_blank" href="http://cinnamon.linuxmint.com/?p=198">Nemo</a>, derived from Nautilus that is the default in Ubuntu, offers everything you need.</p>
<p><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/06/Home_004.png" rel="lightbox[7337]"><img class="aligncenter size-full wp-image-7342" alt="Nemo" src="http://cdn.linuxaria.com/wp-content/uploads/2013/06/Home_004.png" width="650" height="465" /></a></p>
<p>A fresh installation of Linux Mint also miss the Windows fonts, but just type the following command in the terminal to resolve this:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> ttf-installer-mscorefonts</pre></td></tr></table></div>

<p>Thanks to Cinnamon, the menu is a little gem of elegance, order and comfort. It is a moment to find all the applications, add them to the panel, reorder, create desktop shortcuts. For those who like hack everything, within the options menu there is the possibility to enter the path of a directory directly in the search box.</p>
<p><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/06/Menu_002.png" rel="lightbox[7337]"><img class="aligncenter size-full wp-image-7344" alt="Menu_002" src="http://cdn.linuxaria.com/wp-content/uploads/2013/06/Menu_002.png" width="605" height="611" /></a></p>
<p>There are several settings which you can customize in Linux Mint. Of course you do not have the freedom that you had with XFCE, but we are not so far away. To change the appearance of the system there are two themes available, you can add more themes directly from the system settings without getting lost among websites. However, the first attempt to look for new themes on the web proved to be quite long in spite of our network that was working perfectly. There are also desklets useful to beautify your desktop, and various extensions are easily accessible in the clean and polish panel with the system settings.</p>
<p><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/06/System-Settings_006.png" rel="lightbox[7337]"><img class="aligncenter size-full wp-image-7345" alt="system settings" src="http://cdn.linuxaria.com/wp-content/uploads/2013/06/System-Settings_006.png" width="650" height="506" /></a></p>
<p>A few clicks and tricks and voila, here is how our Olivia in all its glory will look.</p>
<p><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/06/Workspace-1_003.png" rel="lightbox[7337]"><img class="aligncenter size-full wp-image-7346" alt="Workspace" src="http://cdn.linuxaria.com/wp-content/uploads/2013/06/Workspace-1_003.png" width="650" height="406" /></a></p>
<p>Another minor inconvenience experienced was the inability to see other PCs in our local network via the Samba service. To solve the problem is enough to follow this simple procedure:</p>
<ul>
<li><span style="font-size: 13px; line-height: 19px;">from the terminal, run </span><code style="font-size: 13px; line-height: 19px;">sudo gedit /etc/samba/smb.conf</code></li>
<li><span style="font-size: 13px; line-height: 19px;">under the heading </span><code style="font-size: 13px; line-height: 19px;">workgroup = WORKGROUP</code><span style="font-size: 13px; line-height: 19px;">, add: </span><code style="font-size: 13px; line-height: 19px;">name resolve order = bcast host lmhosts wins</code></li>
<li><span style="font-size: 13px; line-height: 19px;">save and close the file</span></li>
<li><span style="font-size: 13px; line-height: 19px;">open a terminal and type </span><code style="font-size: 13px; line-height: 19px;">run sudo service smbd restart</code></li>
<li><span style="font-size: 13px; line-height: 19px;">open a terminal and type </span><code style="font-size: 13px; line-height: 19px;">run sudo service nmbd restart</code></li>
</ul>
<p>Wait a few minutes and all is done, our local network was accessible again.</p>
<p><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/06/Windows-shares-on-workgroup_001.png" rel="lightbox[7337]"><img src="http://cdn.linuxaria.com/wp-content/uploads/2013/06/Windows-shares-on-workgroup_001.png" alt="windows share" width="650" height="471" class="aligncenter size-full wp-image-7347" /></a></p>
<h3> Conclusions </h3>
<p>Olivia is proving to be all that Linux Mint has tried to be since it was born. A stable operating system, elegant and easy to use. Rejecting the desktop environments of the latest Ubuntu and Fedora that have so divided the Gnu/Linux community, Linux Mint makes simplicity and comfort its true strength. If you want to find a downside, with Cinnamon the load times at startup are a bit slower than when we were using XFCE, but nothing to tear his hair. GNU/Linux has never been so beautiful.</p>
<p><script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Leader-text-image */
google_ad_slot = "4350381014";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://linuxaria.com/article/cinnamon-a-new-delicious-flavour-for-linux-users-to-enjoy?lang=en' rel='bookmark' title='Cinnamon: A New Delicious Flavour For Linux Users To Enjoy'>Cinnamon: A New Delicious Flavour For Linux Users To Enjoy</a></li>
<li><a href='http://linuxaria.com/article/news/new-computer-new-distro-or-goodbye-ubuntu-welcome-mint?lang=en' rel='bookmark' title='New computer, new distro or goodbye Ubuntu, welcome Mint'>New computer, new distro or goodbye Ubuntu, welcome Mint</a></li>
</ol></p>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
 <p><a href="http://linuxaria.com/?flattrss_redirect&amp;id=7337&amp;md5=0326fac84239471f40736edb37f91263" title="Flattr" target="_blank"><img src="http://cdn.linuxaria.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=YUCCg5SjKkg:tMYMdqXfa7o:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=YUCCg5SjKkg:tMYMdqXfa7o:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=YUCCg5SjKkg:tMYMdqXfa7o:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?i=YUCCg5SjKkg:tMYMdqXfa7o:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Linuxaria_En/~4/YUCCg5SjKkg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxaria.com/article/out-test-with-linux-mint-15-olivia-cinnamon-edition?lang=en/feed&amp;lang=en</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=linuxaria&amp;popout=1&amp;url=http%3A%2F%2Flinuxaria.com%2Farticle%2Fout-test-with-linux-mint-15-olivia-cinnamon-edition%3Flang%3Den&amp;language=en_GB&amp;category=text&amp;title=Out+test+with+Linux+Mint+15+Olivia%2C+Cinnamon+edition&amp;description=I%26%238217%3Bve+changed+the+GNU%2FLinux+distribution+of+my+home+computer+from+Xubuntu+to+Mint+%28XFCE+edition%29+2+releases+ago%2C+and+from+that+date+I%26%238217%3Bve+never+regret+it%2C+so+while+I+wait...&amp;tags=Cinnamon%2CGNU%2Cgnu+linux%2Claptop%2Clinux%2Clinux+distribution%2Cmint%2Cmint+15%2Colivia%2Cxfce+desktop+environment%2CXubuntu%2Cblog" type="text/html" />
	<feedburner:origLink>http://linuxaria.com/article/out-test-with-linux-mint-15-olivia-cinnamon-edition?lang=en</feedburner:origLink></item>
		<item>
		<title>Work with PDF on Linux with PDFTk</title>
		<link>http://feedproxy.google.com/~r/Linuxaria_En/~3/eZATu24KnEg/work-with-pdf-on-linux-with-pdftk</link>
		<comments>http://linuxaria.com/recensioni/work-with-pdf-on-linux-with-pdftk?lang=en#comments</comments>
		<pubDate>Sun, 09 Jun 2013 22:40:00 +0000</pubDate>
		<dc:creator>Riccardo</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[documenti pdf]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[pdf attachments]]></category>
		<category><![CDATA[pdf document]]></category>
		<category><![CDATA[pdf documents]]></category>
		<category><![CDATA[pdf toolkit]]></category>
		<category><![CDATA[pdftk]]></category>
		<category><![CDATA[uncompress]]></category>

		<guid isPermaLink="false">http://linuxaria.com/?p=7327</guid>
		<description><![CDATA[PDFtk or The PDF Toolkit is an open source cross-platform tool for manipulating PDF documents. pdftk is basically a front end to the iText library (compiled to Native code using GCJ), capable of splitting, merging, encrypting, decrypting, uncompressing, recompressing, and repairing PDFs. If pdf is electronic paper, then pdftk is an electronic stapler-remover, hole-punch, binder, <a href='http://linuxaria.com/recensioni/work-with-pdf-on-linux-with-pdftk?lang=en' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://linuxaria.com/article/reader-pdf-linux-evince-okular?lang=en' rel='bookmark' title='PDF Reader for Linux'>PDF Reader for Linux</a></li>
<li><a href='http://linuxaria.com/recensioni/show-your-pdf-with-style-with-linux?lang=en' rel='bookmark' title='Show your pdf with style on Linux'>Show your pdf with style on Linux</a></li>
</ol>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
]]></description>
				<content:encoded><![CDATA[<p><a target="_blank" href="http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/">PDFtk</a> or The PDF Toolkit is an open source cross-platform tool for manipulating PDF documents. pdftk is basically a front end to the iText library (compiled to Native code using GCJ), capable of splitting, merging, encrypting, decrypting, uncompressing, recompressing, and repairing PDFs.</p>
<p>If pdf is electronic paper, then pdftk is an electronic stapler-remover, hole-punch, binder, secret-decoder-ring, and x-ray-glasses.<br />
pdftk is a simple tool for doing everyday things with pdf documents. keep one in the top drawer of your desktop and use it to:</p>
<ul>
<li><span style="font-size: 13px; line-height: 19px;">merge pdf documents</span></li>
<li><span style="font-size: 13px; line-height: 19px;">split pdf pages into a new document</span></li>
<li><span style="font-size: 13px; line-height: 19px;">decrypt input as necessary (password required)</span></li>
<li><span style="font-size: 13px; line-height: 19px;">encrypt output as desired</span></li>
<li><span style="font-size: 13px; line-height: 19px;">fill pdf forms with fdf data and/or flatten forms</span></li>
<li><span style="font-size: 13px; line-height: 19px;">apply a background watermark</span></li>
<li><span style="font-size: 13px; line-height: 19px;">report pdf on metrics, including metadata and bookmarks</span></li>
<li><span style="font-size: 13px; line-height: 19px;">update pdf metadata</span></li>
<li><span style="font-size: 13px; line-height: 19px;">attach files to pdf pages or the pdf document</span></li>
<li><span style="font-size: 13px; line-height: 19px;">unpack pdf attachments</span></li>
<li><span style="font-size: 13px; line-height: 19px;">burst a pdf document into single pages</span></li>
<li><span style="font-size: 13px; line-height: 19px;">uncompress and re-compress page streams</span></li>
<li><span style="font-size: 13px; line-height: 19px;">repair corrupted pdf (where possible)</span></li>
</ul>
<p><span id="more-7327"></span><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Leader-text-image */
google_ad_slot = "4350381014";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<h3>Installation</h3>
<p>The pdftk package should be available in the repository of the most common distributions so to install it you can usually use your package manager such as:</p>
<p>Debian, Ubuntu, Mint:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get install</span> pdftk</pre></td></tr></table></div>

<p>Fedora</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">yum install</span> pdftk</pre></td></tr></table></div>

<p>Arch Linux</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">yaourt <span style="color: #660033;">-Sy</span> pdftk</pre></td></tr></table></div>

<h3>Basic Usage</h3>
<p>The basic syntax of PDFTK is the following:</p>
<p>pdftk input_file operations output_file</p>
<p>The operations corresponds to the desired action that you want to do on the files.</p>
<ul>
<li><span style="font-size: 13px; line-height: 19px;"><strong>cat</strong> Concatenation</span></li>
<li><span style="font-size: 13px; line-height: 19px;"><strong>burst</strong> Splits a single input PDF document into individual pages.</span></li>
<li><span style="font-size: 13px; line-height: 19px;"><strong>dump_data</strong> Extraction of metadata, bookmarks (bookmarks) and page labels from a PDF</span></li>
<li><span style="font-size: 13px; line-height: 19px;"><strong>uncompress</strong> Decompression</span></li>
<li><span style="font-size: 13px; line-height: 19px;"><strong>attach_files</strong> Inclusion of attachments in a PDF document</span></li>
<li><span style="font-size: 13px; line-height: 19px;"><strong>unpack_files</strong> Extraction of attachments from a PDF document</span></li>
<li><span style="font-size: 13px; line-height: 19px;"><strong>fill_form</strong> Fill in PDF forms with FDF1) or XFDF2) data</span></li>
<li><span style="font-size: 13px; line-height: 19px;"><strong>background</strong> Applies a PDF watermark to the background of a single input PDF</span></li>
<li><span style="font-size: 13px; line-height: 19px;"><strong>stamp</strong> This behaves just like the background operation except it overlays the stamp PDF page on top of the input PDF document’s pages</span></li>
<li><span style="font-size: 13px; line-height: 19px;"><strong>generate_fdf</strong> Reads a single input PDF file and generates an FDF file suitable for fill_form</span></li>
<li><span style="font-size: 13px; line-height: 19px;"><strong>dump_data_fields</strong> Reads a single input PDF file and reports its metadata, bookmarks and page metrics.</span></li>
<li><span style="font-size: 13px; line-height: 19px;"><strong>update_info</strong> Update metadata</span></li>
</ul>
<h3>PDFtk Examples</h3>
<p><strong>Joining files<br />
</strong></p>
<p>Suppose that we want to merge two documents (1.pdf and 2.pdf) in a single file (both.pdf), the command will be:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666;">$ </span>pdftk <span style="color: #000000;">1</span>.pdf <span style="color: #000000;">2</span>.pdf <span style="color: #c20cb9; font-weight: bold;">cat</span> output both.pdf</pre></td></tr></table></div>

<p>The cat command assembles pages from input PDFs to create a new PDF. Use cat to merge PDF pages or to split PDF pages from documents. You can also use it to rotate PDF pages. Page order in the new PDF is specified by the order of the given page ranges, this can be useful to:</p>
<p><strong>Merge specific pages from different files</strong></p>
<p>Suppose that we want to merge two documents (1.pdf and 2.pdf) in this way: the first 2 pages of 1.pdf and the even pages from 10 to 20 of 2.pdf, the command will be:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">pdftk <span style="color: #007800;">A</span>=<span style="color: #000000;">1</span>.pdf <span style="color: #007800;">B</span>=<span style="color: #000000;">2</span>.pdf <span style="color: #c20cb9; font-weight: bold;">cat</span> A1-<span style="color: #000000;">2</span> B10-20even output out.pdf</pre></td></tr></table></div>

<p><strong>Splitting files<br />
</strong></p>
<p>It&#8217;s also possible to split PDF files with pdftk. The burst option breaks a PDF into multiple files &#8212; one file for each page:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">pdftk mylong_guide.pdf burst</pre></td></tr></table></div>

<p>This command will create a lot of files with names corresponding to their page numbers, such as pg_0001 to pg_0125.</p>
<p><strong>Security<br />
</strong></p>
<p>Encrypt a PDF document with a 128-bit key and remove all rights (default):</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">pdftk mydoc.pdf output mycrypted_doc.128.pdf owner_pw foo</pre></td></tr></table></div>

<p>Same as above, except password baz must also be used to open output PDF</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">pdftk <span style="color: #000000;">1</span>.pdf output mycrypted_doc.128.pdf owner_pw foo user_pw baz</pre></td></tr></table></div>

<p>Decrypt a PDF :</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">pdftk mycrypted_doc.128.pdf input_pw  foo output déchiffré.pdf</pre></td></tr></table></div>

<p><strong>Adding attachments<br />
</strong></p>
<p>This feature can be useful to include a document in another format, images, or additional information with a published PDF<br />
Pdftk can attach binary and text files to a PDF with ease. You can even specify what page of the PDF you want the attachment to appear on with a command like this:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">pdftk html_tidy.pdf attach_files command_ref.html to_page <span style="color: #000000;">24</span> output html_tidy_book.pdf</pre></td></tr></table></div>

<p>This will attach to page 24 of the document html_tidy_book.pdf the html: command_ref.html</p>
<h3> Conclusions </h3>
<p>probably you don&#8217;t need these functionality every day, but if you have to manipulate pdf files in Linux, pdftk it&#8217;s your tool.<br />
With it you&#8217;ll be able to do a lot of different things with ease, getting good results in no time.</p>
<p><b>References</b></p>
<p><a target="_blank" href="http://www.linux.com/learn/tutorials/442414-manipulating-pdfs-with-the-pdf-toolkit">Manipulating PDFs with the PDF Toolkit<br />
</a></p>
<p><a target="_blank" href="http://www.pdflabs.com/docs/pdftk-cli-examples/">PDFtk Examples<br />
</a><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Leader-text-image */
google_ad_slot = "4350381014";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://linuxaria.com/article/reader-pdf-linux-evince-okular?lang=en' rel='bookmark' title='PDF Reader for Linux'>PDF Reader for Linux</a></li>
<li><a href='http://linuxaria.com/recensioni/show-your-pdf-with-style-with-linux?lang=en' rel='bookmark' title='Show your pdf with style on Linux'>Show your pdf with style on Linux</a></li>
</ol></p>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
 <p><a href="http://linuxaria.com/?flattrss_redirect&amp;id=7327&amp;md5=e7fd7f8243161bee213de253f36e6353" title="Flattr" target="_blank"><img src="http://cdn.linuxaria.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=eZATu24KnEg:uHZ--DQDpH8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=eZATu24KnEg:uHZ--DQDpH8:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=eZATu24KnEg:uHZ--DQDpH8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?i=eZATu24KnEg:uHZ--DQDpH8:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Linuxaria_En/~4/eZATu24KnEg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxaria.com/recensioni/work-with-pdf-on-linux-with-pdftk?lang=en/feed&amp;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=linuxaria&amp;popout=1&amp;url=http%3A%2F%2Flinuxaria.com%2Frecensioni%2Fwork-with-pdf-on-linux-with-pdftk%3Flang%3Den&amp;language=en_GB&amp;category=text&amp;title=Work+with+PDF+on+Linux+with+PDFTk&amp;description=PDFtk+or+The+PDF+Toolkit+is+an+open+source+cross-platform+tool+for+manipulating+PDF+documents.+pdftk+is+basically+a+front+end+to+the+iText+library+%28compiled+to+Native+code+using...&amp;tags=documenti+pdf%2Clinux%2Copen+source%2Cpdf%2Cpdf+attachments%2Cpdf+document%2Cpdf+documents%2Cpdf+toolkit%2Cpdftk%2Cuncompress%2Cblog" type="text/html" />
	<feedburner:origLink>http://linuxaria.com/recensioni/work-with-pdf-on-linux-with-pdftk?lang=en</feedburner:origLink></item>
		<item>
		<title>Linux shell:lsblk</title>
		<link>http://feedproxy.google.com/~r/Linuxaria_En/~3/NIf6kmxZl58/linux-shelllsblk</link>
		<comments>http://linuxaria.com/pills/linux-shelllsblk?lang=en#comments</comments>
		<pubDate>Tue, 04 Jun 2013 21:21:00 +0000</pubDate>
		<dc:creator>Riccardo</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Pills]]></category>
		<category><![CDATA[block device]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lsblk]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[swap partition]]></category>

		<guid isPermaLink="false">http://linuxaria.com/?p=7323</guid>
		<description><![CDATA[While installing a new computer (soon a post on my new arch-linux laptop) I&#8217;ve re-discovered a command that I don&#8217;t use frequently, but that can be really useful : lsblk lsblk lists information about all or the specified block devices. The lsblk command reads the sysfs filesystem to gather information. The command prints all block <a href='http://linuxaria.com/pills/linux-shelllsblk?lang=en' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://linuxaria.com/pills/free-reserved-ext3-ext4-filesystems?lang=en' rel='bookmark' title='Free reserved space in ext3/ext4 Filesystems'>Free reserved space in ext3/ext4 Filesystems</a></li>
<li><a href='http://linuxaria.com/pills/the-best-filesystem-for-an-external-hard-disk-of-1tb-with-cross-platform-support?lang=en' rel='bookmark' title='The Best Filesystem for an external hard disk of 1TB with cross platform support.'>The Best Filesystem for an external hard disk of 1TB with cross platform support.</a></li>
</ol>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
]]></description>
				<content:encoded><![CDATA[<p>While installing a new computer (soon a post on my new arch-linux laptop) I&#8217;ve re-discovered a command that I don&#8217;t use frequently, but that can be really useful : <strong><code>lsblk</code></strong></p>
<p><code><strong>lsblk</strong></code> lists information about all or the specified block devices.  The <code>lsblk</code> command reads the <code>sysfs</code> filesystem to gather information.<br />
The command prints all block devices (except RAM disks) in a tree-like format by default.<br />
<span id="more-7323"></span><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Leader-text-image */
google_ad_slot = "4350381014";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
This command can be very useful to check how the different partitions and/or disks are mounted in the system, this is an example on my desktop:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#lsblk </span>
NAME    MAJ:MIN RM   SIZE RO TYPE   MOUNTPOINT
sda       <span style="color: #000000;">8</span>:<span style="color: #000000;">0</span>    <span style="color: #000000;">0</span> 465.8G  <span style="color: #000000;">0</span> disk   
├─sda1    <span style="color: #000000;">8</span>:<span style="color: #000000;">1</span>    <span style="color: #000000;">0</span>  46.6G  <span style="color: #000000;">0</span> part   <span style="color: #000000; font-weight: bold;">/</span>
├─sda2    <span style="color: #000000;">8</span>:<span style="color: #000000;">2</span>    <span style="color: #000000;">0</span>     1K  <span style="color: #000000;">0</span> part   
├─sda5    <span style="color: #000000;">8</span>:<span style="color: #000000;">5</span>    <span style="color: #000000;">0</span>   3.7G  <span style="color: #000000;">0</span> part   <span style="color: #7a0874; font-weight: bold;">&#91;</span>SWAP<span style="color: #7a0874; font-weight: bold;">&#93;</span>
└─sda6    <span style="color: #000000;">8</span>:<span style="color: #000000;">6</span>    <span style="color: #000000;">0</span> 415.5G  <span style="color: #000000;">0</span> part   
sdb       <span style="color: #000000;">8</span>:<span style="color: #000000;">16</span>   <span style="color: #000000;">0</span> 465.8G  <span style="color: #000000;">0</span> disk   
└─sdb1    <span style="color: #000000;">8</span>:<span style="color: #000000;">17</span>   <span style="color: #000000;">0</span> 465.8G  <span style="color: #000000;">0</span> part   
  └─md0   <span style="color: #000000;">9</span>:<span style="color: #000000;">0</span>    <span style="color: #000000;">0</span> 465.7G  <span style="color: #000000;">0</span> raid10 <span style="color: #000000; font-weight: bold;">/</span>data
sdc       <span style="color: #000000;">8</span>:<span style="color: #000000;">32</span>   <span style="color: #000000;">0</span> 465.8G  <span style="color: #000000;">0</span> disk   
└─sdc1    <span style="color: #000000;">8</span>:<span style="color: #000000;">33</span>   <span style="color: #000000;">0</span> 465.8G  <span style="color: #000000;">0</span> part   
  └─md0   <span style="color: #000000;">9</span>:<span style="color: #000000;">0</span>    <span style="color: #000000;">0</span> 465.7G  <span style="color: #000000;">0</span> raid10 <span style="color: #000000; font-weight: bold;">/</span>data
sdd       <span style="color: #000000;">8</span>:<span style="color: #000000;">48</span>   <span style="color: #000000;">1</span>  14.9G  <span style="color: #000000;">0</span> disk   
└─sdd1    <span style="color: #000000;">8</span>:<span style="color: #000000;">49</span>   <span style="color: #000000;">1</span>  14.9G  <span style="color: #000000;">0</span> part   <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>linuxaria<span style="color: #000000; font-weight: bold;">/</span>KINGSTON
sr0      <span style="color: #000000;">11</span>:<span style="color: #000000;">0</span>    <span style="color: #000000;">1</span>  1024M  <span style="color: #000000;">0</span> rom</pre></td></tr></table></div>

<p>From this output you can see that on this desktop I&#8217;ve the following disks:</p>
<p>SDA the fist &#8220;scsi&#8221; disk, in my case a SATA disk.<br />
On this disk the first partition is used for the / filesystem, the second partition it&#8217;s an extended partition, the third it&#8217;s my swap partition and the last one (sda6) is used for my /home, it&#8217;s a BTRFS filesystem and the command don&#8217;t recognize it, </p>
<p>SDB and SDC are the two disks that <a href="http://linuxaria.com/article/configuring-2-mirrored-disks-on-ubuntu-linux?lang=en">I use in RAID 10 </a> and the filesystem is mounted as /data</p>
<p>SDD it&#8217;s an USB stick of 16GB mounted under the directory /media/linuxaria/KINGSTON</p>
<p>An output of a computer with LVM could be:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">$ lsblk
NAME                       MAJ:MIN RM   SIZE RO MOUNTPOINT
sda                          <span style="color: #000000;">8</span>:<span style="color: #000000;">0</span>    <span style="color: #000000;">0</span> 298.1G  <span style="color: #000000;">0</span>
├─sda1                       <span style="color: #000000;">8</span>:<span style="color: #000000;">1</span>    <span style="color: #000000;">0</span>   500M  <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">/</span>boot
└─sda2                       <span style="color: #000000;">8</span>:<span style="color: #000000;">2</span>    <span style="color: #000000;">0</span> 297.6G  <span style="color: #000000;">0</span>
  ├─vg_main-lv_swap <span style="color: #7a0874; font-weight: bold;">&#40;</span>dm-<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">253</span>:<span style="color: #000000;">0</span>    <span style="color: #000000;">0</span>   5.8G  <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>SWAP<span style="color: #7a0874; font-weight: bold;">&#93;</span>
  ├─vg_main-lv_root <span style="color: #7a0874; font-weight: bold;">&#40;</span>dm-<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">253</span>:<span style="color: #000000;">1</span>    <span style="color: #000000;">0</span>    50G  <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">/</span>
  └─vg_main-lv_home <span style="color: #7a0874; font-weight: bold;">&#40;</span>dm-<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">253</span>:<span style="color: #000000;">2</span>    <span style="color: #000000;">0</span> 241.8G  <span style="color: #000000;">0</span>
    └─home <span style="color: #7a0874; font-weight: bold;">&#40;</span>dm-<span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>          <span style="color: #000000;">253</span>:<span style="color: #000000;">3</span>    <span style="color: #000000;">0</span> 241.8G  <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">/</span>home
sr0                         <span style="color: #000000;">11</span>:<span style="color: #000000;">0</span>    <span style="color: #000000;">1</span>  1024M  <span style="color: #000000;">0</span></pre></td></tr></table></div>

<p>So as you can see this command it&#8217;s really easy to use and the output it&#8217;s really polish in its tree style, with a glance you can recognize partitions, logical volume and other useful information of your disks.<br />
Running <code>fdisk -l</code> gives similar data. But, fdisk requires root privileges, and It does not understand dm or lvm partitions.</p>
<p><script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Leader-text-image */
google_ad_slot = "4350381014";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://linuxaria.com/pills/free-reserved-ext3-ext4-filesystems?lang=en' rel='bookmark' title='Free reserved space in ext3/ext4 Filesystems'>Free reserved space in ext3/ext4 Filesystems</a></li>
<li><a href='http://linuxaria.com/pills/the-best-filesystem-for-an-external-hard-disk-of-1tb-with-cross-platform-support?lang=en' rel='bookmark' title='The Best Filesystem for an external hard disk of 1TB with cross platform support.'>The Best Filesystem for an external hard disk of 1TB with cross platform support.</a></li>
</ol></p>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
 <p><a href="http://linuxaria.com/?flattrss_redirect&amp;id=7323&amp;md5=09cba999127ab799bb0be709ef15ea9f" title="Flattr" target="_blank"><img src="http://cdn.linuxaria.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=NIf6kmxZl58:3QhyyocFVis:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=NIf6kmxZl58:3QhyyocFVis:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=NIf6kmxZl58:3QhyyocFVis:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?i=NIf6kmxZl58:3QhyyocFVis:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Linuxaria_En/~4/NIf6kmxZl58" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxaria.com/pills/linux-shelllsblk?lang=en/feed&amp;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=linuxaria&amp;popout=1&amp;url=http%3A%2F%2Flinuxaria.com%2Fpills%2Flinux-shelllsblk%3Flang%3Den&amp;language=en_GB&amp;category=text&amp;title=Linux+shell%3Alsblk&amp;description=While+installing+a+new+computer+%28soon+a+post+on+my+new+arch-linux+laptop%29+I%26%238217%3Bve+re-discovered+a+command+that+I+don%26%238217%3Bt+use+frequently%2C+but+that+can+be+really+useful+%3A+lsblk...&amp;tags=block+device%2Cfilesystem%2Clinux%2Clsblk%2Cshell%2Cswap+partition%2Cblog" type="text/html" />
	<feedburner:origLink>http://linuxaria.com/pills/linux-shelllsblk?lang=en</feedburner:origLink></item>
		<item>
		<title>Linux shell: Introduction to Flock</title>
		<link>http://feedproxy.google.com/~r/Linuxaria_En/~3/1dZM_sUIFMI/linux-shell-introduction-to-flock</link>
		<comments>http://linuxaria.com/howto/linux-shell-introduction-to-flock?lang=en#comments</comments>
		<pubDate>Mon, 03 Jun 2013 21:56:09 +0000</pubDate>
		<dc:creator>Riccardo</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[concurrency]]></category>
		<category><![CDATA[flock]]></category>
		<category><![CDATA[jobs]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[locks]]></category>
		<category><![CDATA[parallel]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://linuxaria.com/?p=7321</guid>
		<description><![CDATA[Recently a colleague of mine should run multiple parallel jobs on a server (around 20 in our specific case), every job does &#8220;an elaboration&#8221; and this can take a time longer or shorter in respect of the others, once a job finishes its task it must read from a text file the first line that <a href='http://linuxaria.com/howto/linux-shell-introduction-to-flock?lang=en' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://linuxaria.com/pills/how-to-get-exit-status-from-a-piped-command-in-linux-shell?lang=en' rel='bookmark' title='How to get exit status from a piped command in Linux shell'>How to get exit status from a piped command in Linux shell</a></li>
<li><a href='http://linuxaria.com/howto/linux-shell-how-to-use-the-exec-option-in-find-with-examples?lang=en' rel='bookmark' title='Linux shell, how to use the exec option in find with examples'>Linux shell, how to use the exec option in find with examples</a></li>
</ol>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Recently a colleague of mine should run multiple parallel jobs on a server (around 20 in our specific case), every job does &#8220;an elaboration&#8221; and this can take a time longer or shorter in respect of the others, once a job finishes its task it must read from a text file the first line that indicate the ID of a new job, it removes that ID from the top of the text file and starts to elaborate it.</p>
<p>Problem: On a long run (a run of 50K+ jobs) it happens &#8220;frequently&#8221; that 2 jobs finish at the same time and so both take the same ID causing problems to the whole process, we tried to use a simple lock file &#8220;touched&#8221; just after the job was opening the file with the list of ID, but it seems that this operation it&#8217;s too slow and we had some case of failed concurrency again.</p>
<p>The solution was to use the bash function <code><strong>flock</strong></code></p>
<p><span id="more-7321"></span><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Leader-text-image */
google_ad_slot = "4350381014";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p><a target="_blank" href="http://manpages.ubuntu.com/manpages/intrepid/man2/flock.2.html">flock(2)</a> it&#8217;s used to apply advisory locks to open files. it can be used to synchronize access to resources across multiple running processes. While flock(2) does solely act on files (actually, on file handles), the file itself need not be the resource to which access is being controlled. Instead, the file can be used as a semaphore to control access to a critical section, in which any resource can be accessed without concurrency concerns.</p>
<p>This sound complicated ?</p>
<p>Perhaps a small example will help, this is my /tmp/hello.sh script:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #660033;">-e</span>
&nbsp;
<span style="color: #007800;">scriptname</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">basename</span> <span style="color: #007800;">$0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">lock</span>=<span style="color: #ff0000;">&quot;/var/run/<span style="color: #007800;">${scriptname}</span>&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exec</span> <span style="color: #000000;">200</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$lock</span>
flock <span style="color: #660033;">-n</span> <span style="color: #000000;">200</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## The code:</span>
<span style="color: #007800;">pid</span>=<span style="color: #007800;">$$</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$pid</span> <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">200</span>
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">60</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Hello world&quot;</span></pre></td></tr></table></div>

<p>Some explanation of the interesting parts of the code:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">set</span> <span style="color: #660033;">-e</span></pre></td></tr></table></div>

<p>When this option is on, if a simple command fails for any of the reasons listed in Consequences of Shell Errors or returns an exit status value >0, and is not part of the compound list following a while, until, or if keyword, and is not a part of an AND or OR list, and is not a pipeline preceded by the ! reserved word, then the shell shall immediately exit.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">exec</span> <span style="color: #000000;">200</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$lock</span></pre></td></tr></table></div>

<p>Normally &#8220;exec&#8221; in a shell script is used to turn over control of the script to some other program. But it can also be used to open a file and name a file handle for it. Normally, every script has standard input (file handle 0), standard output (file handle 1) and standard error (file handle 2) opened for it. The call &#8220;exec 200>$lock&#8221; will open the file named in $lock for reading, and assign it file handle 200</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">flock <span style="color: #660033;">-n</span> <span style="color: #000000;">200</span><span style="color: #000000; font-weight: bold;">||</span><span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span></pre></td></tr></table></div>

<p>Tells flock to exclusively lock the file referenced by file handle 200 or exit with code 1. The state of being locked lasts after the flock call, because the file handle is still valid. That state will last until the file handle is closed, typically when the script exits.</p>
<p>After that i collect in the variable $pid the PID of this process and I write it in the lock file, i sleep 60 seconds (to test what happen if the script is run a second time) and at the end I give my message to the world.</p>
<p>And this is the output (in verbose mode) of this script:</p>
<p>First run:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>hello.sh 
+ <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #660033;">-e</span>
++ <span style="color: #c20cb9; font-weight: bold;">basename</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>hello.sh
+ <span style="color: #007800;">scriptname</span>=hello.sh
+ <span style="color: #007800;">lock</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>hello.sh
+ <span style="color: #7a0874; font-weight: bold;">exec</span>
+ flock <span style="color: #660033;">-n</span> <span style="color: #000000;">200</span>
+ <span style="color: #007800;">pid</span>=<span style="color: #000000;">4683</span>
+ <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">4683</span>
+ <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">60</span>
+ <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'Hello world'</span>
Hello world</pre></td></tr></table></div>

<p>Second run (while the first it&#8217;s sleeping):</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>hello.sh 
+ <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #660033;">-e</span>
++ <span style="color: #c20cb9; font-weight: bold;">basename</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>hello.sh
+ <span style="color: #007800;">scriptname</span>=hello.sh
+ <span style="color: #007800;">lock</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>hello.sh
+ <span style="color: #7a0874; font-weight: bold;">exec</span>
+ flock <span style="color: #660033;">-n</span> <span style="color: #000000;">200</span>
+ <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span></pre></td></tr></table></div>

<p>The main options that you can use with the command flock are:</p>
<p>-s, &#8211;shared<br />
Obtain a shared lock, sometimes called a read lock.</p>
<p>-x, -e, &#8211;exclusive<br />
Obtain an exclusive lock, sometimes called a write lock.  This is the default.</p>
<p>-u, &#8211;unlock<br />
Drop a lock.  This is usually not required, since a lock is automatically dropped when the file is closed.  However, it may be required in special cases,<br />
for example if the enclosed command group may have forked a background process which should not be holding the lock.</p>
<p>-n, &#8211;nb, &#8211;nonblock<br />
Fail (with an exit code of 1) rather than wait if the lock cannot be immediately acquired.</p>
<p>-w, &#8211;wait, &#8211;timeout seconds<br />
Fail (with an exit code of 1) if the lock cannot be acquired within seconds seconds.  Decimal fractional values are allowed.</p>
<h3> Conclusions </h3>
<p>Flock it&#8217;s an easy function that can assure you to run multiple jobs/processes without any problem on resources that must be read or write by a single process at time.<br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Leader-text-image */
google_ad_slot = "4350381014";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://linuxaria.com/pills/how-to-get-exit-status-from-a-piped-command-in-linux-shell?lang=en' rel='bookmark' title='How to get exit status from a piped command in Linux shell'>How to get exit status from a piped command in Linux shell</a></li>
<li><a href='http://linuxaria.com/howto/linux-shell-how-to-use-the-exec-option-in-find-with-examples?lang=en' rel='bookmark' title='Linux shell, how to use the exec option in find with examples'>Linux shell, how to use the exec option in find with examples</a></li>
</ol></p>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
 <p><a href="http://linuxaria.com/?flattrss_redirect&amp;id=7321&amp;md5=43cb7f021ba5dd37a1cbc4f05ee7a691" title="Flattr" target="_blank"><img src="http://cdn.linuxaria.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=1dZM_sUIFMI:GHoo7EIztww:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=1dZM_sUIFMI:GHoo7EIztww:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=1dZM_sUIFMI:GHoo7EIztww:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?i=1dZM_sUIFMI:GHoo7EIztww:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Linuxaria_En/~4/1dZM_sUIFMI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxaria.com/howto/linux-shell-introduction-to-flock?lang=en/feed&amp;lang=en</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=linuxaria&amp;popout=1&amp;url=http%3A%2F%2Flinuxaria.com%2Fhowto%2Flinux-shell-introduction-to-flock%3Flang%3Den&amp;language=en_GB&amp;category=text&amp;title=Linux+shell%3A+Introduction+to+Flock&amp;description=Recently+a+colleague+of+mine+should+run+multiple+parallel+jobs+on+a+server+%28around+20+in+our+specific+case%29%2C+every+job+does+%26%238220%3Ban+elaboration%26%238221%3B+and+this+can+take+a+time...&amp;tags=bash%2Cconcurrency%2Cflock%2Cjobs%2Clinux%2Clocks%2Cparallel%2Cshell%2Cblog" type="text/html" />
	<feedburner:origLink>http://linuxaria.com/howto/linux-shell-introduction-to-flock?lang=en</feedburner:origLink></item>
		<item>
		<title>Humble Indie Bundle 8 now available</title>
		<link>http://feedproxy.google.com/~r/Linuxaria_En/~3/ynthbHdDFkU/humble-indie-bundle-8-now-available</link>
		<comments>http://linuxaria.com/recensioni/humble-indie-bundle-8-now-available?lang=en#comments</comments>
		<pubDate>Sun, 02 Jun 2013 18:23:07 +0000</pubDate>
		<dc:creator>Riccardo</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Opinion]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[charities]]></category>
		<category><![CDATA[dear esther]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[hib]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[little inferno]]></category>
		<category><![CDATA[proteus]]></category>
		<category><![CDATA[Video game]]></category>

		<guid isPermaLink="false">http://linuxaria.com/?p=7308</guid>
		<description><![CDATA[Humble Indie Bundle (HIB) number eight is been released and this is the list of games that you’ll find this time: Dear Esther, Capsized, Awesomenauts, Thomas Was Alone, and Little Inferno. If you choose to pay over the average, you&#8217;ll also receive Hotline Miami and Proteus! What’s is HIB ? in short: The Humble Indie Bundles or <a href='http://linuxaria.com/recensioni/humble-indie-bundle-8-now-available?lang=en' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://linuxaria.com/pills/humble-bundle-part-3?lang=en' rel='bookmark' title='Humble Bundle &#8211; part 3'>Humble Bundle &#8211; part 3</a></li>
<li><a href='http://linuxaria.com/article/humble-indie-bundle-3-its-now-available?lang=en' rel='bookmark' title='Humble Indie Bundle 3 it&#8217;s now available !'>Humble Indie Bundle 3 it&#8217;s now available !</a></li>
</ol>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
]]></description>
				<content:encoded><![CDATA[<p><a target="_blank" href="http://www.humblebundle.com/" target="_blank"></a><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/06/humble-bundle8.png" rel="lightbox[7308]"><img class="alignleft size-full wp-image-7309" style="margin: 4px;" alt="humble-bundle8" src="http://cdn.linuxaria.com/wp-content/uploads/2013/06/humble-bundle8.png" width="184" height="200" /></a>Humble Indie Bundle (HIB) number eight is been released and this is the list of <a title="games" href="http://linuxaria.com/tag/games">games</a> that you’ll find this time: <em>Dear Esther</em>, <em>Capsized</em>, <em>Awesomenauts</em>, <em>Thomas Was Alone</em>, and <em>Little Inferno</em>. If you choose to pay over the average, you&#8217;ll also receive <em>Hotline Miami</em> and <em>Proteus</em>!</p>
<p>What’s is HIB ? in short:</p>
<blockquote><p>The Humble Indie Bundles or Humble Bundles are a series of game bundles that are sold and distributed online at a price determined by the purchaser. The games are multi-platform, DRM-free, and independently developed, and buyers can set the revenue split between the developers, charities and humble bundle organizers.</p></blockquote>
<p>Thanks <a target="_blank" href="http://en.wikipedia.org/wiki/Humble_Indie_Bundle" target="_blank">Wikipedia</a>.</p>
<p>You have time for another 9 days before  this offer runs out, but let’s take a quick look at the games that you&#8217;ll get this time<br />
<span id="more-7308"></span><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Leader-text-image */
google_ad_slot = "4350381014";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<a href="http://cdn.linuxaria.com/wp-content/uploads/2013/06/dearesther.jpg" rel="lightbox[7308]"><img src="http://cdn.linuxaria.com/wp-content/uploads/2013/06/dearesther-300x168.jpg" alt="dearesther" width="300" height="168" class="alignleft size-medium wp-image-7311" /></a></p>
<h3>Dear Esther</h3>
<p>The most interesting title in this bundle it&#8217;s (In my opinion) <a target="_blank" href="http://dear-esther.com/">Dear Esther</a>.<br />
Dear Esther isn’t what you might consider your typical video game, but therein lies the beauty of it. Instead, it’s an experimental first-person adventure, strongly driven by a fractured narrative. Let yourself wander the abandoned island and its desolate and dreary beaches, and get lost in the sounds of the surf and wind as you try to piece together who you are, and why you were brought to the island. </p>
<p>Dear Esther is a ghost story, told using first-person gaming technologies. Rather than traditional game-play the focus here is on exploration, uncovering the mystery of the island, of who you are and why you are here. Fragments of story are randomly uncovered when exploring the various locations of the island, making every each journey a unique experience.</p>
<p>Forget the normal rules of play; if nothing seems real here, it’s because it may just be all a delusion. What is the significance of the aerial – What happened on the motorway – is the island real or imagined – who is Esther and why has she chosen to summon you here? The answers are out there, on the lost beach and the tunnels under the island. Or then again, they may just not be, after all…</p>
<p>The Dear Esther Linux build on your download page was made by CodeWeavers, which means that it is based on a custom-tailored version of Wine (a re-implementation of the Windows API under Linux). While it is not a &#8220;genuine native port&#8221;, it should run great on Linux machines and is professionally supported.<br />
The native port is planned to come soon to Humble Indie Bundle 8 customers (though there isn&#8217;t an ETA yet).</p>
<p><iframe class='youtube-player youtuber' type='text/html' width='425' height='355' src='http://www.youtube.com/embed/iSj9mqaXhBs?rel=0&amp;fs=1' webkitAllowFullScreen mozallowfullscreen allowFullScreen frameborder='0'></iframe></p>
<h3>Little Inferno</h3>
<p>Congratulations on your new <a target="_blank" href="http://tomorrowcorporation.com/littleinferno">Little Inferno</a> Entertainment Fireplace!  Throw your toys into your fire, and play with them as they burn. Stay warm in there. It&#8217;s getting cold outside!  Burn flaming logs, screaming robots, credit cards, batteries, exploding fish, unstable nuclear devices, and tiny galaxies. An adventure that takes place almost entirely in front of a fireplace &#8211; about looking up up up out of the chimney, and the cold world just on the other side of the wall.</p>
<p><iframe class='youtube-player youtuber' type='text/html' width='425' height='355' src='http://www.youtube.com/embed/En8cIVlj2Jc?rel=0&amp;fs=1' webkitAllowFullScreen mozallowfullscreen allowFullScreen frameborder='0'></iframe></p>
<h3>Awesomenauts</h3>
<p><a target="_blank" href="http://www.awesomenauts.com/">Awesomenauts</a> is a 2D multiplayer online battle arena, or MOBA, video game by Ronimo Games with colorful characters and funny cartoon-style theme. This 3 vs. 3 multiplayer action platformer will have you attacking your opponents and their turrets while also defending your own base from attack across a variety of 2-D maps. Choose from a cast of vibrant characters, each with its own unique set of abilities and theme song, and unlock hundreds of upgrades to customize your character’s abilities to each new battle. </p>
<p><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/06/awesomenauts.jpg" rel="lightbox[7308]"><img src="http://cdn.linuxaria.com/wp-content/uploads/2013/06/awesomenauts.jpg" alt="awesomenauts" width="655" height="365" class="aligncenter size-full wp-image-7312" /></a></p>
<h3>Capsized </h3>
<p>In a turn of unfortunate events, you’ve crashed on a strange alien planet. Stranded, you’ll need to use a variety of tools and weapons, including a Jetpack, Energy Shield, and Quasar Array, to find the rest of your crew and make it out alive. <a target="_blank" href="http://www.capsizedgame.com/">Capsized</a> is a 2-D platformer filled with colorful detailed landscapes and blood-thirsty monsters. With a campaign mode of 12 missions and an arcade mode, you’ll find that being marooned on an unfamiliar world might not be such a bad thing after all. </p>
<h3> Thomas Was Alone </h3>
<p><a target="_blank" href="http://www.thomaswasalone.com/">Thomas Was Alone</a>, a minimalistic puzzle-platformer. Start out as Thomas, a red rectangle, then fall and jump through 100 levels as you discover new friends along the way. You’ll run into John, a tall, lanky, and helpful yellow rectangle, Sarah, a pint-sized curious purple rectangle with a powerful double jump, and more, as you fall in love with the characters in this simple but endearing game of quadrilaterals. </p>
<p><iframe class='youtube-player youtuber' type='text/html' width='425' height='355' src='http://www.youtube.com/embed/m5qS7MT7Uj0?rel=0&amp;fs=1' webkitAllowFullScreen mozallowfullscreen allowFullScreen frameborder='0'></iframe></p>
<p>And if you pay more than average you&#8217;ll get 2 extra games:</p>
<h3>Hotline Miami</h3>
<p><a target="_blank" href="http://hotlinemiami.com/">Hotline Miami </a>is a high-octane action game overflowing with raw brutality, hard-boiled gunplay and skull crushing close combat. Set in an alternative 1989 Miami, you will assume the role of a mysterious antihero on a murderous rampage against the shady underworld at the behest of voices on your answering machine. </p>
<h3>Proteus </h3>
<p><a target="_blank" href="http://www.visitproteus.com/">Proteus</a> is a game of audio-visual exploration and discovery that has you wandering an exotic, mysterious island.<br />
Every world is randomly generated, so each play is just as refreshing and wondrous as the first. As you explore the island and discover its secrets, Proteus is sure to inspire a childlike wonder and delight.<br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Leader-text-image */
google_ad_slot = "4350381014";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://linuxaria.com/pills/humble-bundle-part-3?lang=en' rel='bookmark' title='Humble Bundle &#8211; part 3'>Humble Bundle &#8211; part 3</a></li>
<li><a href='http://linuxaria.com/article/humble-indie-bundle-3-its-now-available?lang=en' rel='bookmark' title='Humble Indie Bundle 3 it&#8217;s now available !'>Humble Indie Bundle 3 it&#8217;s now available !</a></li>
</ol></p>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
 <p><a href="http://linuxaria.com/?flattrss_redirect&amp;id=7308&amp;md5=6371608b45505aac3fdfc91d48d84608" title="Flattr" target="_blank"><img src="http://cdn.linuxaria.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=ynthbHdDFkU:DAkTB6CBqSU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=ynthbHdDFkU:DAkTB6CBqSU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=ynthbHdDFkU:DAkTB6CBqSU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?i=ynthbHdDFkU:DAkTB6CBqSU:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Linuxaria_En/~4/ynthbHdDFkU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxaria.com/recensioni/humble-indie-bundle-8-now-available?lang=en/feed&amp;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=linuxaria&amp;popout=1&amp;url=http%3A%2F%2Flinuxaria.com%2Frecensioni%2Fhumble-indie-bundle-8-now-available%3Flang%3Den&amp;language=en_GB&amp;category=text&amp;title=Humble+Indie+Bundle+8+now+available&amp;description=Humble+Indie+Bundle%C2%A0%28HIB%29+number+eight+is+been+released+and+this+is+the+list+of+games+that+you%E2%80%99ll+find+this+time%3A%C2%A0Dear+Esther%2C+Capsized%2C+Awesomenauts%2C+Thomas+Was+Alone%2C+and+Little+Inferno.+If...&amp;tags=charities%2Cdear+esther%2Cgames%2Chib%2Clinux%2Clittle+inferno%2Cproteus%2CVideo+game%2Cblog" type="text/html" />
	<feedburner:origLink>http://linuxaria.com/recensioni/humble-indie-bundle-8-now-available?lang=en</feedburner:origLink></item>
		<item>
		<title>BitMessage: Encrypted messaging, BitCoin-style</title>
		<link>http://feedproxy.google.com/~r/Linuxaria_En/~3/TrEqtNhJWtE/bitmessage-encrypted-messaging-bitcoin-style</link>
		<comments>http://linuxaria.com/recensioni/bitmessage-encrypted-messaging-bitcoin-style?lang=en#comments</comments>
		<pubDate>Thu, 30 May 2013 22:11:02 +0000</pubDate>
		<dc:creator>linuxari</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[anonymity]]></category>
		<category><![CDATA[bitcoin]]></category>
		<category><![CDATA[bitmessage]]></category>
		<category><![CDATA[client messages]]></category>
		<category><![CDATA[decentralized model]]></category>
		<category><![CDATA[encrypted]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[message encryption]]></category>
		<category><![CDATA[messaging systems]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[scalability]]></category>

		<guid isPermaLink="false">http://linuxaria.com/?p=7298</guid>
		<description><![CDATA[Today I propose you an interesting topic based on an article by  Jacob Cook first published on https://citizenweb.is/ Over the past few years, a handful of different encrypted messaging systems have cropped up and gained prominence, notably Cryptocat and the OTR specification. Now a newcomer to the scene proposes a different way of thinking about encrypted communication, one <a href='http://linuxaria.com/recensioni/bitmessage-encrypted-messaging-bitcoin-style?lang=en' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://linuxaria.com/article/installation-of-seafile-open-source-dropbox-alternative-for-teams?lang=en' rel='bookmark' title='Installation of Seafile, open source Dropbox alternative for teams'>Installation of Seafile, open source Dropbox alternative for teams</a></li>
<li><a href='http://linuxaria.com/recensioni/a-taste-of-guacamole-on-linux?lang=en' rel='bookmark' title='A taste of Guacamole on Linux'>A taste of Guacamole on Linux</a></li>
</ol>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Today I propose you an interesting topic based on an article by <strong> </strong><a target="_blank" title="Posts by Jacob Cook" href="https://citizenweb.is/author/jacob/" rel="author">Jacob Cook</a> first published on <a target="_blank" href="https://citizenweb.is/news/2013/02/bitmessage-encrypted-messaging-bitcoin-style/">https://citizenweb.is/</a></p>
<p>Over the past few years, a handful of different encrypted messaging systems have cropped up and gained prominence, notably Cryptocat and the OTR specification. Now a newcomer to the scene proposes a different way of thinking about encrypted communication, one that borrows from its more well-known older brother, BitCoin.</p>
<p>A project has been started that intends to recreate BitCoin’s decentralized P2P model for seamless message encryption and transmission.<br />
<a target="_blank" href="https://bitmessage.org">BitMessage</a> was started by Jonathan Warr en late last year and has now made it up to version 0.2.4. One of the most prominent strengths of the BitMessage system is how it enforces anonymity. Similar to how BitCoin allows one to send money to anonymous recipients without advertising metadata to others, BitMessage communicates via simple addresses generated from public keys, which need not be tied to a specific user’s identity.</p>
<p><span id="more-7298"></span><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Leader-text-image */
google_ad_slot = "4350381014";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
Similar to BitCoin’s operation, BitMessages are sent out to all users who are connected to the system. Then, each client attempts to decrypt the message if it is intended for that client. Messages not intended for that client will simply be ignored. This presents major issues with scalability, as has been noted with BitCoin’s system. BitMessage responds to this by proposing a so-called “stream” infrastructure. Once the network gets to be a certain size, it will break itself into separate streams. Clients will only connect to a stream if they have a message to send or receive somewhere in that stream. This follows a decentralized model in which certain machines act as “parents” for streams and will aid in advertising the clients it has in its stream, and facilitating the connection.</p>
<p>More than just a decentralized and anonymous messaging system, BitMessage appears to also have limited social messaging capability. As messages are sent out as broadcasts, it would be easy for individuals to simply “subscribe” to the messages that are sent by users they like, then receive them in a manner similar to Twitter, identi.ca or Tent feeds. If this operation is easily worked in to BitMessage clients, it could provide a push for other projects in the decentralized social networking space to put a stronger focus on privacy and security.</p>
<h3>Downloading and Installation on Linux</h3>
<ol>
<li>Open a terminal and test that you have python, OpenSSL and git installed by opening a terminal and testing them with the following commands :

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">python <span style="color: #660033;">--version</span>
openssl version
<span style="color: #c20cb9; font-weight: bold;">git</span> <span style="color: #660033;">--version</span></pre></td></tr></table></div>

</li>
<li>If one or more of the items are not installed, install them, on .deb systems (Debian/ubuntu based systems) use</li>
<li>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666;"># </span><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> python python-qt4 openssl <span style="color: #c20cb9; font-weight: bold;">git</span></pre></td></tr></table></div>

</li>
<li>In the terminal, change to the directory you want the Bitmessage folder in (but don&#8217;t create the bitmessage folder yet!)</li>
<li>Clone the git repository by entering the following command:

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666;"># </span><span style="color: #c20cb9; font-weight: bold;">git clone</span> https:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>Bitmessage<span style="color: #000000; font-weight: bold;">/</span>PyBitmessage</pre></td></tr></table></div>

</li>
<li>Change to the PyBitmessage source directory by entering the command <code> cd PyBitmessage/src </code></li>
<li>Start PyBitmessage by entering the command <code>python bitmessagemain.py</code></li>
<li>Optionally create a startup script that runs the command <code>python PyBitmessage/src/bitmessagemain.py</code></li>
</ol>
<p>&nbsp;</p>
<p>And this is how the application looks like:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-7299" alt="bitmessage" src="http://cdn.linuxaria.com/wp-content/uploads/2013/05/bitmessage.png" width="610" height="414" /></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-7300" alt="bitmessage-3" src="http://cdn.linuxaria.com/wp-content/uploads/2013/05/bitmessage-3.png" width="610" height="414" /></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-7301" alt="bitmessage-4" src="http://cdn.linuxaria.com/wp-content/uploads/2013/05/bitmessage-4.png" width="610" height="414" /></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-7302" alt="bitmessage-5" src="http://cdn.linuxaria.com/wp-content/uploads/2013/05/bitmessage-5.png" width="610" height="414" /></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-7303" alt="bitmessage-6" src="http://cdn.linuxaria.com/wp-content/uploads/2013/05/bitmessage-6.png" width="610" height="414" /></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-7304" alt="bitmessage-7" src="http://cdn.linuxaria.com/wp-content/uploads/2013/05/bitmessage-7.png" width="610" height="414" /></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-7305" alt="bitmessage-8" src="http://cdn.linuxaria.com/wp-content/uploads/2013/05/bitmessage-8.png" width="610" height="414" /></p>
<p>&nbsp;</p>
<p><strong>Conclusions</strong></p>
<p>BitMessage is a secure very secure paranoid email system which when run from the command line connects to many remote peer network clients. Anonymity is all but guaranteed it cannot be traced and the message despite working through the peer network can not be hacked intercepted or altered in any way. BitMessage is heavily secure but does not require pgp as this is built in using hash instead, making it simpler to use once you have an address to send to and from, this forming part of the security protocol used. As no mail server is used there is no requirement or function to login, This mail delivery system can be used in a variety of ways, however it cannot send mail using the SMTP (Simple Mail Transfer Protocol) it is completely different and does not transpose at all, BitMessage at least for now does not handle attachments, not a bad thing overall as attachments can hide trojans, but this does limit the scope of how this system can be used.</p>
<p>&nbsp;</p>
<p><strong>References</strong>:</p>
<p><a target="_blank" title="Bit Message White Paper" href="https://bitmessage.org/bitmessage.pdf">Bitmessage white paper</a></p>
<p><a target="_blank" title="Permanent Link to Setting Up And Using Bitmessage – An Encrypted Communications Platform Based On Bitcoin" href="http://cryptojunky.com/blog/2013/03/09/setting-up-and-using-bitmessage-an-encrypted-communications-platform-based-on-bitcoin/" rel="bookmark">Setting Up And Using Bitmessage – An Encrypted Communications Platform Based On Bitcoin</a></p>
<p><a target="_blank" href="http://freemarketlinux.com/2013/02/21/bitmessage-decentralized-email-networking/">Bitmessage – Decentralized Email Networking<br />
</a><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Leader-text-image */
google_ad_slot = "4350381014";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://linuxaria.com/article/installation-of-seafile-open-source-dropbox-alternative-for-teams?lang=en' rel='bookmark' title='Installation of Seafile, open source Dropbox alternative for teams'>Installation of Seafile, open source Dropbox alternative for teams</a></li>
<li><a href='http://linuxaria.com/recensioni/a-taste-of-guacamole-on-linux?lang=en' rel='bookmark' title='A taste of Guacamole on Linux'>A taste of Guacamole on Linux</a></li>
</ol></p>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
 <p><a href="http://linuxaria.com/?flattrss_redirect&amp;id=7298&amp;md5=76c1fd5d4659f79f7eb14b8e36232cf5" title="Flattr" target="_blank"><img src="http://cdn.linuxaria.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=TrEqtNhJWtE:_B86UUNXm4Y:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=TrEqtNhJWtE:_B86UUNXm4Y:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=TrEqtNhJWtE:_B86UUNXm4Y:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?i=TrEqtNhJWtE:_B86UUNXm4Y:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Linuxaria_En/~4/TrEqtNhJWtE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxaria.com/recensioni/bitmessage-encrypted-messaging-bitcoin-style?lang=en/feed&amp;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=linuxaria&amp;popout=1&amp;url=http%3A%2F%2Flinuxaria.com%2Frecensioni%2Fbitmessage-encrypted-messaging-bitcoin-style%3Flang%3Den&amp;language=en_GB&amp;category=text&amp;title=BitMessage%3A+Encrypted+messaging%2C+BitCoin-style&amp;description=Today+I+propose+you+an+interesting+topic+based+on+an+article+by%C2%A0%C2%A0Jacob+Cook%C2%A0first+published+on%C2%A0https%3A%2F%2Fcitizenweb.is%2F+Over+the+past+few+years%2C+a+handful+of+different+encrypted+messaging+systems+have+cropped+up...&amp;tags=anonymity%2Cbitcoin%2Cbitmessage%2Cclient+messages%2Cdecentralized+model%2Cencrypted%2Clinux%2Cmessage+encryption%2Cmessaging+systems%2Copen+source%2Cscalability%2Cblog" type="text/html" />
	<feedburner:origLink>http://linuxaria.com/recensioni/bitmessage-encrypted-messaging-bitcoin-style?lang=en</feedburner:origLink></item>
		<item>
		<title>Share your files easily on your computers with NitroShare</title>
		<link>http://feedproxy.google.com/~r/Linuxaria_En/~3/HxX5rveqbTk/share-your-files-easily-on-your-computers-with-nitroshare</link>
		<comments>http://linuxaria.com/recensioni/share-your-files-easily-on-your-computers-with-nitroshare?lang=en#comments</comments>
		<pubDate>Sun, 26 May 2013 16:57:44 +0000</pubDate>
		<dc:creator>Riccardo</dc:creator>
				<category><![CDATA[Review]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[local network]]></category>
		<category><![CDATA[nitroshare]]></category>
		<category><![CDATA[rete locale]]></category>
		<category><![CDATA[share]]></category>

		<guid isPermaLink="false">http://linuxaria.com/?p=7292</guid>
		<description><![CDATA[Some days ago I&#8217;ve published an article about copy.com, a service similar to Dropbox where a copy of one of your folders is synchronized on the cloud, this is true for any computer where you install the copy.com/dropbox/ubuntu one applet and so you can easily share your documents among your computers and have a copy <a href='http://linuxaria.com/recensioni/share-your-files-easily-on-your-computers-with-nitroshare?lang=en' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://linuxaria.com/recensioni/copy-a-new-cloud-storage-service-with-linux-client?lang=en' rel='bookmark' title='Copy &#8211; A new cloud storage service with Linux Client'>Copy &#8211; A new cloud storage service with Linux Client</a></li>
<li><a href='http://linuxaria.com/article/install-dropbox-on-ubuntu-server-10-11?lang=en' rel='bookmark' title='Install Dropbox On Ubuntu Server (10 &amp; 11)'>Install Dropbox On Ubuntu Server (10 &#038; 11)</a></li>
</ol>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Some days ago I&#8217;ve published an <a href="http://linuxaria.com/recensioni/copy-a-new-cloud-storage-service-with-linux-client?lang=en">article about copy.com</a>, a service similar to Dropbox where a copy of one of your folders is synchronized on the cloud, this is true for any computer where you install the copy.com/dropbox/ubuntu one applet and so you can easily share your documents among your computers and have a copy on the cloud.</p>
<p>But what if you don&#8217;t want to share a copy on the cloud of your documents but you need to quickly share a document among your computers ?<br />
Usb stick is usually the best option, but there is also an alternative that use the local network to send data among computers: <a target="_blank" href="http://quickmediasolutions.com/apps/14/nitroshare">NitroShare</a></p>
<blockquote><p>NitroShare is designed to be hassle-free in every aspect. Just install the application on any machine running Ubuntu or Windows and you&#8217;re all set. Each machine should discover all of the other machines on the local network. The application integrates with the operating system, using application indicators on Ubuntu and the system tray on Windows.</p></blockquote>
<p><span id="more-7292"></span><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Leader-text-image */
google_ad_slot = "4350381014";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
NitroShare it&#8217;s an open source little program, the main purpose is to act as an intermediary (mini server) to transfer data between two computers connected both to a local area network (LAN).</p>
<p>NitroShare introduces the concept of &#8220;share boxes&#8221;, which are small widgets that are placed on your desktop. Each share box represents another machine on your local network that you can instantly share files with by dropping them on it. (You can also create a share box that will ask you which machine you want to send the files to.)</p>
<p>The main features of NitroShare are:</p>
<ul>
<li><span style="font-size: 13px; line-height: 19px;">dynamic file compress during transfer to decrease transfer time and bandwidth</span></li>
<li><span style="font-size: 13px; line-height: 19px;">CRC checksum generation to ensure file integrity during transfer</span></li>
<li><span style="font-size: 13px; line-height: 19px;">full compatibility with clients running on other operating systems</span></li>
<li><span style="font-size: 13px; line-height: 19px;">a helpful configuration wizard to guide you through setting up the application on your machines</span></li>
<li><span style="font-size: 13px; line-height: 19px;">The application was developed using the Qt framework and therefore runs on any platform supported by Qt, including Windows, Mac, and Linux.</span></li>
</ul>
<h3>Installation and setup</h3>
<p><a target="_blank" href="http://quickmediasolutions.com/apps/14/nitroshare/downloads">The official website</a> offers .rpm and .deb packages for both 32 and 64 bit, these will cover a lot of distributions, or if you use Arch Linux you can find it in the <a target="_blank" href="https://aur.archlinux.org/packages.php?ID=60326">AUR repository</a>, if you use Fedora <a target="_blank" href="http://quickmediasolutions.com/blog/8/how-to-run-nitroshare-on-fedora-17">check this link</a> for some suggestion on the setup.</p>
<p>Ubuntu and Mint users can also add a PPA, if they prefer, with the following commands:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> add-apt-repository ppa: george-edison55<span style="color: #000000; font-weight: bold;">/</span>nitroshare 
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get update</span> 
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> nitroshare</pre></td></tr></table></div>

<p>After installation, when you first start the program, a wizard will lead you step by step through the setup of the main settings and to automatically connect the computers between which you want to perform data exchange.</p>
<p style="text-align: center;"><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/05/nitroshare-initial-setup.jpg" rel="lightbox[7292]"><img class=" wp-image-7294 aligncenter" alt="nitroshare-initial-setup" src="http://cdn.linuxaria.com/wp-content/uploads/2013/05/nitroshare-initial-setup.jpg" width="502" height="376" /></a></p>
<p style="text-align: center;"><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/05/nitroshare-scanning-complete.jpg" rel="lightbox[7292]"><img class=" wp-image-7295 aligncenter" alt="nitroshare-scanning-complete" src="http://cdn.linuxaria.com/wp-content/uploads/2013/05/nitroshare-scanning-complete.jpg" width="502" height="376" /></a></p>
<p><script type="text/javascript"><!--
google_ad_client = "ca-pub-2431705124166952";
/* Leader-text-image */
google_ad_slot = "4350381014";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<h3> Basic Usage </h3>
<p>Once installed NitroShare creates a widget on the desktop that provides generic access to the other machines that have the application up and running.<br />
You can also create an indipendent &#8220;share box&#8221;, for each computer. When you want to send files you just have to drag the file and drop it on the widget of the computer where you want to send the file.</p>
<p>In Ubuntu , the widget also has integration in the system tray and a context menu that opens when you click with the right mouse button on a file or directory within Nautilus.</p>
<p><a href="http://cdn.linuxaria.com/wp-content/uploads/2013/05/nitroshare_send.jpg" rel="lightbox[7292]"><img class="aligncenter size-full wp-image-7296" alt="nitroshare_send" src="http://cdn.linuxaria.com/wp-content/uploads/2013/05/nitroshare_send.jpg" width="591" height="459" /></a></p>
<h3> Conclusions </h3>
<p>NitroShare does its job flawlessly. It moves files in a local network easily, simplifying the task a lot, in the past It had problems sending large files , but the bug should be now been fixed, and in general you should use this software to move &#8220;small&#8221; fils, so < 1 GB.</p>
<p><iframe class='youtube-player youtuber' type='text/html' width='425' height='355' src='http://www.youtube.com/embed/http://www.youtube.com/watch?feature=player_embedded&#038;v=DAs2XgF9Zps?rel=0&amp;fs=1' webkitAllowFullScreen mozallowfullscreen allowFullScreen frameborder='0'></iframe></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://linuxaria.com/recensioni/copy-a-new-cloud-storage-service-with-linux-client?lang=en' rel='bookmark' title='Copy &#8211; A new cloud storage service with Linux Client'>Copy &#8211; A new cloud storage service with Linux Client</a></li>
<li><a href='http://linuxaria.com/article/install-dropbox-on-ubuntu-server-10-11?lang=en' rel='bookmark' title='Install Dropbox On Ubuntu Server (10 &amp; 11)'>Install Dropbox On Ubuntu Server (10 &#038; 11)</a></li>
</ol></p>
<img src='http://yarpp.org/pixels/ba2be3fba9b21a2a23229e17892b86c0'/>
</div>
 <p><a href="http://linuxaria.com/?flattrss_redirect&amp;id=7292&amp;md5=930e7298c83b0daceba12a7b58cef9ae" title="Flattr" target="_blank"><img src="http://cdn.linuxaria.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=HxX5rveqbTk:RoswxY6g9-c:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=HxX5rveqbTk:RoswxY6g9-c:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Linuxaria_En?a=HxX5rveqbTk:RoswxY6g9-c:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Linuxaria_En?i=HxX5rveqbTk:RoswxY6g9-c:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Linuxaria_En/~4/HxX5rveqbTk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://linuxaria.com/recensioni/share-your-files-easily-on-your-computers-with-nitroshare?lang=en/feed&amp;lang=en</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=linuxaria&amp;popout=1&amp;url=http%3A%2F%2Flinuxaria.com%2Frecensioni%2Fshare-your-files-easily-on-your-computers-with-nitroshare%3Flang%3Den&amp;language=en_GB&amp;category=text&amp;title=Share+your+files+easily+on+your+computers+with+NitroShare&amp;description=Some+days+ago+I%26%238217%3Bve+published+an+article+about+copy.com%2C+a+service+similar+to+Dropbox+where+a+copy+of+one+of+your+folders+is+synchronized+on+the+cloud%2C+this+is+true...&amp;tags=dropbox%2Clinux%2Clocal+network%2Cnitroshare%2Crete+locale%2Cshare%2Cblog" type="text/html" />
	<feedburner:origLink>http://linuxaria.com/recensioni/share-your-files-easily-on-your-computers-with-nitroshare?lang=en</feedburner:origLink></item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk
Database Caching using memcached
Object Caching 8496/8612 objects using memcached
Content Delivery Network via Amazon Web Services: CloudFront: cdn.linuxaria.com

 Served from: www.linuxaria.com @ 2013-06-14 17:13:04 by W3 Total Cache -->
