2018-10-24 15:21:07 +00:00
|
|
|
---
|
|
|
|
layout: post
|
2021-02-03 12:03:48 +00:00
|
|
|
title: "Installing Gentoo on a Lenovo ThinkPad X60s"
|
|
|
|
date: 2016-07-12 13:00:00 +0200
|
2018-10-24 15:21:07 +00:00
|
|
|
categories: linux
|
|
|
|
---
|
2021-02-03 12:03:48 +00:00
|
|
|
|
2018-10-24 15:21:07 +00:00
|
|
|
<p>
|
|
|
|
Currently, my only laptop is a
|
2021-02-03 12:03:48 +00:00
|
|
|
<a href="http://www.thinkwiki.org/wiki/Category:X60s"
|
|
|
|
>IBM/Lenovo ThinkPad X60s</a
|
|
|
|
>, a top line <em>ultrabook</em> from 2006 that features:
|
2018-10-24 15:21:07 +00:00
|
|
|
</p>
|
|
|
|
|
2021-02-03 12:03:48 +00:00
|
|
|
<ul>
|
|
|
|
<li>An Intel Core Duo L2400 dual core 32 bit CPU, clocked at 1.66 Ghz;</li>
|
|
|
|
<li>2GB of RAM;</li>
|
|
|
|
<li>60GB of SATA1 hard drive;</li>
|
|
|
|
<li>
|
|
|
|
Wifi, Bluetooth, trackpoint mouse only, 56k modem, and a decent set of I/0
|
|
|
|
ports (including a CardBus slot!).
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2018-10-24 15:21:07 +00:00
|
|
|
<p>
|
2021-02-03 12:03:48 +00:00
|
|
|
<img src="/images/thinkpad1.jpg" alt="An image of the ThinkPad X60s" />
|
2018-10-24 15:21:07 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2021-02-03 12:03:48 +00:00
|
|
|
<img src="/images/thinkpad2.jpg" alt="Another image of the ThinkPad X60s" />
|
2018-10-24 15:21:07 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
This machine had an installation on <em>Arch Linux</em>, and I was using it
|
|
|
|
for school stuff. It runned smoothly <em>KDE5</em>, <em>Atom</em> (great
|
|
|
|
editor, I am using it to write this article), and it was usable even with
|
|
|
|
<em>PhpStorm</em>. Pretty impressive for such an old thing, right?
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2021-02-03 12:03:48 +00:00
|
|
|
Since now I don't need this laptop every day I decided to give a try at
|
|
|
|
Gentoo, another rolling relase, DIY install distro. This was both a test of my
|
|
|
|
skills, my patience and the performances of the machine. For those of you that
|
|
|
|
don't know, Gentoo hasn't binary packages: imagine using Arch with just a
|
|
|
|
developer mantained AUR.
|
2018-10-24 15:21:07 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2021-02-03 12:03:48 +00:00
|
|
|
I followed the
|
|
|
|
<a href="https://wiki.gentoo.org/wiki/Handbook:Main_Page">
|
|
|
|
installation guide</a
|
|
|
|
>
|
|
|
|
without any problem until I had to <em>emerge</em> and install 309 packets
|
|
|
|
from my <code>@world</code> set: it took 15 hours! The compilation of
|
|
|
|
<code>cmake</code> crashed because of memory starvation, and so I had to use a
|
|
|
|
spare USB stick as swap (the root file system was not resizable as it was
|
|
|
|
JFS). After some research and a couple of seconds in <code>top</code> I
|
|
|
|
discovered that
|
2018-10-24 15:21:07 +00:00
|
|
|
<a href="https://en.wikipedia.org/wiki/Physical_Address_Extension">PAE</a>
|
|
|
|
was not implemented in the install disk kernel. <strong>TIP:</strong> if you
|
|
|
|
want to use a nicer install enviroment, use the <em>Arch</em> ISO. With
|
|
|
|
<em>Gentoo</em>, the initialisation of the file system is made with a
|
2021-02-03 12:03:48 +00:00
|
|
|
<a href="https://wiki.gentoo.org/wiki/Stage_tarball#Stage_3"
|
|
|
|
><em>stage 3 tarball</em></a
|
|
|
|
>
|
|
|
|
and not by tools like
|
|
|
|
<a
|
|
|
|
href="https://wiki.archlinux.org/index.php/beginners'_guide#Install_the_base_packages"
|
|
|
|
>
|
|
|
|
<code>pacstrap</code></a
|
|
|
|
>.
|
2018-10-24 15:21:07 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
I had another problem with <code>make menuconfig</code>, the tool used to
|
|
|
|
specify what features add or remove in your compiled from source Linux kernel.
|
|
|
|
The <code>ncurses</code> menu showed me 64bit options, even if the install
|
2021-02-03 12:03:48 +00:00
|
|
|
disk and the CPU were both 32 bit. If you have this issue too, you can set the
|
|
|
|
<code>ARCH</code> variable by your own:
|
2018-10-24 15:21:07 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2024-01-08 11:04:54 +00:00
|
|
|
{% highlight bash %}
|
|
|
|
make ARCH=i386 menuconfig
|
|
|
|
make ARCH=i386
|
|
|
|
make ARCH=i386 install
|
|
|
|
{% endhighlight %}
|
2018-10-24 15:21:07 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2021-02-03 12:03:48 +00:00
|
|
|
At the end, I made it! I only have a base install, but i can show you
|
2018-10-24 15:21:07 +00:00
|
|
|
<code>screenfetch</code>:
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2021-02-03 12:03:48 +00:00
|
|
|
<img src="/images/screenfetch.jpg" alt="The laptop running 'screenfetch'" />
|
2018-10-24 15:21:07 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2021-02-03 12:03:48 +00:00
|
|
|
I have not installed <em>Gentoo</em> in dual boot because I did not figure out
|
|
|
|
how to switch my bluetooth dongle in HID mode yet, so I can't select the OS
|
|
|
|
with <code>rEFInd</code>. Hope this rambling was, if not useful, at least
|
2018-10-24 15:21:07 +00:00
|
|
|
entertaining!
|
|
|
|
</p>
|