Diferencia entre revisiones de «Sugar en RaspberryPi utilizado mediante conexión remota VNC»
(→Configuración de Raspberry PI) |
|||
Línea 36: | Línea 36: | ||
Para configurar la wifi (sudo vi /etc/network/interfaces) | Para configurar la wifi (sudo vi /etc/network/interfaces) | ||
− | auto lo | + | auto lo |
− | iface lo inet loopback | + | iface lo inet loopback |
− | iface eth0 inet dhcp | + | iface eth0 inet dhcp |
− | allow-hotplug wlan0 | + | allow-hotplug wlan0 |
− | auto wlan0 | + | auto wlan0 |
− | iface wlan0 inet static | + | iface wlan0 inet static |
− | + | address 192.168.3.1 | |
− | + | netmask 255.255.255.0 | |
− | + | gateway 192.168.3.1 | |
− | + | wireless-essid andrewPI | |
− | + | wireless-mode ad-hoc | |
− | + | wireless-channel 09 | |
Línea 59: | Línea 59: | ||
modificar “~/.vnc/xstartup” agregando las siguientes lineas: | modificar “~/.vnc/xstartup” agregando las siguientes lineas: | ||
− | export XKL_XMODMAP_DISABLE=1 | + | export XKL_XMODMAP_DISABLE=1 PATH=/home/pi/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games |
− | PATH=/home/pi/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games | + | :/usr/games |
− | PWD=/home/pi | + | PWD=/home/pi |
− | LANG=es_UY.UTF-8 | + | LANG=es_UY.UTF-8 |
− | SHLVL=1 | + | SHLVL=1 |
− | HOME=/home/pi | + | HOME=/home/pi |
− | LOGNAME=pi | + | LOGNAME=pi |
− | sweets dextrose/sugar:emulator | + | sweets dextrose/sugar:emulator |
Cambiar locale: | Cambiar locale: | ||
− | sudo dpkg-reconfigure locales | + | sudo dpkg-reconfigure locales |
Arranque automático en raspberry | Arranque automático en raspberry |
Revisión del 15:49 8 abr 2013
Configuración de Raspberry PI
Primeramente se descargo la imagen del 9/2/2013 de wheezy raspbian
Hay varias opciones para correr sugar, una de ellas que vamos a documentar aquí es mediante Sweet
Se necesitan estos programas para que funcione la solución
Primeramente instalar gnome-packagekit:
sudo apt-get install gnome-packagekit
Como paquetes "helper" para Sweets instalar estos paquetes python:
sudo apt-get install python-vte python-gst0.10 python-pygame python-webkit python-beautifulsoup Soft reboot the Rasp pi before proceeding.
Descargar el instalador,
wget http://download.sugarlabs.org/sweets/sweets/installer.sh
luego ejecutarlo:
sh installer.sh
Como tarjeta wifi vamos a utilizar una con chipset Zydass para ello instalar el paquete
zd1211-firmware - Firmware images for the zd1211rw wireless driver
vamos a utilizar un vnc server:
tightvncserver - virtual network computing server software
para instalarlos se utiliza el siguiente comando:
apt-get install zd1211-firmware tightvncserver
Para configurar la wifi (sudo vi /etc/network/interfaces)
auto lo iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0 auto wlan0 iface wlan0 inet static address 192.168.3.1 netmask 255.255.255.0 gateway 192.168.3.1 wireless-essid andrewPI wireless-mode ad-hoc wireless-channel 09
VNC:
password: raspberry ejecutar: vncserver -geometry 800x445
modificar “~/.vnc/xstartup” agregando las siguientes lineas:
export XKL_XMODMAP_DISABLE=1 PATH=/home/pi/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games
- /usr/games
PWD=/home/pi LANG=es_UY.UTF-8 SHLVL=1 HOME=/home/pi LOGNAME=pi sweets dextrose/sugar:emulator
Cambiar locale:
sudo dpkg-reconfigure locales
Arranque automático en raspberry
Configuración tablet Programa vnc client: android-vnc-viewer
Consumo eléctrico a 11v con fuente switcheada a 5v:
0.37 mA con la raspberry y wifi. 0.39 mA con la raspberry y wifi y usb4buta 0.52 mA con la raspberry y wifi y usb4buta, corriente encendida (motores bloqueados) 0.63 mA con motores prendidos
Con baterías de 2500mAh, se tendría un uso de aproximadamente 4 a 5 horas.