===== Installare Arch Linux su Asus Eee 701 ===== Nota: ci sono [[http://wiki.archlinux.org/index.php/Installing_Arch_Linux_on_the_Asus_EEE_PC|ulteriori dettagli e aggiornamenti sulle istruzioni in Arch Wiki]]. Kernel e pacchetti dei moduli per Eee sono disponibili in [[http://aur.archlinux.org/|AUR]]. ===== Perché usare Arch Linux? ===== * Arch Linux fornisce una installazione di Linux molto basilare con solo i pacchetti necessari a loggarsi in una console. Sarai tu a decidere cosa installare; non ci sarà nulla che tu non voglia sul tuo sistema. Sul Eee questo è un grande vantaggio, che risparmia molto spazio. * Nonostante Arch Linux non faccia tutta la configurazione al tuo posto, il sistema sottostante è davvero semplice e facile da comprendere, in confronto ai sistemi complessi delle distribuzioni che cercano di fare tutto al tuo posto. Se vuoi imparare come lavora Linux, Arch Linux è un'ottima scelta, dato che nulla è oscurato da script complicati che rilevano l'hardware, ecc. * Arch Linux ha un amministratore di pacchetti molto buono chiamato pacman. La combinazione di pacman, la ricchezza e qualità del repository dei pacchetti di Arch Linux, i programmi di intallazione, disinstallazione e aggiornamento, è qualche cosa che "just works". Pacman è stato creato con lo spirito di Arch Linux, perciò è anche semplice da capire, e creare i tuoi pacchetti sarà altrettanto facile. * La comunità di Arch Linux è davvero piccola, ma è molto amichevole e disponibile. Sebbene tu sia stato avvertito che Arch Linux è per utenti esperti, domande, seppure ingenue, avranno una risposta in tono cordiale. (OK, alcune persone sono grezze, ma sono molto rare.) ===== Perché non dovresti usare Arch Linux? ===== * Se non hai molta esperienza col computer, e non conosci Linux, Arch Linux sarà molto sinistro, strano e irritante. * Se vuoi una distribuzione Linux con una installazione che porti subito al funzionamento di qualsiasi cosa tu voglia fare, allora Arch Linux non fa per te. Ti suggerisco di rimanere con Xandros o installare Ubuntu, ma poi avrai comunque qualche cosa da fare per personalizzarlo. ===== Installazione da un'unità CD-ROM esterna ===== Tratterò due metodi per installare Arch Linux sull'Eee: * Un'installazione normale da Normal install from zero con un'unità CR-ROM esterna. * Usando un'immagine file con Arch Linux pre installato. Ci sono altri metodi che non tratterò, come l'installazione da unità USB. Il sito [[http://wiki.archlinux.org|Arch Linux wiki]] risulterà ultile per questo (oltre a quel che ho duplicato quì...). Cominciamo: ==== 1. Back up dei dati ==== E' importante essere sicuri di poter rimuovere tutto sull'SSD del tuo Eee senza perdere i dati di cui hai bisogno. Indipendentemente da quello che sarà fatto. Il modo più veloce per ripristinare sarà anche cancellare, così, se vorrai ripristinare Xandros, avrai bisogno del DVD in dotazione. ==== 2a. Scarica tutto quello di cui avrai bisogno ==== Il materiale del kernel di Arch Linux non include i driver per alcune delle schede di rete degli Eee. Questo rende difficile proseguire dopo l'installazione del sistema di base. Un'opzione per superare questo è scaricare i sorgenti per i driver necessari prima dell'installazione e poi compilarli subito dopo l'installazione di base. L'altra opzione è scaricare il pacchetto del kernel modificato dal repository della [community] da installare sempre dopo l'installazione di base. La seconda opzione è ovviamente più semplice della prima, ma riceverai istruzioni per eseguire entrambe le opzioni e vedrai dove sono i sorgenti di tutti i driver e come sono da installare. Se vuoi usare il kernel preconfigurato, vai al punto 2b. Se vuoi installare tutti driver da solo, leggi di seguito: * [[http://www.archlinux.org/download/|CD di installazione di Arch Linux]] * [[http://people.redhat.com/csnook/atl2/|Sorgenti dei driver Atl2 ethernet]] * [[http://snapshots.madwifi.org/madwifi-ng/madwifi-ng-r2756-20071018.tar.gz|Sorgenti del driver Atheros Wi-Fi]] * [[http://madwifi.org/attachment/ticket/1679/madwifi-ng-0933.ar2425.20071130.i386.patch?format=raw |Patch del driver Atheros]] * [[ftp://ftp.asus.com/pub/ASUS/EeePC/701/ASUS_ACPI_071126.rar|Sorgenti dell'acpi di ASUS]] * [[http://ddlascar.free.fr/acpi.patch|Patch dell'acpi per 2.6.23 ->]] * Usa subversion per scaricare i sorgenti del driver uvcvideo: svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk mv trunk linux-uvc Tutti questi file potranno essere disponibili su di un CD, penna USB, o scheda SD per il tuo Eee dopo l'installazione. ==== 2b. Scarica l'iso di Arch Linux iso e il kernel modificato per Eee ==== Vai nella [[http://www.archlinux.org/download|pagina del download di Arch]]. Scarica l'immagine dell'installazione del cuore di Arch Linux. Il kernel è nel repository [community]. Per scaricare il pacchetto, scegliere uno dei siti mirror in basso e andare nella directory community. Troverai un file chiamato kernel26eee-qualchecosa. Scarica l'ultima versione e salvalo su di un CD, penna USB o scheda SD. ==== 3. Boot dal CD ==== First you have to burn the Arch Linux ISO image file to a CD. Then, start the Eee with the CD-ROM drive connected and the CD inserted. When the ASUS Eee BIOS startup screen appears, press Esc quickly, to get into the boot menu. Choose to boot from the CD. When the CD boot prompt appears, just press Enter. ==== 4. Create a partition ==== After a while, you'll get to a prompt again. On my Eee there was something wrong with the partition table, so I had to create a new one before starting the install script. To do this write: cfdisk -z cfdisk has a quite user-friendly interface, so you shouldn't have any problems with creating one primary partition that takes all the space on the disk. Make it bootable too, just to be sure. Write it, then exit. ==== 5. Arch Installation ==== To start the Arch Linux installation script, write: /arch/setup Then go through the menus from the top and down. This is all very well-explained in the Arch Linux documentation, so I'll not go through it here. Just remember to choose ext2 as file system. After everything is installed, reboot. ==== 6a. Install network adapter driver ==== Here again, you follow this section, 6a, if you are installing all the drivers yourself, and the next section, 6b, if you want to use the custom kernel. Here's simple instructions on how to install the driver for the wired card here. If you need instructions for the wifi, see further down for instructions. I'll suppose you have some Linux console knowledge for this. If not, ask in the forum, or search the internet. It's not as difficult as it looks. First, mount the CD or disk with the files you downloaded in Section 2. Copy the atl2-2.0.3.tar.gz file to a folder on the Eee drive and unpack it: tar -xzf atl2-2.0.3.tar.gz Go into the atl-2.0.3 folder and write: make Wait. There will be no errors. If there are any errors. Then seek a zen master. Write: insmod atl2.ko Your ethernet card driver is loaded. ==== 6b. Installing the custom kernel ==== Connect the USB drive or insert the CD or SD card where you saved the kernel package. Mount the drive, and go into the directory where the package is. Write as root: pacman -U kernel26eee* Then add something similar to this to the file /boot/grub/menu.lst: title kernel26-eee root (hd0,0) kernel /boot/vmlinuz26-eee root=/dev/sda1 ro Reboot, and choose kernel26-eee. You now have a kernel which should support all the hardware on the Eee. ==== 7. Update system ==== Arch Linux is a rolling distro. It's made for being updated regularly. The good thing about this is that you never have to upgrade to the next version. The next version is always what you have after updating. You can install a quite-old CD installer, do a system upgrade, and you will be as up-to-date as anyone else. First we must connect to the Internet. Here are instructions for connecting to a wired network: Connect the wire and write either: dhcpcd eth0 if you have automatic IP, or: ifconfig eth0 x.x.x.x # x.x.x.x is ip address echo y.y.y.y > /etc/resolv.conf # y.y.y.y is dns address route add default gw z.z.z.z # z.z.z.z is default route if you have a static IP. Then for system upgrade write: pacman -Syu You'll probably be asked if you want to update pacman before the system upgrade. Say yes to this, and then do a system upgrade again. The system update is finished. If you chose lilo as boot manager, which you shouldn't have, you have to run this command before rebooting: lilo Then reboot. ==== 7. Install drivers ==== You can skip this section if you installed the kernel26eee package. Since you did a system upgrade, and most likely your kernel was updated, the network driver you installed is gone. So you have to go through everything again: === Atl2 ethernet driver === You probably still have the driver source on your Eee. Go there and write: make clean make cp ath2.ko /lib/modules/2.6.23-ARCH/kernel/drivers/net # Change 2.6.23 as fits depmod === Atheros ethernet driver === Copy the files madwifi-ng-r2756-20071018.tar.gz and madwifi-ng-0933.ar2425.20071130.i386.patch to a directory and write: tar -xzf madwifi-ng-r2756-20071018.tar.gz cd madwifi-ng-r2756-20071018 patch -p0 < ../madwifi-ng-0933.ar2425.20071130.i386.patch make make install === ASUS acpi modules === You have to get connected to the internet. Install unrar: pacman -Sy unrar Copy the files ASUS_ACPI_071126.rar and acpi.patch to a directory and write: unrar e ASUS_ACPI_071126.rar tar -xzf asus_acpi.tar.gz cd asus_acpi patch -p0 < ../acpi.patch Edit the first line of the file Makefile so it points to 2.6.23-ARCH or whatever your kernel version is. Then write: make When it's finished, write: cp asus_acpi.ko /lib/modules/2.6.23-ARCH/kernel/drivers/acpi depmod === The uvcvideo camera driver === Copy the linux-uvc directory to the Eee's drive. Write this: make make install Write this line in the file /etc/rc.local echo 1 > /proc/acpi/asus/camera ==== 8. Install and configure software ==== Now all the Eee-specific things are taken care of. For the rest of getting your Arch Linux running exactly as you want it to, I refer you to the [[http://wiki.archlinux.org|Arch Linux wiki]]. Good luck. :) ===== Installing with a pre-installed Arch Linux image ===== I'll write something here soon, or someone else... Meanwhile look at this forum thread: [[http://forum.eeeuser.com/viewtopic.php?id=5855]] Pre-prepared images are availabe here [[http://archeeemage.coderseffigy.com/]]