<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2996110201092053567</id><updated>2012-01-25T17:30:17.525-08:00</updated><category term='arm'/><category term='flash'/><category term='lighttpd'/><category term='smtp'/><category term='extract'/><category term='initramfs'/><category term='dia'/><category term='dnsmasq'/><category term='datamining'/><category term='canon'/><category term='png'/><category term='dpkg-source'/><category term='mutt'/><category term='amd64'/><category term='esmtp'/><category term='git'/><category term='python'/><category term='easy_install'/><category term='grep'/><category term='turbogears'/><category term='script'/><category term='debian'/><category term='keyboard'/><category term='email'/><category term='crosscompilation'/><category term='layout'/><category term='imagemagick'/><category term='access'/><category term='setup-tools'/><category term='image'/><category term='virtualenv'/><category term='ssmtp'/><category term='rclug'/><category term='recordmydesktop'/><category term='driver'/><category term='linux'/><category term='debug'/><category term='italian'/><category term='prism54'/><category term='gitweb'/><category term='wifi'/><category term='usb'/><category term='googlemail'/><category term='karmic koala'/><category term='programming'/><category term='dget'/><category term='graphics'/><category term='dcontrol'/><category term='UML2'/><category term='transmission'/><category term='bash'/><category term='chroot'/><category term='gaphor'/><category term='cfg80211'/><category term='glade'/><category term='dns'/><category term='wireless'/><category term='imap'/><category term='kernel'/><category term='emdebian'/><category term='gtk+'/><category term='openwrt'/><category term='swf'/><category term='linuxday'/><category term='screenshot'/><category term='ubuntu'/><category term='gmail'/><category term='kamikaze7.09'/><category term='nslu2'/><title type='text'>[a-z]*</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://denever.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2996110201092053567.post-6835118861991672323</id><published>2009-12-29T23:26:00.000-08:00</published><updated>2009-12-30T01:28:11.643-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='arm'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='transmission'/><category scheme='http://www.blogger.com/atom/ns#' term='crosscompilation'/><category scheme='http://www.blogger.com/atom/ns#' term='emdebian'/><category scheme='http://www.blogger.com/atom/ns#' term='chroot'/><title type='text'>Crosscompilation for armel with emdebian</title><content type='html'>First of all create a chroot with debootstrap:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;debootstrap lenny armchroot&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Then let's go to fix locales:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;mount none -t proc armchroot/proc&lt;br /&gt;chroot armchroot&lt;br /&gt;@armchroot: apt-get update &amp;&amp; apt-get install locales&amp;&amp; dpkg-reconfigure locales &amp;&amp; apt-get install localepurge&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;The last important part is to install emdebian-tools&lt;br /&gt;&lt;code&gt;&lt;br /&gt;@armchroot: apt-get install emdebian-tools&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;@armchroot: apt-get update &amp;&amp; apt-get upgrade&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Now we have to edit /etc/emsource.conf to use stable&lt;br /&gt;&lt;code&gt;&lt;br /&gt;targetsuite: lenny&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Now it's time to setup emdebian. We want to crosscompile to armel so:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;@armchroot: emsetup -a armel&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;This last command will install and configure the toolchain.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2996110201092053567-6835118861991672323?l=denever.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://denever.blogspot.com/feeds/6835118861991672323/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://denever.blogspot.com/2009/12/crosscompilation-for-armel-with.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/6835118861991672323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/6835118861991672323'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/2009/12/crosscompilation-for-armel-with.html' title='Crosscompilation for armel with emdebian'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2996110201092053567.post-6091992033366803963</id><published>2009-12-29T10:15:00.000-08:00</published><updated>2009-12-29T10:55:12.911-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gitweb'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='git'/><category scheme='http://www.blogger.com/atom/ns#' term='lighttpd'/><title type='text'>Gitweb with Lighttpd on a debianized NSLU2</title><content type='html'>First of all install Lighttpd gitweb and git&lt;br /&gt;&lt;code&gt;&lt;br /&gt;apt-get install lighttpd gitweb git-core&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Then add a lighttpd configuration file.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;server.modules += ( "mod_cgi" )&lt;br /&gt;url.redirect    = ( "^/git$" =&gt; "/git/" )&lt;br /&gt;alias.url       += ( "/git/" =&gt; "/usr/lib/cgi-bin/" )&lt;br /&gt;$HTTP["url"]    =~ "^/git/" {&lt;br /&gt;    cgi.assign            = ( ".cgi" =&gt; "" )&lt;br /&gt;    index-file.names      = ( "gitweb.cgi" )&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Wrote this in /etc/lighttpd/conf-available/10-gitweb.conf.&lt;br /&gt;The copy the three files in /usr/share/gitweb in /var/www.&lt;br /&gt;Now edit projectroot field in your gitweb configuration file in /etc/gitweb.conf:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$projectroot = "/your/directory/git";&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Save /etc/gitweb.conf and enable gitweb configuration for lighttpd:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;lighttpd-enable-mod gitweb&lt;br /&gt;invoke-rc.d lighttpd force-reload&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2996110201092053567-6091992033366803963?l=denever.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://denever.blogspot.com/feeds/6091992033366803963/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://denever.blogspot.com/2009/12/gitweb-with-lighttpd-on-debianized.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/6091992033366803963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/6091992033366803963'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/2009/12/gitweb-with-lighttpd-on-debianized.html' title='Gitweb with Lighttpd on a debianized NSLU2'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2996110201092053567.post-8155917719804222789</id><published>2009-12-29T00:04:00.000-08:00</published><updated>2009-12-29T00:12:45.419-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='UML2'/><category scheme='http://www.blogger.com/atom/ns#' term='virtualenv'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='dia'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='gaphor'/><title type='text'>An UML2 Diagram editor for Linux</title><content type='html'>Googling I found &lt;a href="http://gaphor.sf.net"&gt;Gaphor&lt;/a&gt;. Iwas bored of Dia. Gaphor uses dia canvas but it's more UML2 oriented ant it's write in python!&lt;br /&gt;Unfortunally debian package of gaphor depends on python-zope.interface that is broken.&lt;br /&gt;So I decided to use &lt;a href="http://pypi.python.org/pypi/virtualenv"&gt;python-virtualenv&lt;/a&gt; to install gaphor.&lt;br /&gt;&lt;br /&gt;As root:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;root@thelemasys:~# aptitude install python-virtualenv&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;And then as user:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;denever@thelemasys:~$ virtualenv gaphor&lt;br /&gt;denever@thelemasys:~$ cd gaphor&lt;br /&gt;denever@thelemasys:~/gaphor$ source bin/activate&lt;br /&gt;(gaphor)denever@thelemasys:~/gaphor$ easy_install gaphor&lt;br /&gt;(gaphor)denever@thelemasys:~/gaphor$ gaphor&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2996110201092053567-8155917719804222789?l=denever.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://denever.blogspot.com/feeds/8155917719804222789/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://denever.blogspot.com/2009/12/uml2-diagram-editor-for-linux.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/8155917719804222789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/8155917719804222789'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/2009/12/uml2-diagram-editor-for-linux.html' title='An UML2 Diagram editor for Linux'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2996110201092053567.post-8720721386244171385</id><published>2009-11-05T10:44:00.000-08:00</published><updated>2009-11-05T11:00:48.642-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='canon'/><category scheme='http://www.blogger.com/atom/ns#' term='karmic koala'/><category scheme='http://www.blogger.com/atom/ns#' term='amd64'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='driver'/><title type='text'>Configuring a Canon MF4350D on Ubuntu Karmic Koala 64bit</title><content type='html'>First of all you have to download Canon propetary drivers from &lt;a href="http://software.canon-europe.com"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;After you download Canon_UFRII_Linux_V1.90_[your country code here].tar.gz, untar it.&lt;br /&gt;&lt;br /&gt;That will create a directory: Canon_UFRII_Linux_V1.90_IT/&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;denever@tuscio:~/tmp/src$ cd Canon_UFRII_Linux_V1.90_IT/&lt;br /&gt;denever@tuscio:~/tmp/src/Canon_UFRII_Linux_V1.90_IT$ cd 64-bit_Driver/&lt;br /&gt;denever@tuscio:~/tmp/src/Canon_UFRII_Linux_V1.90_IT/64-bit_Driver$ cd RPM/&lt;br /&gt;denever@tuscio:~/tmp/src/Canon_UFRII_Linux_V1.90_IT/64-bit_Driver/RPM$&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;In this directory you will have two rpm:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;denever@tuscio:~/tmp/src/Canon_UFRII_Linux_V1.90_IT/64-bit_Driver/RPM$ ls&lt;br /&gt;cndrvcups-common-1.90-1.x86_64.rpm  cndrvcups-ufr2-uk-1.90-1.x86_64.rpm&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now you have to convert these two rpm in two debian package (.deb).&lt;br /&gt;To do this you will need alien program installed.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;sudo apt-get install alien&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;After you installed alien you can convert the two rpm:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;alien cndrvcups-common-1.90-1.x86_64.rpm&lt;br /&gt;alien cndrvcups-ufr2-uk-1.90-1.x86_64.rpm&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;After that you have to install ia32-libs.&lt;br /&gt;This package is really important for the right use of the driver:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;sudo apt-get install ia32-libs&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;And now you can install the two debs:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;sudo dpkg -i cndrvcups-common_1.90-1_amd64.deb&lt;br /&gt;sudo dpkg -i cndrvcups-ufr2-uk_1.90-1_amd64.deb&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2996110201092053567-8720721386244171385?l=denever.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://denever.blogspot.com/feeds/8720721386244171385/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://denever.blogspot.com/2009/11/configuring-canon-mf4350d-on-ubuntu.html#comment-form' title='4 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/8720721386244171385'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/8720721386244171385'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/2009/11/configuring-canon-mf4350d-on-ubuntu.html' title='Configuring a Canon MF4350D on Ubuntu Karmic Koala 64bit'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2996110201092053567.post-4236095196556076270</id><published>2009-07-30T03:16:00.000-07:00</published><updated>2009-07-30T03:19:38.616-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='swf'/><category scheme='http://www.blogger.com/atom/ns#' term='extract'/><category scheme='http://www.blogger.com/atom/ns#' term='image'/><category scheme='http://www.blogger.com/atom/ns#' term='flash'/><title type='text'>How to extract an image from a swf?</title><content type='html'>&lt;code&gt;&lt;br /&gt;root@evans:~# apt-get install swftools&lt;br /&gt;denever@evans:~$ swfextract file.swf&lt;br /&gt;Objects in file file.swf:&lt;br /&gt; [-i] 3 Shapes: ID(s) 2, 4, 6&lt;br /&gt; [-j] 3 JPEGs: ID(s) 1, 3, 5&lt;br /&gt; [-f] 1 Frame: ID(s) 0&lt;br /&gt;denever@evans:~$ swfextract -j 1 -o image1.jpg&lt;br /&gt;denever@evans:~$ swfextract -j 3 -o image3.jpg&lt;br /&gt;denever@evans:~$ swfextract -j 5 -o image5.jpg&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2996110201092053567-4236095196556076270?l=denever.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://denever.blogspot.com/feeds/4236095196556076270/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://denever.blogspot.com/2009/07/how-to-extract-image-from-swf.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/4236095196556076270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/4236095196556076270'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/2009/07/how-to-extract-image-from-swf.html' title='How to extract an image from a swf?'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2996110201092053567.post-7859042527196469110</id><published>2009-06-11T00:40:00.000-07:00</published><updated>2009-06-11T00:41:32.786-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='easy_install'/><category scheme='http://www.blogger.com/atom/ns#' term='setup-tools'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='turbogears'/><title type='text'>turbogears 1.0 in debian is broken</title><content type='html'>turbogears 1.0 in debian is broken.&lt;br /&gt;So how to fix it?&lt;br /&gt;&lt;br /&gt;easy_install "turbojson=1.1.4"&lt;br /&gt;easy_install "turbojson&lt;1.2"&lt;br /&gt;easy_install "TurboCheetah&gt;=1.0"&lt;br /&gt;easy_install "TurboGears&gt;=1.0.8"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2996110201092053567-7859042527196469110?l=denever.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://denever.blogspot.com/feeds/7859042527196469110/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://denever.blogspot.com/2009/06/turbogears-10-in-debian-is-broken.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/7859042527196469110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/7859042527196469110'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/2009/06/turbogears-10-in-debian-is-broken.html' title='turbogears 1.0 in debian is broken'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2996110201092053567.post-1957529589206368473</id><published>2009-06-10T07:26:00.000-07:00</published><updated>2009-06-10T07:28:26.371-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dpkg-source'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='dget'/><category scheme='http://www.blogger.com/atom/ns#' term='dcontrol'/><title type='text'>How to retrieve a .dsc file giving only the pkg name</title><content type='html'>pkgurl=$(dcontrol $1 | grep ^Filename | head -1  | cut -d' ' -f 2 | sed s/_[a-zA-Z0-9]*.deb/.dsc/) dget -q http://ftp.uk.debian.org/debian/$pkgurl &lt;br /&gt;dpkg-source -x $(basename $pkgurl)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2996110201092053567-1957529589206368473?l=denever.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://denever.blogspot.com/feeds/1957529589206368473/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://denever.blogspot.com/2009/06/how-to-retrieve-dsc-file-giving-only.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/1957529589206368473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/1957529589206368473'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/2009/06/how-to-retrieve-dsc-file-giving-only.html' title='How to retrieve a .dsc file giving only the pkg name'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2996110201092053567.post-8812625095046192812</id><published>2009-04-12T05:52:00.000-07:00</published><updated>2009-04-12T06:32:22.270-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='italian'/><category scheme='http://www.blogger.com/atom/ns#' term='keyboard'/><category scheme='http://www.blogger.com/atom/ns#' term='layout'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><title type='text'>Italian Keyboard Layout Coder Friendly</title><content type='html'>This post is about Italian Keyboard and concern to italian speaking people, so I'm writing in italian.&lt;br /&gt;&lt;br /&gt;Bene questo è il mio primo post in italiano, spero di non commettere strafalcioni come in inglese.&lt;br /&gt;Dunque oramai da almeno due anni utilizzo un mio personale layout di tastiera.&lt;br /&gt;Questo perché ero stanco di fare acrobazie con la tastiera quando scrivevo codice.&lt;br /&gt;&lt;br /&gt;Chi di scrivendo codice in C o in PHP ad esempio non vorrebbe avere a portata di mano le parentesi graffe?&lt;br /&gt;&lt;br /&gt;Chi di voi usando la bash non vorrebbe avere la tilde o la slash a portata di mano e non nascosta dietro AltGr o Shift?&lt;br /&gt;&lt;br /&gt;Ora la tastiera italiana si caratterizza per avere le accentate ùèòàìé e tanti altri caratteri strani di cui ignoro, ad esempio la &lt;a href="http://it.wikipedia.org/wiki/Cediglia"&gt;c con cediglia&lt;/a&gt;.&lt;br /&gt;Qualcuno di voi l'ha mai usata?&lt;br /&gt;Io no.&lt;br /&gt;Eppure sta li in mezzo ai cabbasisi come direbbe Montalbano.&lt;br /&gt;Non sarebbe più comodo avere la pipe li, quando si sta usando la bash?&lt;br /&gt;&lt;br /&gt;Ecco a queste mie noie ho cercato di dare risposta creando un mio layout di tastiera.&lt;br /&gt;Che vi mostro graficamente:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_ZK9bK8UN-os/SeHna_k7zgI/AAAAAAAAAJk/PPqzMsmGnSE/s1600-h/KB_ItalianCoder.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 107px;" src="http://2.bp.blogspot.com/_ZK9bK8UN-os/SeHna_k7zgI/AAAAAAAAAJk/PPqzMsmGnSE/s320/KB_ItalianCoder.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5323790685457600002" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Come vedete ho messo la slash e la tilde (accessibile con un semplice shift) a fianco della L.&lt;br /&gt;La pipe e la "chiocciola" sono a seguire facilmente accessibili (con il mignolo :) ).&lt;br /&gt;Ancora a seguire il cancelletto e l'apice inverso (utilissimo, ad esempio, in bash e in latex)&lt;br /&gt;Come vedete le graffe e le quadre sono li dove si trovano sulla tastiera UK, US.&lt;br /&gt;Come tutti però oltre a scrivere codice scrivo anche testo in italiano :)&lt;br /&gt;Quindi non ho fatto fuori le accentate. Semplicemente le ho piazzate sopra i numeri come potete vedere in figura.&lt;br /&gt;Posso accedervi con AltGr + il numero corrispondente. Si, adesso sono le accentate a non essere a portata di mano, ma visto il ridotto utilizzo che ne faccio non è un problema per me.&lt;br /&gt;Ho fatto fuori il simbolo della sterlina che si trovava sul numero 3 ed al suo posto ho messo il simbolo dell'euro € :)&lt;br /&gt;&lt;br /&gt;Cosa ne pensate? :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2996110201092053567-8812625095046192812?l=denever.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://denever.blogspot.com/feeds/8812625095046192812/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://denever.blogspot.com/2009/04/italian-keyboard-layout-coder-friendly.html#comment-form' title='6 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/8812625095046192812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/8812625095046192812'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/2009/04/italian-keyboard-layout-coder-friendly.html' title='Italian Keyboard Layout Coder Friendly'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_ZK9bK8UN-os/SeHna_k7zgI/AAAAAAAAAJk/PPqzMsmGnSE/s72-c/KB_ItalianCoder.png' height='72' width='72'/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2996110201092053567.post-5661640504071984004</id><published>2009-04-05T03:52:00.000-07:00</published><updated>2009-04-05T06:22:12.925-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='debug'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='cfg80211'/><category scheme='http://www.blogger.com/atom/ns#' term='wireless'/><category scheme='http://www.blogger.com/atom/ns#' term='wifi'/><category scheme='http://www.blogger.com/atom/ns#' term='usb'/><category scheme='http://www.blogger.com/atom/ns#' term='prism54'/><title type='text'>p54usb and the wrong regulatory domain</title><content type='html'>In these days I used often my flybook. It is equipped with a WiFi Usb integrated dongle.&lt;br /&gt;It came out that it's a prism54 chipset. So I could use p54usb module from the kernel.&lt;br /&gt;But I discovered a problem. My netbook doesn't associate in any way to my Access Point.&lt;br /&gt;At first I couldn't figure out why. So I gave up. I thought that was a problem in my hardware.&lt;br /&gt;Yesterday, I noticed an error message from the kernel:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;[  193.290086] phy0: frequency change failed&lt;br /&gt;[  193.290155] phy0: failed to set freq to 2467 MHz for scan&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This arouses my suspicion.&lt;br /&gt;I decided to figure out more about this error.&lt;br /&gt;So I looked for this string in drivers/net/wireless/p54/*.{c,h}.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;denever@v33i:~$  grep -l "frequency change failed" driver/net/wireless/p54/*.{c,h}&lt;br /&gt;p54common.c&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;I took a  look to the code. And I decided to add some printf line to figure out where the problem is.&lt;br /&gt;Then I discovered that p54common tries more frequencies to find the right one.&lt;br /&gt;But if none of the set available matches then print out that error message.&lt;br /&gt;So how is choosed the frequencies set?&lt;br /&gt;Looking more carefully to the dmesg I found this line:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;[  131.901612] cfg80211: Using static regulatory domain info&lt;br /&gt;[  131.901621] cfg80211: Regulatory domain: US &lt;br /&gt;&lt;/code&gt;&lt;br /&gt;So here we are!!!&lt;br /&gt;My usb dongle uses the wrong frequency set.&lt;br /&gt;But how can I change this frequency set?&lt;br /&gt;I googled around discovering some interesting things.&lt;br /&gt;First of all, I discovered that cfg80211 implements a regulatory compliance.&lt;br /&gt;And actually since cfg80211 came in to the kernel I experimented problems with my wifi dongle.&lt;br /&gt;Reading &lt;a href="http://wireless.kernel.org/en/developers/Regulatory"&gt;here&lt;/a&gt;, I discovere that is possible to choose the regulatory domain setting a parameter of the cfg80211 module.&lt;br /&gt;So I wrote a config file for modprobe and I placed it in my /etc/modprobe.d/.&lt;br /&gt;Here follows my cfg80211.conf:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;denever@v33i:~$ cat /etc/modprobe.d/cfg80211.conf&lt;br /&gt;options cfg80211 ieee80211_regdom=EU&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;And now my dongle connect really fine :)&lt;br /&gt;My dmesg:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;denever@v33i:~$ dmesg | grep cfg80211&lt;br /&gt;[  131.901612] cfg80211: Using static regulatory domain info&lt;br /&gt;[  131.901621] cfg80211: Regulatory domain: EU&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2996110201092053567-5661640504071984004?l=denever.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://denever.blogspot.com/feeds/5661640504071984004/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://denever.blogspot.com/2009/04/p54usb-and-wrong-regulatory-domain.html#comment-form' title='1 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/5661640504071984004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/5661640504071984004'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/2009/04/p54usb-and-wrong-regulatory-domain.html' title='p54usb and the wrong regulatory domain'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2996110201092053567.post-2010710419547927811</id><published>2009-02-11T11:18:00.000-08:00</published><updated>2009-03-26T15:28:26.984-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='initramfs'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><title type='text'>Kernel needs initramfs</title><content type='html'>When you recompile your kernel and you want to use initramfs remember to select this option:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;General Setup ---&gt;&lt;br /&gt;       [*] Initial RAM filesystem and RAM disk (initramfs/initrd) support&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;And if you want to generate your initramfs with kernel-package in debian remember the option --initrd.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2996110201092053567-2010710419547927811?l=denever.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://denever.blogspot.com/feeds/2010710419547927811/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://denever.blogspot.com/2009/02/kernel-need-initramfs.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/2010710419547927811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/2010710419547927811'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/2009/02/kernel-need-initramfs.html' title='Kernel needs initramfs'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2996110201092053567.post-2520452981356433822</id><published>2009-01-20T12:19:00.000-08:00</published><updated>2009-01-20T12:20:49.145-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='grep'/><title type='text'>Rembember remember remember</title><content type='html'>&lt;code&gt;&lt;br /&gt;for I in *.txt;do grep -H $(basename $I .txt) $I; done&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;You don't know why. But I assure you it's useful for me...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2996110201092053567-2520452981356433822?l=denever.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://denever.blogspot.com/feeds/2520452981356433822/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://denever.blogspot.com/2009/01/rembember-remember-remember.html#comment-form' title='1 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/2520452981356433822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/2520452981356433822'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/2009/01/rembember-remember-remember.html' title='Rembember remember remember'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2996110201092053567.post-4650963602085132124</id><published>2009-01-19T22:32:00.000-08:00</published><updated>2009-01-19T22:38:44.828-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='png'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='script'/><category scheme='http://www.blogger.com/atom/ns#' term='imagemagick'/><category scheme='http://www.blogger.com/atom/ns#' term='screenshot'/><title type='text'>Imagemagick cropping 18Mb of png files</title><content type='html'>In these days I need to crop a lot of png file. They are screenshots of a desktop 1024x768 and I need to remove a frame around the main window. So I didn't want to use a program like gimp opening each file and crop it. So I thought to use a shell script with &lt;a href="http://www.imagemageck.org/Usage/crop/#crop"&gt;convert&lt;/a&gt; an utility from Imagemagick suite.&lt;br /&gt;This is the code of the shell script:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;for I in $(find -name *.png);do&lt;br /&gt;   convert -shave 0x46 -crop 1024x768+0+28 $I $I.crop&lt;br /&gt;   mv $I $I.old&lt;br /&gt;   mv $I.crop $I&lt;br /&gt;done&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2996110201092053567-4650963602085132124?l=denever.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://denever.blogspot.com/feeds/4650963602085132124/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://denever.blogspot.com/2009/01/imagemagick-cropping-18mb-of-png-files.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/4650963602085132124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/4650963602085132124'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/2009/01/imagemagick-cropping-18mb-of-png-files.html' title='Imagemagick cropping 18Mb of png files'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2996110201092053567.post-8288590980416320221</id><published>2008-12-18T20:12:00.000-08:00</published><updated>2008-12-19T01:17:57.683-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='recordmydesktop'/><category scheme='http://www.blogger.com/atom/ns#' term='linuxday'/><category scheme='http://www.blogger.com/atom/ns#' term='gtk+'/><category scheme='http://www.blogger.com/atom/ns#' term='glade'/><category scheme='http://www.blogger.com/atom/ns#' term='rclug'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Giving a GTK+ Interface to OCrypt.py using Glade</title><content type='html'>&lt;a href="http://rclug.linux.it"&gt;RCLUG&lt;/a&gt; invited &lt;a href="http://www.gianniamato.it"&gt;Gianni Amato&lt;/a&gt; to &lt;a href="http://rclug.linux.it/eventi/linux-day/2008"&gt;LinuxDay2008&lt;/a&gt; as speaker on Forensic Analysis with Linux. It is really nice to make Gianni’s acquaintance. He is really competent! Speaking with Gianni I discover that he wrote a nice python script to crypt/decrypt files called &lt;a href="http://www.gianniamato.it/2008/10/ocrypt-crittografare-con-openssl-e.html"&gt;OCrypt.py&lt;/a&gt;. OCrypt.py has a GUI interface written in Tkinter. Gianni would like to write a GTK+ interface, but he hadn't much free time. So I offered to write a GTK+ interface for OCrypt.py using &lt;a href="http://www.pygtk.org"&gt;PyGtk&lt;/a&gt; and &lt;a href="http://www.python.org"&gt;Python&lt;/a&gt;. Now, I recorded the creation of the interface with Glade using recordmydesktop.&lt;br /&gt;There isn't my voice in these days I have a sore throat...&lt;br /&gt;&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/0coSWWqYIdg&amp;hl=en&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/0coSWWqYIdg&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/0aK38A30plk&amp;hl=en&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/0aK38A30plk&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/nDXmKK9-caU&amp;hl=en&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/nDXmKK9-caU&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;You can find updated glade file and the python script of &lt;a href="http://github.com/denever/ocrypt-gtk/tree/master"&gt;OCrypt-gtk.py&lt;/a&gt; on my github.com &lt;a href="http://github.com/denever"&gt;repository&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2996110201092053567-8288590980416320221?l=denever.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://denever.blogspot.com/feeds/8288590980416320221/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://denever.blogspot.com/2008/12/giving-gtk-interface-to-ocryptpy-using.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/8288590980416320221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/8288590980416320221'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/2008/12/giving-gtk-interface-to-ocryptpy-using.html' title='Giving a GTK+ Interface to OCrypt.py using Glade'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2996110201092053567.post-3044672515169584283</id><published>2008-12-15T23:58:00.001-08:00</published><updated>2008-12-17T02:12:25.163-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dns'/><category scheme='http://www.blogger.com/atom/ns#' term='datamining'/><category scheme='http://www.blogger.com/atom/ns#' term='smtp'/><category scheme='http://www.blogger.com/atom/ns#' term='openwrt'/><category scheme='http://www.blogger.com/atom/ns#' term='kamikaze7.09'/><category scheme='http://www.blogger.com/atom/ns#' term='ssmtp'/><category scheme='http://www.blogger.com/atom/ns#' term='dnsmasq'/><title type='text'>DNS queries logging on WRT54GL</title><content type='html'>This morning I came up with another idea.&lt;br /&gt;The last year I would try datamining on DNS data from my local dnsmasq.&lt;br /&gt;But how could I collect all the queries of dnsmasq if it is installed on a WRT54GL without writing on the flash?&lt;br /&gt;This morning I think, easy denever you could email the logs of dnsmasq on a dedicated gmail account.&lt;br /&gt;So I looked for an smtp client on Kamikaze 7.09 which is installed on my WRT54GL:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;root@openwrt:~# ipkg info *smtp*&lt;br /&gt;Package: ssmtp&lt;br /&gt;root@openwrt:~# ipkg install ssmtp&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Taking a look &lt;a href="http://forum.openwrt.org/viewtopic.php?pid=31561#p31561"&gt;there&lt;/a&gt; I could configure /etc/ssmtp.conf as follows:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;root={your email acc name}@gmail.com&lt;br /&gt;mailhub=smtp.gmail.com:465&lt;br /&gt;rewriteDomain=gmail.com&lt;br /&gt;hostname=gmail.com&lt;br /&gt;FromLineOverride=YES&lt;br /&gt;UseTLS=YES&lt;br /&gt;AuthUser=your username&lt;br /&gt;AuthPass=your password&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;And then how to log queries with dnsmasq?&lt;br /&gt;Reading the documentation of dnsmasq I find:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;br /&gt;The log-queries option tells dnsmasq to verbosely log the queries it is handling and causes SIGUSR1 to trigger a complete dump of the contents of the cache to the syslog. &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;So in /etc/dnsmasq.conf I added the following line&lt;br /&gt;&lt;code&gt;&lt;br /&gt;log-queries&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;But on Kamikaze 7.09 where dnsmasq writes the logs?&lt;br /&gt;Dnsmasq uses syslogd for the logging.&lt;br /&gt;Taking a look to /etc/init.d/boot you can find this:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;syslogd -C16 ${log_ip:+-L -R $log_ip}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;So how to read the logs? Easy we use the &lt;span style="font-weight:bold;"&gt;logread&lt;/span&gt;.&lt;br /&gt;How could we email this logs? For this purpouse I wrote a script:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;root@openwrt:~# cat /bin/print_dnslog.sh &lt;br /&gt;echo -e "Subject: DNS Log\n"&lt;br /&gt;logread | grep query&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;And then we could email everything, using another script:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;root@openwrt:~# cat /bin/mail_dnslog.sh &lt;br /&gt;/bin/print_dnslog.sh | ssmtp mybackup_mail@gmail.com&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;And then I want that mail_dnslog.sh running periodically so reading &lt;a href="http://wiki.openwrt.org/HowtoEnableCron"&gt;here&lt;/a&gt; and &lt;a href="http://www.adminschoice.com/docs/crontab.htm#Crontab%20file"&gt;here&lt;/a&gt; I wrote a simple crontab.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;root@openwrt:~# crontab -e&lt;br /&gt;* * * * * /bin/mail_dnslog.sh&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2996110201092053567-3044672515169584283?l=denever.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://denever.blogspot.com/feeds/3044672515169584283/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://denever.blogspot.com/2008/12/dns-datamining-on-wrt54gl.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/3044672515169584283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/3044672515169584283'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/2008/12/dns-datamining-on-wrt54gl.html' title='DNS queries logging on WRT54GL'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2996110201092053567.post-3072409477467817996</id><published>2008-12-14T02:17:00.001-08:00</published><updated>2008-12-15T00:29:14.499-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='access'/><category scheme='http://www.blogger.com/atom/ns#' term='esmtp'/><category scheme='http://www.blogger.com/atom/ns#' term='email'/><category scheme='http://www.blogger.com/atom/ns#' term='lighttpd'/><category scheme='http://www.blogger.com/atom/ns#' term='nslu2'/><title type='text'>NSLU2 &amp;&amp; lighttpd &amp;&amp; esmtp</title><content type='html'>This morning I came up with an idea. How could I know when someone access to my lighttpd webserver installed on my NSLU2?&lt;br /&gt;&lt;br /&gt;The answer is easy, denever, active mod_accesslog and then take a look to the access.log!&lt;br /&gt;&lt;br /&gt;Ok, but if I want to reaceive a mail for each access? :)&lt;br /&gt;&lt;br /&gt;Reading &lt;a href="http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModAccessLog"&gt;there&lt;/a&gt;, I discovered that it is possible to redirect the access.log to a process.&lt;br /&gt;&lt;br /&gt;So I wrote this line in the /etc/lighttpd/lighttpd.conf on my NSLU2:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;accesslog.filename      = "| mail -i -s Webaccess my_email@anywhere.com"&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The I installed and configured esmtp on my NSLU2:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;apt-get install esmtp&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Editing /etc/esmtprc:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;hostname&lt;/span&gt;=smtp.googlemail.com&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;username&lt;/span&gt;=&lt;span style="font-style:italic;"&gt;yourname&lt;/span&gt;@gmail.com&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;password&lt;/span&gt;=&lt;span style="font-style:italic;"&gt;yourpass&lt;/span&gt;&lt;br /&gt;starttls=enabled&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;But there is a problem: lighttpd write access.log only when is stopped...&lt;br /&gt;So I shall not receive an email on each access on my webserver.&lt;br /&gt;I will receive an email on each restart of lighttpd.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2996110201092053567-3072409477467817996?l=denever.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://denever.blogspot.com/feeds/3072409477467817996/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://denever.blogspot.com/2008/12/nslu2-lighttpd-esmtp.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/3072409477467817996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/3072409477467817996'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/2008/12/nslu2-lighttpd-esmtp.html' title='NSLU2 &amp;&amp; lighttpd &amp;&amp; esmtp'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2996110201092053567.post-7769070894320264662</id><published>2008-12-12T11:32:00.000-08:00</published><updated>2008-12-14T00:55:28.163-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mutt'/><category scheme='http://www.blogger.com/atom/ns#' term='gmail'/><category scheme='http://www.blogger.com/atom/ns#' term='imap'/><category scheme='http://www.blogger.com/atom/ns#' term='googlemail'/><title type='text'>GMAIL + IMAP + MUTT</title><content type='html'>How to use our gmail account from console with mutt?&lt;br /&gt;&lt;br /&gt;So this is how I configured mutt to access my gmail account via IMAP.&lt;br /&gt;&lt;br /&gt;Open your ~/.muttrc and set the following options&lt;br /&gt;&lt;br /&gt;If your user account on gmail is &lt;span style="font-style:italic;"&gt;yourname&lt;/span&gt;@googlemail.com then set your folder as follow:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;set &lt;span style="font-weight:bold;"&gt;folder&lt;/span&gt; = imaps://&lt;span style="font-style:italic;"&gt;yourname&lt;/span&gt;@imap.googlemail.com&lt;br /&gt;set &lt;span style="font-weight:bold;"&gt;imap_pass&lt;/span&gt; = &lt;span style="font-style:italic;"&gt;yourpass&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Notice...&lt;span style="font-style:italic;"&gt;yourpass&lt;/span&gt; will be saved in clear text on ~/.muttrc.&lt;br /&gt;&lt;br /&gt;Do you want to save your postponed mail (written with mutt) on gmail drafts? :)&lt;br /&gt;&lt;br /&gt;Add in your ~/.muttrc the following row:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;set postponed = "=[Google Mail]/Drafts"&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;And now, how to send email from mutt via smtp.googlemail.com?&lt;br /&gt;&lt;br /&gt;As MTA I installed esmtp:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;apt-get install esmtp&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Then I configured mutt to use esmtp as MTA, adding in ~/.muttrc:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;set sendmail = "esmtp -v -X ~/tmp/esmtp.log"&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Then I configured esmpt editing /etc/esmtprc:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;hostname&lt;/span&gt;=smtp.googlemail.com&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;username&lt;/span&gt;=&lt;span style="font-style:italic;"&gt;yourname&lt;/span&gt;@gmail.com&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;password&lt;/span&gt;=&lt;span style="font-style:italic;"&gt;yourpass&lt;/span&gt;&lt;br /&gt;starttls=enabled&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Notice that also /etc/esmtprc is a clear text, so &lt;span style="font-style:italic;"&gt;yourpass&lt;/span&gt; would be read from root&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2996110201092053567-7769070894320264662?l=denever.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://denever.blogspot.com/feeds/7769070894320264662/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://denever.blogspot.com/2008/12/gmail-imap-mutt.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/7769070894320264662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2996110201092053567/posts/default/7769070894320264662'/><link rel='alternate' type='text/html' href='http://denever.blogspot.com/2008/12/gmail-imap-mutt.html' title='GMAIL + IMAP + MUTT'/><author><name>Giuseppe "denever" Martino</name><uri>http://www.blogger.com/profile/09840837338153503950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='http://bp2.blogger.com/_ZK9bK8UN-os/R1Eez8DMB3I/AAAAAAAAABs/_ot4O42FOd4/S220/avatar5.jpg'/></author><thr:total>0</thr:total></entry></feed>
