Archive for the 'Linux' Category


At last an error message

Tuesday, February 7th, 2006
NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module  1.0-6629  Wed Nov  3 13:12:51 PST 2004
------------[ cut here ]------------
kernel BUG at arch/i386/mm/pageattr.c:137!
invalid operand: 0000 [#1]
PREEMPT
Modules linked in:
nvidia snd_seq_midi snd_emu10k1_synth snd_emux_synth snd_seq_virmidi
snd_seq_midi_emul snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq
snd_emu10k1 snd_rawmidi snd_seq_device snd_ac97_codec snd_ac97_bus snd_util_mem
snd_hwdep rtc sd_mod snd_bt87x snd_pcm snd_timer snd_page_alloc tuner bttv video_buf 
firmware_class v4l2_common btcx_risc tveeprom videodev tulip
CPU:    0
EIP:    0060:[]    Tainted: P      VLI
EFLAGS: 00213082   (2.6.15-gentoo-r1)
EIP is at __change_page_attr+0×191/0×1b0
eax: 0000a420   ebx: c15d8a20   ecx: c100a420   edx: c1000000
esi: c0521eec   edi: 00000163   ebp: eec51000   esp: ef039d68
ds: 007b   es: 007b   ss: 0068
Process X (pid: 20492, threadinfo=ef038000 task=ef020a70)
Stack: eec51000 eec50000 2ec001e3 c15d8a20 00000011 00000000 00203296 c0116e36
       c15d8a20 00000163 f5d94940 f8e80000 f6d1b800 ef039dec c01169d5 c15d8800
       00000012 00000163 00011000 f8e80000 f937ee56 f8e80000 f9193180 f8e80000
Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit At last an error message digg.com digg it!  |  reddit reddit!

Hmm….video card dramas

Tuesday, February 7th, 2006

Just upgraded to kernel 2.6.15 and got this message on boot up:

nvidiafb: nVidia device/chipset 10DE0110
nvidiafb: EDID found from BUS1
nvidiafb: Unable to detect which CRTCNumber
...Defaulting to CRTCNumber 0

After which it stalled. I’m guessing it’s something to do with the new nvidiafb driver option I saw in this kernel’s config. Why did I throw out that old Matrox G400?

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Hmm….video card dramas digg.com digg it!  |  reddit reddit!

Global shortcuts

Friday, January 27th, 2006

Amarok’s ‘Global shortcuts’ are the cause of my keyboard woes. Amarok divides its shortcuts into ‘Amarok shortcuts’ and ‘Global shortcuts’, the global variety take over those keys while the program remains running. Of course functions like play, pause, next track, etc. are global, so if I want something simpler than ‘Ctrl-Windows Key-P’, say hitting the space bar, I can’t use it for anything else.

I’m guessing the author’s of this feature had grander plans that what I’m using it for. Maybe a nice feature request for local versions of play. stop, etc. is the way to go…

Update: Looks like I’m not the only one who wants this feature, and thankfully the ticket has already gone through the ‘don’t be so stupid that’s not a bug I’m closing this, oh wait I see your point I’ll open it’ phase. But that was the middle of last year and nothing has happened since. Maybe I should try to add them myself, the patch on this ticket makes it look easy enough.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Global shortcuts digg.com digg it!  |  reddit reddit!

Weird keyboard error - Take 2

Thursday, January 26th, 2006

The spacebar on my desktop decided to behave again, so all is good, or so I thought. Then like clockwork the spacebar on my notebook started exhibiting the same behaviour, i.e. shift-space = space. But then I noticed that the left and right arrow keys didn’t work either, at that point something clicked. Earlier in the evening I setup some new shortcuts for Amarok, space to pause and left and right to go back and forth in the track. Sure enough after I shut down Amarok all the keys returned to normal.

So something is either from with Amarok’s shortcut handling or KDE’s. Something to look into, but not tonight because it’s getting late.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Weird keyboard error - Take 2 digg.com digg it!  |  reddit reddit!

SpamAssassin Problems

Thursday, January 26th, 2006

My SpamAssassin setup on DreamHost has decided to stop working, joy. In my procmail logs:

Can't locate Mail/SpamAssassin/Util/Progress.pm in @INC (@INC contains: 
    /home/***/usr/share/perl/5.8.4 /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 
    /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) 
at /mnt/***/vol/boot/***/sales/***/usr/bin/spamassassin line 82.

Of course the file is there because I haven’t changed the setup in months:

find usr -name Progress.pm
usr/share/perl/5.8.4/Mail/SpamAssassin/Util/Progress.pm

I guess it might be because when it’s executed it uses the full path (with /mnt) rather than just the /home alias. But @INC includes the path where the file it. I’ll have to wait until I get home to sort this out.

Update: It started working again, no idea why and nothing interesting in the logs. I guess it was some DreamHost home directory mounting issue. It did let me see how much work SpamAssassin does and made me really grateful that it exists.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit SpamAssassin Problems digg.com digg it!  |  reddit reddit!

Weird keyboard error

Monday, January 23rd, 2006

