Installation
1. Current (300805) Debian-testing netinst image booted but failed to see the hard drive.
2. Debian-stable (sarge) netinst booted fine and recognized most things. Selected package sets: Desktop, Fileserver.
- Some useful links:
http://www.linux-on-laptops.com/dell.html
http://www.stud.ntnu.no/~gronslet/blog/linux-on-a-dell-x1-aka-samsung-q30
http://www.lsw.uni-heidelberg.de/users/sbrinkma/debian_on_dell.html
3. Converted to testing/unstable by copying /etc/apt/sources.list and /etc/apt/apt.conf.d/* from lofar10. IMPORTANT:' make sure of second one and set default distro to testing, otherwise many packages will be installed from unstable and that can mess things up!. Then apt-get update and apt-get upgrade.
4. Remove exim4 and Appletalk services since they only slow down the bootup: dpkg -r netatalk exim4
5. Install packages:
# apt-get install joe nedit hdparm autofs
Use this /etc/hdparm.conf: hdparm.conf
Put this in /etc/fstab:
none /tmp tmpfs defaults 0 0
6. Edit /etc/ssh/sshd_config, need to have
X11Forwarding yes
Kernels
7. Updated kernel. 2.6.11 didn't work with network card right. 2.6.8 works, 2.6.12 works (may need to install it from unstable).
apt-get install linux-headers-2.6.12-1-686 linux-doc-2.6.12 linux-source-2.6.12 linux-patch-debian-2.6.12 linux-tree-2.6.12 linux-image-2.6.12-1-686
X11 Config
what did work
apt-get install 855resolution
edited /etc/default/855resolution: mode 5c, 1280, 768, then /etc/init.d/855resolution start
edited /etc/X11/XF86Config-4 adding "1280x768" to list of modes for Depth 24. set screen driver to "i810".
followed instructions here to download latest common, i810 and i915 modules: http://www.stud.ntnu.no/~gronslet/blog/linux-on-a-dell-x1-aka-samsung-q30. Unpacked snapshots are in dylan:/usr/local/src/xf86dri/dripkg, run install.sh to install. DRI doesn't work but at least we have widescreen. DRI is supposed to be fine under the X.org server, should try that. Debian has an xserver-xorg/unstable package but as of 05/09/05 this causes too many dependency problems to be worth the effort.
apt-get install kdm
what didn't work
- As of 05/09/05, this causes massive dependency problems, so I had to go back to XFree86.
apt-get install xserver-xorg # this also removes XFree86
apt-get install 855resolution
edited /etc/default/855resolution: mode 5c, 1280, 768, then /etc/init.d/855resolution start
edited /etc/X11/xorg.conf adding "1280x768" to list of modes for Depth 24.
Wireless
Need to build some kernel modules, so kernel source (as installed above) is required. Also needs gcc-4.0 since kernel seems to be built with that, so:
# apt-get install wireless-tools gcc-4.0 ### from http://ieee80211.sourceforge.net/: ### downloaded ieee80211-1.0.3.tgz # tar zxvf ieee80211-1.0.3.tgz # cd ieee80211-1.0.3 # make CC=gcc-4.0 install ### driver install ### from http://ipw2200.sourceforge.net/ downloaded ipw2200-1.0.6.tgz # ... # cd ipw2200-1.0.6 # make CC=gcc-4.0 install # ... ### now install firmware: from http://ipw2200.sourceforge.net downloaded ipw2200-fw-2.3.tgz # cd /usr/lib/hotplug/firmware # tar zxvf ~/downloads/ipw2200-fw-2.3.tgz # ... # modprobe ipw2200 # # and/or /etc/init.d/hotplug restart
Add this to /etc/network/interfaces for basic config (may need to say eth2 not eth1):
# wireless auto eth1 iface eth1 inet dhcp wireless-essid WAP-ASTRON wireless-key 8FF775DA624C8ABD86C638B1E1
and do ifup eth1.
Now, the wireless seems to fail a lot with messages like:
ipw2200: No space for Tx ipw2200: failed to send SSID command ipw2200: Firmware error detected. Restarting
As suggested on http://ubuntuforums.org/archive/index.php/t-26623.html, I tired turning off HW crypto:
# echo "options ipw2200 hwcrypto=0" > /etc/modprobe.d/ipw2200
So far it seems to have helped, will see.
Roaming wireless etc.
For roaming between wireless networks (i.e. work and home), need to install resolvconf, guessnet and/or waproamd. I couldn't quite get guessnet to work right on boot, but I succeeded with waproamd.
A friggin' pain in the posterior is what it is!!! To make matters worse, the kernel likes to assign eth1 and eth2 "randomly" between the wi/fi interface and the 1394 interface.
# apt-get install guessnet waproamd resolvconf # dpkg-reconfigure waproamd # specify "eth1 eth2" for static interface, "-w" for options
Now, here's a fragment of /etc/network/interfaces (see dylan for definitive version).
# ASTRON wireless iface wifi-astron inet static address 10.87.2.16 netmask 255.255.0.0 gateway 10.87.5.200 dns-search astron.nl dns-nameservers 10.87.1.15 10.87.3.100 wireless-essid WAP-ASTRON wireless-key <key> test wireless essid WAP-ASTRON # home wireless iface wifi-home inet dhcp wireless-essid oms wireless-key s:<key> test wireless essid oms
Now see the following two files on dylan: /etc/waproamd/scripts/essid:oms and essid:WAP-ASTRON. These are scripts that will bring up the wireless interface (fortunately, waproamd passes it in as $IFACE, so we don't care if it's eth1 or eth2) with the appropriate logical config from /etc/network/interfaces above, depending on which essid is detected.
Disabling wireless when ethernet is plugged in
ifplugd can be used to disable/enable wireless when a network cable is plugged in. This is handy when you want both interfaces to use the same IP address. (If addresses are different, then there's no reason not to keep both up always though.)
# apt-get install ifplugd # dpkg-reconfigure ifplugd # specify "eth0" as the interface and defaults for everything else
Now see /etc/ifplugd/action.d/ifupdown-eth0 on dylan. This is a script that ensures that the wireless link is disabled when eth0 is connected, and re-enabled when it is disconnected. (If you're not using waproamd, you can probably just use ifdown/ifup).
ACPI
# apt-get install acpi acpid # dpkg -i dpms_0.1-1_i386.deb # get it from dylan:~root/downloads
Copy /etc/acpi/* from dylan, this seems to work. Closing the lid on battery (but not AC!) power puts it to sleep. To resume, open lid and do some combo of Alt+Ctrl+F1 Alt+Ctrl+F7 and Fn-Up, gets the screen on eventually...
My scripts based on those hosted here: http://www.stud.ntnu.no/~gronslet/blog/linux-on-a-dell-x1-aka-samsung-q30.
Sleep seems to work ok, but I'm not convinced cpu freq switches properly.
Sound
Install ALSA:
# apt-get install alsa-base alsa-utils # alsaconf
KDE may need to be switched to alsa in the sound setup. Also, make sure local users are members of the audio group, otherwise the kde soundserver will not start.
High-pitched sound from speakes
See http://gentoo-wiki.com/HARDWARE_Dell_Latitude_X1#Misc for solutions.
I have put this command into /etc/init.d/Local (this is my own file, added as the equivalent of rc.local, must be symlinked as /etc/rc2.d/S99Local)
echo 2 > /sys/module/processor/parameters/max_cstate
Touchpad
Touchpad support can be greately improved via the synaptics driver (credit to http://www.stud.ntnu.no/~gronslet/blog/linux-on-a-dell-x1-aka-samsung-q30). Do
apt-get install xfree86-driver-synaptics
and see my xorg.conf.
External monitor support
Clone mode works, just press Fn-F8 a few times. For Xinerama, see links, but probably X.org need to be installed.
Setting up Timba & friends
selectively copied /net/lofar9/home/aips++ (used the prod branch).
copied /usr/local/gcc-3.4.3 from lofar9 and symlinked /usr/local0 to /usr/local
- the following packages need to be installed:
autoconf automake1.9 libtool ccache distcc python2.3-numarray{,-ext} libqt3c102-mt python2.3-{dev,qt3,qt3-gl,qtext,sip4-qt3,sip4-dev} libqscintilla4 python-{numarray,numarray-ext,qt-dev,numarray-doc} valgrind blitz++ stl-manual sip4 unzip libqwt-{dev,doc} lapack3-dev refblas3-dev fftw3-dev installing PyQwt:
# cd /usr/local/src # cp -a /net/lofar10/usr/local/src/PyQwt-4.2 . # cd PyQwt-4.2/configure # python configure.py # make && make install
