I have a Dell Latitude P-III, with dual boot (ie. windows98 on hda1) run by grub.
I originally installed Gentoo about a year ago because all the guys at VPAC had it and I wanted to be cool too.
Now a year later, and after Steve laughed at me cause my sound still didn't work, I decied to upgrade to Gentoo-2.6.
Of course, like all things gentoo, the process was pretty hands on (But worth it! I know shit now). Without further adeui:
Ok, to update gentoo:
(This probably applies to no-one else in the world:
Also, need to unset http_proxy before emerging stuff
Can do from command line (defined in /etc/profile)
)
This applies from here on:
emerge sync (or emerge --sync - difference??)
Wasn't necessarily using the most recent version of portage, so updated this
automatically
emerge --update portage
Ok, so I couldn't compile ncurses-5.4-r6, there is an internal error in the new version. Can revert to an old one though by putting a line in the file
/etc/portage/package.mask
=sys-libs/ncurses-5.4-r6
This tells portage to ignore version r6, and the put a line in
/etc/portage/package.unmask
which reads
=sys-libs/ncurses-5.4-r4
which seems to work ok.
Seems to be working...
ok, emerged -u portage
Keeps telling me to use newer and newer make.profile files (in /etc)
# rm -f /etc/make.profile
# ln -sf /usr/portage/profiles/default-linux/x86/2005.0 /etc/make.profile
this one is the newer on for gentoo 6, seems to be ok now I updated portage
emerge -u world
Problems with disc space:
can delete stuff in
/var/tmp/portage
after they're installed with no ill effect. Also stuff in
/usr/portage/distfiles
-> this stuff portage will use instead of downloading, but if you're out of discspace it can go.
Bombed when it tried to build libgnomeui. Here is someone else who had the problem, and the solution that worked.
> Hi, all,
>
> I am trying to build Gnome 2.2 on plain redhat 8.0
> from the SRPM's. I have built and installed gtk2-2.2.1.
> When I was build libgnomeui-2.2.0.1, I got err with message
>
> failed to load "./stock_attach.png": Couldn't recognize the image file
> format for file './stock_attach.png'
>
> It turns out that gdk-pixbuf-csource doesn't work on
> any .png file.
>
> /etc/gtk-2.0/gdk-pixbuf.loaders
> is an empty file and
> in directory /usr/lib/gtk-2.0/2.2.0/loaders
> I can see that all the loader libs are installed correctly.
>
> So my question is how to make the correct gdk-pixbuf.loaders
> file for gdk-pixbuf-csource ?
>
> Thanks a lot,
>
> Xiong Jiang
>
> _______________________________________________
> gnome-redhat-list mailing list
> gnome-redhat-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gnome-redhat-list
>
Solution was:
umask 022
/usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
/usr/bin/gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders
Turns out this last command was dive bombing (ie. seg fault) when it reached the svg*.so loader. This is in
/usr/lib/gtk-2.0/2.4.0/loaders/
So I deleted the loaders that weren't working (svg stuff) - probably will be a problem with icons now, but hey, it compiled.
[Update: icons seems ok so far]
Ok, compiling the kernel.
[1]
First I did this (replace the kernel source simlink)
# rm /usr/src/linux
# cd /usr/src
# ln -s linux-2.6.11-gentoo-r3 linux
But then
# cd /usr/src/linux
# make menuconfig
Didn't work, where it did before (think its cause I haven't compiled that kernel yet...).
So I just copied the old config file:
phobos src # cp linux-2.4.20-gentoo-r6/.config linux/.config
cd linux
make oldconfig
-weird config, lots of questions...
The in /usr/src/linux ran
make && make modules_install
Copy image etc to /boot
cp arch/i386/boot/bzImage /boot/linux-2.6.11-gentoo-r11
cp System.map /boot/System.map-2.6.11-gentoo-r11
cp .config /boot/config-2.6.11-gentoo-r11
This will boot up something, but its crap as the keyboard won't work. Heard on gentoo.org "4. Known pitfalls with Linux 2.6 migration" that if you use an old config file (from 2.4) - people have got probs like "no input from keyboard" - hmm, guess I should have read this first. Sort of annoying though as it just recommends using the "traditional menuconfig method just this once." Duh, you pontificating wanker "make menuconfig" wasn't working in the first place which is why I was using make oldconfig in the first place!!! Ok, calm down.
[2]
Went through the gentoo page, turned all the flags on they said in make menuconfig. Same prob.
Incidentally, in the General Setup --->
--- Support for hot-pluggable devices
- I can't select this as its not a box, its a "---". Why is this so? Continuing undaunted....
[3]
Trying
genkernal --udev --menuconfig --bootloader=grub all
(Goes through menuconfig itself - tried to get it right but no idea. Might be its using the old .config file still - might bomb again...).
No, looks ok! Loads up new gentoo-2.6 kernel.
To get the screen to work I had to do the following:
vi /etc/X11/XF86Config
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
EndSection
The 2nd last line "/dev/input/mice" used to be "/dev/mouse" which has been superseded. Now X11 works fine! (though I apparently have an old one: I should be editing an xorg.conf file if this was up to date...).
Ok, so eth0 wasn't working. Do this:
ls /lib/modules/`uname -r`/kernel/drivers/net
This has a list. So the one we want is for 3c905C.
To check this run:
lspci
0000:02:00.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)
and google the name ie. 3c905c - this needs the 3c59x driver.
>modprobe 3c59x
and this adds the driver.
Need to add the module to startup:
vi /etc/modules.autoload.d/kernel-2.6
and add the line
3c59x
ALSA: this is heavily documented on the web. Make sure you've configured ALSA in the make menuconfig stuff (Device Drivers --> Sound --> Advanced Linux... - modulize everything here). Emerge all the alsa stuff:
emerge alsa-lib alsa-driver alsa-oss alsa-utils mpg321
(last one optional... I didn't emerge it again).
Then run:
alsaconf
this is pretty smart,
rc-update add alsasound boot
voila, sound works!
Ok, for the USB mouse...
This was a little odd, it bombed majorly before, but now it loads up ok (?!) - I didn't change anything from last time?! Did the module loading miracoudly sort itself out? Anyways... What I did:
configure the kernel for USB support: check out http://linux.siprell.com/hardware.htm
[There is some advice in the above page about commenting stuff out of /etc/hotplug/usb.rc and /etc/hotplug/usb.handmap - not sure about this, I haven't done it and things are ok...]
Then go to /etc/X11/XF86Config
Add line up top:
InputDevice "USB Mouse" "SendCoreEvents"
Then add section further down in this file:
Section "Input Device"
Identifier "USB Mouse"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "IMPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
Option "Name" "AutoDetected"
Option "Vendor" "Autodetected"
EndSection
Why doesn't the desktop picture load automatically??
Hmm... a few tricks here.
First, just delete all the .gconf .gnome* .gtk* .nautilus stuff from your
home. I also moved all the .xsession and .xscreen* etc to temp/. This forces
gnome to loadup all the new defaults instead of using your old. Seemed to be
most of the prob. Also, you can set a default background (eg.) for all users
by running the command:
gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.defaults -- type string --set
/desktop/gnome/background/picture_filename filename.png
Ok. This is done. Gentoo upgraded. My sounds works and my USB mouse works. Happy days!
-angrycodemonkey