Category Archives: Ubuntu

Scanner Réseau sous Ubuntu

2h de travail pour enfin arriver à scanner depuis ma Ubuntu box, alors que ma Canon MP610 est branchée sur mon ReadyNas … Ouf !

Alors pour les curieux, la méthode n’est au final pas si compliquée que celà !

Etape 1 : Installer l’addon SANE sur le ReadyNas (lien ici). Cet addon installe tout l’environnement SANE sur le NAS, élément qui permet de rendre le scanner accessible sur le réseau pour les postes qui le voudront.
Etape 2 : Configurer son poste Ubuntu pour effectivement scanner le NAS. En effet par défaut l’outil de scan (XSane) ne regarde qu’en local ! Il faut donc éditer le fichier /etc/sane.d/net.conf pour y ajouter une ligne avec l’adresse IP du ReadyNAS
Etape 3 : Démarrer son XSane … et Tadam ! Le scanner est bien découvert

Pas si compliqué non ? Alors bon courage pour ceux qui tomberont ici !

DVD playback with Ubuntu

This was one feature I never got working until just a few minutes ago, even though I tried a couple of times !
Thanks to sebz, and a shared Google Reader item, the following article explains you how to do that !
Since it is really simple, here are the two commands you need to type in a terminal to get your DVDs running :
sudo apt-get install totem-xine libxine1-ffmpeg libdvdread3
sudo /usr/share/doc/libdvdread3/install-css.sh

Right after that, insert your DVD in your drive, and you should be on the road for some classic DVD watching on your favorite free open-source OS !
For the record, I even successfully played the DVD from french comic Jean Marie Bigard, which was impossible on Windows XP !
PS: Sorry Vince, you were right, it IS simple to play DVD … Once you know the correct configuration ;-)

Changing the default language with Ubuntu

On the request of a friend, here is how one can change the default language in Ubuntu Gutsy (7.10).

It is actually a pretty simple action, but no one seems to remember how it’s actually being done ! So just go in the System/Administration/Language Support. A window will open, and you can here select the languages that you want your OS to support, and which one you want to make the default one.

The actual pretty slick thing about this, is that all the applications (actually the one supported, but that’s most of them) will reflect this change. So if you made the mistake of installing Ubuntu in French and you’re wife is not happy with it … You have a two clicks exit ;-)

Samba … A Windows – Linux dancing story !

I already posted on this subject (actually my first post on Ubuntu), but I just wanted to share a better link I found out here : Dead Simple, Clear, Understandable … Everything a newbie like me needs.

Oh and by the way if the “Connect To server..” function works somewhat great in Gutsy, forget about the “Shared Folders” one : it imply does not work and makes you loose your time !

So now my network is up and running perfectly !

Managing shell history

On linux, if you use multiple terminals, and are a fan of the history command because you always forget which one actually worked, then you have probably noticed something weird : some of your commands sometimes disappear because they don’t appear in history.

It is due to the fact that, by default, the history is saved when a terminal is closed. But more than saved I should say replaced ! Meaning that the history is actually the one of the current terminal plus the one of the last terminal you closed.

If you want to have your history saved across multiple terminal, then I found this link here to guide you. Basically, you need to add

shopt -s histappend

to your .basrc file.

Only thing I’d like to do now, is to have the history file being saved every time I enter a command, not only when the terminal is closed, so that I could easily share information across multiple terminals … But I have not yet found the answer ! If you have it, talk to me !

Watching Sopcast & TvAnts on Ubuntu !!!

It’s Shangaï Master’s time ( Gooooo Gasquet ;-) ), and while blogging, surfing, and whatelse, I wanted to watch the tennis game on my newly configured Ubuntu Gutsy box !
Of course Sopcast and TVAnts are THE P2P programs to watch television right now, so this is the way I went !

First thing firt, you need to install the standard Windows codec, because they don’t come defacto with the Gutsy installation. A really good tutorial on the official site here, and look for “Playing Restricted Formats”.

For TVAnts the installation is straight forward. You need to install Wine, the windows emulator. Then you download the regular Windows setup file and run it with the previously installed Wine. Apparently it needs a rebbot for Wine to add the shortcut to the faked “Windows Programs”. After that you just need to add a channel or select one from the list, and open MPlayer or VLC on the url given by the program, which is usually something like http://localhost:8900/1.asf.

For SopCast, it’s not as simple. Unfortunately the gui does not really seem to work at the moment. So you need to install the command line util. You can download it from their website, and unzip it on your machine. It has a dependency over libstdc++5 which you can install from the package manager. Once this is done, you need to issue a command line of the like :

./sp-sc-auth sop://myserver/mychannel 3908 6908 >/dev/null &

3908 is the port that will connect to the server, 6908 is the port that will have the video, >/dev/null is to prevent the verbose output, and & to make the process run standalone which is obviously optional. Once this is done, you need to wait a little bit for the data to buffer (look at you systray and the network monitor), and then start your preferred player on the http://localhost:6908/tv.asf URL.

And there you go ! P2P Television enabled on your delighted Gutsy Ubuntu box !

If you have any problems, or need more information, don’t hesitate to ask !

How I got to watch Heroes on Ubuntu !

Since I now have a new working Ubuntu install, I decided I’ll watch Heroes on it while “working” on my other machine… Or so I thought.
The graphic card I now have is a S3Trio 3D/2X 8Mo, and I thought I would be on a good run with that one ! Unfortunately any attempt to run a Heroes episode ended up on a window getting killed :-(

Of course I first thought I was not using the right player, or not having the right codec. So I tried Totem, VLC, MPlayer … No result. So I installed all the codecs I could find … No result. So I decided to run from the command line, and got the fllowing message :

The program 'totem' received an X Window System error.This probably reflects a bug in the program.The error was 'BadAlloc (insufficient resources for operation)'.(Details: serial 86 error_code 11 request_code 140 minor_code 19)(Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful    backtrace from your debugger if you break on the gdk_x_error() function.)

Simply GREAT !

Some more googling took me to this page, where they tell you to add two more lines to your Xorg.conf file … But I was still in no luck, with the same problem.

At last, I found the following page in the netherlands, where they suggested to use the 16 bits default depth instead of 24 in the Xorg.conf file. So I did, and after a restart of the X server … YATTAAAAAAAAAAAAAAA ! There was
Hiro Nakamura !

Now I just need to catch up on 6 episodes ;-)

Old graphic card on Ubuntu/Xorg

As you may recall I was kind of having a bad time with Xorg X server configuration for my really old SIS6215 graphic card.

After digging a lot of google, I was not able to get it to work correctly, and found out that it was not supported by Xorg anymore here.
I went to use another crap old graphic card, a Cirrus, this one. I got this one to almost work, but only for a resolution of 800×600. It took me some time, and if you need I can give you the adequate Xorg.conf file. But this resolution was too small for any relevant usage.
I then got to wonder whether Xorg was really supporting old PCI graphic cards ? It turned out with more google searches that the legitimate answer to the question is NO.
So I decided to order some old AGP cards on PriceMinister (Ebay did not get me what I needed ;-)), and got them two days later.
After that, a clean install of Gutsy, aka Ubuntu 7.10, gave me a working machine, with a decent resolution (1280 wide).

The conclusion of all that ? As Clowny said “With X, if it works, it works … If not, then there is no magic !”. And I would add, that if you want to use an old PCI card… Don’t expect it to be a smooth road !!!