First thing first:
$ vim /etc/apt/sources.list
deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free
$ sudo apt-get update
$ sudo apt-get install module-assistant
$ sudo m-a prepare
$ sudo m-a update
$ sudo m-a a-i nvidia
By now something should have gone wrong (*), so now fix it by using the nvidia driver from unstable:
$ sudo apt-get install -t unstable nvidia-kernel-source
Don't forget to remove old stuff
$ sudo apt-get remove nvidia-glx
Yeah for some reason driver for kernel 2.6.26-2-686 was pulled while uname returned: 2.6.30-bpo.1-686
So again clean it up:
$ sudo apt-get remove nvidia-kernel-2.6.26-2-686
Remove any old compilation binaries:
$ sudo m-a clean nvidia
Same player:
$ sudo m-a a-i nvidia
You should be all set now !
Now you can install
$ sudo apt-get install -t unstable nvidia-glx-dev
Cheers
Saturday, November 21, 2009
Thursday, November 12, 2009
Uploading file to sf.net is broken
I am following the instructions from:
http://sourceforge.net/apps/trac/sourceforge/wiki/Release%20files%20for%20download
So this give:
$ rsync -e ssh GDCM-2.0.14-Linux-x86_64.tar.bz2 GDCM-2.0.14-Linux-x86_64.tar.gz gdcm-2.0.14.tar.bz2 gdcm-2.0.14.tar.gz "malat,gdcm@frs.sourceforge.net:/home/frs/project/g/gd/gdcm/gdcm 2.x/GDCM 2.0.14"
ERROR: destination must be a directory when copying more than 1 file
rsync error: errors selecting input/output files, dirs (code 3) at main.c(600) [receiver=3.1.0dev]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
this is not working, I had to do:
$ sftp malat,gdcm@frs.sourceforge.net
sftp> put GDCM-2.0.14-Linux-x86_64.tar.bz2
Uploading GDCM-2.0.14-Linux-x86_64.tar.bz2 to /home/pfs/project/g/gd/gdcm/gdcm 2.x/GDCM 2.0.14/GDCM-2.0.14-Linux-x86_64.tar.bz2
GDCM-2.0.14-Linux-x86_64.tar.bz2 100% 2876KB 1.4MB/s 00:02
sftp> put GDCM-2.0.14-Linux-x86_64.tar.gz
Uploading GDCM-2.0.14-Linux-x86_64.tar.gz to /home/pfs/project/g/gd/gdcm/gdcm 2.x/GDCM 2.0.14/GDCM-2.0.14-Linux-x86_64.tar.gz
GDCM-2.0.14-Linux-x86_64.tar.gz 100% 3215KB 1.6MB/s 00:02
sftp> put gdcm-2.0.14.tar.bz2
Uploading gdcm-2.0.14.tar.bz2 to /home/pfs/project/g/gd/gdcm/gdcm 2.x/GDCM 2.0.14/gdcm-2.0.14.tar.bz2
gdcm-2.0.14.tar.bz2 100% 2537KB 1.2MB/s 00:02
sftp> put gdcm-2.0.14.tar.gz
Uploading gdcm-2.0.14.tar.gz to /home/pfs/project/g/gd/gdcm/gdcm 2.x/GDCM 2.0.14/gdcm-2.0.14.tar.gz
gdcm-2.0.14.tar.gz 100% 3319KB 1.6MB/s 00:02
sftp> ^D
Sigh, this is an admin worse nightmare...
http://sourceforge.net/apps/trac/sourceforge/wiki/Release%20files%20for%20download
So this give:
$ rsync -e ssh GDCM-2.0.14-Linux-x86_64.tar.bz2 GDCM-2.0.14-Linux-x86_64.tar.gz gdcm-2.0.14.tar.bz2 gdcm-2.0.14.tar.gz "malat,gdcm@frs.sourceforge.net:/home/frs/project/g/gd/gdcm/gdcm 2.x/GDCM 2.0.14"
ERROR: destination must be a directory when copying more than 1 file
rsync error: errors selecting input/output files, dirs (code 3) at main.c(600) [receiver=3.1.0dev]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
this is not working, I had to do:
$ sftp malat,gdcm@frs.sourceforge.net
sftp> put GDCM-2.0.14-Linux-x86_64.tar.bz2
Uploading GDCM-2.0.14-Linux-x86_64.tar.bz2 to /home/pfs/project/g/gd/gdcm/gdcm 2.x/GDCM 2.0.14/GDCM-2.0.14-Linux-x86_64.tar.bz2
GDCM-2.0.14-Linux-x86_64.tar.bz2 100% 2876KB 1.4MB/s 00:02
sftp> put GDCM-2.0.14-Linux-x86_64.tar.gz
Uploading GDCM-2.0.14-Linux-x86_64.tar.gz to /home/pfs/project/g/gd/gdcm/gdcm 2.x/GDCM 2.0.14/GDCM-2.0.14-Linux-x86_64.tar.gz
GDCM-2.0.14-Linux-x86_64.tar.gz 100% 3215KB 1.6MB/s 00:02
sftp> put gdcm-2.0.14.tar.bz2
Uploading gdcm-2.0.14.tar.bz2 to /home/pfs/project/g/gd/gdcm/gdcm 2.x/GDCM 2.0.14/gdcm-2.0.14.tar.bz2
gdcm-2.0.14.tar.bz2 100% 2537KB 1.2MB/s 00:02
sftp> put gdcm-2.0.14.tar.gz
Uploading gdcm-2.0.14.tar.gz to /home/pfs/project/g/gd/gdcm/gdcm 2.x/GDCM 2.0.14/gdcm-2.0.14.tar.gz
gdcm-2.0.14.tar.gz 100% 3319KB 1.6MB/s 00:02
sftp> ^D
Sigh, this is an admin worse nightmare...
Private DICOM dictionary
Looking at the private dictionary for pydicom:
http://code.google.com/p/pydicom/
It says:
http://code.google.com/p/pydicom/source/browse/source/generate_dict/make_private_dict.py
...
# Generates output from a file from the MDCM project (http://code.google.com/p/mdcm),
...
The only issue is that mdcm is LGPL, while pydicom claims to be MIT... There is a clear conflict of license here.
So I filled in a bug report:
http://code.google.com/p/pydicom/issues/detail?id=61&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Difficulty
I cannot believe they prefered to used the dictionary from mdcm, instead of using the easy-to-parse XML dictionary from GDCM
http://gdcm.svn.sf.net/viewvc/gdcm/trunk/Source/DataDictionary/privatedicts.xml?view=markup
oh well...
http://code.google.com/p/pydicom/
It says:
http://code.google.com/p/pydicom/source/browse/source/generate_dict/make_private_dict.py
...
# Generates output from a file from the MDCM project (http://code.google.com/p/mdcm),
...
The only issue is that mdcm is LGPL, while pydicom claims to be MIT... There is a clear conflict of license here.
So I filled in a bug report:
http://code.google.com/p/pydicom/issues/detail?id=61&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Difficulty
I cannot believe they prefered to used the dictionary from mdcm, instead of using the easy-to-parse XML dictionary from GDCM
http://gdcm.svn.sf.net/viewvc/gdcm/trunk/Source/DataDictionary/privatedicts.xml?view=markup
oh well...
Sunday, November 8, 2009
2012: la fin du monde ?
Pas si sur, ca serait plutot 2220, d'apres cet article:
http://science.slashdot.org/story/09/10/26/1517242/2012-a-Miscalculation-Actual-Calendar-Ends-2220
-> http://www.natutech.nl/00/nt/nl/47/artikel/26050/Balen:_%272012%27_is_pas_over_twee_eeuwen.html
http://science.slashdot.org/story/09/10/26/1517242/2012-a-Miscalculation-Actual-Calendar-Ends-2220
-> http://www.natutech.nl/00/nt/nl/47/artikel/26050/Balen:_%272012%27_is_pas_over_twee_eeuwen.html
Postfix Gmail SMTP Relay
I was trying to setup postfix to relay email to my gmail account and found out:
http://ubuntu-tutorials.com/2008/11/11/relaying-postfix-smtp-via-smtpgmailcom/
which is working, compared to a skrewed solution like:
http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1154
Cheers
http://ubuntu-tutorials.com/2008/11/11/relaying-postfix-smtp-via-smtpgmailcom/
which is working, compared to a skrewed solution like:
http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1154
Cheers
HAL Keymap Quirks
Today trying to start the wifi I discover things were not working as expected. Check this thread:
http://groups.google.com/group/linux.debian.user/browse_thread/thread/a35291009da3f16d
So searching on the net for:
[ 446.068109] atkbd.c: Unknown key pressed (translated set 2, code 0x88 on isa0060/serio0).
[ 446.068117] atkbd.c: Use 'setkeycodes e008' to make it known.
reveal this bug report on debian:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475851
Which lead to this page:
http://people.freedesktop.org/~hughsient/quirk/quirk-keymap-index.html
Bad luck, this is not working anymore and there is no redirect. Using web.archive I found this page:
http://web.archive.org/web/20080224232936/http://people.freedesktop.org/~hughsient/quirk/quirk-keymap-index.html
Searching for keywords on this page, reveal that this page has moved to:
http://hal.freedesktop.org/quirk/quirk-keymap-index.html
Pheeww.... that was hard !
http://groups.google.com/group/linux.debian.user/browse_thread/thread/a35291009da3f16d
So searching on the net for:
[ 446.068109] atkbd.c: Unknown key pressed (translated set 2, code 0x88 on isa0060/serio0).
[ 446.068117] atkbd.c: Use 'setkeycodes e008
reveal this bug report on debian:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475851
Which lead to this page:
http://people.freedesktop.org/~hughsient/quirk/quirk-keymap-index.html
Bad luck, this is not working anymore and there is no redirect. Using web.archive I found this page:
http://web.archive.org/web/20080224232936/http://people.freedesktop.org/~hughsient/quirk/quirk-keymap-index.html
Searching for keywords on this page, reveal that this page has moved to:
http://hal.freedesktop.org/quirk/quirk-keymap-index.html
Pheeww.... that was hard !
Tuesday, November 3, 2009
a.vim : Alternate Files quickly
There is a very cool vim script a.vim:
http://vim.sourceforge.net/scripts/script.php?script_id=31
However this script is really poorly documented, so I spend half an hour just to figure out how to add a special extension.
Easy:
Well now how about t++ -> h++ ? Look easy, try it yourself !
Answer:
http://vim.sourceforge.net/scripts/script.php?script_id=31
However this script is really poorly documented, so I spend half an hour just to figure out how to add a special extension.
Easy:
let g:alternateExtensions_txx = "hxx,h,hh"
Well now how about t++ -> h++ ? Look easy, try it yourself !
Answer:
:so $HOME/.vim/plugin/a.vim
let g:alternateExtensionsDict['t++'] = "h++"
Subscribe to:
Posts (Atom)