Archivi categoria: Ubuntu

NVidia on Linux: IRQ error «nobody cared»

Well, I’ve got a marvellous nVidia 9800 GTX. I run KDE4 with KWin effects enabled.

It has happened many times that after some random hours of usage overall KDE performance dropped to the floor: moving windows was nearly impossible, desktop effects stopped working, writing in the Konsole was slow…

But the system was not unresponsive: SSH (and everything not related to the X server) was working as usual.

Since I was too lazy to investigate it, I simply restarted the X server (or closed and reopened my KDE session) when it happened.

Some days ago I took a look at dmesg | tail and found this string:

kernel: irq 16: nobody cared (try booting with the "irqpoll" option)

followed by a (stack?) trace.

So it was an IRQ problem. Looking at /proc/interrupts revealed that the interrupt #16 was shared between my nvidia card, a pata_jmicron thingy and an usb port.

After googling a little I found that you can (actually you should) put the nvidia card on MSI system (see this wikipedia entry).

You simply tell the nVidia module (loaded at startup) to use MSI rather than old pci irqs, by writing a file in /etc/modprobe.d/:

# nano /etc/modprobe.d/MSIfixes.conf
options nvidia NVreg_EnableMSI=1

Then you should unload the module and reload it (well, it’s easier to do a reboot).

I haven’t had that annoying freeze issue ever since I put MSI in the game.

On a side note, hda_intel module supports MSI too:

options snd_hda_intel enable_msi=1

=-=-=-=-=
Powered by Blogilo

Contrassegnato da tag , , , ,

JPEG Recovery With Foremost: Filtering Results

Following my previous article, I’m writing my experience with foremost.

My mother had its Windows XP/Vista ravaged out by her son. She was very happy with Linux Mint until she asked me: «Where are our dog’s photos? They were stored in $randomproprietaryapplication with the extension .ads and I can’t find them».

Ooops. I wiped it. «Gimme the laptop mom, I’l, find them.»

I used foremost as follows:

foremost -v -t jpeg -i /dev/sda1 -o /media/Enermax/BKP 

According to the audit.txt file, it scanned 108GB of disk in 1 hour, and found 19517 jpegs. OMG OMG OMG.

So let’s narrow it down a bit, shall we? I made a little script that moves files bigger than a predefined size (in this case, 500000) in another directory (jpg500):

