This page was created in april 2006, last modification November 25, 2006.
Cette page existe aussi en francais.
The laptop's an Asus A6Ja (flavour Q021-H), and has :
To make it short, the laptop is Linux compatible, but it has quite recent components, so many drivers (e.g. network, Xorg, sound) are not directly available from the standard distributions and need special attention.
Originally, the HD has 3 partitions : hda1 (2Gb hidden, is the restoring partition), hda2 (55Gb windows) and hda5 (40Gb, empty). The manual says the recovery CDs won't allow me to re-partition the disk as I'd like. Haven't tried though...
It comes with windows pre-installed. In order to install Linux, I wanted to re-partition the disk... A couple of mistakes later, I had lost all 3 original partitions. Ended up with:
/dev/hda1 10Go /mnt/win_c /dev/hda5 40Go /mnt/win_d /dev/hda6 1Go swap /dev/hda7 10Go /dev/hda8 10Go /dev/hda9 24Go /homeTo reinstall Win XP, simply choose the option "reinstall on the first partition".
To boot on the cdrom, 'escape' is the key. To enter the BIOS, type F2
Booting knoppix lang=fr
(yes i've got a french keyboard) does the job.
Knoppix starts perfectly, finds the dual core (see the dual penguins ;-).
The wide screen's a bit strange (knoppix chose a 1024x768 resolution), Vesa driver. It's sometimes a good idea to copy the file /etc/X11/xorg.conf to a usb key, for a later use with another distro...
The ethernet card is not detected, but the driver can be installed : dowload, compile (./configure, make, make install), 'modconf' to add the module to the running kernel, and 'netcardconfig' to configure it in dhcp.
I'm beginning with Debian ('m more used to Mandrake) so please do not necessarily believe everything that's in this section!!
escape
.
Everything works fine, the default kernel is 2.6-i386,
(one bug, with the iso image downloaded on april 15th: the intaller absolutly wants to reformat the whole disk. I didn't have this problem with the 6th' image)
Important : grub or lilo must be in text mode !! The graphical interfaces hang. I use grub ; here's my menu.lst
At reboot, the X-server starts, in vesa mode (i.e. generic graphics driver) 1024x768. If this is not the case, you can use knoppix's xorg.conf, or mine ... at your own risks ;-).
Now we want to install some packages, if the default installation didn't add them.
aptitude install synaptic
), the graphical packages installerdpkg --install linux-headers-2.6.15-1-686-smp_2.6.15-8_i386.deb
sources.list
, fast server choice, installation via local .deb, etc...).
In my situation (single, direct connection, dhcp), follow the instructions from /usr/share/doc/shorewall-doc/html/standalone.htm
.
The default config files are almost good.
BUG : sometimes, shorewall blocks everything (after 'shorewall clear' and everything is ok): it looks like it comes from the mixing between eth0 and eth1.
Solution : put IP_FORWARDING=On in /etc/shorewall/shorewall.conf, (from /usr/share/doc/shorewall-doc/html/FAQ.htm, FAQ 15).... does not work any better.
Solution 2 : use the graphical network configuration tool (seems ok ?)
[edit November 20, 2006] I now recommend another method.
ATI provides a driver (ati-driver-installer-8.24.8-x86.run). The clean way to use it:/etc/xorg.conf
(just in case !)ati-driver-installer-8.24.8-x86.run --help
ati-driver-installer-8.24.8-x86.run --buildpkg Debian/etch
[edit 20 november 2006]
Afeter an update in September, graphics acceleration stopped working.
I then found out that Flavio Stanchina provides Debian packages.
You need to add the following repositories in /etc/apt/sources.list
:
deb-src http://www.stanchina.net/~flavio/debian-official/ / deb http://www.stanchina.net/~flavio/debian-official/ /
Then , in synaptic, search "fglrx" ; I installed all related packages.
In order to have 3D graphics acceleration, you need to compile the kernel module.
Everything's documented in /usr/share/doc/fglrx-kernel-src/README.Debian.gz
(I chose Flavio's "recommended" method via module-assistant
).
The only problem was that module-assistant
used by default gcc-4.1 as a compiler
(that is, my default gcc),
whereas the kernel was compiled with gcc-4.0 (cf. 1st line of dmesg).
At reboot, fglrx complained (cf. /var/log/Xorg.0.log) with something like "magic number=4.1, instead of 4.0") !
To get round this problem (brute method ... ain't proud of it):
cd /usr/bin rm gcc ln -s gcc-4.0 gcc (module-assistant ... do as in the doc) # reset the original gcc: rm gcc ln -s gcc-4.1 gccNow that I think about it, maybe an
export CC=gcc-4.0
would have been sufficient ?
deb http://download.videolan.org/pub/videolan/debian/ sid main
" in /etc/apt/sources.list)
.bashrc : Change PS1='\u@\h:\w' into PS1='[\u@\h \W]'
emacs : to get the green background, instead of white, as in mandriva, add this to your ~/.Xresources file:
! this is for emacs, xemacs emacs*Background: DarkSlateGray emacs*Foreground: Wheat emacs*pointerColor: Orchid emacs*cursorColor: Orchid emacs*bitmapIcon: on emacs*font: fixed emacs.geometry: 120x40(strange : the machine hangs when i shutdown the X-server, but works perfectly after a reboot)
Other possible solution : use emacs' color-themes (M-x color-theme-chooser).
Add (mwheel-install) to .emacs to have the mouse wheel working in emacs.
.toprc :
Start top, type '1' to have both CPUs appearing,
and maybe 'i' if you like it.
Then type 'W' to write the configuration file ~/.toprc
.