<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Edovino</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Edovino"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Edovino"/>
	<updated>2026-05-25T16:59:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installation_instructions_for_the_ThinkPad_T60p&amp;diff=25161</id>
		<title>Installation instructions for the ThinkPad T60p</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installation_instructions_for_the_ThinkPad_T60p&amp;diff=25161"/>
		<updated>2006-10-08T08:15:07Z</updated>

		<summary type="html">&lt;p&gt;Edovino: /* Portage Ebuilds */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:T60p]]&lt;br /&gt;
==Installing Ubuntu Dapper==&lt;br /&gt;
&lt;br /&gt;
To get it going:&lt;br /&gt;
&lt;br /&gt;
* Get Dapper i386 (I used the Daily ISO DVD).&lt;br /&gt;
&lt;br /&gt;
* Install the default distribution.&lt;br /&gt;
&lt;br /&gt;
It will work, but you need an SMP kernel, and accelerated and higher resolution graphics, so:&lt;br /&gt;
&lt;br /&gt;
* Install the i686-smp kernel (search for 'linux-kernel' in synaptic).&lt;br /&gt;
&lt;br /&gt;
* Search for fglrx in synaptic, and install the fglrx modules, X driver and ATI control panel.&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/X11/xorg.conf, so each of the &amp;quot;Modeline&amp;quot; entries contains a 1600x1200 resolution as well (or whatever the top resolution of your LCD panel is), and change the driver section as follows:&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;ATI Technologies, Inc. ATI Default Card&amp;quot;&lt;br /&gt;
     Driver &amp;quot;fglrx&amp;quot;               &amp;lt;----- ADD THIS LINE&lt;br /&gt;
     #Driver &amp;quot;vesa&amp;quot;               &amp;lt;---- COMMENT OUT THIS LINE&lt;br /&gt;
     BusID &amp;quot;PCI:1:0:0&amp;quot;&lt;br /&gt;
     ChipID 0x71c5                &amp;lt;----- '''MAYBE''' ADD THIS LINE&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[On my UXGA t60p the ChipID line was actually fatal to getting fglrx to start up (/var/log/Xorg.0.log showed the driver falling back to VESA and fgl_glxgears would crash).  Without that ChipID line my chip was identified as:&lt;br /&gt;
&lt;br /&gt;
 Chipset: &amp;quot;MOBILITY FireGL V5200 (M56 71C4)&amp;quot; (Chipset = 0x71c4)&lt;br /&gt;
&lt;br /&gt;
which appears to correspond exactly to my machine's spec,  and fgl_glxgears worked fine.]&lt;br /&gt;
&lt;br /&gt;
Reboot, and you should be done. Check &amp;quot;cat /proc/cpuinfo&amp;quot; shows two CPUs, and run fgl_glxgears and check you get around 580 frames a second.&lt;br /&gt;
&lt;br /&gt;
I've reported [https://launchpad.net/distros/ubuntu/+bug/46527 bug 46527] on the lack of screen driver detection, so hopefully this will get even easier.&lt;br /&gt;
&lt;br /&gt;
Note you do NOT need to install ATI drivers from the ATI site. The Ubuntu drivers are sufficient.&lt;br /&gt;
&lt;br /&gt;
Thanks to Rich Tango-Lowy (see below) for the hint re chip detection.&lt;br /&gt;
&lt;br /&gt;
==Kubuntu Dapper Live CD==&lt;br /&gt;
&lt;br /&gt;
If you're trying to install from the Kubuntu Desktop CD, you'll never make it to the login screen because the ATI display driver isn't recognized.&lt;br /&gt;
&lt;br /&gt;
* Ctrl-Alt-F1&lt;br /&gt;
* sudo nano /etc/X11/xorg.conf&lt;br /&gt;
* change the display driver line that looks like:&lt;br /&gt;
&lt;br /&gt;
          Driver    &amp;quot;ati&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to &lt;br /&gt;
&lt;br /&gt;
          Driver    &amp;quot;vesa&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[I think I remember that it was &amp;quot;ati&amp;quot;, but I could be wrong.  In any &lt;br /&gt;
case this is very clearly the only Driver line in the ATI device specification section]&lt;br /&gt;
&lt;br /&gt;
* Save and exit&lt;br /&gt;
* sudo /etc/init.d kdm restart&lt;br /&gt;
&lt;br /&gt;
Now you get a login screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Gentoo 2006.0 ==&lt;br /&gt;
&lt;br /&gt;
===Boot from Live CD===&lt;br /&gt;
Upon booting off the live cd you will come to the kernel selection prompt.&lt;br /&gt;
Enter:&lt;br /&gt;
    gentoo doscsi&lt;br /&gt;
I had some trouble getting the wired NIC to be linked to the driver, often getting an error that the EEPROM failed a check.  If this happens, you can try re-inserting the module,&lt;br /&gt;
    &amp;gt;rmmod e1000; modprobe e1000&lt;br /&gt;
or rebooting and trying again.  The wireless card isn't supported by the live cd so you're going to have to stick to wired for now.&lt;br /&gt;
&lt;br /&gt;
===/etc/make.conf Settings===&lt;br /&gt;
The make.conf settings are the first thing you want to setup correctly before you proceed with the rest of the install process. All future updates will depend upon these settings as well. &lt;br /&gt;
 CFLAGS=&amp;quot;-march=prescott -O2 -pipe -msse3 -fomit-frame-pointer&lt;br /&gt;
 VIDEO_CARDS=&amp;quot;fglrx vesa fbdev&amp;quot;&lt;br /&gt;
 INPUT_DEVICES=&amp;quot;keyboard mouse synaptics&amp;quot;&lt;br /&gt;
 FEATURES=&amp;quot;sandbox ccache distlocks autoaddcvs parallel-fetch&amp;quot;&lt;br /&gt;
 MAKEOPTS=&amp;quot;-j3&amp;quot;&lt;br /&gt;
For a more complete discussion of the CFLAGS to use for a Core Duo processor, see [http://forums.gentoo.org/viewtopic-t-448761-highlight-core+duo+prescott.html?sid=97485d7e26a1f77e2bb06fa437a448ff this forum thread]. Some users recommend that the USE variable has the ibm value in it (eg. USE=&amp;quot;ibm&amp;quot;) but the Gentoo website says this is only for Power PC64 systems; I don't think we should use it. If anyone can shed more light on this, please update this section.&lt;br /&gt;
&lt;br /&gt;
===Kernel Settings===&lt;br /&gt;
I was able to get the laptop running from i686 gentoo sources and recommend this to anyone installing Gentoo on their T60p. Alot of graphics support is left out of the kernel since the best graphics performance is with ATI's propietary drivers which you can emerge at the end of the kernel compile.&lt;br /&gt;
====Processor type and features====&lt;br /&gt;
* Turn on Symmetric multi-processing support.&lt;br /&gt;
* Set processor family to Pentium M.&lt;br /&gt;
* Turn off toshiba and dell laptop support.&lt;br /&gt;
* Set timer frequency to 1000 Hz since this is a desktop system.&lt;br /&gt;
* Found on a [http://forum.thinkpads.com/viewtopic.php?t=19031 forum posting] that &amp;quot;Hotpluggable CPU&amp;quot; should be set to get acpi sleep to work.  Go figure...&lt;br /&gt;
&lt;br /&gt;
====Power management options====&lt;br /&gt;
* Turn on all ACPI settings (especially IBM Thinkpad Extras) except ASUS/Medion and Toshiba Laptop Extras.                                               &lt;br /&gt;
* Turn on CPU Frequency scaling.&lt;br /&gt;
** Turn on powersave, userspace, ondemand and conservative governor.&lt;br /&gt;
** Turn off ACPI Processor P-States driver.&lt;br /&gt;
** Turn off all AMD and Cyrix options.&lt;br /&gt;
** Turn on Intel Enhanced SpeedStep and Intel Speedstep on ICH-M chipsets (ioport interface).&lt;br /&gt;
** Turn off Intel SpeedStep on 440BX/ZX/MX chipsets (SMI interface).&lt;br /&gt;
** Turn off Intel Pentium 4 clock modulation, nVidia nForce2 FSB changing and Transmeta LongRun.&lt;br /&gt;
====Bus options====&lt;br /&gt;
* Turn on PCI Express support.&lt;br /&gt;
* Turn on Message Signaled Interupts.&lt;br /&gt;
* Turn on PCCard support and CardBus yenta-compatible bridge support.&lt;br /&gt;
====Networking support====&lt;br /&gt;
* Turn off Generic IEEE 802.11 Networking Stack.&lt;br /&gt;
* Turn on IrDA (infrared) subsystem support and sub-options.&lt;br /&gt;
* Turn on Bluetooth subsystem support and sub-options.&lt;br /&gt;
* Turn off Amateur Radio support (unless you work with actual radios.)&lt;br /&gt;
====Device Drivers====&lt;br /&gt;
* Turn off Memory Technology Devices.&lt;br /&gt;
* Turn off parallel port support.&lt;br /&gt;
* Turn on SCSI device support.  In &amp;quot;low-level device drivers&amp;quot;, chose the Serial ATA (SATA) support.  Build it as a part of the kernel, and not as a kernel module.&lt;br /&gt;
* Turn off Fusion MPT device support.&lt;br /&gt;
* Turn on IEEE 1394 (FireWire) support.&lt;br /&gt;
* Turn on Network device support.&lt;br /&gt;
** Turn off all options in all categories under Network device support except the stated ones below.&lt;br /&gt;
** Turn on Intel(R) PRO/1000 Gigabit Ethernet support under Ethernet (1000 Mbit).&lt;br /&gt;
** Turn on Wireless LAN drivers (non-hamradio) &amp;amp; Wireless Extensions and none of the sub-options underneath.&lt;br /&gt;
** Most people do not need Fibre channel, ATM, WAN or PPP/SLIP support (if you do then turn it on. PPP is needed for GPRS/UMTS connectivity)&lt;br /&gt;
* Character device options...&lt;br /&gt;
** Turn off Parallel printer support.&lt;br /&gt;
** Turn on Intel/AMD/VIA HW Random Number Generator support.&lt;br /&gt;
** Turn on /dev/nvram support.&lt;br /&gt;
** Turn off /dev/agpgart (AGP Support).&lt;br /&gt;
** Turn off Direct Rendering Manager.&lt;br /&gt;
** Support for the [[Embedded_Security_Subsystem|Fritz Chip]] is located in &amp;quot;TPM Devices&amp;quot;.&lt;br /&gt;
* Turn off all Graphics support options except the stated ones below,&lt;br /&gt;
** Turn on VESA VGA graphics support and set VESA driver type to vesafb.&lt;br /&gt;
** Turn on Enable firmware EDID and Enable Video Mode Handling Helpers.&lt;br /&gt;
** Turn on Support for the framebuffer splash.&lt;br /&gt;
* '''IMPORTANT:''' Turn off all Wireless device support under USB support -&amp;gt; USB Network Adapters or you will tear your hair out trying to get wireless.&lt;br /&gt;
* Turn on Sound card support.&lt;br /&gt;
** Turn on Advanced Linux Sound Architecture.&lt;br /&gt;
** Turn off all ISA, PCI, USB, generic and PCMCIA device options the stated on below.&lt;br /&gt;
** Turn on Intel HD Audio under PCI devices.&lt;br /&gt;
* Turn off all MMC/SD Card support options.&lt;br /&gt;
* Turn off LED devices.&lt;br /&gt;
* Cryptographic options... (needed for the wireless card ipw9345)&lt;br /&gt;
** Turn on AES chiphers&lt;br /&gt;
** Turn on Michael MIC keyed digest algorithm&lt;br /&gt;
&lt;br /&gt;
That should do it. (I know, that's it.)&lt;br /&gt;
That should make sure that you have all the drivers necessary to boot the system and be able to use all your hardware (almost).&lt;br /&gt;
&lt;br /&gt;
===Portage Ebuilds===&lt;br /&gt;
&lt;br /&gt;
Always make sure you run this command before going any further so you can get the latest portage build and version...&lt;br /&gt;
 emerge --sync &amp;amp;&amp;amp; emerge portage&lt;br /&gt;
&lt;br /&gt;
Since September 24 2006 I was able to make the latest ati-drivers work on the T60p without adding any lines to the unmask file (/etc/portage/package.unmask) under the gentoo-sources kernel. You should be able to run...&lt;br /&gt;
 emerge ati-drivers&lt;br /&gt;
...without any problems.&lt;br /&gt;
&lt;br /&gt;
Don't forget to emerge all the Thinkpad software as well...&lt;br /&gt;
 emerge tpb tp_smapi tpctl&lt;br /&gt;
&lt;br /&gt;
Then you can start to setup the wireless in this order at the command line...&lt;br /&gt;
 /bin/sh /usr/portage/net-wireless/ieee80211/files/remove-old /usr/src/linux&lt;br /&gt;
 emerge ieee80211 ipw3945 ipw3945d wireless-tools&lt;br /&gt;
&lt;br /&gt;
For some reason the wireless driver consists of two parts: the module itself, ipw3949.ko, and some sort of support daemon, ipw3945d. The ebuild updates the modules.conf file to automatically stop and start this deamon when the module is loaded or unloaded, respectively. Check if the following lines are present in /etc/modules.conf (or actually, in /etc/modules.d/ipw3945d - /etc/modules.conf is built from the separate files in /etc/modules.d when you run /sbin/modules-update)&lt;br /&gt;
&lt;br /&gt;
 install ipw3945 /sbin/modprobe --ignore-install ipw3945; sleep 0.5; /sbin/ipw3945d --quiet&lt;br /&gt;
 remove ipw3945 /sbin/ipw3945d --kill; /sbin/modprobe -r --ignore-remove ipw3945&lt;br /&gt;
&lt;br /&gt;
In other words, to load the module, and start the daemon, do&lt;br /&gt;
&lt;br /&gt;
  modprobe ipw3945&lt;br /&gt;
&lt;br /&gt;
To remove the module, and kill the daemon, enter&lt;br /&gt;
&lt;br /&gt;
  modprobe -r ipw3945&lt;br /&gt;
&lt;br /&gt;
'''Note''': rmmod does '''not''' work - it doesn't use /etc/modprobe.conf, and therefore doesn't kill the daemon: while the daemon is running, you cannot unload the module. (You'll get an errormessage saying the module is in use).&lt;br /&gt;
&lt;br /&gt;
If for some reason you need to kill the module manually, use &lt;br /&gt;
&lt;br /&gt;
  /sbin/ipw3945d --kill&lt;br /&gt;
&lt;br /&gt;
Ofcourse the normal 'kill' command also works, but you'll have to remove the pid file /var/run/ipw3945d.pid by hand.&lt;br /&gt;
&lt;br /&gt;
===xorg.conf Settings===&lt;br /&gt;
&lt;br /&gt;
A piece of code is worth a thousand words; here is my xorg.conf that works at 3000-5000 FPS so far. I am still trying to find better parameters, but this is the best I got it to run so far. I intentionally left out the InputDevice section since I disabled my Synaptics pad (I like the center joystick better.) Just modify your xorg.conf sections with what is shown below.&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Module&amp;quot;&lt;br /&gt;
        Load  &amp;quot;dbe&amp;quot;     # Double buffer extension&lt;br /&gt;
        SubSection &amp;quot;extmod&amp;quot;&lt;br /&gt;
        Option      &amp;quot;omit xfree86-dga&amp;quot;   # don't initialise the DGA extension&lt;br /&gt;
        EndSubSection&lt;br /&gt;
        Load  &amp;quot;freetype&amp;quot;&lt;br /&gt;
        Load  &amp;quot;dri&amp;quot;&lt;br /&gt;
        Load  &amp;quot;glx&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
        Identifier  &amp;quot;VideoCard&amp;quot;&lt;br /&gt;
        Driver      &amp;quot;fglrx&amp;quot;&lt;br /&gt;
        VendorName  &amp;quot;ati&amp;quot;&lt;br /&gt;
        BusID       &amp;quot;PCI:1:0:0&amp;quot;&lt;br /&gt;
        Option      &amp;quot;VideoOverlay&amp;quot; &amp;quot;off&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;dri&amp;quot;&lt;br /&gt;
        Group &amp;quot;video&amp;quot;&lt;br /&gt;
        Mode 0666&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Extensions&amp;quot;&lt;br /&gt;
        Option &amp;quot;XVideo&amp;quot; &amp;quot;Enable&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Screen&amp;quot;&lt;br /&gt;
        Identifier &amp;quot;Screen&amp;quot;&lt;br /&gt;
        Device     &amp;quot;VideoCard&amp;quot;&lt;br /&gt;
        Monitor    &amp;quot;Monitor&amp;quot;&lt;br /&gt;
        DefaultDepth     24&lt;br /&gt;
        SubSection &amp;quot;Display&amp;quot;&lt;br /&gt;
                Viewport  0 0&lt;br /&gt;
                Depth     24&lt;br /&gt;
                Modes    &amp;quot;1280x1024&amp;quot; &amp;quot;1024x768&amp;quot; &amp;quot;800x600&amp;quot; &amp;quot;640x480&amp;quot;&lt;br /&gt;
        EndSubSection&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
Make sure you assign your username to the video group in the /etc/group file or you will net get DRI (Direct Rendering) support. When debugging your running X windows system, always check /var/log/Xorg.0.log for any errors or hints at what may be configured incorrectly. This is how I was able to get so far with the graphics.&lt;br /&gt;
&lt;br /&gt;
==External Sources==&lt;br /&gt;
*[http://arscognita.com/~richtl/T60p/index.html Rich Tango-Lowy's Mandriva 2007 Cooker on T60p page]&lt;br /&gt;
*[http://buzzy.tesuji.org/thinkpad_t60p.html Jon Lin's Gentoo Thinkpad T60p]&lt;/div&gt;</summary>
		<author><name>Edovino</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installation_instructions_for_the_ThinkPad_T60p&amp;diff=25160</id>
		<title>Installation instructions for the ThinkPad T60p</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installation_instructions_for_the_ThinkPad_T60p&amp;diff=25160"/>
		<updated>2006-10-08T08:07:33Z</updated>

		<summary type="html">&lt;p&gt;Edovino: stopping / starting wireless&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:T60p]]&lt;br /&gt;
==Installing Ubuntu Dapper==&lt;br /&gt;
&lt;br /&gt;
To get it going:&lt;br /&gt;
&lt;br /&gt;
* Get Dapper i386 (I used the Daily ISO DVD).&lt;br /&gt;
&lt;br /&gt;
* Install the default distribution.&lt;br /&gt;
&lt;br /&gt;
It will work, but you need an SMP kernel, and accelerated and higher resolution graphics, so:&lt;br /&gt;
&lt;br /&gt;
* Install the i686-smp kernel (search for 'linux-kernel' in synaptic).&lt;br /&gt;
&lt;br /&gt;
* Search for fglrx in synaptic, and install the fglrx modules, X driver and ATI control panel.&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/X11/xorg.conf, so each of the &amp;quot;Modeline&amp;quot; entries contains a 1600x1200 resolution as well (or whatever the top resolution of your LCD panel is), and change the driver section as follows:&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;ATI Technologies, Inc. ATI Default Card&amp;quot;&lt;br /&gt;
     Driver &amp;quot;fglrx&amp;quot;               &amp;lt;----- ADD THIS LINE&lt;br /&gt;
     #Driver &amp;quot;vesa&amp;quot;               &amp;lt;---- COMMENT OUT THIS LINE&lt;br /&gt;
     BusID &amp;quot;PCI:1:0:0&amp;quot;&lt;br /&gt;
     ChipID 0x71c5                &amp;lt;----- '''MAYBE''' ADD THIS LINE&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[On my UXGA t60p the ChipID line was actually fatal to getting fglrx to start up (/var/log/Xorg.0.log showed the driver falling back to VESA and fgl_glxgears would crash).  Without that ChipID line my chip was identified as:&lt;br /&gt;
&lt;br /&gt;
 Chipset: &amp;quot;MOBILITY FireGL V5200 (M56 71C4)&amp;quot; (Chipset = 0x71c4)&lt;br /&gt;
&lt;br /&gt;
which appears to correspond exactly to my machine's spec,  and fgl_glxgears worked fine.]&lt;br /&gt;
&lt;br /&gt;
Reboot, and you should be done. Check &amp;quot;cat /proc/cpuinfo&amp;quot; shows two CPUs, and run fgl_glxgears and check you get around 580 frames a second.&lt;br /&gt;
&lt;br /&gt;
I've reported [https://launchpad.net/distros/ubuntu/+bug/46527 bug 46527] on the lack of screen driver detection, so hopefully this will get even easier.&lt;br /&gt;
&lt;br /&gt;
Note you do NOT need to install ATI drivers from the ATI site. The Ubuntu drivers are sufficient.&lt;br /&gt;
&lt;br /&gt;
Thanks to Rich Tango-Lowy (see below) for the hint re chip detection.&lt;br /&gt;
&lt;br /&gt;
==Kubuntu Dapper Live CD==&lt;br /&gt;
&lt;br /&gt;
If you're trying to install from the Kubuntu Desktop CD, you'll never make it to the login screen because the ATI display driver isn't recognized.&lt;br /&gt;
&lt;br /&gt;
* Ctrl-Alt-F1&lt;br /&gt;
* sudo nano /etc/X11/xorg.conf&lt;br /&gt;
* change the display driver line that looks like:&lt;br /&gt;
&lt;br /&gt;
          Driver    &amp;quot;ati&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to &lt;br /&gt;
&lt;br /&gt;
          Driver    &amp;quot;vesa&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[I think I remember that it was &amp;quot;ati&amp;quot;, but I could be wrong.  In any &lt;br /&gt;
case this is very clearly the only Driver line in the ATI device specification section]&lt;br /&gt;
&lt;br /&gt;
* Save and exit&lt;br /&gt;
* sudo /etc/init.d kdm restart&lt;br /&gt;
&lt;br /&gt;
Now you get a login screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Gentoo 2006.0 ==&lt;br /&gt;
&lt;br /&gt;
===Boot from Live CD===&lt;br /&gt;
Upon booting off the live cd you will come to the kernel selection prompt.&lt;br /&gt;
Enter:&lt;br /&gt;
    gentoo doscsi&lt;br /&gt;
I had some trouble getting the wired NIC to be linked to the driver, often getting an error that the EEPROM failed a check.  If this happens, you can try re-inserting the module,&lt;br /&gt;
    &amp;gt;rmmod e1000; modprobe e1000&lt;br /&gt;
or rebooting and trying again.  The wireless card isn't supported by the live cd so you're going to have to stick to wired for now.&lt;br /&gt;
&lt;br /&gt;
===/etc/make.conf Settings===&lt;br /&gt;
The make.conf settings are the first thing you want to setup correctly before you proceed with the rest of the install process. All future updates will depend upon these settings as well. &lt;br /&gt;
 CFLAGS=&amp;quot;-march=prescott -O2 -pipe -msse3 -fomit-frame-pointer&lt;br /&gt;
 VIDEO_CARDS=&amp;quot;fglrx vesa fbdev&amp;quot;&lt;br /&gt;
 INPUT_DEVICES=&amp;quot;keyboard mouse synaptics&amp;quot;&lt;br /&gt;
 FEATURES=&amp;quot;sandbox ccache distlocks autoaddcvs parallel-fetch&amp;quot;&lt;br /&gt;
 MAKEOPTS=&amp;quot;-j3&amp;quot;&lt;br /&gt;
For a more complete discussion of the CFLAGS to use for a Core Duo processor, see [http://forums.gentoo.org/viewtopic-t-448761-highlight-core+duo+prescott.html?sid=97485d7e26a1f77e2bb06fa437a448ff this forum thread]. Some users recommend that the USE variable has the ibm value in it (eg. USE=&amp;quot;ibm&amp;quot;) but the Gentoo website says this is only for Power PC64 systems; I don't think we should use it. If anyone can shed more light on this, please update this section.&lt;br /&gt;
&lt;br /&gt;
===Kernel Settings===&lt;br /&gt;
I was able to get the laptop running from i686 gentoo sources and recommend this to anyone installing Gentoo on their T60p. Alot of graphics support is left out of the kernel since the best graphics performance is with ATI's propietary drivers which you can emerge at the end of the kernel compile.&lt;br /&gt;
====Processor type and features====&lt;br /&gt;
* Turn on Symmetric multi-processing support.&lt;br /&gt;
* Set processor family to Pentium M.&lt;br /&gt;
* Turn off toshiba and dell laptop support.&lt;br /&gt;
* Set timer frequency to 1000 Hz since this is a desktop system.&lt;br /&gt;
* Found on a [http://forum.thinkpads.com/viewtopic.php?t=19031 forum posting] that &amp;quot;Hotpluggable CPU&amp;quot; should be set to get acpi sleep to work.  Go figure...&lt;br /&gt;
&lt;br /&gt;
====Power management options====&lt;br /&gt;
* Turn on all ACPI settings (especially IBM Thinkpad Extras) except ASUS/Medion and Toshiba Laptop Extras.                                               &lt;br /&gt;
* Turn on CPU Frequency scaling.&lt;br /&gt;
** Turn on powersave, userspace, ondemand and conservative governor.&lt;br /&gt;
** Turn off ACPI Processor P-States driver.&lt;br /&gt;
** Turn off all AMD and Cyrix options.&lt;br /&gt;
** Turn on Intel Enhanced SpeedStep and Intel Speedstep on ICH-M chipsets (ioport interface).&lt;br /&gt;
** Turn off Intel SpeedStep on 440BX/ZX/MX chipsets (SMI interface).&lt;br /&gt;
** Turn off Intel Pentium 4 clock modulation, nVidia nForce2 FSB changing and Transmeta LongRun.&lt;br /&gt;
====Bus options====&lt;br /&gt;
* Turn on PCI Express support.&lt;br /&gt;
* Turn on Message Signaled Interupts.&lt;br /&gt;
* Turn on PCCard support and CardBus yenta-compatible bridge support.&lt;br /&gt;
====Networking support====&lt;br /&gt;
* Turn off Generic IEEE 802.11 Networking Stack.&lt;br /&gt;
* Turn on IrDA (infrared) subsystem support and sub-options.&lt;br /&gt;
* Turn on Bluetooth subsystem support and sub-options.&lt;br /&gt;
* Turn off Amateur Radio support (unless you work with actual radios.)&lt;br /&gt;
====Device Drivers====&lt;br /&gt;
* Turn off Memory Technology Devices.&lt;br /&gt;
* Turn off parallel port support.&lt;br /&gt;
* Turn on SCSI device support.  In &amp;quot;low-level device drivers&amp;quot;, chose the Serial ATA (SATA) support.  Build it as a part of the kernel, and not as a kernel module.&lt;br /&gt;
* Turn off Fusion MPT device support.&lt;br /&gt;
* Turn on IEEE 1394 (FireWire) support.&lt;br /&gt;
* Turn on Network device support.&lt;br /&gt;
** Turn off all options in all categories under Network device support except the stated ones below.&lt;br /&gt;
** Turn on Intel(R) PRO/1000 Gigabit Ethernet support under Ethernet (1000 Mbit).&lt;br /&gt;
** Turn on Wireless LAN drivers (non-hamradio) &amp;amp; Wireless Extensions and none of the sub-options underneath.&lt;br /&gt;
** Most people do not need Fibre channel, ATM, WAN or PPP/SLIP support (if you do then turn it on. PPP is needed for GPRS/UMTS connectivity)&lt;br /&gt;
* Character device options...&lt;br /&gt;
** Turn off Parallel printer support.&lt;br /&gt;
** Turn on Intel/AMD/VIA HW Random Number Generator support.&lt;br /&gt;
** Turn on /dev/nvram support.&lt;br /&gt;
** Turn off /dev/agpgart (AGP Support).&lt;br /&gt;
** Turn off Direct Rendering Manager.&lt;br /&gt;
** Support for the [[Embedded_Security_Subsystem|Fritz Chip]] is located in &amp;quot;TPM Devices&amp;quot;.&lt;br /&gt;
* Turn off all Graphics support options except the stated ones below,&lt;br /&gt;
** Turn on VESA VGA graphics support and set VESA driver type to vesafb.&lt;br /&gt;
** Turn on Enable firmware EDID and Enable Video Mode Handling Helpers.&lt;br /&gt;
** Turn on Support for the framebuffer splash.&lt;br /&gt;
* '''IMPORTANT:''' Turn off all Wireless device support under USB support -&amp;gt; USB Network Adapters or you will tear your hair out trying to get wireless.&lt;br /&gt;
* Turn on Sound card support.&lt;br /&gt;
** Turn on Advanced Linux Sound Architecture.&lt;br /&gt;
** Turn off all ISA, PCI, USB, generic and PCMCIA device options the stated on below.&lt;br /&gt;
** Turn on Intel HD Audio under PCI devices.&lt;br /&gt;
* Turn off all MMC/SD Card support options.&lt;br /&gt;
* Turn off LED devices.&lt;br /&gt;
* Cryptographic options... (needed for the wireless card ipw9345)&lt;br /&gt;
** Turn on AES chiphers&lt;br /&gt;
** Turn on Michael MIC keyed digest algorithm&lt;br /&gt;
&lt;br /&gt;
That should do it. (I know, that's it.)&lt;br /&gt;
That should make sure that you have all the drivers necessary to boot the system and be able to use all your hardware (almost).&lt;br /&gt;
&lt;br /&gt;
===Portage Ebuilds===&lt;br /&gt;
&lt;br /&gt;
Always make sure you run this command before going any further so you can get the latest portage build and version...&lt;br /&gt;
 emerge --sync &amp;amp;&amp;amp; emerge portage&lt;br /&gt;
&lt;br /&gt;
Since September 24 2006 I was able to make the latest ati-drivers work on the T60p without adding any lines to the unmask file (/etc/portage/package.unmask) under the gentoo-sources kernel. You should be able to run...&lt;br /&gt;
 emerge ati-drivers&lt;br /&gt;
...without any problems.&lt;br /&gt;
&lt;br /&gt;
Don't forget to emerge all the Thinkpad software as well...&lt;br /&gt;
 emerge tpb tp_smapii tpctl&lt;br /&gt;
&lt;br /&gt;
Then you can start to setup the wireless in this order at the command line...&lt;br /&gt;
 /bin/sh /usr/portage/net-wireless/ieee80211/files/remove-old /usr/src/linux&lt;br /&gt;
 emerge ieee80211 ipw3945 ipw3945d wireless-tools&lt;br /&gt;
&lt;br /&gt;
For some reason the wireless driver consists of two parts: the module itself, ipw3949.ko, and some sort of support daemon, ipw3945d. The ebuild updates the modules.conf file to automatically stop and start this deamon when the module is loaded or unloaded, respectively.&lt;br /&gt;
&lt;br /&gt;
 install ipw3945 /sbin/modprobe --ignore-install ipw3945; sleep 0.5; /sbin/ipw3945d --quiet&lt;br /&gt;
 remove ipw3945 /sbin/ipw3945d --kill; /sbin/modprobe -r --ignore-remove ipw3945&lt;br /&gt;
&lt;br /&gt;
In other words, to load the module, and start the deamon, do&lt;br /&gt;
&lt;br /&gt;
  modprobe ipw3945&lt;br /&gt;
&lt;br /&gt;
To remove the module, and kill the daemon, enter&lt;br /&gt;
&lt;br /&gt;
  modprobe -r ipw3945&lt;br /&gt;
&lt;br /&gt;
'''Note''' rmmod does '''not''' work - that won't execute the line from modprobe.conf, and doesn't kill the deamon. While the daemon is running, you cannot unload the module. (You'll get an errormessage saying the module is in use)&lt;br /&gt;
If for some reason you need to kill the module manually, use &lt;br /&gt;
&lt;br /&gt;
  /sbin/ipw3945d --kill&lt;br /&gt;
&lt;br /&gt;
===xorg.conf Settings===&lt;br /&gt;
&lt;br /&gt;
A piece of code is worth a thousand words; here is my xorg.conf that works at 3000-5000 FPS so far. I am still trying to find better parameters, but this is the best I got it to run so far. I intentionally left out the InputDevice section since I disabled my Synaptics pad (I like the center joystick better.) Just modify your xorg.conf sections with what is shown below.&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Module&amp;quot;&lt;br /&gt;
        Load  &amp;quot;dbe&amp;quot;     # Double buffer extension&lt;br /&gt;
        SubSection &amp;quot;extmod&amp;quot;&lt;br /&gt;
        Option      &amp;quot;omit xfree86-dga&amp;quot;   # don't initialise the DGA extension&lt;br /&gt;
        EndSubSection&lt;br /&gt;
        Load  &amp;quot;freetype&amp;quot;&lt;br /&gt;
        Load  &amp;quot;dri&amp;quot;&lt;br /&gt;
        Load  &amp;quot;glx&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
        Identifier  &amp;quot;VideoCard&amp;quot;&lt;br /&gt;
        Driver      &amp;quot;fglrx&amp;quot;&lt;br /&gt;
        VendorName  &amp;quot;ati&amp;quot;&lt;br /&gt;
        BusID       &amp;quot;PCI:1:0:0&amp;quot;&lt;br /&gt;
        Option      &amp;quot;VideoOverlay&amp;quot; &amp;quot;off&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;dri&amp;quot;&lt;br /&gt;
        Group &amp;quot;video&amp;quot;&lt;br /&gt;
        Mode 0666&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Extensions&amp;quot;&lt;br /&gt;
        Option &amp;quot;XVideo&amp;quot; &amp;quot;Enable&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Screen&amp;quot;&lt;br /&gt;
        Identifier &amp;quot;Screen&amp;quot;&lt;br /&gt;
        Device     &amp;quot;VideoCard&amp;quot;&lt;br /&gt;
        Monitor    &amp;quot;Monitor&amp;quot;&lt;br /&gt;
        DefaultDepth     24&lt;br /&gt;
        SubSection &amp;quot;Display&amp;quot;&lt;br /&gt;
                Viewport  0 0&lt;br /&gt;
                Depth     24&lt;br /&gt;
                Modes    &amp;quot;1280x1024&amp;quot; &amp;quot;1024x768&amp;quot; &amp;quot;800x600&amp;quot; &amp;quot;640x480&amp;quot;&lt;br /&gt;
        EndSubSection&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
Make sure you assign your username to the video group in the /etc/group file or you will net get DRI (Direct Rendering) support. When debugging your running X windows system, always check /var/log/Xorg.0.log for any errors or hints at what may be configured incorrectly. This is how I was able to get so far with the graphics.&lt;br /&gt;
&lt;br /&gt;
==External Sources==&lt;br /&gt;
*[http://arscognita.com/~richtl/T60p/index.html Rich Tango-Lowy's Mandriva 2007 Cooker on T60p page]&lt;br /&gt;
*[http://buzzy.tesuji.org/thinkpad_t60p.html Jon Lin's Gentoo Thinkpad T60p]&lt;/div&gt;</summary>
		<author><name>Edovino</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installation_instructions_for_the_ThinkPad_T60p&amp;diff=25159</id>
		<title>Installation instructions for the ThinkPad T60p</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installation_instructions_for_the_ThinkPad_T60p&amp;diff=25159"/>
		<updated>2006-10-08T08:06:55Z</updated>

		<summary type="html">&lt;p&gt;Edovino: /* Portage Ebuilds */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:T60p]]&lt;br /&gt;
==Installing Ubuntu Dapper==&lt;br /&gt;
&lt;br /&gt;
To get it going:&lt;br /&gt;
&lt;br /&gt;
* Get Dapper i386 (I used the Daily ISO DVD).&lt;br /&gt;
&lt;br /&gt;
* Install the default distribution.&lt;br /&gt;
&lt;br /&gt;
It will work, but you need an SMP kernel, and accelerated and higher resolution graphics, so:&lt;br /&gt;
&lt;br /&gt;
* Install the i686-smp kernel (search for 'linux-kernel' in synaptic).&lt;br /&gt;
&lt;br /&gt;
* Search for fglrx in synaptic, and install the fglrx modules, X driver and ATI control panel.&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/X11/xorg.conf, so each of the &amp;quot;Modeline&amp;quot; entries contains a 1600x1200 resolution as well (or whatever the top resolution of your LCD panel is), and change the driver section as follows:&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;ATI Technologies, Inc. ATI Default Card&amp;quot;&lt;br /&gt;
     Driver &amp;quot;fglrx&amp;quot;               &amp;lt;----- ADD THIS LINE&lt;br /&gt;
     #Driver &amp;quot;vesa&amp;quot;               &amp;lt;---- COMMENT OUT THIS LINE&lt;br /&gt;
     BusID &amp;quot;PCI:1:0:0&amp;quot;&lt;br /&gt;
     ChipID 0x71c5                &amp;lt;----- '''MAYBE''' ADD THIS LINE&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[On my UXGA t60p the ChipID line was actually fatal to getting fglrx to start up (/var/log/Xorg.0.log showed the driver falling back to VESA and fgl_glxgears would crash).  Without that ChipID line my chip was identified as:&lt;br /&gt;
&lt;br /&gt;
 Chipset: &amp;quot;MOBILITY FireGL V5200 (M56 71C4)&amp;quot; (Chipset = 0x71c4)&lt;br /&gt;
&lt;br /&gt;
which appears to correspond exactly to my machine's spec,  and fgl_glxgears worked fine.]&lt;br /&gt;
&lt;br /&gt;
Reboot, and you should be done. Check &amp;quot;cat /proc/cpuinfo&amp;quot; shows two CPUs, and run fgl_glxgears and check you get around 580 frames a second.&lt;br /&gt;
&lt;br /&gt;
I've reported [https://launchpad.net/distros/ubuntu/+bug/46527 bug 46527] on the lack of screen driver detection, so hopefully this will get even easier.&lt;br /&gt;
&lt;br /&gt;
Note you do NOT need to install ATI drivers from the ATI site. The Ubuntu drivers are sufficient.&lt;br /&gt;
&lt;br /&gt;
Thanks to Rich Tango-Lowy (see below) for the hint re chip detection.&lt;br /&gt;
&lt;br /&gt;
==Kubuntu Dapper Live CD==&lt;br /&gt;
&lt;br /&gt;
If you're trying to install from the Kubuntu Desktop CD, you'll never make it to the login screen because the ATI display driver isn't recognized.&lt;br /&gt;
&lt;br /&gt;
* Ctrl-Alt-F1&lt;br /&gt;
* sudo nano /etc/X11/xorg.conf&lt;br /&gt;
* change the display driver line that looks like:&lt;br /&gt;
&lt;br /&gt;
          Driver    &amp;quot;ati&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to &lt;br /&gt;
&lt;br /&gt;
          Driver    &amp;quot;vesa&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[I think I remember that it was &amp;quot;ati&amp;quot;, but I could be wrong.  In any &lt;br /&gt;
case this is very clearly the only Driver line in the ATI device specification section]&lt;br /&gt;
&lt;br /&gt;
* Save and exit&lt;br /&gt;
* sudo /etc/init.d kdm restart&lt;br /&gt;
&lt;br /&gt;
Now you get a login screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Gentoo 2006.0 ==&lt;br /&gt;
&lt;br /&gt;
===Boot from Live CD===&lt;br /&gt;
Upon booting off the live cd you will come to the kernel selection prompt.&lt;br /&gt;
Enter:&lt;br /&gt;
    gentoo doscsi&lt;br /&gt;
I had some trouble getting the wired NIC to be linked to the driver, often getting an error that the EEPROM failed a check.  If this happens, you can try re-inserting the module,&lt;br /&gt;
    &amp;gt;rmmod e1000; modprobe e1000&lt;br /&gt;
or rebooting and trying again.  The wireless card isn't supported by the live cd so you're going to have to stick to wired for now.&lt;br /&gt;
&lt;br /&gt;
===/etc/make.conf Settings===&lt;br /&gt;
The make.conf settings are the first thing you want to setup correctly before you proceed with the rest of the install process. All future updates will depend upon these settings as well. &lt;br /&gt;
 CFLAGS=&amp;quot;-march=prescott -O2 -pipe -msse3 -fomit-frame-pointer&lt;br /&gt;
 VIDEO_CARDS=&amp;quot;fglrx vesa fbdev&amp;quot;&lt;br /&gt;
 INPUT_DEVICES=&amp;quot;keyboard mouse synaptics&amp;quot;&lt;br /&gt;
 FEATURES=&amp;quot;sandbox ccache distlocks autoaddcvs parallel-fetch&amp;quot;&lt;br /&gt;
 MAKEOPTS=&amp;quot;-j3&amp;quot;&lt;br /&gt;
For a more complete discussion of the CFLAGS to use for a Core Duo processor, see [http://forums.gentoo.org/viewtopic-t-448761-highlight-core+duo+prescott.html?sid=97485d7e26a1f77e2bb06fa437a448ff this forum thread]. Some users recommend that the USE variable has the ibm value in it (eg. USE=&amp;quot;ibm&amp;quot;) but the Gentoo website says this is only for Power PC64 systems; I don't think we should use it. If anyone can shed more light on this, please update this section.&lt;br /&gt;
&lt;br /&gt;
===Kernel Settings===&lt;br /&gt;
I was able to get the laptop running from i686 gentoo sources and recommend this to anyone installing Gentoo on their T60p. Alot of graphics support is left out of the kernel since the best graphics performance is with ATI's propietary drivers which you can emerge at the end of the kernel compile.&lt;br /&gt;
====Processor type and features====&lt;br /&gt;
* Turn on Symmetric multi-processing support.&lt;br /&gt;
* Set processor family to Pentium M.&lt;br /&gt;
* Turn off toshiba and dell laptop support.&lt;br /&gt;
* Set timer frequency to 1000 Hz since this is a desktop system.&lt;br /&gt;
* Found on a [http://forum.thinkpads.com/viewtopic.php?t=19031 forum posting] that &amp;quot;Hotpluggable CPU&amp;quot; should be set to get acpi sleep to work.  Go figure...&lt;br /&gt;
&lt;br /&gt;
====Power management options====&lt;br /&gt;
* Turn on all ACPI settings (especially IBM Thinkpad Extras) except ASUS/Medion and Toshiba Laptop Extras.                                               &lt;br /&gt;
* Turn on CPU Frequency scaling.&lt;br /&gt;
** Turn on powersave, userspace, ondemand and conservative governor.&lt;br /&gt;
** Turn off ACPI Processor P-States driver.&lt;br /&gt;
** Turn off all AMD and Cyrix options.&lt;br /&gt;
** Turn on Intel Enhanced SpeedStep and Intel Speedstep on ICH-M chipsets (ioport interface).&lt;br /&gt;
** Turn off Intel SpeedStep on 440BX/ZX/MX chipsets (SMI interface).&lt;br /&gt;
** Turn off Intel Pentium 4 clock modulation, nVidia nForce2 FSB changing and Transmeta LongRun.&lt;br /&gt;
====Bus options====&lt;br /&gt;
* Turn on PCI Express support.&lt;br /&gt;
* Turn on Message Signaled Interupts.&lt;br /&gt;
* Turn on PCCard support and CardBus yenta-compatible bridge support.&lt;br /&gt;
====Networking support====&lt;br /&gt;
* Turn off Generic IEEE 802.11 Networking Stack.&lt;br /&gt;
* Turn on IrDA (infrared) subsystem support and sub-options.&lt;br /&gt;
* Turn on Bluetooth subsystem support and sub-options.&lt;br /&gt;
* Turn off Amateur Radio support (unless you work with actual radios.)&lt;br /&gt;
====Device Drivers====&lt;br /&gt;
* Turn off Memory Technology Devices.&lt;br /&gt;
* Turn off parallel port support.&lt;br /&gt;
* Turn on SCSI device support.  In &amp;quot;low-level device drivers&amp;quot;, chose the Serial ATA (SATA) support.  Build it as a part of the kernel, and not as a kernel module.&lt;br /&gt;
* Turn off Fusion MPT device support.&lt;br /&gt;
* Turn on IEEE 1394 (FireWire) support.&lt;br /&gt;
* Turn on Network device support.&lt;br /&gt;
** Turn off all options in all categories under Network device support except the stated ones below.&lt;br /&gt;
** Turn on Intel(R) PRO/1000 Gigabit Ethernet support under Ethernet (1000 Mbit).&lt;br /&gt;
** Turn on Wireless LAN drivers (non-hamradio) &amp;amp; Wireless Extensions and none of the sub-options underneath.&lt;br /&gt;
** Most people do not need Fibre channel, ATM, WAN or PPP/SLIP support (if you do then turn it on. PPP is needed for GPRS/UMTS connectivity)&lt;br /&gt;
* Character device options...&lt;br /&gt;
** Turn off Parallel printer support.&lt;br /&gt;
** Turn on Intel/AMD/VIA HW Random Number Generator support.&lt;br /&gt;
** Turn on /dev/nvram support.&lt;br /&gt;
** Turn off /dev/agpgart (AGP Support).&lt;br /&gt;
** Turn off Direct Rendering Manager.&lt;br /&gt;
** Support for the [[Embedded_Security_Subsystem|Fritz Chip]] is located in &amp;quot;TPM Devices&amp;quot;.&lt;br /&gt;
* Turn off all Graphics support options except the stated ones below,&lt;br /&gt;
** Turn on VESA VGA graphics support and set VESA driver type to vesafb.&lt;br /&gt;
** Turn on Enable firmware EDID and Enable Video Mode Handling Helpers.&lt;br /&gt;
** Turn on Support for the framebuffer splash.&lt;br /&gt;
* '''IMPORTANT:''' Turn off all Wireless device support under USB support -&amp;gt; USB Network Adapters or you will tear your hair out trying to get wireless.&lt;br /&gt;
* Turn on Sound card support.&lt;br /&gt;
** Turn on Advanced Linux Sound Architecture.&lt;br /&gt;
** Turn off all ISA, PCI, USB, generic and PCMCIA device options the stated on below.&lt;br /&gt;
** Turn on Intel HD Audio under PCI devices.&lt;br /&gt;
* Turn off all MMC/SD Card support options.&lt;br /&gt;
* Turn off LED devices.&lt;br /&gt;
* Cryptographic options... (needed for the wireless card ipw9345)&lt;br /&gt;
** Turn on AES chiphers&lt;br /&gt;
** Turn on Michael MIC keyed digest algorithm&lt;br /&gt;
&lt;br /&gt;
That should do it. (I know, that's it.)&lt;br /&gt;
That should make sure that you have all the drivers necessary to boot the system and be able to use all your hardware (almost).&lt;br /&gt;
&lt;br /&gt;
===Portage Ebuilds===&lt;br /&gt;
&lt;br /&gt;
Always make sure you run this command before going any further so you can get the latest portage build and version...&lt;br /&gt;
 emerge --sync &amp;amp;&amp;amp; emerge portage&lt;br /&gt;
&lt;br /&gt;
Since September 24 2006 I was able to make the latest ati-drivers work on the T60p without adding any lines to the unmask file (/etc/portage/package.unmask) under the gentoo-sources kernel. You should be able to run...&lt;br /&gt;
 emerge ati-drivers&lt;br /&gt;
...without any problems.&lt;br /&gt;
&lt;br /&gt;
Don't forget to emerge all the Thinkpad software as well...&lt;br /&gt;
 emerge tpb tp_smapii tpctl&lt;br /&gt;
&lt;br /&gt;
Then you can start to setup the wireless in this order at the command line...&lt;br /&gt;
 /bin/sh /usr/portage/net-wireless/ieee80211/files/remove-old /usr/src/linux&lt;br /&gt;
 emerge ieee80211 ipw3945 ipw3945d wireless-tools&lt;br /&gt;
&lt;br /&gt;
For some reason the wireless driver consists of two parts: the module itself, ipw3949.ko, and some sort of support daemon, ipw3945d. The ebuild updates the modules.conf file to automatically stop and start this deamon when the module is loaded or unloaded, respectively.&lt;br /&gt;
&lt;br /&gt;
 install ipw3945 /sbin/modprobe --ignore-install ipw3945; sleep 0.5; /sbin/ipw3945d --quiet&lt;br /&gt;
 remove ipw3945 /sbin/ipw3945d --kill; /sbin/modprobe -r --ignore-remove ipw3945&lt;br /&gt;
&lt;br /&gt;
In other words, to load the module, and start the deamon, do&lt;br /&gt;
&lt;br /&gt;
  modprobe ipw3945&lt;br /&gt;
&lt;br /&gt;
To remove the module, and kill the daemon, enter&lt;br /&gt;
&lt;br /&gt;
  modprobe -r ipw3945&lt;br /&gt;
&lt;br /&gt;
'''Note''' rmmod does '''not''' work - that won't execute the line from modprobe.conf, and doesn't kill the deamon. While the daemon is running, you cannot unload the module. (You'll get an errormessage saying the module is in use)&lt;br /&gt;
If for some reason you need to kill the module manually, use &lt;br /&gt;
&lt;br /&gt;
  sbin/ipw3945d --kill&lt;br /&gt;
&lt;br /&gt;
===xorg.conf Settings===&lt;br /&gt;
&lt;br /&gt;
A piece of code is worth a thousand words; here is my xorg.conf that works at 3000-5000 FPS so far. I am still trying to find better parameters, but this is the best I got it to run so far. I intentionally left out the InputDevice section since I disabled my Synaptics pad (I like the center joystick better.) Just modify your xorg.conf sections with what is shown below.&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Module&amp;quot;&lt;br /&gt;
        Load  &amp;quot;dbe&amp;quot;     # Double buffer extension&lt;br /&gt;
        SubSection &amp;quot;extmod&amp;quot;&lt;br /&gt;
        Option      &amp;quot;omit xfree86-dga&amp;quot;   # don't initialise the DGA extension&lt;br /&gt;
        EndSubSection&lt;br /&gt;
        Load  &amp;quot;freetype&amp;quot;&lt;br /&gt;
        Load  &amp;quot;dri&amp;quot;&lt;br /&gt;
        Load  &amp;quot;glx&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
        Identifier  &amp;quot;VideoCard&amp;quot;&lt;br /&gt;
        Driver      &amp;quot;fglrx&amp;quot;&lt;br /&gt;
        VendorName  &amp;quot;ati&amp;quot;&lt;br /&gt;
        BusID       &amp;quot;PCI:1:0:0&amp;quot;&lt;br /&gt;
        Option      &amp;quot;VideoOverlay&amp;quot; &amp;quot;off&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;dri&amp;quot;&lt;br /&gt;
        Group &amp;quot;video&amp;quot;&lt;br /&gt;
        Mode 0666&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Extensions&amp;quot;&lt;br /&gt;
        Option &amp;quot;XVideo&amp;quot; &amp;quot;Enable&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Screen&amp;quot;&lt;br /&gt;
        Identifier &amp;quot;Screen&amp;quot;&lt;br /&gt;
        Device     &amp;quot;VideoCard&amp;quot;&lt;br /&gt;
        Monitor    &amp;quot;Monitor&amp;quot;&lt;br /&gt;
        DefaultDepth     24&lt;br /&gt;
        SubSection &amp;quot;Display&amp;quot;&lt;br /&gt;
                Viewport  0 0&lt;br /&gt;
                Depth     24&lt;br /&gt;
                Modes    &amp;quot;1280x1024&amp;quot; &amp;quot;1024x768&amp;quot; &amp;quot;800x600&amp;quot; &amp;quot;640x480&amp;quot;&lt;br /&gt;
        EndSubSection&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
Make sure you assign your username to the video group in the /etc/group file or you will net get DRI (Direct Rendering) support. When debugging your running X windows system, always check /var/log/Xorg.0.log for any errors or hints at what may be configured incorrectly. This is how I was able to get so far with the graphics.&lt;br /&gt;
&lt;br /&gt;
==External Sources==&lt;br /&gt;
*[http://arscognita.com/~richtl/T60p/index.html Rich Tango-Lowy's Mandriva 2007 Cooker on T60p page]&lt;br /&gt;
*[http://buzzy.tesuji.org/thinkpad_t60p.html Jon Lin's Gentoo Thinkpad T60p]&lt;/div&gt;</summary>
		<author><name>Edovino</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installation_instructions_for_the_ThinkPad_T60p&amp;diff=24340</id>
		<title>Installation instructions for the ThinkPad T60p</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installation_instructions_for_the_ThinkPad_T60p&amp;diff=24340"/>
		<updated>2006-08-23T15:36:43Z</updated>

		<summary type="html">&lt;p&gt;Edovino: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:T60p]]&lt;br /&gt;
==Installing Ubuntu Dapper==&lt;br /&gt;
&lt;br /&gt;
To get it going:&lt;br /&gt;
&lt;br /&gt;
* Get Dapper i386 (I used the Daily ISO DVD).&lt;br /&gt;
&lt;br /&gt;
* Install the default distribution.&lt;br /&gt;
&lt;br /&gt;
It will work, but you need an SMP kernel, and accelerated and higher resolution graphics, so:&lt;br /&gt;
&lt;br /&gt;
* Install the i686-smp kernel (search for 'linux-kernel' in synaptic).&lt;br /&gt;
&lt;br /&gt;
* Search for fglrx in synaptic, and install the fglrx modules, X driver and ATI control panel.&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/X11/xorg.conf, so each of the &amp;quot;Modeline&amp;quot; entries contains a 1600x1200 resolution as well (or whatever the top resolution of your LCD panel is), and change the driver section as follows:&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;ATI Technologies, Inc. ATI Default Card&amp;quot;&lt;br /&gt;
     Driver &amp;quot;fglrx&amp;quot;               &amp;lt;----- ADD THIS LINE&lt;br /&gt;
     #Driver &amp;quot;vesa&amp;quot;               &amp;lt;---- COMMENT OUT THIS LINE&lt;br /&gt;
     BusID &amp;quot;PCI:1:0:0&amp;quot;&lt;br /&gt;
     ChipID 0x71c5                &amp;lt;----- '''MAYBE''' ADD THIS LINE&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[On my UXGA t60p the ChipID line was actually fatal to getting fglrx to start up (/var/log/Xorg.0.log showed the driver falling back to VESA and fgl_glxgears would crash).  Without that ChipID line my chip was identified as:&lt;br /&gt;
&lt;br /&gt;
 Chipset: &amp;quot;MOBILITY FireGL V5200 (M56 71C4)&amp;quot; (Chipset = 0x71c4)&lt;br /&gt;
&lt;br /&gt;
which appears to correspond exactly to my machine's spec,  and fgl_glxgears worked fine.]&lt;br /&gt;
&lt;br /&gt;
Reboot, and you should be done. Check &amp;quot;cat /proc/cpuinfo&amp;quot; shows two CPUs, and run fgl_glxgears and check you get around 580 frames a second.&lt;br /&gt;
&lt;br /&gt;
I've reported [https://launchpad.net/distros/ubuntu/+bug/46527 bug 46527] on the lack of screen driver detection, so hopefully this will get even easier.&lt;br /&gt;
&lt;br /&gt;
Note you do NOT need to install ATI drivers from the ATI site. The Ubuntu drivers are sufficient.&lt;br /&gt;
&lt;br /&gt;
Thanks to Rich Tango-Lowy (see below) for the hint re chip detection.&lt;br /&gt;
&lt;br /&gt;
==Kubuntu Dapper Live CD==&lt;br /&gt;
&lt;br /&gt;
If you're trying to install from the Kubuntu Desktop CD, you'll never make it to the login screen because the ATI display driver isn't recognized.&lt;br /&gt;
&lt;br /&gt;
* Ctrl-Alt-F1&lt;br /&gt;
* sudo nano /etc/X11/xorg.conf&lt;br /&gt;
* change the display driver line that looks like:&lt;br /&gt;
&lt;br /&gt;
          Driver    &amp;quot;ati&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to &lt;br /&gt;
&lt;br /&gt;
          Driver    &amp;quot;vesa&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[I think I remember that it was &amp;quot;ati&amp;quot;, but I could be wrong.  In any &lt;br /&gt;
case this is very clearly the only Driver line in the ATI device specification section]&lt;br /&gt;
&lt;br /&gt;
* Save and exit&lt;br /&gt;
* sudo /etc/init.d kdm restart&lt;br /&gt;
&lt;br /&gt;
Now you get a login screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Gentoo 2006.0 ==&lt;br /&gt;
Upon booting off the live cd you will come to the kernel selection prompt.&lt;br /&gt;
Enter:&lt;br /&gt;
    gentoo doscsi&lt;br /&gt;
I had some trouble getting the wired NIC to be linked to the driver, often getting an error that the EEPROM failed a check.  If this happens, you can try re-inserting the module,&lt;br /&gt;
    &amp;gt;rmmod e1000; modprobe e1000&lt;br /&gt;
or rebooting and trying again.  The wireless card isn't supported by the live cd so you're going to have to stick to wired for now.&lt;br /&gt;
&lt;br /&gt;
In your make.conf make sure you have the following:&lt;br /&gt;
    CFLAGS=&amp;quot;-march=prescott -O2 -pipe -msse3 -fomit-frame-pointer&lt;br /&gt;
    VIDEO_CARDS=&amp;quot;fglrx vesa fbdev&amp;quot;&lt;br /&gt;
    INPUT_DEVICES=&amp;quot;keyboard mouse synaptics&amp;quot;&lt;br /&gt;
    FEATURES=&amp;quot;sandbox ccache distlocks autoaddcvs parallel-fetch&amp;quot;&lt;br /&gt;
and make sure that your USE variable includes USE=&amp;quot;ibm&amp;quot;.&lt;br /&gt;
For a more complete discussion of the CFLAGS to use for a Core Duo processor, see [http://forums.gentoo.org/viewtopic-t-448761-highlight-core+duo+prescott.html?sid=97485d7e26a1f77e2bb06fa437a448ff this forum thread].&lt;br /&gt;
&lt;br /&gt;
When setting up the kernel ensure the following:&amp;lt;br&amp;gt;&lt;br /&gt;
In Processor Type and Feature&lt;br /&gt;
* You have your chip arch set to Pentium4&lt;br /&gt;
* Turn on SMP&lt;br /&gt;
* Turn the timer frequency to 1000 Hz since this is a desktop system&lt;br /&gt;
In power managment under ACPI&lt;br /&gt;
* Enable it along with all the other settings&lt;br /&gt;
* Don't forget the IBM Thinkpad extras&lt;br /&gt;
* Turn on freq scaling along with Intel ICH chipset support&lt;br /&gt;
In Bus options&lt;br /&gt;
* Turn on PCI Express support&lt;br /&gt;
* Enable Message Signaled Interupts&lt;br /&gt;
* Enable PCMCIA support and the yenta driver&lt;br /&gt;
In networking&lt;br /&gt;
* Enable IrDA with the associated drivers and protocols&lt;br /&gt;
* Enable Bluetooth with the associated drivers and protocols&lt;br /&gt;
In device drivers&lt;br /&gt;
* Turn off parallel port support (You don't have one)&lt;br /&gt;
* Turn OFF ATA support (you have SATA)&lt;br /&gt;
* Turn on scsi disk, cdrom, and generic support&lt;br /&gt;
* Set Probe All LUNs under scsi support (this helps especially with memory card readers)&lt;br /&gt;
* Under scsi low level drivers select sata, AHCI, and Intel ICH support&lt;br /&gt;
* Turn OFF Ethernet 10/100 support&lt;br /&gt;
* Turn ON Etherenet 1000 support along with the Intel PRO/1000 driver&lt;br /&gt;
* Turn ON Wireless Lan support and nothing else (more on this later)&lt;br /&gt;
* Turn off agpgart support&lt;br /&gt;
* Turn off Direct Rendering Manager&lt;br /&gt;
* Turn on HD Audio under Sound-&amp;gt;Alsa&lt;br /&gt;
* Turn on TPM devices and enable to National driver under charachter devices&lt;br /&gt;
In crypto options:&lt;br /&gt;
* Michael MIC cypher (for wifi)&lt;br /&gt;
&lt;br /&gt;
That should do it. (I know, that's it.)&lt;br /&gt;
That should make sure that you have all the drivers necessary to boot the system and be able to use all your hardware (almost).&lt;br /&gt;
&lt;br /&gt;
After you install the kernel and reboot you will need to emerge the rest of the drivers that aren't part of the kernel.  As of 07Aug2006 you'll need to add the following lines to /etc/portage/package.unmask and /etc/portage/package.keywords&lt;br /&gt;
    &amp;gt;=x11-drivers/ati-drivers-8.27.10-r1&lt;br /&gt;
since for some reason the latest &amp;quot;stable&amp;quot; version is 8.21.  Type:&lt;br /&gt;
    emerge ati-drivers&lt;br /&gt;
&lt;br /&gt;
Next you will need to install the ipw3945 drivers.  Type:&lt;br /&gt;
    emerge ipw3945 ipw3945d wireless-tools&lt;br /&gt;
This will install a package called ieee80211 which will complain that you have the old ie not theirs, 80211 system and you need to remove it.  Just cut and paste the command that they give you and run the previous emerge again.&lt;br /&gt;
&lt;br /&gt;
That should do it for now, I'll post how to get X11 working when I get there. ;)&lt;br /&gt;
&lt;br /&gt;
==External Sources==&lt;br /&gt;
*[http://arscognita.com/~richtl/T60p/index.html Rich Tango-Lowy's Mandriva 2007 Cooker on T60p page]&lt;br /&gt;
*[http://buzzy.tesuji.org/thinkpad_t60p.html Jon Lin's Gentoo Thinkpad T60p]&lt;/div&gt;</summary>
		<author><name>Edovino</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_enable_integrated_fingerprint_reader_with_BioAPI&amp;diff=13990</id>
		<title>How to enable integrated fingerprint reader with BioAPI</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=How_to_enable_integrated_fingerprint_reader_with_BioAPI&amp;diff=13990"/>
		<updated>2006-01-02T11:15:14Z</updated>

		<summary type="html">&lt;p&gt;Edovino: /* Installing the driver */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top;padding-right:20px;width:10px;white-space:nowrap;&amp;quot; | __TOC__&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
This page describes the process of getting the [[Integrated Fingerprint Reader|integrated fingerprint reader]] to work under Linux. It is based on experiences in {{Ubuntu}} on a T43. The same works on {{Fedora}} 4, SuSE 9.3, SuSE 10, and {{Gentoo}}.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Basic installation==&lt;br /&gt;
===Installing the bioapi framework===&lt;br /&gt;
====Binary packages====&lt;br /&gt;
=====Debian=====&lt;br /&gt;
*If you're using {{Debian}} Sid (the unstable branch) you can try the packages from Michael R. Crusoe's site, either [http://www.qrivy.net/~michael/temp/ version 1.2.3] (recommended) or [http://www.qrivy.net/~michael/debs/unstable/ older versions] which might not work with the steps in this howto.&lt;br /&gt;
*This seems to work for Ubuntu breezy/dapper too, so saver yourself some trouble and grab it.&lt;br /&gt;
=====Gentoo=====&lt;br /&gt;
You can either Grab the ebuild from http://www.qrivy.net/~michael/blua/bioapi/bioapi-1.2.2.ebuild.tar.bz2, or use the source-install procedure below.&lt;br /&gt;
====Automated installation script====&lt;br /&gt;
The [[Script for enabling the fingerprint reader]] automates the installation of most components (bioapi framework, driver, pam_bioapi, pam setup, device permissions, pamtester and enrolling), for some Linux distributions.&lt;br /&gt;
&lt;br /&gt;
====Installing from source====&lt;br /&gt;
*Get the bioapi source:&lt;br /&gt;
:{{cmduser|wget http://www.qrivy.net/~michael/blua/bioapi/bioapi-1.2.2.tar.bz2}}&lt;br /&gt;
*I could not compile bioapi with the graphical Qt tools. To do it manually, do the following:&lt;br /&gt;
:{{cmduser|tar xjf bioapi-1.2.2.tar.bz2}}&lt;br /&gt;
:{{cmduser|cd bioapi-1.2.2}}&lt;br /&gt;
:{{cmduser|1=./configure --with-Qt-dir=no}}&lt;br /&gt;
:{{cmduser|make}}&lt;br /&gt;
:and then as root&lt;br /&gt;
:{{cmdroot|make install}}&lt;br /&gt;
:If make install fails, be sure you're root and then:&lt;br /&gt;
:{{cmdroot|1=export LD_LIBRARY_PATH=/usr/local/lib}}&lt;br /&gt;
:{{cmdroot|make install}}&lt;br /&gt;
:and if you want to compile pam_bioapi for auth later&lt;br /&gt;
:{{cmdroot|cp include/bioapi_util.h include/installdefs.h imports/cdsa/v2_0/inc/cssmtype.h /usr/include}}&lt;br /&gt;
:Be aware that checkinstall will not work!&lt;br /&gt;
:(I got through configure with Qt, but got a cryptic build error.  It all worked fine with Qt disabled as above)&lt;br /&gt;
:buzz: This is due to a wrong qt include path, set it manually in configure and everything should work.&lt;br /&gt;
* By default, bioapi will install numerous files in {{path|/usr/local/&amp;lt;nowiki&amp;gt;{&amp;lt;/nowiki&amp;gt;bin,lib,include&amp;lt;nowiki&amp;gt;}&amp;lt;/nowiki&amp;gt;}}, including files with &amp;quot;self-explanatory&amp;quot; names such as {{path|/usr/local/bin/Sample}}. To prevent this pollution:&lt;br /&gt;
:Create a dedicated directory, for example {{path|/opt/bioapi}} .&lt;br /&gt;
:Append &amp;lt;tt&amp;gt;--prefix=/opt/bioapi&amp;lt;/tt&amp;gt; to the above &amp;lt;tt&amp;gt;./configure&amp;lt;/tt&amp;gt; command.&lt;br /&gt;
:Append {{path|/opt/bioapi/bin}} to &amp;lt;tt&amp;gt;$PATH&amp;lt;/tt&amp;gt; and {{path|/opt/bioapi/lib}} to &amp;lt;tt&amp;gt;$LD_LIBRARY_PATH&amp;lt;/tt&amp;gt;.&lt;br /&gt;
:When installing the driver (below), tell it the new install path: {{cmdroot|sh install.sh /opt/bioapi/lib}}&lt;br /&gt;
&lt;br /&gt;
===Installing the driver===&lt;br /&gt;
*Download {{path|TFMESS_BSP_LIN_1.0.zip}} from http://www.upek.com/support/dl_linux_bsp.asp and unzip it into a seperate folder, as it will not create one.  If you have trouble and none of the fixes below work, there is also an older beta version, {{path|TFMESS_BSP_LIN_1.0beta2.zip}} from http://www.qrivy.net/~michael/blua/upek-bsp.html, which expires January 1, 2006.&lt;br /&gt;
*Change to that folder and do as root:&lt;br /&gt;
:{{cmdroot|sh install.sh}}&lt;br /&gt;
:If you're running Gentoo, use&lt;br /&gt;
:{{cmdroot|sh install.sh /usr/lib}}&lt;br /&gt;
:If that fails, it may be that make install failed up above -- try setting LD_LIBRARY_PATH, do the make install again, and come back here and try this again.  You also need {{cmd|mod_install|}} from bioapi in your PATH.&lt;br /&gt;
*If you want to use PAM-aware applications like xscreensaver that are NOT running with root permissions (as opposed to login, gdm or other authentication mechanisms), do the following as root (this doesn't seem necessary on SuSE 10):&lt;br /&gt;
:{{cmdroot|chmod 777 -R /usr/local/var/bioapi/}}&lt;br /&gt;
:Actually this depends on where you installed, if you did as suggested, it should work. Otherwise you probably know what you're doing anyways. :)&lt;br /&gt;
*Likewise, you'll need to make the usbfs files readable/writeable by your normal user:&lt;br /&gt;
:{{cmdroot|chmod -R a+X /proc/bus/usb}}&lt;br /&gt;
:{{cmdroot|chmod 666 /proc/bus/usb/`lsusb &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; sed -ne &amp;quot;/0483:2016/s/Bus\ \(.*\)\ Device\ \(.*\):\ .*/\1\/\2/p&amp;quot;`}}&lt;br /&gt;
:Some (older?) distros mount usbfs at {{path|/dev/bus/usb}} instead or additionally; in this case, modify these instructions accordingly.&lt;br /&gt;
:You may need to replace {{cmd|lsusb|}} with its full path, which is something like {{cmd|/sbin/lsusb|}} or {{cmd|/usr/bin/lsusb|}} depending on your distro.&lt;br /&gt;
:It might be necessary to put the above line into a startup script somewhere.  It might also be necessary to run it after resume from sleep or hibernate.&lt;br /&gt;
:Alternately, you can set mount options for usbfs in {{path|/etc/fstab|}} -- see the {{cmd|mount(8)|}} manpage.  This is &amp;quot;cleaner&amp;quot; but seems to have a few weird issues -- see the talk page for details.&lt;br /&gt;
* To increase the security level (minimize false accept rate), set this in {{path|/etc/tfmessbsp.cfg}}:&lt;br /&gt;
:&amp;lt;tt&amp;gt;security-level=&amp;quot;5&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*For the beta versions only, there is a logfile, which needs to exist with the proper permissions:&lt;br /&gt;
:{{cmdroot|touch /var/log/BSP.log &amp;amp;&amp;amp; chmod 666 /var/log/BSP.log}}&lt;br /&gt;
&lt;br /&gt;
===Testing the driver and enrolling a fingerprint===&lt;br /&gt;
To test the driver and generate the file containing your fingerprint information, you need a sample program included with the driver.  The compilation steps below were discovered by trial and error; if they don't work for you, try the binary {{cmd|Sample|}} utility that came with the beta versions of the driver (i.e., {{path|TFMESS_BSP_LIN_1.0beta2.zip}} as mentioned above).&lt;br /&gt;
Go to the folder where you extracted {{path|TFMESS_BSP_LIN_1.0.zip}} and do:&lt;br /&gt;
:{{cmdroot|cd NonGUI_Sample}}&lt;br /&gt;
:Edit {{path|main.c|}} and remove (or comment out) the line&lt;br /&gt;
 #include &amp;quot;port/bioapi_port.h&amp;quot;&lt;br /&gt;
:{{cmdroot|gcc -o Sample main.c -L/usr/local/lib -lbioapi100 -DUNIX -DLITTLE_ENDIAN}}&lt;br /&gt;
:{{cmdroot|./Sample}}&lt;br /&gt;
:Note that Sample may only run as root, unless you've already configured the usbfs file permissions.&lt;br /&gt;
:You can try to &amp;quot;e&amp;quot;nroll (to record a fingerprint for an account) and then &amp;quot;v&amp;quot;erify (to test a fingerprint against the one it expects for an account).&lt;br /&gt;
:You'll save a step later if you use your own login username as the username to enroll here.&lt;br /&gt;
&lt;br /&gt;
==Login via pam_bioapi==&lt;br /&gt;
&lt;br /&gt;
The following explains how to add fingerprint authentiation to programs that use the PAM (Pluggable Authentication Modules) framework, such as  Gnome's GDM and KDE's KDM and screensaver.&lt;br /&gt;
&lt;br /&gt;
===Getting required libs &amp;amp; tools===&lt;br /&gt;
====Installing pam_bioapi====&lt;br /&gt;
*Prerequisites&lt;br /&gt;
:On SuSE 10, I needed to install the pam-devel RPM&lt;br /&gt;
:In general, you will need pam itself (standard for most distros) as well as the pam development files (probably an optional package for your distro).&lt;br /&gt;
*Get and compile the pam_bioapi module.&lt;br /&gt;
:{{cmduser|wget http://www.qrivy.net/~michael/blua/pam_bioapi/pam_bioapi-0.2.1.tar.bz2}}&lt;br /&gt;
:{{cmduser|tar xjf pam_bioapi-0.2.1.tar.bz2}}&lt;br /&gt;
:{{cmduser|cd pam_bioapi-0.2.1}}&lt;br /&gt;
:{{cmduser|wget http://badcode.de/downloads/fingerprint.patch}}&lt;br /&gt;
:{{cmduser|patch -p0 &amp;lt; fingerprint.patch}}&lt;br /&gt;
:If you want to, review the patch. In general you should review all code you download and compile, if possible. The patch comes from [http://linuxbiometrics.com/modules/newbb/viewtopic.php?viewmode=flat&amp;amp;topic_id=80&amp;amp;forum=1 this thread].&lt;br /&gt;
:{{cmduser|./configure &amp;amp;&amp;amp; make}}&lt;br /&gt;
:and as root&lt;br /&gt;
:{{cmdroot| make install}}&lt;br /&gt;
:{{cmdroot| cp /usr/local/lib/security/* /lib/security/}}&lt;br /&gt;
{{NOTE|If you get a 'rpl_malloc' error in /var/log/auth.log when trying to use the fingerprint reader, redo these steps and remove the related term from Makefile after running ./configure. (FC3, Debian etch)}}&lt;br /&gt;
*Use the sample tool from the fingerprint reader to create {{path|&amp;lt;username&amp;gt;.bir}} (&amp;lt;tt&amp;gt;&amp;lt;username&amp;gt;&amp;lt;/tt&amp;gt; '''must''' be the username you want to login with. gdm will probably break for any login name that has no .bir file).&lt;br /&gt;
*As root do:&lt;br /&gt;
:{{cmdroot|SERIAL&amp;lt;nowiki&amp;gt;=`BioAPITest | sed -ne &amp;quot;/Fingerprint/{n;n;s/^.*: \(.\{9\}\)\(.\{4\}\)\(.\{4\}\)\(.\{4\}\)\(.*\)/\1-\2-\3-\4-\5/gp}&amp;quot;` &amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
:{{cmdroot|echo $SERIAL}} should print something like {{cmdresult|&amp;lt;nowiki&amp;gt;{5550454b-2054-464d-2f45-535320425350}&amp;lt;/nowiki&amp;gt;}} now.&lt;br /&gt;
:If it does, do:&lt;br /&gt;
:{{cmdroot|mkdir -p /etc/bioapi/pam/$SERIAL}}&lt;br /&gt;
:{{cmdroot|cp &amp;lt;username&amp;gt;.bir /etc/bioapi/pam/$SERIAL}}&lt;br /&gt;
:If not, you might just try&lt;br /&gt;
:{{cmdroot|SERIAL&amp;lt;nowiki&amp;gt;={5550454b-2054-464d-2f45-535320425350}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
:as this value is hardcoded into the UPEK docs.&lt;br /&gt;
&lt;br /&gt;
===Configuring pam===&lt;br /&gt;
The following part is distribution specific. On {{Ubuntu}} or SuSE you can modify {{path|/etc/pam.d/common-auth}} (on {{Gentoo}} and {{Fedora}} it is {{path|/etc/pam.d/system-auth}}) to look like this:&lt;br /&gt;
&lt;br /&gt;
 #&lt;br /&gt;
 # /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
 #&lt;br /&gt;
 # This file is included from other service-specific PAM config files,&lt;br /&gt;
 # and should contain a list of the authentication modules that define&lt;br /&gt;
 # the central authentication scheme for use on the system&lt;br /&gt;
 # (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
 # traditional Unix authentication mechanisms.&lt;br /&gt;
 #&lt;br /&gt;
 auth       sufficient   pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
 password   sufficient   pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
 auth       required     pam_unix.so nullok_secure&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
{{path|/etc/pam.d/system-auth}} for '''Gentoo'''-Users:&lt;br /&gt;
&lt;br /&gt;
 auth       sufficient   pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
 password   sufficient   pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
 auth       required     pam_unix.so nullok_secure&lt;br /&gt;
 auth       required     pam_env.so&lt;br /&gt;
 auth       sufficient   pam_unix.so likeauth nullok&lt;br /&gt;
 auth       required     pam_deny.so&lt;br /&gt;
 account    required     pam_unix.so&lt;br /&gt;
 password   required     pam_cracklib.so difok=2 minlen=8 dcredit=2 credit=2 retry=3&lt;br /&gt;
 password   sufficient   pam_unix.so nullok md5 shadow use_authtok&lt;br /&gt;
 password   required     pam_deny.so&lt;br /&gt;
 session    required     pam_limits.so&lt;br /&gt;
 session    required     pam_unix.so&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With this modification pam immediately starts to use the fingerprint reader to do local authorization (e.g. sudo/gdm use the fingerprint reader).&lt;br /&gt;
&lt;br /&gt;
''Note:'' With a system-auth like above, '''Gentoo''' will give you 'account expired' errors. &lt;br /&gt;
CREATE {{path|/etc/pam.d/common-auth}} like so.&lt;br /&gt;
&lt;br /&gt;
 account    required     pam_unix.so&lt;br /&gt;
 auth       sufficient   pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
 password   sufficient   pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
 auth       required     pam_unix.so nullok_secure&lt;br /&gt;
 session    required     pam_limits.so&lt;br /&gt;
 session    required     pam_uni&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if su/sudo expects to receive the root password (SuSE 10), you need to have fingerprint settings for root (that is, copy in a root.bir as well as a your-username.bir).  Otherwise, they get a segmentation fault.  Which is a little unfortunate, given that you need to su or sudo to change your settings...&lt;br /&gt;
&lt;br /&gt;
For some applications (kdm, SuSE 10 KDE screen saver), you'll need to enter an empty password (or select the correct user and then enter an empty password) in order to get the fingerprint prompt.  kdm didn't give any visual indication it was going to the fingerprint reader, other than the cursor stopped blinking, but I swiped, and it let me in.&lt;br /&gt;
&lt;br /&gt;
Note that sshd may pick up the fingerprint settings from {{path|/etc/pam.d/common-auth}}.  I didn't want that, so I removed the &amp;quot;auth include common-auth&amp;quot; line from {{path|/etc/pam.d/sshd}} and replaced it with the lines that were originally in my {{path|/etc/pam.d/common-auth}}.  That way most local services use the fingerprint reader, but sshd does not.&lt;br /&gt;
&lt;br /&gt;
Another way to do this is to create a file ({{path|/etc/pam.d/bioapi|}} for example) which contains the {{cmd|pam_bioapi.so|}} lines, and explicitly {{cmd|@include|}} this '''before''' {{path|/etc/pam.d/common-auth|}} in the files for services which should use the fingerprint reader.  In this case you should leave {{path|/etc/pam.d/common-auth|}} alone.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|This was discovered through trial and success, if it is plain wrong, wikorrect it, please.}}&lt;br /&gt;
&lt;br /&gt;
On {{Fedora}}, you may need to add {{path|/usr/local/lib}} to your LD_LIBRARY path so that the libraries referenced from &amp;lt;tt&amp;gt;pam_bioapi.so&amp;lt;/tt&amp;gt; get picked up properly. Also the original 'session' terms in {{path|/etc/pam.d/system-auth}} need to be kept.&lt;br /&gt;
&lt;br /&gt;
On {{Fedora}}4 or {{Aurox}}11, you may need to add {{path|/usr/local/lib}} to ldconfig configuration.&lt;br /&gt;
:{{cmdroot|echo '/usr/local/lib' &amp;gt; /etc/ld.so.conf.d/bioapi.conf}}&lt;br /&gt;
:{{cmdroot|ldconfig}}&lt;br /&gt;
If you see bioapi libs &lt;br /&gt;
:{{cmdroot|ldconfig -p | grep bioapi}}&lt;br /&gt;
then it should work.&lt;br /&gt;
&lt;br /&gt;
Now gdm should pop up an (ugly) image to swipe your finger and... magic - you can login without a password.  If you use kdm, there is no pop up.  In xdm, enter your username and a blank password, then swipe (there is no popup).&lt;br /&gt;
&lt;br /&gt;
You can do some useful testing with [http://pamtester.sourceforge.net/ {{cmd|pamtester|}}], which calls the pam modules as if it were a program of your choice.  Examples:&lt;br /&gt;
:{{cmdroot|pamtester xdm yourusername authenticate}}&lt;br /&gt;
:{{cmduser|pamtester xscreensaver yourusername authenticate}}&lt;br /&gt;
where {{cmd|yourusername|}} is your username.  Note that {{cmd|pamtester|}} should run as root if and only if the program in question does.&lt;br /&gt;
&lt;br /&gt;
==Make xscreensaver use the scanner==&lt;br /&gt;
*Get the needed xscreensaver sources:&lt;br /&gt;
:{{cmduser|wget http://www.jwz.org/xscreensaver/xscreensaver-4.23.tar.gz}}&lt;br /&gt;
:{{cmduser|tar xzf xscreensaver-4.23.tar.gz}}&lt;br /&gt;
:{{cmduser|cd xscreensaver-4.23}}&lt;br /&gt;
:{{cmduser|wget http://nax.hn.org/pub/bioapi/xscreensaver-4.22_alternativeAuth.diff}}&lt;br /&gt;
*After reviewing the patch (it's small and straightforward), do&lt;br /&gt;
:{{cmduser|patch -p1 &amp;lt; xscreensaver-4.22_alternativeAuth.diff}}&amp;lt;br /&amp;gt;The patch prevents xscreensaver from opening an authentification window and dispatches the authentification request to another program, in our case &amp;lt;tt&amp;gt;pam&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;pam_bioapi&amp;lt;/tt&amp;gt;. It should apply with some offset, don't mind that. If it says something about rejected though, then there's a problem.&lt;br /&gt;
*Compile with&lt;br /&gt;
:{{cmduser|./configure --with-pam &amp;amp;&amp;amp; make}}&amp;lt;br /&amp;gt;&lt;br /&gt;
*If you recieve an error like &amp;quot;undefined reference to `XmuPrintDefaultErrorMessage'&amp;quot; then install the libxmu-dev package and run the previous line again&lt;br /&gt;
*and then install as root with&lt;br /&gt;
:{{cmduser|su -c make install}} .&lt;br /&gt;
*Make sure that the newly compiled xscreensaver is used:&lt;br /&gt;
:{{cmduser|which xscreensaver}} should return&lt;br /&gt;
:{{cmdresult|/usr/local/bin/xscreensaver}} .&lt;br /&gt;
:*In case it doesn't, try &lt;br /&gt;
::{{cmduser|1=export PATH=/usr/local/bin:$PATH}}&amp;lt;br /&amp;gt;and retry.&lt;br /&gt;
*Kill the running instance of xscreensaver:&lt;br /&gt;
:{{cmduser|xscreensaver-command -exit}} &lt;br /&gt;
*Make sure you have the following line in your {{path|~/.xscreensaver}}:&lt;br /&gt;
 alternativeAuth: True&lt;br /&gt;
*Now edit {{path|/etc/pam.d/xscreensaver}} to include the following line (If you're on {{Ubuntu}} Breezy and you already changed {{path|/etc/pam.d/common-auth}} you should not need to do this.):&lt;br /&gt;
 auth    sufficient      pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi1.10/pam/&lt;br /&gt;
*Start the new xscreensaver&lt;br /&gt;
:{{cmduser|xscreensaver}}&amp;lt;br /&amp;gt;There should be a splash screen with version 4.23.&lt;br /&gt;
*Now try:&lt;br /&gt;
:{{cmduser|xscreensaver-command -lock}}&lt;br /&gt;
&lt;br /&gt;
If you have questions or problems with this procedure, ask: t43fingerprint (at) badcode.de .&lt;br /&gt;
&lt;br /&gt;
===Package for Debian sid===&lt;br /&gt;
&lt;br /&gt;
If you're running {{Debian}} sid (the unstable branch) you can also try the patched .deb-package (built from current Debian sources fetched with {{cmd|apt-get source|}}) from [http://linux.spiney.org/debian_gnu_linux_on_an_ibm_thinkpad_t43p_fingerprint_reader this page], which also has Debian-specific instructions on how to setup the fingerprint reader. Use it on your own risk.&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting and Hints==&lt;br /&gt;
# After installing the driver, don't forget to reboot!&lt;br /&gt;
## This might not be necessary. it worked here without having to reboot.&lt;br /&gt;
# To see if the fingerprint device is know on the USB bus do:&lt;br /&gt;
:{{cmdroot|lsusb}}&lt;br /&gt;
:as root and you should see a line like:&lt;br /&gt;
:{{cmdresult|Bus 003 Device 004: ID 0483:2016 SGS Thomson Microelectronics}}&lt;br /&gt;
:The bus and device number can be different. This should work without the driver installed. If the device does not show up, you have a hardware problem/quirk, Rebooting or removing/inserting USB kernel modules might fix this.&lt;br /&gt;
# For some installation, after installing the driver as in section [[#Installing the driver|Installing the driver]] and makingÂ´sure the device is recognized, try to test it  by going to {{path|NonGUI_Sample}} directory and run {{cmdroot|./Sample}}, one get segmentation fault. In this case, try getting the Beta1 instead of Beta2 of the driver and installing it&lt;br /&gt;
# There was some confusion about the /etc/bioapi1.10/pam{5550454b-2054-464d-2f45-535320425350} path, this has been fixed in the howto, if you have problems, check the section again, the path needs to have the '-' in them&lt;br /&gt;
# When something goes wrong look at the tail of {{path|/var/log/auth.log}}. (on {{Fedora}} it is {{path|/var/log/secure}}) Specifically if you see an entry saying something like&lt;br /&gt;
 pam_bioapi[10480]: Unable to load BioAPI BSP with UUID of {5550454b-2054-464d-2f45-535320425350}, BioAPI error &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;194d.&lt;br /&gt;
Check whether your {{path|/proc/bus/usb}} directory permissions are set up as in the &lt;br /&gt;
section [[#Installing the driver|Installing the driver]].&lt;br /&gt;
# To get the xscreensaver compiled you might need a bunch of header files (depending on which xscreensaver features you want), in my case I need the following:&lt;br /&gt;
#*python-gtk2-dev&lt;br /&gt;
#*libgstreamer0.8-dev&lt;br /&gt;
#*xlibs-dev&lt;br /&gt;
# Sometimes {{path|$HOME/.xscreensaver}} got overwritten, try changing it to read-only.&lt;br /&gt;
# If after suspending to RAM and resume, lsusb no longer have &amp;quot;SGS Thomson Microelectronics&amp;quot; entry, try adding a line &lt;br /&gt;
:{{cmdroot|/etc/init.d/hotplug restart}}&lt;br /&gt;
to your {{path|/etc/acpi/resume.sh}} file&lt;br /&gt;
#If after resume lsusb shows the device but xscreensaver does not ask for fingerprint for login, you might want to check the permission of the usb bus in the appropriate {{path|/proc/bus/usb/}} entry. If necessesary you might need to add a line to {{path|/etc/acpi/resume.sh}} as in section [[#Installing the driver|Installing the driver]] to set the permission right.&lt;br /&gt;
-----&lt;br /&gt;
If it still doesn't work, ask me for help (and make sure all usefull stuff makes it back into this wiki :)&lt;br /&gt;
to get a starting point as to where your problem is please include the output of:&lt;br /&gt;
&lt;br /&gt;
:{{cmduser|lsusb}}&lt;br /&gt;
&lt;br /&gt;
:{{cmduser|ldconfig -p | grep bioapi}}&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|updatedb &amp;amp;&amp;amp; locate bioapi}}&lt;br /&gt;
&lt;br /&gt;
t43fingerprint (at) badcode.de&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(15.12.2005:  small Gentoo-update! {darcline (at) gmx.net} with a now fully operational Thinkpad X41 running Gentoo and E17)&lt;br /&gt;
Thank you badcode!&lt;br /&gt;
&lt;br /&gt;
(20.12.2005:  small Suse-update! {marten.gustafson (at) gmail.com} now with a fully operational Thinkpad T43 running Suse 10)&lt;br /&gt;
Thanks!&lt;/div&gt;</summary>
		<author><name>Edovino</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_enable_integrated_fingerprint_reader_with_BioAPI&amp;diff=12479</id>
		<title>How to enable integrated fingerprint reader with BioAPI</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=How_to_enable_integrated_fingerprint_reader_with_BioAPI&amp;diff=12479"/>
		<updated>2005-11-20T21:28:16Z</updated>

		<summary type="html">&lt;p&gt;Edovino: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top;padding-right:20px;width:10px;white-space:nowrap;&amp;quot; | __TOC__&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
This page describes the process of getting the fingerprint reader to work. It is based on experiences in {{Ubuntu}} on a T43. The same works on {{Fedora}} 4, SuSE 10, and {{Gentoo}}.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Basic driver installation==&lt;br /&gt;
===Getting required libs and tools===&lt;br /&gt;
====Installing the bioapi framework====&lt;br /&gt;
=====Binary packages=====&lt;br /&gt;
*If you're using {{Debian}} Sid (the unstable branch) you can try the packages from Michael R. Crusoe's site, either [http://www.qrivy.net/~michael/temp/ version 1.2.3] (recommended) or [http://www.qrivy.net/~michael/debs/unstable/ older versions] which might not work with the steps in this howto.&lt;br /&gt;
=====Gentoo=====&lt;br /&gt;
You can either Grab the ebuild from http://www.qrivy.net/~michael/blua/bioapi/bioapi-1.2.2.ebuild.tar.bz2, or use the source-install procedure below.&lt;br /&gt;
=====Installing from source=====&lt;br /&gt;
*Get the bioapi source:&lt;br /&gt;
:{{cmduser|wget http://www.qrivy.net/~michael/blua/bioapi/bioapi-1.2.2.tar.bz2}}&lt;br /&gt;
*I could not compile bioapi with the graphical Qt tools. To do it manually, do the following:&lt;br /&gt;
:{{cmduser|tar xjf bioapi-1.2.2.tar.bz2}}&lt;br /&gt;
:{{cmduser|cd bioapi-1.2.2}}&lt;br /&gt;
:{{cmduser|1=./configure --with-Qt-dir=no}}&lt;br /&gt;
:{{cmduser|make}}&lt;br /&gt;
:and then as root&lt;br /&gt;
:{{cmdroot|make install}}&lt;br /&gt;
:If make install fails, be sure you're root and then:&lt;br /&gt;
:{{cmdroot|1=export LD_LIBRARY_PATH=/usr/local/lib}}&lt;br /&gt;
:{{cmdroot|make install}}&lt;br /&gt;
:and if you want to compile pam_bioapi for auth later&lt;br /&gt;
:{{cmdroot|cp include/bioapi_util.h include/installdefs.h imports/cdsa/v2_0/inc/cssmtype.h /usr/include}}&lt;br /&gt;
:Be aware that checkinstall will not work!&lt;br /&gt;
:(I got through configure with Qt, but got a cryptic build error.  It all worked fine with Qt disabled as above)&lt;br /&gt;
&lt;br /&gt;
====Installing the driver====&lt;br /&gt;
*Download {{path|TFMESS_BSP_LIN_1.0beta2.zip}} from http://www.qrivy.net/~michael/blua/upek-bsp.html and unzip it into a seperate folder, as it will not create one.&lt;br /&gt;
*Change to that folder and do as root:&lt;br /&gt;
:{{cmdroot|sh install.sh}}&lt;br /&gt;
:If that fails, it may be that make install failed up above -- try setting LD_LIBRARY_PATH, do the make install again, and come back here and try this again&lt;br /&gt;
*If you want to use PAM-aware applications like xscreensaver that are NOT running with root permissions (as opposed to login, gdm or other authentication mechanisms), do the following as root (this doesn't seem necessary on SuSE 10):&lt;br /&gt;
:{{cmdroot|chmod 777 -R /usr/local/var/bioapi/}}&lt;br /&gt;
:Actually this depends on where you installed, if you did as suggested, it should work. Otherwise you probably know what you're doing anyways. :)&lt;br /&gt;
:{{cmdroot|touch /var/log/BSP.log &amp;amp;&amp;amp; chmod 666 /var/log/BSP.log}}&lt;br /&gt;
:{{cmdroot|chmod -R a+X /proc/bus/usb}}&lt;br /&gt;
:{{cmdroot|chmod 666 /proc/bus/usb/`/sbin/lsusb &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; sed -ne &amp;quot;/0483:2016/s/Bus\ \(.*\)\ Device\ \(.*\):\ .*/\1\/\2/p&amp;quot;`}}&lt;br /&gt;
:It might be nessecary to put the above line into a startup script somewhere.&lt;br /&gt;
&lt;br /&gt;
===Testing the driver===&lt;br /&gt;
Go to the folder where you extracted {{path|TFMESS_BSP_LIN_1.0beta2.zip}} and do:&lt;br /&gt;
:{{cmdroot|cd NonGUI_Sample}}&lt;br /&gt;
:{{cmdroot|chmod +x Sample}}&lt;br /&gt;
:{{cmdroot|./Sample}}&lt;br /&gt;
:Note that Sample may only run as root&lt;br /&gt;
:You can try to &amp;quot;e&amp;quot;nroll (to record a fingerprint for an account) and then &amp;quot;v&amp;quot;erify (to test a fingerprint against the one it expects for an account)&lt;br /&gt;
:You'll save a step later if you user your own login username as the username to enroll here&lt;br /&gt;
&lt;br /&gt;
==GDM Login via pam_bioapi==&lt;br /&gt;
===Getting required libs &amp;amp; tools===&lt;br /&gt;
====Installing pam_bioapi====&lt;br /&gt;
*Prerequisites&lt;br /&gt;
:On SuSE 10, I needed to install the pam-devel RPM&lt;br /&gt;
*Get and compile the pam_bioapi module.&lt;br /&gt;
:{{cmduser|wget http://www.qrivy.net/~michael/blua/pam_bioapi/pam_bioapi-0.2.1.tar.bz2}}&lt;br /&gt;
:{{cmduser|tar xjf pam_bioapi-0.2.1.tar.bz2}}&lt;br /&gt;
:{{cmduser|cd pam_bioapi-0.2.1}}&lt;br /&gt;
:{{cmduser|wget http://badcode.de/downloads/fingerprint.patch}}&lt;br /&gt;
:{{cmduser|patch -p0 &amp;lt; fingerprint.patch}}&lt;br /&gt;
:If you want to, review the patch. In general you should review all code you download and compile, if possible. The patch comes from [http://linuxbiometrics.com/modules/newbb/viewtopic.php?viewmode=flat&amp;amp;topic_id=80&amp;amp;forum=1 this thread].&lt;br /&gt;
:{{cmduser|./configure &amp;amp;&amp;amp; make}}&lt;br /&gt;
{{NOTE|If encountering 'rpl_malloc' symbol, remove the related term in the makefile. (FC3)}}&lt;br /&gt;
:and as root&lt;br /&gt;
:{{cmdroot| make install}}&lt;br /&gt;
:{{cmdroot| cp /usr/local/lib/security/* /lib/security/}}&lt;br /&gt;
*Use the sample tool from the fingerprint reader to create {{path|&amp;lt;username&amp;gt;.bir}} (&amp;lt;tt&amp;gt;&amp;lt;username&amp;gt;&amp;lt;/tt&amp;gt; '''must''' be the username you want to login with. gdm will probably break for any login name that has no .bir file).&lt;br /&gt;
*As root do:&lt;br /&gt;
:{{cmdroot|SERIAL&amp;lt;nowiki&amp;gt;=`BioAPITest | sed -ne &amp;quot;/Fingerprint/{n;n;s/^.*: \(.\{9\}\)\(.\{4\}\)\(.\{4\}\)\(.\{4\}\)\(.*\)/\1-\2-\3-\4-\5/gp}&amp;quot;` &amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
:{{cmdroot|echo $SERIAL}} should print something like {{cmdresult|&amp;lt;nowiki&amp;gt;{5550454b-2054-464d-2f45-535320425350}&amp;lt;/nowiki&amp;gt;}} now.&lt;br /&gt;
:If it does, do:&lt;br /&gt;
:{{cmdroot|mkdir -p /etc/bioapi1.10/pam/$SERIAL}}&lt;br /&gt;
:{{cmdroot|cp &amp;lt;username&amp;gt;.bir /etc/bioapi1.10/pam/$SERIAL}}&lt;br /&gt;
&lt;br /&gt;
===Configuring pam===&lt;br /&gt;
The following part is distribution specific. On {{Ubuntu}} or SuSE you can modify {{path|/etc/pam.d/common-auth}} (on {{Gentoo}} and {{Fedora}} it is {{path|/etc/pam.d/system-auth}}) to look like this:&lt;br /&gt;
&lt;br /&gt;
 #&lt;br /&gt;
 # /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
 #&lt;br /&gt;
 # This file is included from other service-specific PAM config files,&lt;br /&gt;
 # and should contain a list of the authentication modules that define&lt;br /&gt;
 # the central authentication scheme for use on the system&lt;br /&gt;
 # (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
 # traditional Unix authentication mechanisms.&lt;br /&gt;
 #&lt;br /&gt;
 auth       sufficient   pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi1.10/pam/&lt;br /&gt;
 password   sufficient   pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi1.10/pam/&lt;br /&gt;
 auth       required     pam_unix.so nullok_secure&lt;br /&gt;
&lt;br /&gt;
With this modification pam immediately starts to use the fingerprint reader to do local authorization (e.g. sudo/gdm use the fingerprint reader).&lt;br /&gt;
&lt;br /&gt;
''Note:'' With a system-auth like above, Gentoo will probably give you 'account expired' errors. Edit {{path|/etc/pam.d/common-auth}} to look like this.&lt;br /&gt;
&lt;br /&gt;
 account    required     pam_unix.so&lt;br /&gt;
 auth       sufficient   pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi1.10/pam/&lt;br /&gt;
 password   sufficient   pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi1.10/pam/&lt;br /&gt;
 auth       required     pam_unix.so nullok_secure&lt;br /&gt;
 session    required     pam_limits.so&lt;br /&gt;
 session    required     pam_uni&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if su/sudo expects to receive the root password (SuSE 10), you need to have fingerprint settings for root (that is, copy in a root.bir as well as a your-username.bir).  Otherwise, they get a segmentation fault.  Which is a little unfortunate, given that you need to su or sudo to change your settings...&lt;br /&gt;
&lt;br /&gt;
For some applications (kdm, SuSE 10 KDE screen saver), you'll need to enter an empty password (or select the correct user and then enter an empty password) in order to get the fingerprint prompt.  kdm didn't give any visual indication it was going to the fingerprint reader, other than the cursor stopped blinking, but I swiped, and it let me in.&lt;br /&gt;
&lt;br /&gt;
Note that sshd may pick up the fingerprint settings from {{path|/etc/pam.d/common-auth}}.  I didn't want that, so I removed the &amp;quot;auth include common-auth&amp;quot; line from {{path|/etc/pam.d/sshd}} and replaced it with the lines that were originally in my {{path|/etc/pam.d/common-auth}}.  That way most local services use the fingerprint reader, but sshd does not.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|This was discovered through trial and success, if it is plain wrong, wikorrect it, please.}}&lt;br /&gt;
&lt;br /&gt;
On {{Fedora}}, you may need to add {{path|/usr/local/lib}} to your LD_LIBRARY path so that the libraries referenced from &amp;lt;tt&amp;gt;pam_bioapi.so&amp;lt;/tt&amp;gt; get picked up properly. Also the original 'session' terms in {{path|/etc/pam.d/system-auth}} need to be kept.&lt;br /&gt;
&lt;br /&gt;
Now gdm should pop up an (ugly) image to swipe your finger and... magic - you can login without a password.&lt;br /&gt;
&lt;br /&gt;
==Make xscreensaver use the scanner==&lt;br /&gt;
*Get the needed xscreensaver sources:&lt;br /&gt;
:{{cmduser|wget http://www.jwz.org/xscreensaver/xscreensaver-4.23.tar.gz}}&lt;br /&gt;
:{{cmduser|tar xzf xscreensaver-4.23.tar.gz}}&lt;br /&gt;
:{{cmduser|cd xscreensaver-4.23}}&lt;br /&gt;
:{{cmduser|wget http://nax.hn.org/pub/bioapi/xscreensaver-4.22_alternativeAuth.diff}}&lt;br /&gt;
*After reviewing the patch (it's small and straightforward), do&lt;br /&gt;
:{{cmduser|patch -p1 &amp;lt; xscreensaver-4.22_alternativeAuth.diff}}&amp;lt;br /&amp;gt;The patch prevents xscreensaver from opening an authentification window and dispatches the authentification request to another program, in our case &amp;lt;tt&amp;gt;pam&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;pam_bioapi&amp;lt;/tt&amp;gt;. It should apply with some offset, don't mind that. If it says something about rejected though, then there's a problem.&lt;br /&gt;
*Compile with&lt;br /&gt;
:{{cmduser|./configure --with-pam &amp;amp;&amp;amp; make}}&amp;lt;br /&amp;gt;&lt;br /&gt;
*If you recieve an error like &amp;quot;undefined reference to `XmuPrintDefaultErrorMessage'&amp;quot; then install the libxmu-dev package and run the previous line again&lt;br /&gt;
*and then install as root with&lt;br /&gt;
:{{cmduser|su -c make install}} .&lt;br /&gt;
*Make sure that the newly compiled xscreensaver is used:&lt;br /&gt;
:{{cmduser|which xscreensaver}} should return&lt;br /&gt;
:{{cmdresult|/usr/local/bin/xscreensaver}} .&lt;br /&gt;
:*In case it doesn't, try &lt;br /&gt;
::{{cmduser|1=export PATH=/usr/local/bin:$PATH}}&amp;lt;br /&amp;gt;and retry.&lt;br /&gt;
*Kill the running instance of xscreensaver:&lt;br /&gt;
:{{cmduser|xscreensaver-command -exit}} &lt;br /&gt;
*Make sure you have the following line in your {{path|~/.xscreensaver}}:&lt;br /&gt;
 alternativeAuth: True&lt;br /&gt;
*Now edit {{path|/etc/pam.d/xscreensaver}} to include the following line (If you're on {{Ubuntu}} Breezy and you already changed {{path|/etc/pam.d/common-auth}} you should not need to do this.):&lt;br /&gt;
 auth    sufficient      pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi1.10/pam/&lt;br /&gt;
*Start the new xscreensaver&lt;br /&gt;
:{{cmduser|xscreensaver}}&amp;lt;br /&amp;gt;There should be a splash screen with version 4.23.&lt;br /&gt;
*Now try:&lt;br /&gt;
:{{cmduser|xscreensaver-command -lock}}&lt;br /&gt;
&lt;br /&gt;
If you have questions or problems with this procedure, ask: t43fingerprint (at) badcode.de .&lt;br /&gt;
&lt;br /&gt;
===Package for Debian sid===&lt;br /&gt;
&lt;br /&gt;
If you're running {{Debian}} sid (the unstable branch) you can also try the patched .deb-package (built from current Debian sources fetched with {{cmd|apt-get source|}}) from [http://linux.spiney.org/debian_gnu_linux_on_an_ibm_thinkpad_t43p_fingerprint_reader this page], which also has Debian-specific instructions on how to setup the fingerprint reader. Use it on your own risk.&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting and Hints==&lt;br /&gt;
# After installing the driver, don't forget to reboot!&lt;br /&gt;
## This might not be necessary. it worked here without having to reboot.&lt;br /&gt;
# To see if the fingerprint device is know on the USB bus do:&lt;br /&gt;
:{{cmdroot|/sbin/lsusb}}&lt;br /&gt;
:as root and you should see a line like:&lt;br /&gt;
:{{cmdresult|Bus 003 Device 004: ID 0483:2016 SGS Thomson Microelectronics}}&lt;br /&gt;
:The bus and device number can be different. This should work without the driver installed. If the device does not show up, you have a hardware problem/quirk, Rebooting might fix this.&lt;br /&gt;
# For some installation, after installing the driver as in section [[#Installing the driver|Installing the driver]] and makingÂ´sure the device is recognized, try to test it  by going to {{path|NonGUI_Sample}} directory and run {{cmdroot|./Sample}}, one get segmentation fault. In this case, try getting the Beta1 instead of Beta2 of the driver and installing it&lt;br /&gt;
# There was some confusion about the /etc/bioapi1.10/pam{5550454b-2054-464d-2f45-535320425350} path, this has been fixed in the howto, if you have problems, check the section again, the path needs to have the '-' in them&lt;br /&gt;
# When something goes wrong look at the tail of {{path|/var/log/auth.log}}. Specifically if you see an entry saying something like&lt;br /&gt;
 pam_bioapi[10480]: Unable to load BioAPI BSP with UUID of {5550454b-2054-464d-2f45-535320425350}, BioAPI error &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;194d.&lt;br /&gt;
Check whether your {{path|/proc/bus/usb}} directory permissions are set up as in the &lt;br /&gt;
section [[#Installing the driver|Installing the driver]].&lt;br /&gt;
# To get the xscreensaver compiled you might need a bunch of header files, in my case I need the following:&lt;br /&gt;
#*python-gtk2-dev&lt;br /&gt;
#*libgstreamer0.8-dev&lt;br /&gt;
#*xlibs-dev&lt;br /&gt;
# Sometimes {{path|$HOME/.xscreensaver}} got overwritten, try changing it to read-only.&lt;br /&gt;
# If after suspending to RAM and resume, lsusb no longer have &amp;quot;SGS Thomson Microelectronics&amp;quot; entry, try adding a line &lt;br /&gt;
:{{cmdroot|/etc/init.d/hotplug restart}}&lt;br /&gt;
to your {{path|/etc/acpi/resume.sh}} file&lt;br /&gt;
#If after resume lsusb shows the device but xscreensaver does not ask for fingerprint for login, you might want to check the permission of the usb bus in the appropriate {{path|/proc/bus/usb/}} entry. If necessesary you might need to add a line to {{path|/etc/acpi/resume.sh}} as in section [[#Installing the driver|Installing the driver]] to set the permission right.&lt;br /&gt;
-----&lt;br /&gt;
If it still doesn't work, ask me for help (and make sure all usefull stuff makes it back into this wiki :)&lt;br /&gt;
to get a starting point as to where your problem is please include the output of:&lt;br /&gt;
&lt;br /&gt;
:{{cmduser|lsusb}}&lt;br /&gt;
&lt;br /&gt;
:{{cmduser|ldconfig -p | grep bioapi}}&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|updatedb &amp;amp;&amp;amp; locate bioapi}}&lt;br /&gt;
&lt;br /&gt;
t43fingerprint (at) badcode.de&lt;/div&gt;</summary>
		<author><name>Edovino</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_enable_integrated_fingerprint_reader_with_BioAPI&amp;diff=12463</id>
		<title>How to enable integrated fingerprint reader with BioAPI</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=How_to_enable_integrated_fingerprint_reader_with_BioAPI&amp;diff=12463"/>
		<updated>2005-11-20T21:10:35Z</updated>

		<summary type="html">&lt;p&gt;Edovino: /* Configuring pam */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top;padding-right:20px;width:10px;white-space:nowrap;&amp;quot; | __TOC__&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
This page describes the process of getting the fingerprint reader to work. It is based on experiences in {{Ubuntu}} on a T43. The same works on {{Fedora}} 4 and SuSE 10.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Basic driver installation==&lt;br /&gt;
===Getting required libs and tools===&lt;br /&gt;
====Installing the bioapi framework====&lt;br /&gt;
=====Binary packages=====&lt;br /&gt;
*If you're using {{Debian}} Sid (the unstable branch) you can try the packages from Michael R. Crusoe's site, either [http://www.qrivy.net/~michael/temp/ version 1.2.3] (recommended) or [http://www.qrivy.net/~michael/debs/unstable/ older versions] which might not work with the steps in this howto.&lt;br /&gt;
=====Installing from source=====&lt;br /&gt;
*Get the bioapi source:&lt;br /&gt;
:{{cmduser|wget http://www.qrivy.net/~michael/blua/bioapi/bioapi-1.2.2.tar.bz2}}&lt;br /&gt;
*I could not compile bioapi with the graphical Qt tools. To do it manually, do the following:&lt;br /&gt;
:{{cmduser|tar xjf bioapi-1.2.2.tar.bz2}}&lt;br /&gt;
:{{cmduser|cd bioapi-1.2.2}}&lt;br /&gt;
:{{cmduser|1=./configure --with-Qt-dir=no}}&lt;br /&gt;
:{{cmduser|make}}&lt;br /&gt;
:and then as root&lt;br /&gt;
:{{cmdroot|make install}}&lt;br /&gt;
:If make install fails, be sure you're root and then:&lt;br /&gt;
:{{cmdroot|1=export LD_LIBRARY_PATH=/usr/local/lib}}&lt;br /&gt;
:{{cmdroot|make install}}&lt;br /&gt;
:and if you want to compile pam_bioapi for auth later&lt;br /&gt;
:{{cmdroot|cp include/bioapi_util.h include/installdefs.h imports/cdsa/v2_0/inc/cssmtype.h /usr/include}}&lt;br /&gt;
:Be aware that checkinstall will not work!&lt;br /&gt;
:(I got through configure with Qt, but got a cryptic build error.  It all worked fine with Qt disabled as above)&lt;br /&gt;
&lt;br /&gt;
====Installing the driver====&lt;br /&gt;
*Download {{path|TFMESS_BSP_LIN_1.0beta2.zip}} from http://www.qrivy.net/~michael/blua/upek-bsp.html and unzip it into a seperate folder, as it will not create one.&lt;br /&gt;
*Change to that folder and do as root:&lt;br /&gt;
:{{cmdroot|sh install.sh}}&lt;br /&gt;
:If that fails, it may be that make install failed up above -- try setting LD_LIBRARY_PATH, do the make install again, and come back here and try this again&lt;br /&gt;
*If you want to use PAM-aware applications like xscreensaver that are NOT running with root permissions (as opposed to login, gdm or other authentication mechanisms), do the following as root (this doesn't seem necessary on SuSE 10):&lt;br /&gt;
:{{cmdroot|chmod 777 -R /usr/local/var/bioapi/}}&lt;br /&gt;
:Actually this depends on where you installed, if you did as suggested, it should work. Otherwise you probably know what you're doing anyways. :)&lt;br /&gt;
:{{cmdroot|touch /var/log/BSP.log &amp;amp;&amp;amp; chmod 666 /var/log/BSP.log}}&lt;br /&gt;
:{{cmdroot|chmod -R a+X /proc/bus/usb}}&lt;br /&gt;
:{{cmdroot|chmod 666 /proc/bus/usb/`/sbin/lsusb &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; sed -ne &amp;quot;/0483:2016/s/Bus\ \(.*\)\ Device\ \(.*\):\ .*/\1\/\2/p&amp;quot;`}}&lt;br /&gt;
:It might be nessecary to put the above line into a startup script somewhere.&lt;br /&gt;
&lt;br /&gt;
===Testing the driver===&lt;br /&gt;
Go to the folder where you extracted {{path|TFMESS_BSP_LIN_1.0beta2.zip}} and do:&lt;br /&gt;
:{{cmdroot|cd NonGUI_Sample}}&lt;br /&gt;
:{{cmdroot|chmod +x Sample}}&lt;br /&gt;
:{{cmdroot|./Sample}}&lt;br /&gt;
:Note that Sample may only run as root&lt;br /&gt;
:You can try to &amp;quot;e&amp;quot;nroll (to record a fingerprint for an account) and then &amp;quot;v&amp;quot;erify (to test a fingerprint against the one it expects for an account)&lt;br /&gt;
:You'll save a step later if you user your own login username as the username to enroll here&lt;br /&gt;
&lt;br /&gt;
==GDM Login via pam_bioapi==&lt;br /&gt;
===Getting required libs &amp;amp; tools===&lt;br /&gt;
====Installing pam_bioapi====&lt;br /&gt;
*Prerequisites&lt;br /&gt;
:On SuSE 10, I needed to install the pam-devel RPM&lt;br /&gt;
*Get and compile the pam_bioapi module.&lt;br /&gt;
:{{cmduser|wget http://www.qrivy.net/~michael/blua/pam_bioapi/pam_bioapi-0.2.1.tar.bz2}}&lt;br /&gt;
:{{cmduser|tar xjf pam_bioapi-0.2.1.tar.bz2}}&lt;br /&gt;
:{{cmduser|cd pam_bioapi-0.2.1}}&lt;br /&gt;
:{{cmduser|wget http://badcode.de/downloads/fingerprint.patch}}&lt;br /&gt;
:{{cmduser|patch -p0 &amp;lt; fingerprint.patch}}&lt;br /&gt;
:If you want to, review the patch. In general you should review all code you download and compile, if possible. The patch comes from [http://linuxbiometrics.com/modules/newbb/viewtopic.php?viewmode=flat&amp;amp;topic_id=80&amp;amp;forum=1 this thread].&lt;br /&gt;
:{{cmduser|./configure &amp;amp;&amp;amp; make}}&lt;br /&gt;
{{NOTE|If encountering 'rpl_malloc' symbol, remove the related term in the makefile. (FC3)}}&lt;br /&gt;
:and as root&lt;br /&gt;
:{{cmdroot| make install}}&lt;br /&gt;
:{{cmdroot| cp /usr/local/lib/security/* /lib/security/}}&lt;br /&gt;
*Use the sample tool from the fingerprint reader to create {{path|&amp;lt;username&amp;gt;.bir}} (&amp;lt;tt&amp;gt;&amp;lt;username&amp;gt;&amp;lt;/tt&amp;gt; '''must''' be the username you want to login with. gdm will probably break for any login name that has no .bir file).&lt;br /&gt;
*As root do:&lt;br /&gt;
:{{cmdroot|SERIAL&amp;lt;nowiki&amp;gt;=`BioAPITest | sed -ne &amp;quot;/Fingerprint/{n;n;s/^.*: \(.\{9\}\)\(.\{4\}\)\(.\{4\}\)\(.\{4\}\)\(.*\)/\1-\2-\3-\4-\5/gp}&amp;quot;` &amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
:{{cmdroot|echo $SERIAL}} should print something like {{cmdresult|&amp;lt;nowiki&amp;gt;{5550454b-2054-464d-2f45-535320425350}&amp;lt;/nowiki&amp;gt;}} now.&lt;br /&gt;
:If it does, do:&lt;br /&gt;
:{{cmdroot|mkdir -p /etc/bioapi1.10/pam/$SERIAL}}&lt;br /&gt;
:{{cmdroot|cp &amp;lt;username&amp;gt;.bir /etc/bioapi1.10/pam/$SERIAL}}&lt;br /&gt;
&lt;br /&gt;
===Configuring pam===&lt;br /&gt;
The following part is distribution specific. On {{Ubuntu}} or SuSE you can modify {{path|/etc/pam.d/common-auth}} (on {{Gentoo}} and {{Fedora}} it is {{path|/etc/pam.d/system-auth}}) to look like this:&lt;br /&gt;
&lt;br /&gt;
 #&lt;br /&gt;
 # /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
 #&lt;br /&gt;
 # This file is included from other service-specific PAM config files,&lt;br /&gt;
 # and should contain a list of the authentication modules that define&lt;br /&gt;
 # the central authentication scheme for use on the system&lt;br /&gt;
 # (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
 # traditional Unix authentication mechanisms.&lt;br /&gt;
 #&lt;br /&gt;
 auth       sufficient   pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi1.10/pam/&lt;br /&gt;
 password   sufficient   pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi1.10/pam/&lt;br /&gt;
 auth       required     pam_unix.so nullok_secure&lt;br /&gt;
&lt;br /&gt;
With this modification pam immediately starts to use the fingerprint reader to do local authorization (e.g. sudo/gdm use the fingerprint reader).&lt;br /&gt;
&lt;br /&gt;
''Note:'' With a system-auth like above, Gentoo will probably give you 'account expired' errors. Edit {{path|/etc/pam.d/common-auth}} to look like this.&lt;br /&gt;
&lt;br /&gt;
 account    required     pam_unix.so&lt;br /&gt;
 auth       sufficient   pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi1.10/pam/&lt;br /&gt;
 password   sufficient   pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi1.10/pam/&lt;br /&gt;
 auth       required     pam_unix.so nullok_secure&lt;br /&gt;
 session    required     pam_limits.so&lt;br /&gt;
 session    required     pam_uni&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if su/sudo expects to receive the root password (SuSE 10), you need to have fingerprint settings for root (that is, copy in a root.bir as well as a your-username.bir).  Otherwise, they get a segmentation fault.  Which is a little unfortunate, given that you need to su or sudo to change your settings...&lt;br /&gt;
&lt;br /&gt;
For some applications (kdm, SuSE 10 KDE screen saver), you'll need to enter an empty password (or select the correct user and then enter an empty password) in order to get the fingerprint prompt.  kdm didn't give any visual indication it was going to the fingerprint reader, other than the cursor stopped blinking, but I swiped, and it let me in.&lt;br /&gt;
&lt;br /&gt;
Note that sshd may pick up the fingerprint settings from {{path|/etc/pam.d/common-auth}}.  I didn't want that, so I removed the &amp;quot;auth include common-auth&amp;quot; line from {{path|/etc/pam.d/sshd}} and replaced it with the lines that were originally in my {{path|/etc/pam.d/common-auth}}.  That way most local services use the fingerprint reader, but sshd does not.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|This was discovered through trial and success, if it is plain wrong, wikorrect it, please.}}&lt;br /&gt;
&lt;br /&gt;
On {{Fedora}}, you may need to add {{path|/usr/local/lib}} to your LD_LIBRARY path so that the libraries referenced from &amp;lt;tt&amp;gt;pam_bioapi.so&amp;lt;/tt&amp;gt; get picked up properly. Also the original 'session' terms in {{path|/etc/pam.d/system-auth}} need to be kept.&lt;br /&gt;
&lt;br /&gt;
Now gdm should pop up an (ugly) image to swipe your finger and... magic - you can login without a password.&lt;br /&gt;
&lt;br /&gt;
==Make xscreensaver use the scanner==&lt;br /&gt;
*Get the needed xscreensaver sources:&lt;br /&gt;
:{{cmduser|wget http://www.jwz.org/xscreensaver/xscreensaver-4.23.tar.gz}}&lt;br /&gt;
:{{cmduser|tar xzf xscreensaver-4.23.tar.gz}}&lt;br /&gt;
:{{cmduser|cd xscreensaver-4.23}}&lt;br /&gt;
:{{cmduser|wget http://nax.hn.org/pub/bioapi/xscreensaver-4.22_alternativeAuth.diff}}&lt;br /&gt;
*After reviewing the patch (it's small and straightforward), do&lt;br /&gt;
:{{cmduser|patch -p1 &amp;lt; xscreensaver-4.22_alternativeAuth.diff}}&amp;lt;br /&amp;gt;The patch prevents xscreensaver from opening an authentification window and dispatches the authentification request to another program, in our case &amp;lt;tt&amp;gt;pam&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;pam_bioapi&amp;lt;/tt&amp;gt;. It should apply with some offset, don't mind that. If it says something about rejected though, then there's a problem.&lt;br /&gt;
*Compile with&lt;br /&gt;
:{{cmduser|./configure --with-pam &amp;amp;&amp;amp; make}}&amp;lt;br /&amp;gt;&lt;br /&gt;
*If you recieve an error like &amp;quot;undefined reference to `XmuPrintDefaultErrorMessage'&amp;quot; then install the libxmu-dev package and run the previous line again&lt;br /&gt;
*and then install as root with&lt;br /&gt;
:{{cmduser|su -c make install}} .&lt;br /&gt;
*Make sure that the newly compiled xscreensaver is used:&lt;br /&gt;
:{{cmduser|which xscreensaver}} should return&lt;br /&gt;
:{{cmdresult|/usr/local/bin/xscreensaver}} .&lt;br /&gt;
:*In case it doesn't, try &lt;br /&gt;
::{{cmduser|1=export PATH=/usr/local/bin:$PATH}}&amp;lt;br /&amp;gt;and retry.&lt;br /&gt;
*Kill the running instance of xscreensaver:&lt;br /&gt;
:{{cmduser|xscreensaver-command -exit}} &lt;br /&gt;
*Make sure you have the following line in your {{path|~/.xscreensaver}}:&lt;br /&gt;
 alternativeAuth: True&lt;br /&gt;
*Now edit {{path|/etc/pam.d/xscreensaver}} to include the following line (If you're on {{Ubuntu}} Breezy and you already changed {{path|/etc/pam.d/common-auth}} you should not need to do this.):&lt;br /&gt;
 auth    sufficient      pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi1.10/pam/&lt;br /&gt;
*Start the new xscreensaver&lt;br /&gt;
:{{cmduser|xscreensaver}}&amp;lt;br /&amp;gt;There should be a splash screen with version 4.23.&lt;br /&gt;
*Now try:&lt;br /&gt;
:{{cmduser|xscreensaver-command -lock}}&lt;br /&gt;
&lt;br /&gt;
If you have questions or problems with this procedure, ask: t43fingerprint (at) badcode.de .&lt;br /&gt;
&lt;br /&gt;
===Package for Debian sid===&lt;br /&gt;
&lt;br /&gt;
If you're running {{Debian}} sid (the unstable branch) you can also try the patched .deb-package (built from current Debian sources fetched with {{cmd|apt-get source|}}) from [http://linux.spiney.org/debian_gnu_linux_on_an_ibm_thinkpad_t43p_fingerprint_reader this page], which also has Debian-specific instructions on how to setup the fingerprint reader. Use it on your own risk.&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting and Hints==&lt;br /&gt;
# After installing the driver, don't forget to reboot!&lt;br /&gt;
## This might not be necessary. it worked here without having to reboot.&lt;br /&gt;
# To see if the fingerprint device is know on the USB bus do:&lt;br /&gt;
:{{cmdroot|/sbin/lsusb}}&lt;br /&gt;
:as root and you should see a line like:&lt;br /&gt;
:{{cmdresult|Bus 003 Device 004: ID 0483:2016 SGS Thomson Microelectronics}}&lt;br /&gt;
:The bus and device number can be different. This should work without the driver installed. If the device does not show up, you have a hardware problem/quirk, Rebooting might fix this.&lt;br /&gt;
# For some installation, after installing the driver as in section [[#Installing the driver|Installing the driver]] and makingÂ´sure the device is recognized, try to test it  by going to {{path|NonGUI_Sample}} directory and run {{cmdroot|./Sample}}, one get segmentation fault. In this case, try getting the Beta1 instead of Beta2 of the driver and installing it&lt;br /&gt;
# There was some confusion about the /etc/bioapi1.10/pam{5550454b-2054-464d-2f45-535320425350} path, this has been fixed in the howto, if you have problems, check the section again, the path needs to have the '-' in them&lt;br /&gt;
# When something goes wrong look at the tail of {{path|/var/log/auth.log}}. Specifically if you see an entry saying something like&lt;br /&gt;
 pam_bioapi[10480]: Unable to load BioAPI BSP with UUID of {5550454b-2054-464d-2f45-535320425350}, BioAPI error &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;194d.&lt;br /&gt;
Check whether your {{path|/proc/bus/usb}} directory permissions are set up as in the &lt;br /&gt;
section [[#Installing the driver|Installing the driver]].&lt;br /&gt;
# To get the xscreensaver compiled you might need a bunch of header files, in my case I need the following:&lt;br /&gt;
#*python-gtk2-dev&lt;br /&gt;
#*libgstreamer0.8-dev&lt;br /&gt;
#*xlibs-dev&lt;br /&gt;
# Sometimes {{path|$HOME/.xscreensaver}} got overwritten, try changing it to read-only.&lt;br /&gt;
# If after suspending to RAM and resume, lsusb no longer have &amp;quot;SGS Thomson Microelectronics&amp;quot; entry, try adding a line &lt;br /&gt;
:{{cmdroot|/etc/init.d/hotplug restart}}&lt;br /&gt;
to your {{path|/etc/acpi/resume.sh}} file&lt;br /&gt;
#If after resume lsusb shows the device but xscreensaver does not ask for fingerprint for login, you might want to check the permission of the usb bus in the appropriate {{path|/proc/bus/usb/}} entry. If necessesary you might need to add a line to {{path|/etc/acpi/resume.sh}} as in section [[#Installing the driver|Installing the driver]] to set the permission right.&lt;br /&gt;
-----&lt;br /&gt;
If it still doesn't work, ask me for help (and make sure all usefull stuff makes it back into this wiki :)&lt;br /&gt;
to get a starting point as to where your problem is please include the output of:&lt;br /&gt;
&lt;br /&gt;
:{{cmduser|lsusb}}&lt;br /&gt;
&lt;br /&gt;
:{{cmduser|ldconfig -p | grep bioapi}}&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|updatedb &amp;amp;&amp;amp; locate bioapi}}&lt;br /&gt;
&lt;br /&gt;
t43fingerprint (at) badcode.de&lt;/div&gt;</summary>
		<author><name>Edovino</name></author>
		
	</entry>
</feed>