#!/bin/bash
i=0
for filename in $( ls jpg/* ); do
	filesize=$(stat -c%s "$filename")
	if [ $filesize -gt 500000 ]; then
		mv $filename jpg500
		i=$((i+1))
	fi
done
echo $i

Well, here are the statistics:

  • JPEGs bigger than 500KB: 1773, only valuable pics
  • Between 400KB and 500KB: 0
  • Between 300KB and 400KB: 0
  • Between 200KB and 300KB: 776, valuable pics
  • Between 100KB and 200KB: 1441, valuable pics
  • Between 50KB and 100KB: 0
  • Between 40KB and 50KB: 1087, here you find thumbnails and crap
  • Below 40KB: 14440, crap to be shredded

So, rule of thumb, know your target. If you want to recover pics taken with your digital camera, go for the 500KB+ files. If you want to recover everything, stay above 100KB. Below 100KB, it’s only waste.

How To Recover My Files, The Very Best Way.

0. Avoid crapware.

Say, those Winblows thingies like “ImageRecall Don’t Panic”, “WinUndelete”, “Professional Voodoo”, “I Eats Dead Files”… There is absolutely no need to throw away your money. Open source software is the answer.

«Blah blah open source, what’s so special about open source, it’s hype with no facts, developers’ dream. I need working apps, for fuck’s sake!»

Well, pal, I didn’t want to call them in, but we’re talking about the  Special Investigations Office of the United States Air Force. USAF.

They needed a piece of software capable of recovering data from an unreadable hard disk.
They made it.
They released it.
They use it to discover evidences.
They mantain it, and want it bug-free, because in courthouses every evidence must be bug-free.

So, what about a cup of shut the fuck up?

1. Always try to backup first.

That’s for sure, you always can fuck it up. No software will save you from doing something really stupid. Better said: every software allows you to do something really stupid.

Let’s talk about Windows. How many times you tried to make a dual-boot system, and how many times Windows asked to check the disk, fucking its partition table with random FAT32 partitions?

So, the very first thing you can try is to burn a LiveCD and boot from it, then copy everything you can find to an external backup disk.

From now on I’m assuming you use Ubuntu’s LiveCD.

Why Ubuntu?

Because it is widespread, it supports ntfs-3g out-of-the-box and it is easy to install new packages on it.

Well, sometimes the system complains that it can’t open the partitions. Have a look with gparted or  similar applications. Maybe the partition table is damaged.

2. Try Windows tools. LOL.

Of course, if you are using Windows® Crapware© Non-Operating Systems. You can insert the installation cd, boot from CD, press R or F8, follow instructions, be left with great disappointment in seeing that nothing has changed.

(Don’t tell me you haven’t your CD because you illegally downloaded it. That would be dumb.)

Well, of course Windows tools won’t fix a shit. I only wanted to laugh at it. Go on reading.

3. Try recovering your partition table.

It will work (at least if the disk isn’t broken) and it is relatively fast.

Let’s say you did a big beautiful disk format, and later you discovered you nuked the wrong hard disk. Duh.

Well, as soon as you didn’t write anything on that disk, you can still recover the previous partitions (and files contained in them) without much hassle.

The piece of software you need is called testdisk. Grab the .deb package for your Ubuntu LiveCd herelinkgo (mind the versions!), and install it. Then launch it on the Terminal, with “sudo testdisk“.

Most of the times you’ll have to do a “Deeper Search” to find all your partitions, and use the “P” key to see if those partitions do contain your files.

Just try to remember what your previous partition table was.
Try to find the pattern among all the partitions testdisk has found.
Verify it with “P”, see that the files are the ones you’d expect to find in those partitions.
Restore the old partition table and reboot.

If it works and the computer boots, you’re done.

4. Recover files.

Well, this is what happens if you wipe out that Microsoft crapware and install Linux, then discover that you didn’t do a backup of yourt documents/images/movies/etc.

You have 2 apps to do this job: one is photorec, installed alongside testdisk. Get the info you need about it herelinkgo, I won’t describe it deeply.

The other is foremost. The one developed by USAF’s Special Investigations Office.

Grab it herelinkgo, install it on your Ubuntu LiveCD, read the man page (man foremost).

Let’s say I want to recover all JPEG files from the partition /dev/sda1, and save them to an external disk:

sudo foremost –v –t jpeg –i /dev/sda1 –o /media/ExternalHD

5. Sneer at those who lost their files with Winblows® Certified Crapware©.

This is the most satisfying part of the process.

 

Italian version available as PDF

Come recuperare file da un hard disk danneggiato

Vai, Facciamolo!

Come buttare via i soldi faticosamente guadagnati?

  • Processore: Intel Core2 Quad Q9450 (12MB cache, 2,66GHz, 1333MHz FSB), circa 320€ 250€
  • Scheda Madre: Asus Rampage-Formula 90 (PCIe 2.0, chipset X48, 1600MHz FSB), circa 250€ 210€
  • Scheda Video: nVidia GeForce 9800 GTX (512MB della XFX), circa 270€ 250€
  • Monitor: Iiyama E2201W (22″, 1680x1050px), circa 320€ 286€
  • HD: due Maxtor SATA da 250GB (che ho già)
  • Case: ehehehehehehe! A Silvio non piacerebbe!

 
Finora questa è la lista delle cose da comprare. Mancano alcune cose importanti:

  • Memoria RAM? Trovata! Corsair Dominator DDR2 1066MHz, 60€
  • Alimentatore?

 
Invece sul sistema operativo non ci dovrebbero essere dubbi :D solo che…

  • Gentoo?
  • Sabayon?
  • Arch?
  • Debian?
  • Kubuntu?
  • vogliamo provare anche Fedora?
  • Slackware?

 
Il DE non sarà un problema: KDE4!

I programmi…

  • openoffice.org
  • urban terror
  • enemy territory
  • gimp
  • blender
  • inkscape

 
E poi…

  • apache
  • php
  • mysql

 
Insomma, non è facile farsi un nuovo computer! No proprio! Avete dei consigli, voi?

Skype 2 Beta + Kubuntu Gutsy + Audigy2 Platinum… IT WORKS (NOT!) (YES!)

I can’t believe it. The audio was not working anymore.

desperate videocaller without audio
The video was working fine from the beginning, however: I made a screenshot showing how desperate I was :o)

I downloaded the Feisty .deb package of Skype2.0 betalinkgo, installed it and it was NOT working, no sound, or sound the first time and then no sound at all, even Amarok wasn’t able to work after trying and I had to reboot.

I was dying of anger, I swear.

I have spent the whole day trying, tweaking, learning ALSA.

Well, I’m a perfect dumbass. If I had looked where I was meant to look the first timelinkgo, I would have been videocalling by this very morning.

Continua a leggere

Contrassegnato da tag , , , ,

Kubuntu 7.10 “Gutsy Gibbon”

I couldn’t resist installing Kubuntu 7.10 on my PC.

Here are the things I noticed:

1) It is faster than Kubuntu 7.04 was.
2) Compiz needs to be installed via “apt-get install compiz”, also after selecting nvidia restricted drivers when asked to. There’s no “Enable Desktop Effects” thingie.
3) There’s no such thing as a Compiz Configurator too, you need to install it.
4) The Compiz Configurator misses its icons.
5) Compiz starts by default after it’s been installed. Ye be warned!
6) Sometimes Compiz doesn’t behave very well: today window borders didn’t react to clicks, and it was impossible to shut down, minimize or move windows.
7) The default file manager, Dolphin, is way better than Konqueror to do his job.
8) Konqueror is a great browser, installing and enabling Flash player was easy as stealing a candy from a baby. No need to install Firefox.
9) Kopete doesn’t work with MSN protocol: after putting in the MSN ID and password, it simply crashes when trying to connect.
10) Mt NTFS internal drive didn’t work out of the box. I had to “apt-get install ntfs-config” to solve problems.
11) The command used in the menu to launch ntfs-config was “gksu ntfs-config”. I replaced that with “kdesu ntfs-config”.

Conclusions:

1) Ubuntu team gives way too much importance to Gnome. It is a severe strategic error, KDE4 will show it.
2) Trying to substitute the command-line approach with graphical interfaces doesn’t mean that things are working. It only means that you don’t know what to do if there’s an error.
2) Kubuntu isn’t stable yet. Call it with another name, but definitely not “stable”.

Suggestions:

Use another KDE-based distro if you love KDE and aren’t at all familiar with the shell.

pencil Big Edit:

Wolfenstein ET won’t run under Kubuntu 7.10. Bye bye Gutsy, see you next month!

Contrassegnato da tag , , , , , , ,

Server Internet Casalingo Con Debian/Ubuntu

Ecco un’altra guida da newbie a newbie!

Apache powered

Installare un server a casa propria e visibile da Internet non è mai stato così facile!

Ecco i requisiti:

  • Un vecchio PC
  • Una connessione Internet sempre attiva
  • Un’oretta di tempo
  • Un’infarinatura di HTML

Al termine di questa guida avrete anche voi un sito Internet! Continua a leggere

aMSN SVN Antialiasing Per Debian / Ubuntu (32 e 64 Bit)

Avanti, quante volte vi è toccato stare interi pomeriggi a cercare di capire come installare il miglior client MSN in circolazione per Linux con antialiasing?

spiegazione.

A me capita sempre ad ogni nuova installazione, e ogni volta mi dimentico come avevo fatto prima.

Ok, stavolta me lo segno qui a memoria eterna perché questo metodo è veramente il migliore che abbia mai trovato:

  • Costruisce pacchetti debian che poi è facilissimo disinstallare tramite Synaptics o apt-get remove
  • Non “sporca” il sistema (quasi)
  • Lineare e comprensibile
  • Possibilità di ottimizzazione per sistema a 64 bit
  • aMSN sempre all’ultima versione disponibile tramite SVN
  • Funziona! happy

Diamo a Cesare quel che è di Cesare: NotoriusXL e il suo postlinkgo sono stati fondamentali (la mia soluzione si limita solo a scaricare librerie tcl/tk più aggiornate, e aMSN tramite subversion, per il resto il metodo è identico). Un applauso!!

exclamation.png Attenzione! Se avete intenzione di usare il suo procedimento, sostituite assolutamente la versione delle librerie tcl e tk altrimenti aMSN non partirà dopo l’installazione! Infatti avrete questo problema (thread nel forum di aMSN)linkgo.
Ad oggi (28 Ago 07) la versione che scaricate col suo script è la 8.5a5, mentre l’ultima versione disponibile è la 8.5a6.

pencil Edit! Grande NotoriusXL, non solo ha fatto una guida aggiornata ma ha installato tutto in /opt per evitare di modificare alcunché in /usr.
Ha inoltre spiegato come rimuovere il problema di TLS che si autoinstalla all’infinito (meno male che non capita a tutti).
Questa è la sua guida aggiornata
linkgo!

Continua a leggere

Sono famoso LOL!

Mi segnalano sul forum italiano di ubuntu happy

Prego notare che a detta di Nikotra la mia guida (superficiale) è la migliore in italiano!

(e notare anche come ho invertito l’ordine delle parentesi happy)

Tornando seri, sì quella “guida” era più simile a un resoconto. Infatti appena è uscito il kernel 2.6.22 mi è venuto il nervoso da compilarella (nota malattia nerditerranea) e dopo aver rivoltato di nuovo tutto il WWW come un calzino ho deciso di farne una migliore.

Però allo stato attuale è ancora incompleta, siamo ad agosto, capisciammè! Ma se qualcuno volesse aiutare…

Comunque grazie Nikotra della fiducia happy (prima o poi dovrò decidere a iscrivermi sul forum di ubuntu)

Sabayon, Viva lo Zabaione!

È noto a chiunque come Ubuntu mi stia deludendo.

  • È il “sistema operativo per tutta l’umanità” e io ho il carattere di un orso, sempre e comunque Bastian Contrario
  • Il marrone a me fa schifo
  • Vorrei tanto usare Beryl/Compiz senza problemi
    • Chi usa regolarmente The GIMP sa di cosa sto parlando
    • Ho provato Beryl e Compiz, entrambi portano a prestazioni deludenti:
      • o il desktop 3d è scattoso (Beryl)
      • oppure gli altri programmi vengono rallentati (Compiz)
  • Sul portatile scalda MOLTISSIMO
    • Il mio vecchio portatile si è rotto: ho un fortissimo sospetto che ciò sia dovuto al calore eccessivo generato, infatti dopo averlo smontato ho capito che si è rotta la ventola e questo ha portato al surriscaldamento di tutto il resto
    • Il mio nuovo portatile (Fujitsu-Siemens Lifebook S2110):
      • è un AMD Turion
      • è costosissimo (categoria ultraportatile)
      • ha già fuso la licenza Windows…

    Non sto sparando stronzate
    Complimenti, Ubuntu! Stai bruciando Windows!
    (e il mio portatile)

  • La differenza con mamma Debian si nota anche sul Desktop: la ventola con Ubuntu sembra voler dimostrare che anche un PC può volare, con Debian la sua rumorosità scende a livelli accettabili
  • Persino Windows è più veloce
    • Questo mi fa girare tremendamente i maroni

Tuttavia non voglio perdere i punti di forza di Ubuntu: Continua a leggere