Post details: Xubuntu: alles wunderbar

08/15/06

Permalink 10:04:03 pm, Categories: Ubuntu, 718 words   English (US)

Xubuntu: alles wunderbar

I have this pretty old IBM Thinkpad iSeries Type 1161-260 with a Celery processor. It's been sitting in my closet for about 6 months. I had attempted to run Linux on it at one point, but the Cardbus pcmcia interface on this laptop did not have good support so essentially no pc card worked. I spent alot of time hacking at it and eventually I gave up and left Windows XP on the system.

This weekend I thought maybe Linux these days has better support. It's a low end laptop with 192MB RAM. I wanted to run Ubuntu, but needed a lightweight version. That's when I found Xubuntu, a lean Ubuntu. I had about 3G free on my windows partition (a whopping 5G drive). I guessed correctly that Ubuntu must have a partition resizer that works well.

I downloaded the Xubuntu ISO on my Mac, burned it, and booted my Thinkpad. After some crunching, it came up to X with a live-CD like distro and an 'Install' icon on the desktop. Cool. I brought up a terminal and did an 'ifconfig -a' expecting to see only my loopback device. Lo and behold, I see an eth0. I think to myself, this can't be my wireless card. I then went to the graphical network configurator and saw that it detected my wireless card. A few clicks and I saw the open wireless networks (I keep mine open too :). I was able to join, startup Firefox, and browse. My jaw dropped. Ubuntu out of the box on its installation live-CD has support for my wireless card that I could never get working for the life of me? I was very impressed. I had to start the installation.

After a long time I eventually had Xubuntu installed. I rebooted and found out that now my wireless card wasn't detected. Poking in /var/log/messages I saw:

cs: warning: no high memory space available!

Now this shit looks familiar, the same crap I had ages ago that I couldn't fix. So continued my hacking. I thought maybe some module loaded at full install and not in the live-CD was conflicting, maybe USB. So I sought to disable USB. Now times have changed and this is not as easy as just commenting it out in /etc/mod* files. I found /etc/modprobe.d/aliases and began fiddling with it. But for the life of me I could not get USB disabled. Even when I removed the kernel module file it would still get loaded!

This really baffled me. I thought maybe USB is compiled into the kernel. But that wasn't the case because I see it in a 'lsmod'. After much searching I realized that now distros use an initramfs, which is like an initrd but I believe you can store more. I looked at the current initramfs used during boot (via /boot/grub/menu.lst), which is a fun gzipped cpio archive:

mkdir /tmp/a
cd /tmp/a
gzip -dc /boot/initrd.img-2.6.15-26-386 | cpio -i

And whaddaya know, the usb kernel modules are stored in there. I found out about mkinitramfs (like mkinitrd), made a new one without usb, rebooted. But still my fucking wireless card didn't work. I went to sleep and decided to try again later. I was determined though because the damn thing worked on the live-CD, I have to be able to get it working installed! That would be really lame if I gave up now.

I spent some time searching, and found some references about pcmciautils replacing pcmcia-cs, and /etc/pcmcia being moved to /usr/share/pcmciautils. On my system /etc/pcmcia was empty. I booted the live-CD again and noticed that /etc/pcmcia had lots of config files, importantly a config.opts. On my installed system, this file was in /usr/share/pcmciautils. It contains info on memory regions to probe.

Then I found this German posting that seemed to be recommending copying config.opts to /etc/pcmcia. My 2 semesters of German came through, and I knew that 'alles wunderbar' meant something good. I copied the file, rebooted. Voila, my wireless card worked!

What a pain and such a simple fix! It's really lame this file is not automatically copied there, but I'm glad to have gotten it working. Where there is a will there is a way.

Comments, Pingbacks:

Comment from: Georg [Visitor]
Hello Viraj,

I'm trying to make an even older notebook usable by installing Xubuntu, so I found your article very interesting. Can you tell me which PCMCIA wireless card you use?

Thanks,
Georg (from Germany)
Permalink 12/30/07 @ 11:49
Comment from: Patrick [Visitor]
I have the exact same notebook, and it's been sitting on a shelf as unusable (too slow) for more than year. Now I want to configure it as a browser-only toy for my young daughter (4 yo), and I found Xubuntu, which seems perfect - except I'm a complete newbie with Linux.

So in trying to install Xubuntu via the advanced CD (regular one wouldn't work), I keep running into a problem where it tells me that "no common CD-ROM drive was detected". I've tried all of the alternative drivers included on the CD, but no joy. I found another CD driver for Linux at http://sourceforge.net/project/showfiles.php?group_id=117042&package_id=230205&release_id=580494 but have not yet tried it.

Did you run into this problem? Any suggestions for getting it to work?

Thanks,
Patrick
Permalink 03/17/08 @ 15:45
Comment from: Patrick [Visitor]
I realized my mistake - I was trying to install 7.10 instead of 6.06. When I ran 6.06 from the Desktop CD, voila! It ran perfectly, installed everything smoothly, and when I rebooted, up came Xubuntu running from the hard drive. Now I want to get my wireless card working (just like you), and I'd like to follow your advice about copying config.opts, but Xubuntu isn't letting me copy it - it's telling me that these are protected folders. Do I have to do this from a command line instead of the graphical interface? Any suggestions are welcome.
Permalink 03/27/08 @ 08:11

Leave a comment:

 
 

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a

Viraj's Weblog

Donate to keep this site going!

Amount USD $

June 2011
Mon Tue Wed Thu Fri Sat Sun
<<  <   >  >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

Search

Categories


Misc

Syndicate this blog XML

What is RSS?

powered by
b2evolution