Skip to content

Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop

[this article has been updated several times with new info after it was initially written. last update: 2007-05-08]


New job, new laptop :o)

I picked up my new nx7400 at the post office this morning. In case you'd like to look it up, the exact reference is RH403ET: it's the version with a Core 2 Duo T5600 (2x 1.83GHz) CPU, 1024MB RAM, a 100 GB HD and a WSXGA+ (16801050) 15.4" screen.

When you open the box, the first step you have to go through is to setup the pre-installed XP Pro copy. I did not really want it, but it seems very difficult, if at all possible, to order a laptop without a Windows license. Once XP has been setup, you are "strongly encouraged" to create a set of backup disks. In this case, you'll need either 12 blank CDs or 2 blank DVDs. The setup process also leaves a 9GB-big "recovery partition" on your disk.

It seems that Bios version 08 fixes some bugs with SpeedStep and linux [see link #1], and anyway it's probably a good idea to use the latest stable version, so I went to hp.com, downloaded the latest Bios + flash utility from there and updated.

After having completed this, here is what I've done:

- restarted the computer with sysrescuecd
- used gparted to shrink the XP ntfs partition to 25 GB and move it to the end of the disk
- still with gparted created a new 80 MB primary partition at the beginning of the disk (future /boot)
- created a new extended partition with the remaining space between /boot and XP
- created two logical partitions for swap and / within the extended partition

After that I rebooted on a gentoo 2006.1 amd64 install CD (minimal), and went through a regular gentoo install:

- mount / and /boot in /mnt/gentoo
- download and untar stage3 + portage snapshot
- at this point I left the default CFLAGS="-O2 -pipe" in make.conf, I just added MAKEOPTS="-j3" and filled GENTOO_MIRRORS (march=native or march=core2 seem promising but are not available before gcc 4.2 resp. 4.3)


CPU FREQ

emerge -av cpufrequtils
echo 'echo 1833000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq' >> /etc/conf.d/local.start
echo 'echo 1833000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq' >> /etc/conf.d/local.start
echo 1833000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1833000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
vi /etc/conf.d/cpufrequtils
/etc/init.d/cpufrequtils start
rc-update add cpufrequtils boot


PSMOUSE BUG

- compile psmouse as module
- echo '/sbin/rmmod psmouse' >> /etc/conf.d/local.stop


WLAN

After having installed everything, I restarted my new system, and wanted to add support for the Intel PRO/Wireless 3945ABG card:

echo 'net-wireless/ipw3945' >> /etc/portage/package.unmask
echo 'net-wireless/ipw3945 ~amd64' >> /etc/portage/package.keywords
echo 'net-wireless/ipw3945d ~amd64' >> /etc/portage/package.keywords
echo 'net-wireless/ipw3945-ucode ~amd64' >> /etc/portage/package.keywords

Everything went fine until emerge complained that ipw3945-1.1.3 needed a kernel >= 2.6.19...

So I downloaded the latest stable kernel (2.6.19.2 as of today) from the nearest mirror, reconfigured it based on my 2.6.18 .config (some new options appeared, and some things like SATA have moved between 2.6.18 and 2.6.19, overall the H/W support for my laptop seems to be better)

- reboot on 2.6.19.2
- emerge ipw3945
- echo 'ipw3945' >> /etc/modules.autoload.d/kernel-2.6
- modules-update
- reboot
=> iwconfig eth1 now displays what you'd expect it to


XORG

echo 'VIDEO_CARDS="i810"' >> /etc/make.conf
echo 'INPUT_DEVICES="evdev keyboard mouse synaptics"' >> /etc/make.conf
emerge xorg-x11

there is a problem with the vga bios which does not "advertise" the 1680x1050 mode. here is the workaround:

- echo 'sys-apps/915resolution ~amd64' >> /etc/portage/package.keywords
- emerge -av sys-apps/915resolution
- pick up a mode you don't need from the output of 915resolution -l
- here is what I put in /etc/conf.d/915resolution: replace=( "41 1680 1050 24" )
- /etc/init.d/915resolution start
- rc-update add 915resolution default


ALSA

it looks like there is a problem with the hda-intel driver included in kernel 2.6.19, so I recompiled the kernel without alsa support and emerged alsa-driver:

- echo 'ALSA_CARDS="hda-intel"' >> /etc/make.conf
- echo 'media-sound/alsa-headers ~amd64' >> /etc/portage/package.keywords
- echo 'media-sound/alsa-driver ~amd64' >> /etc/portage/package.keywords
- emerge -av alsa-driver

- emerge alsa-utils
- vi /etc/modules.d/alsa
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-card-0
- modules-update
- rc-update add alsasound boot
- /etc/init.d/alsasound restart


PCMCIA

emerge -av sys-apps/pcmciautils
echo 'pcmcia' >> /etc/modules.autoload.d/kernel-2.6
echo 'yenta-socket' >> /etc/modules.autoload.d/kernel-2.6
modules-update


TEMPERATURE SENSORS

echo 'gnome-extra/sensors-applet hddtemp' >> /etc/portage/package.use
emerge -av gnome-extra/sensors-applet



Links:

[1] http://people.solsys.ro/silviu/2006/11/17/hp-nx7400-linux-problems-solved/
[2] http://psykil.livejournal.com/300856.html
[3] http://psykil.livejournal.com/2006/12/03/
[4] http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html
[5] http://tuxmobil.org/gentoo_mobile.html
[6] http://gentoo-wiki.com/Safe_Cflags
[7] http://devel.reinikainen.net/docs/how-to/nx7400/
[8] http://forums.gentoo.org/viewtopic-t-517019.html
[9] http://emisca.altervista.org/nx7400/
[10] http://ubuntuforums.org/showthread.php?t=345569
  • Twitter
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop
  • Mixx Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop
  • Bloglines Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop
  • Technorati Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop
  • Fark this: Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop at YahooMyWeb
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop at Furl.net
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop at reddit.com
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop at blinklist.com
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop at Spurl.net
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop at NewsVine
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop at Simpy.com
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop at blogmarks
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Creating DVDs with linux

DeVeDe looks really promising:
DeVeDe is a program to create video DVDs and CDs (VCD, sVCD or CVD), suitables for home players, from any number of video files, in any of the formats supported by Mplayer. The big advantage over other utilites is that it only needs Mplayer, Mencoder, DVDAuthor, VCDImager and MKisofs (well, and Python 2.4, PyGTK and PyGlade), so its dependencies are really small.


Because it relies on Python, mplayer and mkisofs I suppose it works on any OS where these tools exist, not only linux.

Although I haven't made a DVD with it yet, I've already contributed a gentoo ebuild for version 2.8...
  • Twitter
  • Bookmark Creating DVDs with linux at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Creating DVDs with linux
  • Mixx Creating DVDs with linux
  • Bloglines Creating DVDs with linux
  • Technorati Creating DVDs with linux
  • Fark this: Creating DVDs with linux
  • Bookmark Creating DVDs with linux at YahooMyWeb
  • Bookmark Creating DVDs with linux at Furl.net
  • Bookmark Creating DVDs with linux at reddit.com
  • Bookmark Creating DVDs with linux at blinklist.com
  • Bookmark Creating DVDs with linux at Spurl.net
  • Bookmark Creating DVDs with linux at NewsVine
  • Bookmark Creating DVDs with linux at Simpy.com
  • Bookmark Creating DVDs with linux at blogmarks
  • Bookmark Creating DVDs with linux with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Samba as Windows Primary Domain Controller (PDC)

Here are some links to the documentation I used to build mine.

General setup:

Roaming profiles + folder redirection:


Update: this article may also be of interest.
  • Twitter
  • Bookmark Samba as Windows Primary Domain Controller (PDC) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Samba as Windows Primary Domain Controller (PDC)
  • Mixx Samba as Windows Primary Domain Controller (PDC)
  • Bloglines Samba as Windows Primary Domain Controller (PDC)
  • Technorati Samba as Windows Primary Domain Controller (PDC)
  • Fark this: Samba as Windows Primary Domain Controller (PDC)
  • Bookmark Samba as Windows Primary Domain Controller (PDC) at YahooMyWeb
  • Bookmark Samba as Windows Primary Domain Controller (PDC) at Furl.net
  • Bookmark Samba as Windows Primary Domain Controller (PDC) at reddit.com
  • Bookmark Samba as Windows Primary Domain Controller (PDC) at blinklist.com
  • Bookmark Samba as Windows Primary Domain Controller (PDC) at Spurl.net
  • Bookmark Samba as Windows Primary Domain Controller (PDC) at NewsVine
  • Bookmark Samba as Windows Primary Domain Controller (PDC) at Simpy.com
  • Bookmark Samba as Windows Primary Domain Controller (PDC) at blogmarks
  • Bookmark Samba as Windows Primary Domain Controller (PDC) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

"SSL plugin" for Psi jabber client on Ubuntu et al.

If you get a "plugin not found" error when trying to enable SSL in Psi, you'll need to install a package called qca-tls.

eg (Ubuntu):
sudo apt-get install qca-tls



UPDATE, 2008-05-12

After switching to Ubuntu 8.04, I had to:
sudo apt-get install libqca2-plugin-ossl
  • Twitter
  • Bookmark "SSL plugin" for Psi jabber client on Ubuntu et al. at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg "SSL plugin" for Psi jabber client on Ubuntu et al.
  • Mixx "SSL plugin" for Psi jabber client on Ubuntu et al.
  • Bloglines "SSL plugin" for Psi jabber client on Ubuntu et al.
  • Technorati "SSL plugin" for Psi jabber client on Ubuntu et al.
  • Fark this: "SSL plugin" for Psi jabber client on Ubuntu et al.
  • Bookmark "SSL plugin" for Psi jabber client on Ubuntu et al. at YahooMyWeb
  • Bookmark "SSL plugin" for Psi jabber client on Ubuntu et al. at Furl.net
  • Bookmark "SSL plugin" for Psi jabber client on Ubuntu et al. at reddit.com
  • Bookmark "SSL plugin" for Psi jabber client on Ubuntu et al. at blinklist.com
  • Bookmark "SSL plugin" for Psi jabber client on Ubuntu et al. at Spurl.net
  • Bookmark "SSL plugin" for Psi jabber client on Ubuntu et al. at NewsVine
  • Bookmark "SSL plugin" for Psi jabber client on Ubuntu et al. at Simpy.com
  • Bookmark "SSL plugin" for Psi jabber client on Ubuntu et al. at blogmarks
  • Bookmark "SSL plugin" for Psi jabber client on Ubuntu et al. with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

How to clone copy-protected audio CDs using linux

(or generally speaking, how to create an exact copy of any multitrack CD)

1. copy the cd to an image file
# cdrdao read-cd --read-raw --device /dev/hdc --driver generic-mmc-raw --datafile cd.bin cd.toc


2. burn the image to a cd
# cdrdao write --speed 64 --device /dev/hdc --driver generic-mmc --eject cd.toc


Using cdrdao ("disk-at-once") is imho the best solution to copy a CD, because you get an exact copy of the whole disk, not just a copy of each track. => This preserves for instance the delay between tracks on an audio CD.
  • Twitter
  • Bookmark How to clone copy-protected audio CDs using linux at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg How to clone copy-protected audio CDs using linux
  • Mixx How to clone copy-protected audio CDs using linux
  • Bloglines How to clone copy-protected audio CDs using linux
  • Technorati How to clone copy-protected audio CDs using linux
  • Fark this: How to clone copy-protected audio CDs using linux
  • Bookmark How to clone copy-protected audio CDs using linux at YahooMyWeb
  • Bookmark How to clone copy-protected audio CDs using linux at Furl.net
  • Bookmark How to clone copy-protected audio CDs using linux at reddit.com
  • Bookmark How to clone copy-protected audio CDs using linux at blinklist.com
  • Bookmark How to clone copy-protected audio CDs using linux at Spurl.net
  • Bookmark How to clone copy-protected audio CDs using linux at NewsVine
  • Bookmark How to clone copy-protected audio CDs using linux at Simpy.com
  • Bookmark How to clone copy-protected audio CDs using linux at blogmarks
  • Bookmark How to clone copy-protected audio CDs using linux with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca
Defined tags for this entry: ,