Dica Redsleeve

De Slacam_Wiki
Ir para: navegação, pesquisa

Dicas de Instalação da Distribuição Redsleeve no Raspberry PI

O redsleeve é um empacotamento para os chips ARM baseado no RedHat EL 6.

Informações podem ser obtidas no site principal:

http://www.redsleeve.org/

Ou na wiki (mais informações úteis):

http://wiki.redsleeve.org/

O empacotamento tem alguns probleminhas que podem ser resolvidos seguindo as dicas abaixo.

1 - Baixe a imagem deste local - http://updates.interworx.com/images/raspi-v2-redsleeve-cli-0.3.img.xz

2 - No windows utilize o 7zip para descompactar e grave a imagem com o windiskimage32 (similar as distro do raspberry)

3 - Incialmente irá precisar do teclado e monitor para entrar na console pois o sistema de rede tem um pequeno bug. A senha do root é "password". A senha do pi é "raspberry".

4 - Após entrar na console deve apagar o arquivo abaixo, pois ele força erradamente a leitura da eth0

rm /etc/udev/rules.d/70-persistent-net.rules

5 - Acerte as configurações de rede modificando os arquivos abaixo. NÃO adianta colocar o dhcp pois ele não foi instalado ainda e só é possível pegá-lo online. Algumas configurações estão comentadas e pode-se aproveitá-las para configurar para sua rede.

Para acertar o gateway e hostname:

vim /etc/sysconfig/network 

Para acertar o IP da rede:

/etc/sysconfig/network-scripts/ifcfg-eth0

Para acertar o DNS

/etc/resolv.conf

6 - Reaponte agora seu redsleeve para o repositório mais atualizado. Para isso: Vá para a pasta de repositórios:

cd /etc/yum.repos.d/

Mova o arquivo antigo para uma pasta qualquer:

mv rsel6.repo /root/

Baixe as novas informações para esse mesmo local:

wget http://ftp.redsleeve.org/pub/yum/rsel6.repo
wget http://ftp.redsleeve.org/pub/yum/epel6.repo
wget http://ftp.redsleeve.org/pub/yum/extra.repo

7 - Acerte a sincronia de tempo senão o sistema irá pedir toda hora a troca das senhas do root e outros usuários. Para issso: Acerte o relogio inicialmente:

ntpdate a.ntp.br

Ative o ntpd para iniciar no boot

ntsysv

8 - Por último poderemos realizar o resize para preencher o espaço restante do cartão SD para isso siga os procedimentos abaixo: Entre no gerenciador de partições:

fdisk -cu /dev/mmcblk0

Then delete partitions with d and create a new with n. You can view the existing table with p. p to see the current start of the main partition d, 3 to delete the swap partition d, 2 to delete the main partition n p 2 to create a new primary partition, next you need to enter the start of the old main partition and then the size (enter for complete SD card). The main partition on the Debian image from 2012-04-19 starts at 157696, but the start of your partition might be different. Check the p output! w write the new partition table Now you need to reboot:

sudo shutdown -r now

After the reboot you need to resize the filesystem on the partition. The resize2fs command will resize your filesystem to the new size from the changed partition table. sudo resize2fs /dev/mmcblk0p2 This will take a few minutes, depending on the size and speed of your SD card. When it is done, you can check the new size with: df -h