Удалось запустить Gentoo на Roverbook steel с SD карты. Андройд на
rover удалять не надо (т.е. всегда можно будет вернуться к Android).
Подправить придется 1 маленький файлик прошивки. Работает в текстовом
режиме с правами root.
Инструкция по установке и запуску Gentoo на Roverbook steel
где /dev/sdd - это "внешний винчестер", SD карта с Gentoo для Rover.
После запуска Дебина в QEMU, залогинится root/root
//Далее
примонтировать образ "внешнего винчестера" (SD)
#mount /dev/sdb2 /mnt
//(т.к. при запуске qemu внешний винчестер подключили как -hdb, что ==
sdb, на нашей SD 3 раздела, значит в
//Дебиане появились /dev/ sdb, sdb1, sdb2, sdb3 )
//Переходим в файловую систему Gentoo
#chroot /mnt
//меняем пароль,новый пароль root
#passwd
//выходим из chroot
#exit
//Отмонтируем "внешний винчестер"
#umount /mnt
//Можно завершить работу qemu
#shutdown now
Проверим, что пароль изменился на 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
сентября, то дата модификации файла соответсвует ожидаемому, т.е. файл
изменился
Чтобы в Gentoo можно было залогинится root, я изменил файл (на SD
с Gentoo) /etc/security/access.conf и добавил в конец '+ : ALL : ALL'
(самое простое)
Все, SD готова быть вставленной в Roverbook steel! Включаем смартбук и
спустя минуты 3 видим приглашение ввести логин и пароль!
Результаты.
Работает Gentoo в текстовом режиме
Работает цифро-буквенная часть клавиатуры,
включая стрелки.
Нет возможности ввода подчеркушки и букв
верхнего регистра Подробнее
Каталог /dev практически пуст, поэтому из
железа практически ничего работать не будет . Каталог /lib/modules пуст. Необходимо перекомпилировать ядро с модулями ядра.
Ethernet нет (см. выше, в /dev нет сетевых
устройств)
Все кто умеет администрировать Gentoo, помогите настроить ее для
Roverbook. Я пока буду занят Debian. Пишите на почту (адрес сайта, в
которой .narod.ru заменить на @yandex.ru) или на форум.
Дополнительные шаги конфигурирования из документации Gentoo (не
адаптировано к Steel)
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
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
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