<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Pither.com: Tag linux</title>
    <link>http://www.pither.com/articles/tag/linux</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>by Simon Pither, freelance developer and systems administrator</description>
    <item>
      <title>Ubuntu Intrepid Ibex released today</title>
      <description>&lt;p&gt;Ubuntu &lt;a href="http://www.ubuntu.com/news/ubuntu-8.10-desktop"&gt;released Intrepid Ibex&lt;/a&gt; earlier this afternoon, just as scheduled. It comes with &lt;a href="http://www.ubuntu.com/getubuntu/releasenotes/810overview"&gt;lots of new features&lt;/a&gt;.  While new versions of all the key software is certainly good, a convenient encrypted directory is handy and the VM builder is very convenient, it's actually a couple of very small additions that I'm enjoying the most.&lt;/p&gt;

&lt;h2&gt;&lt;a href="http://projecthamster.wordpress.com/"&gt;Hamster&lt;/a&gt;&lt;/h2&gt;

&lt;p&gt;Until I switched to Intrepid and discovered this excellent application about a month ago I had been tracking my time with GnoTime.  This worked, but it has lots of options that I really don't need, the interface is clunky and the provided reports just don't provide what I want.&lt;/p&gt;

&lt;p&gt;So for the last month I've been tracking my time with Hamster, and it's been a very welcome change.  It lives quietly in a panel at the side of my desktop, I can jump to it with a hot key and quickly type a new description and there I am, tracked.  Hamster has a lovely report screen with plenty of information and even graphs.  Which aren't actually very useful!  However there is also a "Generate Report" button which creates a simple HTML table document with all the viewed data in it.  Nice and easy to copy/paste/convert to a spreadsheet and process.&lt;/p&gt;

&lt;h2&gt;&lt;a href="http://live.gnome.org/Tasque"&gt;Tasque&lt;/a&gt;&lt;/h2&gt;

&lt;p&gt;This is following the same theme of a small, dedicated application that just does one thing in a very simple way.  In this case it's managing to-do lists.&lt;/p&gt;

&lt;p&gt;Tasque in Intrepid does install and does work and provides a number of storage locations for your to-do data.  However the one that I chose to use - Evolution (due to a vaguely recent to-do listing attempt already being based there), is &lt;a href="https://bugs.launchpad.net/ubuntu/+source/evolution-sharp/+bug/287332"&gt;not currently working&lt;/a&gt;!&lt;/p&gt;

&lt;p&gt;Thankfully it didn't take much to rebuild evolution-sharp with a later version and then update the requirements in tasque and rebuild that too.&lt;/p&gt;

&lt;p&gt;So now I'm happily tracking the time I'm spending filling up my to-do list!&lt;/p&gt;</description>
      <pubDate>Thu, 30 Oct 2008 15:13:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:74656387-051d-4f6b-a8b7-d2b2e354c0c3</guid>
      <author>Simon</author>
      <link>http://www.pither.com/articles/2008/10/30/ubuntu-intrepid-ibex-released-today</link>
      <category>work</category>
      <category>linux</category>
      <category>ubuntu</category>
    </item>
    <item>
      <title>Crazy filesystems</title>
      <description>&lt;p&gt;Recently I invested in some new hard disks for my file server.  The idea being to increase capacity (1.1TB to 1.9TB) and to decrease the power usage (10 disks to 3).&lt;/p&gt;

&lt;p&gt;I finally got around to fitting them at the end of last week and set the computer copying all my existing data from old to new over the weekend.&lt;/p&gt;

&lt;p&gt;However this simple operation failed, running out of disk space.  So how can copying the contents of a (not full) 1.1TB file systems onto a totally empty 1.9TB file system run out of disk space!?&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/dev/mapper/vg1-lvol1   1.1T  1.1T   46G  96% /u3
/dev/mapper/vg2-lvol0   1.9T  1.9T     0 100% /u4
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Firstly I located where all the space on the target drive had gone:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;-rwx------ 1 root  root  795G Nov 17 20:54 dsc02170.jpg
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then I just had to see where all that data had come from on the source disk...&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;-rwxr--r-- 1 simon 43857374 142P Oct 23  2004 dsc02170.jpg
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Which looks like the reiser file system having gone a bit crazy.&lt;/p&gt;

&lt;p&gt;Needless to say, this image is no longer readable in any meaningful way.    On further checking it seems that most of the image files in the same directory are also damaged.  Generally their sizes aren't crazy, but the content is wrong.  :-(&lt;/p&gt;

&lt;p&gt;Maybe one day &lt;a href="http://www.wizy.org/wiki/ZFS_on_FUSE"&gt;Linux will get ZFS&lt;/a&gt; in a finished state.&lt;/p&gt;</description>
      <pubDate>Mon, 19 Nov 2007 16:45:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:272d3910-ebc0-4b36-bde1-46cbc8b085e2</guid>
      <author>Simon</author>
      <link>http://www.pither.com/articles/2007/11/19/crazy-filesystems</link>
      <category>linux</category>
      <category>filesystems</category>
    </item>
    <item>
      <title>Multiple page scan to PDF</title>
      <description>&lt;p&gt;Xsane does do this, but it's an awful lot of clicks, even between pages and that's after you've got to the right screen and before you eventually output the file.&lt;/p&gt;

&lt;p&gt;So here's a simple bash script to the rescue...&lt;/p&gt;

&lt;pre&gt;
#!/bin/bash

export DEVICE="device, use 'scanimage -L' to see list"

echo Pages: $1
echo Filename: $2

FILENAME_BASE="/tmp/$2"

for (( i = 1; $i &lt;= $1; i++ )); do
        echo Press ENTER to scan page $i
        read
        export FILENAME="$FILENAME_BASE.page.$i"
        scanimage -d "$DEVICE" &gt; "$FILENAME.pnm"
        pnmtops --width=8.27 --height=11.69 "$FILENAME.pnm" &gt; "$FILENAME.ps"
        FILELIST[$i - 1]="$FILENAME.ps"
done

gs -sDEVICE=pswrite "-sOutputFile=$FILENAME_BASE.ps" -dNOPAUSE -dBATCH "${FILELIST[@]}"
ps2pdf "$FILENAME_BASE.ps" "$2.pdf"

for f in "${FILELIST[@]}"; do
        rm "$f"
done
rm "$FILENAME_BASE.ps"

&lt;/pre&gt;

&lt;p&gt;Just give it the number of pages to scan and the output file name to use (without .pdf).  It will prompt you for each page to be ready (I don't have a document feeder), scan them, combine them and convert it all to a PDF.&lt;/p&gt;

&lt;p&gt;It does have a number of dependency utilities, but I already had them all installed and this was only a quick hack so I've not made a list.&lt;/p&gt;</description>
      <pubDate>Thu, 03 May 2007 12:53:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:56b2ec07-35ea-4ab4-b432-7fd5e9a32bb3</guid>
      <author>Simon</author>
      <link>http://www.pither.com/articles/2007/05/03/multiple-page-scan-to-pdf</link>
      <category>documents</category>
      <category>bash</category>
      <category>scan</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
