Назад Главная


Проект Gentoo для Roverbook steel

Roverbook steel. Проект Gentoo вместо Android.

Clue

Удалось запустить Gentoo на Roverbook steel с SD карты. Андройд на rover удалять не надо (т.е. всегда можно будет вернуться к Android). Подправить придется 1 маленький файлик прошивки. Работает в текстовом режиме с правами root.

Инструкция по установке и запуску Gentoo на Roverbook steel

  1. Нужна SD карта не менее 2 Гб.
  2. Создать разделы на SD также, как в инструкции для Debian
  3. Прошить roverbook steel новым файлом parameter, как в инструкции для Debian
  4. Закачать образ stage3-armv5tel-xxxxxxxx.tar.bz2 (Я использовал stage3-armv5tel-20120904.tar.bz2)
  5. Cкопировать файлы из архива в раздел etx2 SD-карты (у меня SD это /dev/sdd, узнал с помощью программы gparted)
    #mount /dev/sdd2 /mnt
    #cd /mnt
    #tar -xvfpj stage3-armv5tel-xxxxxxxx.tar.bz2 #umount /mnt
  6. Далее нужно ввести пароль в Gentoo для root. Я делал следующим образом:
  7. Проверим, что пароль изменился на SD
    #mount /dev/sdd2 /mnt
    #ls -l | grep shadow
    #-r-------- 1 root root 340 Сен 1 02:59 gshadow
    #-rw-r----- 1 root root 371 Сен 5 17:18 shadow
    #umount /mnt
    //Я эксперимент делал 5 сентября, а файловую систему копировал 1 сентября, то дата модификации файла соответсвует ожидаемому, т.е. файл изменился
  8. Чтобы в Gentoo можно было залогинится root, я изменил файл (на SD с Gentoo) /etc/security/access.conf и добавил в конец '+ : ALL : ALL' (самое простое)
Все, SD готова быть вставленной в Roverbook steel! Включаем смартбук и спустя минуты 3 видим приглашение ввести логин и пароль!

Результаты.

План

  1. Kernel + модули ядра
  2. Устройства
  3. сеть
  4. SSH
  5. Клавиатура
  6. Остальное
Все кто умеет администрировать Gentoo, помогите настроить ее для Roverbook. Я пока буду занят Debian. Пишите на почту (адрес сайта, в которой .narod.ru заменить на @yandex.ru) или на форум.

Дополнительные шаги конфигурирования из документации Gentoo (не адаптировано к Steel)

Code Listing 2.2: Load required modules

livecd root # lspci
(Use lspci's output to identify required modules)

(The following is an example, adapt it to your hardware)
livecd root # modprobe 3w-9xxx
livecd root # modprobe r8169

Network Configuration

If your network does not work already, you can use net-setup to configure your network. You might need to load support for your network card using modprobe prior to the configuration. If you have ADSL, use pppoe-setup and pppoe-start. For PPTP support, first edit /etc/ppp/chap-secrets and /etc/ppp/options.pptp and then use pptp <server ip>.

For wireless access, use iwconfig to set the wireless parameters and then use either net-setup again or run ifconfig, dhcpcd and/or route manually.

If you are behind a proxy, do not forget to initialize your system using export http_proxy, ftp_proxy and RSYNC_PROXY.

Code Listing 2.3: Configure networking the guided way

livecd root # net-setup eth0

Alternatively, you can start networking manually. The following example assigns the IP address 192.168.1.10 to your PC and defines 192.168.1.1 as your router and name server.

Code Listing 2.4: Configure networking the manual way

livecd root # ifconfig eth0 192.168.1.10/24
livecd root # route add default gw 192.168.1.1
livecd root # echo nameserver 192.168.1.1 > /etc/resolv.conf

The installation CD allows you to start an sshd server, add additional users, run irssi (a command-line chat client) and surf the web using links.

Optional: connect to your new box over ssh

The most interesting feature is of course sshd. You can start it and then connect from another machine and cut and paste commands from this guide.

Code Listing 2.5: Start sshd

livecd root # time /etc/init.d/sshd start
* Generating hostkey ...
(sshd generates the key and displays more output)
* starting sshd ... [ok]

real 0m13.688s
user 0m9.420s
sys 0m0.090s

Set your time zone

Set your time zone information by using the correct listing in /usr/share/zoneinfo.

Code Listing 2.17: Setting your timezone

livecd / # ls /usr/share/zoneinfo
(Using Brussels as an example)
livecd / # cp /usr/share/zoneinfo/Europe/Brussels /etc/localtime
livecd / # echo "Europe/Brussels" > /etc/timezone

livecd / # date
Wed Mar 8 00:46:05 CET 2006

Set your host name and domain name

Set your host name in /etc/conf.d/hostname and /etc/hosts. In the following example, we use mybox as host name and at.myplace as domain name. You can either edit the config files with nano or use the following commands:

Code Listing 2.18: Set host and domain name

livecd / # cd /etc
livecd etc # echo "127.0.0.1 mybox.at.myplace mybox localhost" > hosts
livecd etc # sed -i -e 's/hostname.*/hostname="mybox"/' conf.d/hostname
(Use defined host name and check)
livecd etc # hostname mybox
livecd etc # hostname -f
mybox.at.myplace

Code Listing 2.21: Example fstab

livecd linux # cd /etc
livecd etc # nano -w fstab
/dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda3 / ext3 noatime 0 1
/dev/sda2 none swap sw 0 0

Configure your network in /etc/conf.d/net. Add the net.eth0 init script to the default run level. If you have multiple NICs, symlink them to the net.eth0 init script and add them to the default run level as well. Don't forget to set your hostname too. Either edit /etc/conf.d/net and /etc/conf.d/hostname with nano or use the following commands:

Code Listing 2.22: Configure networking

livecd etc # cd init.d
livecd init.d # ln -s net.lo net.eth0
livecd init.d # cd ../conf.d
livecd conf.d # echo 'config_eth0="192.168.1.10 netmask 255.255.255.0 brd 192.168.1.255"' >> net
livecd conf.d # echo 'routes_eth0="default via 192.168.1.1"' >> net
livecd conf.d # echo 'hostname="myhostname"' > hostname
livecd conf.d # rc-update add net.eth0 default
(If you compiled your network card driver as a module, add it to /etc/conf.d/modules
livecd conf.d # echo 'modules="r8169"' >> /etc/conf.d/modules
(If you want to reconnect via ssh after you have rebooted your new box)
livecd conf.d # rc-update add sshd default

Code Listing 2.32: Connect to your new box from another PC

(Clean up your known_hosts file because your new box
has generated a new definitive hostkey)

$ nano -w ~/.ssh/known_hosts
(Look for the IP of your new PC and delete the line,
then save the file and exit nano)


(Use the IP address of your new box)
$ ssh root@192.168.1.10
The authenticity of host '192.168.1.10 (192.168.1.10)' can't be established.
RSA key fingerprint is 96:e7:2d:12:ac:9c:b0:94:90:9f:40:89:b0:45:26:8f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.10' (RSA) to the list of known hosts.
Password: type_the_password

Сайт создан в системе uCoz