⬆️ ⬇️

Arch Linux on Asus EeePC 904HD. Part two, system setup.

In the first part, I told you how to install the base system on a subnotebook. Now it's time to bring the whole thing "to the mind." By the way, users of the 7xx and 9xx series of subnotes of the EeePC can also take note of the things described here. And just a novice "archer" will be interesting.







1. Installing the network card module.



If you log into the system and see the output of the command ifconfig -a , then we will only see the loopback interface. Those. even with the option in /etc/rc.conf MOD_AUTOLOAD="yes" necessary modules are not loaded. So you have to manually assemble the network card module.

I collected the module only for the network card, I did not collect it for wi-fi, because everything was done at work and there is no wi-fi network, unfortunately.

We will deal with wi-fi later, and if someone has the ability to access the Internet only via wi-fi, then you will have to search for the module you need. :(

')

So, we need to download the source code for the network card from any other computer. Downloading the l1e-linux-v1.0.1.0 driver from here .

Fill this archive on the USB flash drive and shove the USB flash drive netbook. We perform from under the root:
#mount /dev/sdb1 /mnt/

#cp /mnt/__l1e-linux-v1.0.1.0.tar.gz /home/atl1e/( )

#tar -xzvf /home/atl1e/l1e-linux-v1.0.1.0.tar.gz

#cd /home/atl1e/src/

#KBUILD_NOPEDANTIC=1 make

#insmod ./atl1e.ko



#ifconfig -a and see that the interface eth0 has appeared. If you have already correctly edited rc.conf (here are meant options related to network configuration), then you can raise the network.

#/etc/rc.d/network restart .

We check the output of the #ifconfig eth0 command for assigning an ip-address and UP status.

If everything is normal, then we ping #ping www.ru #ping www.ru Ping went, the Internet is. Hooray! :)



2. Update.



Well then. The Internet is there, which means it is necessary to upgrade the system to the current state.

Arch Linux uses Pacman to manage packages.

#pacman -Syu . The package databases will be synchronized and the installer will ask you to update Pacman itself. We agree. Now we are running the #pacman -Su and full package synchronization will start. We are going to drink coffee (or something else) while 125 MB of updates are being downloaded. And, when all packages are downloaded - terrible will happen.

Will give an error:
klibc: /usr/lib/klibc/include/asm/Kbuild exists in filesystem

........

klibc: /usr/lib/klibc/include/asm/xor_64.h exists in filesystem

Errors occurred, no packages were upgraded.


All is gone, chef! (with)

But do not panic! Nothing is missing! Well, yes, there is such a bug. To cope with it is very simple (at least 3 ways to eat). Choose the easiest - run #rm /usr/lib/klibc/include/asm and run #pacman -Su . Now the system will be normal.



Do not forget immediately about ABS .
#pacman -S abs

#abs





3. Useful stuff.



The system is basic. There is not even a user, except the root. Disorder! Correct :)
#useradd -m -s /bin/bash greenday( greenday , %username%)

#passwd greenday


Brought the user. What about sudo ? Yes, without it in any way. We carry out, chef:
#pacman -S sudo

#visudo


The last command is editing, using the vi special session /etc/sudoers file. In the file that opens, add an entry of the form USERNAME ALL=(ALL) ALL

If you are new to vi, do #EDITOR=nano visudo .

Read more about sudo in the Wiki .



And of course, I am very reverent towards the good old Midnight Commander. Install:
#pacman -S mc




4. Install the correct kernel.



So, the system has been updated. Now I would like to have a compact core without any rubbish, as in the native core.

Thanks to the community with their AUR . You will not have to dig into the kernel options, because the person with the nickname adriano has already done everything for us, it remains only to install.
  [greenday @ gremlin ~] $ mkdir ~ / src / 
    

[greenday @ gremlin ~] $ cd ~ / src /

[greenday @ gremlin src] $ wget http://aur.archlinux.org/packages/eeepc904-kernel/eeepc904-kernel.tar.gz


[greenday@gremlin src]$ tar xzvf eeepc904-kernel.tar.gz

[greenday@gremlin src]$ cd ./eeepc904-kernel/


Edit the PKGBUILD file. Paste the correct MD5 amount of the kernelconfig file there.

And run the package build: [greenday@gremlin eeepc904-kernel]$ makepkg .

Assembly lasts about 30 minutes, so we do other things.

After the build, install the package: $ sudo pacman -U eeepc904-kernel-2.6.27.4-4-i686.pkg.tar.gz .

And we edit the file /boot/grub/menu.lst , adding the following lines to it:
# (2) Arch Linux

title Arch Linux EeePC kernel

root (hd0,0)

kernel /vmlinuzeee root=/dev/sda3 ro



The kernel is ready and you can reboot the system.



I think this is the second part you can finish. In the third part I will describe the installation of the X's, DE, the setting of "hot keys", well, everything that I forgot to insert into the first two articles. :)

Source: https://habr.com/ru/post/44504/



All Articles