Just upgraded my Debian GNU/Linux, this upgraded offlineimap so I needed to modify my configuration (i.e. .offlineimaprc) adding the cert_fingerprint in the remote repository stanza.
This now looks like:
metadata = ~/.offlineimap
accounts = gmail
socktimeout = 60
fsync = false
enabled = yes
filename = ~/Mutt/muttrc.mailboxes
header = “mailboxes ”
peritem = “=/%(foldername)s”
sep = ‘/’
footer = “\n”
localrepository = Local-Gmail
remoterepository = Remote-Gmail
autorefresh = 20
quick = 10
expunge = no
type = Maildir
localfolders = ~/Mail
sep = /
nametrans = lambda folder: re.sub(‘spam’, ‘[Google Mail]/Spam’,
re.sub(‘drafts’, ‘[Google Mail]/Drafts’,
re.sub(‘sent’, ‘[Google Mail]/Sent Mail’,
re.sub(‘flagged’, ‘[Google Mail]/Starred’,
re.sub(‘trash’, ‘[Google Mail]/Trash’,
re.sub(‘important’, ‘[Google Mail]/Important’,
re.sub(‘archive’, ‘[Google Mail]/All Mail’, folder)))))))
folderfilter = lambda foldername: foldername not in [ '[Google Mail]/Posta inviata’, ‘[Google Mail]/Trash’, ‘[Google Mail]/Cestino’, ‘[Google Mail]/Important’, ‘[Google Mail]/Importanti’, ‘[Google Mail]/Bozze’, ‘[Google Mail]/Spam’, ‘[Google Mail]/Drafts’, ‘[Google Mail]/Sent Mail’, ‘[Google Mail]/Trash’]
cert_fingerprint = f3043dd689a2e7dddfbef82703a6c65ea9b634c1
maxconnections = 5
type = Gmail
remoteuser = firstname.lastname@example.org
remotepass = my_password
realdelete = no
ssl = yes
folderfilter = lambda foldername: foldername not in ['[Google Mail]/All Mail’, ‘[Google Mail]/Important’, ‘[Google Mail]/Spam’, ‘[Google Mail]/Drafts’, ‘[Google Mail]/Trash’, ‘[Google Mail]/Sent Mail’ ]
nametrans = lambda folder: re.sub(‘.*Spam$’, ‘spam’,
re.sub(‘.*Sent Mail$’, ‘sent’,
re.sub(‘.*All Mail$’, ‘archive’, folder)))))))
Asking for a sponsor for apt-spy was for me the starting point for a big new job. Paul Wise did a great review an found out many errors and pointed out that github is not so free as it looks out at a first glance. Paul pointed me to Benjamin Mako Hill‘s great post titled: Free Software Needs Free Tools. So even if I decided to not switch apt-spy to native package with the help of Fabrizio Regalli I imported apt-spy package that is actually on Debian archives in the collab-maint git that was created a while ago.
I merged github repo (I’m going to leave or even delete) following the guide Git community book chapter about merging.
At the Associazione per le Libertà Informatiche e Digitali (the site is only in Italian) more the one year ago we started a project to spread the use of free educational software in schools, one part of the project is to help teachers in the day to day administration laboratories’ PCs and of the filtering proxy. Schools taking part at the project are more and more and we need some way to access PCs from remote so that our volunteers do not need to go to schools in person. The first solution we tried was ssh on a strange port with only key authentication but in many situation school networks are behind firewalls or worst connect to ISPs that does not provide them with public address. The solution is to install OpenVPN. I did some experiments with OpenVPN at home so we decided to go on, but we have to cope another challenge: ALID base is shared with other groups and we cannot leave a noise PC switched on 24/7. The solution to this second problem was the Stonesoft FW-300 I
successfully installed Debian in August.
As I tried also to install zeroconf on that hardware I need to reinstall Debian and, I’m sad to say that, the installation was a little bit tricky so I report the most significant task I did in the hope this will be usefull for someone else.
- I downloaded boot.img.gz from: http://http.us.debian.org/debian/dists/squeeze/main/installer-i386/20110106/images/hd-media/
- I gunziped the image on a USB thumb drive following the Installation guide (i.e.: zcat boot.img.gz > /dev/sdb)
- I edited syslinux.cfg so that now it looks like the following:
[cc lang="bash"]# D-I config version 2.0
SERIAL 0 9600 0
Note that it may be not necessary to comment out vesamenu.c32 but I did.
- I downloaded netinst.iso from http://cdimage.debian.org/cdimage/squeeze_di_rc1/i386/iso-cd/ and copied it on the USB drive
- I configured minicom starting it as root with the -s parameter. I also tried to use gtkterm (which I find more user friendly that minicom) but for some strange reason I cannot understand I was unable to have a fully function VT102 terminal and I was not able to edit files using gtkterm.
- I started the stonesoft using with the USB drive inserted (follow my previous article to setup Stonesoft FW-300 to start from USB) and followed all installer steps till grub install
- grub installer failed as it tried to install on /dev/sda that is the USB drive. I entered the command prompt from the installer menu followed the usual GRUB recovery procedure and installed grub in /dev/sdb. The usual recovery procedure is (as /dev/sdb1 was already mounted as /target from the installer):
mount –bind /dev /target/dev
mount –bind /proc /target/proc
mount –bind /sys /target/sys
chroot /target /bin/bash
- Even though grub-installer did not failed I would have to enter chroot to customize /etc/default/grub to instruct grub to use the serial console. I edited the file so tha now it looks like this:
[cc lang="bash"]# If you change this file, run ‘update-grub’ afterwards to update
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
# Uncomment to disable graphical terminal (grub-pc only)
GRUB_SERIAL_COMMAND=”serial –speed=9600 –unit=0 –word=8 –parity=no –stop=1″
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo’
# Uncomment if you don’t want GRUB to pass “root=UUID=xxx” parameter to Linux
after exiting the editor I issued a update-grub.
- I exited the chroot, than the console to come back to installer menu
- I select not to install a bootloader and ended the installation. Note that grub unsuccessfull install was necessary to have grub installed by debian-installer.
- I rebooted the firewall just to be sure everything was ok
In near future I’ll report about OpenVPN installation.
I switched to emacs for most of my activity been writing code, debugging, organizing my life and reading emails with gnus. I know that most of the people out there just think that using emacs requires to remember lots of key-bindings and configuring it requires writing to many parenthesis but i like it.
I like to help debian list administrators to fight spam and in the meanwhile I prefer to leave spam out of my mailbox so with the following little function I bounce the email to debian and move it to spam folder of my local IMAP server. The server is synced with my gmail account so gmail knows of other spam.
(defun sc-forward-spam-lists-debian ()
(gnus-summary-resend-message "email@example.com" 1)
(gnus-summary-move-article 1 "nnimap+localhost:spam")
(local-set-key (kbd "") (quote sc-forward-spam-lists-debian))))
Ok, molti lo sanno già perché è più di una settimana che mi bullo del mio nuovo portatile, però sono molto contento del mio nuovo HP ElithBook 8440p.
Sulla mia nuova bestia ho già installato Debian che va come un orologio svizzero, ho lasciato anche un piccolo spazio per Windows7 e grazie a VirtualBox la partizione Windows7 avvia in una bella macchina virtuale.
Appena avrò un po’ di tempo scriverò una pagina dedicata a questa macchinina e un bug report per riportare l’installazione in Debian. A onor del vero l’installazione non è stata facilissima con un primo reboot con mille righe verticali e nessun carattere visibile.
If you like to test gwibber on Debian just download and install packages from: http://people.debian.org/~kartik/packages/gwibber/.
The Stonesoft FW-300 is a firewall appliance that was discontinued by Stonesoft, I found one as I was looking for an headless little PC to use it as home server. I did not jet deployed it in my home network as I left it on my office desk after I installed it.
To install it I just did the following:
- I got my 256 USB stick. Inserted it my PC, unmounted it as it was automounted.
- I got the sid install files, that can be used also to install etch/lenny/squeeze, with following commands:
- I installed mbr, syslinux amd mtools using the following command:
aptitude install mbr syslinux mtools
- I created a FAT partion on the stick:
- I created the mbr:
- Set the USB stick to boot:
- Mounted the USB stick:
mount /dev/sdb1 /media/usb
- I copied initial ram disk image and the mini iso to the USB stick:
cp linux initrd.gz mini.iso /media/usb
- I edited the syslinux.cdf on the USB stick to let it boot using the serial port. I just added these two lines:
SERIAL 0 9600 0
- At the end I umounted the USB stick:
- I inserted the USB stick in the appliance and started the standard installer.
The appliance did not boot the first time I tried. I rebooted entered BIOS setup and set it to boot for USB Floppy.
In many of the applications we are developing at Penta Engineering we make use of NLog logging library. From the NLog website you can download the Windows ™ installer or the source code, Mandriva has a package but nor Fedora nor Debian so yesterday I created a Fedora RPM. I started using the Mandriva spec file modified following the Fedora packaging guidelines for Mono . Today I discovered the way to let Monodevelop see the dll in its dependancy window and added a .pc file to the RPM.
I’m publishing my RPM in the hope to help someone not to loose her/his time. I’ll look the way to let this package enter Fedora and the time to create a DEB
L’articolo che cito è fondamentale per poter avere flash funzionante su Debian a 64bit. Grazie ADOBE.
I like Eclipse but I was unable to use all of its feature becouse it was unable to access the network. I blamed the Debian java installation so I downloaded and installed SUN Linux JDK but this was not the correct solution, so I started doubting about Debian eclipse package so I removed all eclipse and java packages but without any changes. At the end I downloaded and installed netbeans that have the same problem but this was the key to the solution becouse at http://forums.netbeans.org/ptopic22280.html I found out that with the following command all java application can access the network without any problem:
sudo sed -i ‘s/net.ipv6.bindv6only\ =\ 1/net.ipv6.bindv6only\ =\ 0/’ \
/etc/sysctl.d/bindv6only.conf && sudo invoke-rc.d procps restart
Now I can work with Eclipse and try out Netbeans, too.
Segnalo un interessante articolo su come usare apt-offline per mantenere aggiornata una Debian che non è collegata alla rete usandone un’altra collegata e una chiavetta usb
Today I finished testing apt-spy 3.2.2. This release closes some bugs (#457049,
#515515, and #447232) and introduces a new feature: instead of testing for ftp.xx.debian.org, if this is an alias of one or more mirrors apt-spy tests for the real server. This is done parsing the list in parentesis under the alias.
I’m investigating why version 3.2-1 I released in august never entered the archive. This version was just a new upstream version with code refactory and no new features or bugs solved. The same appened to version 3.1-20 that solved bug #491802 and #317592.
A new version of apt-spy is going to be uploaded. I’m planning the future for this package, I would like to internationalize it and to support long command line options, what do you think about these goals? I already started using anjuta, autotools and the like.
Il mio piccolo eeePC mi sta dando sempre piÃ¹ soddisfazioni. Il fatto di avere poco disco mi costringe a studiare soluzioni a cui non avrei mai pensato. Oggi ho messo su mutt con gmail (semplicissimo), Ã¨ probabilmente l’unico MUA usabile con uno schermo cosÃ¬ piccolo e un touchpad in miniatura. Non avevo mai provato mutt prima d’ora con IMAP. Ora dovrÃ² studiare come funziona imapfilter per avere l’email filtrate prima di collegarsi al server.
I’m starting working on apt-spy. I started creating a git working directory on my PC and cloning it in my home page on alioth/git as apt-spy does not have a public code repository. I’ll apply all patches that were created during these years by QA to close bugs.
NOTE: This is the first post about my work on Debian packages. I’ll publish these series of posts in English, as English is not my mother tounge any correction is welcome.