For some reason the space bar on my desktop keyboard has stopped working in X. It’s definitely not broken because if I switch to a virtual console it works fine. I wonder how long it’s been like that…I guess since the last time I upgraded that box, but that was some time ago. I never realised how little I actually sit at my desk when I’m at home.

Update: Shift-Space produces a space, now I’m really confused.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Weird keyboard error digg.com digg it!  |  reddit reddit!

Viable Internet access everywhere you go

Wednesday, January 18th, 2006

I saw an advert recently that Vodafone has started a flat rate plan for their 3G datacards. The ad said £45 a month but the price plan says £52.88. And it works in Linux. At the moment I use my computers either at home or at work so £52.88 is a bit steep for the odd occasion when I take my laptop somewhere but if you’re a contractor, it becomes a lot more attractive, especially if you have it instead of broadband at home. But then again 384kb/s vs. 8mb/s, would you really want to? Now where are those 4G cards…

Update: Just saw the ad again, which still says it’s only £45 a month, and the small print says ‘1GB fair use limit’. So it’s not unlimited at all, it’s a 1GB plan. Dodgy advertising if you ask me.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Viable Internet access everywhere you go digg.com digg it!  |  reddit reddit!

KDE has CD ripping built in

Sunday, January 15th, 2006

Up to now I’ve converted all my CD’s to mp3 with iTunes on Windows. Actually that’s not strictly true, they were ripped to what ever is Apple’s default format, I keep meaning to rerip them as 192k mp3s. I’ve started using Amarok to organise my music in Linux. It’s a nice program and looks good, but there are a few things missing before it can become my main music client. One is full iPod integration, i.e. ratings and playlists, and the other major thing was CD ripping. I thought it was odd that it didn’t have it built in. So I started hunting for a program to do it in KDE. After a bit of searching I found it’s built right into KDE!

If you open up Konqueror and bring up the navigation panel (F9) there should be something in the tree called ‘Audio CD Browser’. If you have an audio CD in your drive and click on it you see a bunch of different files and folders depending on what ripping software you have installed. In my case it showed the tracks of the CD as CDA (CD audio), mp3 and ogg. It also has the whole CD as one track in all the different formats. You can configure the quality of the ripping through the control panel, I went for variable bit rate with an average bit rate of 192kb/s. Then it’s just a matter of copying the files from audio CD browser like any other file and it rips it on the fly. Truly simple software.

The next step is to integrate it into Amarok so I can pop in a CD, click the CD browser tab, select the tracks I want and click ‘Add to my collection’. That would be really slick.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit KDE has CD ripping built in digg.com digg it!  |  reddit reddit!

Using MySQL as the Bayes store

Tuesday, September 27th, 2005

It looks like there’s another workaround for the Berkeley DB version clash on Dreamhost’s servers, use MySQL as the database instead. I didn’t realise this was an option and came across it on DH’s forums. Someone’s written up a guide to installing SA on DH:

http://www.unsaturated.com/projects.spamassassinMySQL.html

But I didn’t want to install from scratch and thankfully you can import your existing bayes data. From the README.bayes file that is distributed with SA:

  1. Run ’sa-learn –backup > backup.txt’ which will backup your bayes data into a text file.
  2. Optionally you can run ’sa-learn –clear’ to remove the DBM based bayes files.
  3. Modify your local.cf file according to the directions above.
  4. Run ’sa-learn –restore backup.txt’ to restore your bayes data to the SQL database.

This went without a hitch and my spam filtering is decent again!

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Using MySQL as the Bayes store digg.com digg it!  |  reddit reddit!

Looks like it’s a temporary glitch

Sunday, September 18th, 2005

The root of the problem is the version of Berkeley DB that’s been used to store the bayes files. On Sarge it’s 4.3. The problem is that the DreamHost mail servers haven’t been upgraded yet so they’re still using Perl 5.6.1 and DB 3.x.

This would explain why it was previously able to filter my mail but failed when training, because the training was taking place on a Sarge machine. Once I upgraded the files to the 4.3 format (db4.3_upgrade) the filtering failed. All my newly created bayes files are in 4.3 format so they won’t work at filtering. I had a quick stab at trying to downgrade them without any success. Since DH is supposed to upgrade the mail servers any time now it’s hardly work trying to get it to work in the mean time.

So this message:

warn: bayes: cannot open bayes databases /home/.../.spamassassin/bayes_* R/O: tie failed:

means your bayes file have the wrong DB version. Check this page for more details:

http://wiki.apache.org/spamassassin/DbDumpAndLoad

Another annoying thing that stumped me for ages is that procmailrc doesn’t appear to let you set the value of PERL5LIB. I thought that would have fixed my problem with the DB issue but also with a DNS version problem. I also see this in my logs:

warn: dns: Net::DNS version is 0.19, but need 0.34 at /home/.../usr/share/perl/5.8.4/Mail/SpamAssassin/Dns.pm line 589.

This is because DH is using some ancient version of Net::DNS. It’s not a fatal error but a lot of useful tests need it. So without it and bayesian testing I guess I’ll be seeing a lot more spam in the couple of weeks until it all gets resolved.

Spread the word: Technorati related  |  del.icio.us bookmark it!  |  submit Looks like it’s a temporary glitch digg.com digg it!  |  reddit reddit!