Thursday, 21 February 2008

Gentoo's new kernel, and plans for the weekend

After coming off "on-call" duties for the job I'm doing, I did an update on my PC. The usual mantra is something like:
root@lasek ~ $ emerge --sync && emerge -DNuva --with-bdeps y world

This will trigger off a sync with the world repositories of Gentoo and get you everything that is considered the latest of what is available out there. It will then see what is new compared to your system, and ask if you want to upgrade. Pressing "enter" by itself will trigger that off. After sometime (and hopefully with no errors), it will return to the command prompt. This is where you need to check the dependencies on your system, by issuing:
root@lasek ~ $ etc-update && revdep-rebuild

Now, you need to check your configuration files to see if they need updating. For most configuration files, you just accept the defaults. The only thing you need to look out for is if you have manually changed the configuration file. Then it's an opportunity to merge your customisation into the configuration files installed by the upgrade. Next comes the system as it checks all the dependencies. It may take some time, but sure enough, your systems binaries are now fully aware of their dependencies.

I noticed that a new kernel had been downloaded. The next step I did was to upgrade my kernel. This was done with:
root@lasek ~ $ mount /boot
root@lasek ~ $ cd /usr/src
root@lasek /usr/src $ rm linux
root@lasek /usr/src $ ln -s linux-2.6.23-gentoo-r8 linux
root@lasek /usr/src $ cd
root@lasek /usr/src $ genkernel --menuconfig --kernel-config=/etc/kernels/kernel-config-x86-2.6.23-gentoo-r6 --splash=gentoo all && emerge nvidia-drivers

Wait some more time, and reboot. You'll get this:
evilric@lasek ~ $ uname -a
Linux lasek 2.6.23-gentoo-r8 #1 SMP PREEMPT Thu Feb 21 20:22:05 EST 2008 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux

Not much to actually do, but huge rewards!

Lastly, my plans for the weekend are centred around the computer again. I own the Toshiba P20, and it's been good to me for about 5 years, but it never had a WiFi card. So my idea is to get a WiFi card installed, get it working on the Windows partition, and then spend the rest of the weekend attempting to get it working under Gentoo Linux. I accept all words of advice, and wishes of good luck!

No comments:

Post a Comment