giovedì 28 giugno 2012

Raspberry PI - Prime prove di utilizzo con Debian



Funzionalità/attività testate/implementate con successo:
- Avvio tramite script e da remoto di file video avi e mp4
- Avvio tramite script e da remoto di file audio wav e mp3     
- Avvio di video tramite server web
- Avvio remoto di stream video da youtube, hdmi, pal,
- Invio automatico di email
- Connessione wireless scheda rtl8188
- Gestione remota della scheda Raspberri PI tramite telnet, sftp e vnc
- Server web lighttpd php5, cgi in pyton e in perl
- Autologin e autostart interfaccia grafica
- Installazione vlc player
- Raspbmc, Raspberry Pi media center distribution
- R-Pi NAS (Network Attached Storage) (link2)




TODO:
- Far diventare wireless il collegamento ad una stampante usb
- Compilazione di XBMC su Raspian fallita dopo 13 ore di compilazione (script automatico)- Digital Signage, nota in Italia come segnaletica digitale, videoposter o cartellonistica digitale
- Comandare hardware esterno tramite il connettore GPio
- Aggiungere il supporto ai telecomandi trazionali IR- Mame
- Airplay
- DLNA
- A2DP
- Android Transporter
- Schism Tracker
- Turn my TV to a videophone
- Home alarm / automation system using USB web cams as motion detectors and image capture devices
- Robot
- Domotica



Link utili
http://www.raspberrypi.org/
The MagPi
- http://elinux.org/RPi Philosophy
- http://www.netbooknews.it/video-recensione-raspberry-pi/
- http://raspberrypi.stackexchange.com/
- Raspberry Pi Tracker
- http://mitchtech.net/category/tutorials/raspberry-pi/
- http://elinux.org/R-Pi_Hub
- http://elinux.org/RPi_config_for_your_TV
- http://elinux.org/RPi_Education/Manual
- http://elinux.org/RPi_Documentation

Tool
- MobaXTerm
- Win32DiskImager
- http://winscp.net/
 http://www.raspberrypi-spy.co.uk/2013/01/top-8-free-windows-tools-for-raspberry-pi-development/


Script testati
# Download immagine Raspian con XBMC pre-installato
http://wordpress.silenz.se/?page_id=31&did=7

# RPi raspi-config (tastiera, timezone, overscan, overclock) aggiornamento del fw e s.o.
sudo raspi-config
sudo apt-get update -y && sudo apt-get upgrade -y

# modifica di menu.py

# Cambio delle password
sudo passwd pi
sudo passwd root


# Modifica config.txt (overclock)
hdmi_drive=2
hdmi_force_edid_audio=1
arm_freq=850 


# Configurazione scheda di rete wireless
#iwlist scan
#sudo ifconfig wlan0 up
#sudo wpa_passphrase SSID PASS > .wifi_cfg
#sudo wpa_supplicant -i wlan0 -c .wifi_cfg -B
#sudo dhclient wlan0
wget http://dl.dropbox.com/u/80256631/install-rtl8188cus-latest.sh
chmod +x install-rtl8188cus-latest.sh
sudo  ./install-rtl8188cus-latest.sh


# Update firmware 
sudo apt-get install -y isc-dhcp-client 
sudo apt-get install -y git-core ca-certificates binutils
sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update
sudo rpi-update

# Install webserver
sudo addgroup --system www-data
sudo adduser www-data www-data
sudo apt-get install -y lighttpd
sudo netstat -na
sudo apt-get install -y php5-cgi
sudo apt-get clean
sudo lighty-enable-mod cgi
sudo lighty-enable-mod fastcgi
sudo /etc/init.d/lighttpd force-reload
sudo service lighttpd restart
sudo pico /etc/lighttpd/lighttpd.conf
# Add the following to the end of the file:
# fastcgi.server = ( ".php" => (("bin-path" => "/usr/bin/php-cgi", "socket" => "/tmp/php.socket")) )
# cgi.assign = (".py" => "/usr/bin/python",".pl" => "/usr/bin/perl")
# server.error-handler-404 = "/index.html"

#modificare il file /etc/lighttpd/lighttpd.conf
#modificare il file /etc/php5/cgi/php.ini

sudo pico /var/www/phpinfo.php
#add:  <?php phpinfo(); ?>
# modifica di php.ini: mem file size upload

# Install my web site (hello.php, hello.py, hello.pl)

# Installazione di samba (Nas)

# Install my video script test

# Installazione yt (Youtube da line di comando interfaccia grafica whitey0.1)
sudo wget https://raw.github.com/filippo-bilardo/Raspberry-PI-scripts/master/yt-install-hdmi-0.1.sh
sudo wget https://raw.github.com/filippo-bilardo/Raspberry-PI-scripts/master/yt-install-pal-0.1.sh
sudo chmod +x yt-install-hdmi-0.1.sh
sudo chmod +x yt-install-pal-0.1.sh
./yt-install-hdmi-0.1.sh
youtube-dl --update
yt (comando per avviare YouTube)

#Change hostname
sudo nano /etc/hosts
#Replace all instances of “raspberrypi” with the new hostname that you entered above.
sudo nano /etc/hostname
#Type the hostname you require, save the file and exit.
sudo /etc/init.d/hostname.sh start


# Installazione altro software# VNC ,link2
# vnc install
sudo apt-get install tightvncserver && tightvncserver
# vnc run script
echo "vncserver :1 -geometry 1920x1080 -depth 24" > svnc_1920.sh
# kill vnc create script

echo "/usr/bin/vncserver -kill :1" > kvnc.sh && chmod +x kvnc.sh
# install vnc client
sudo apt-get install xtightvncviewer

#Open Images in a Linux Console
sudo apt-get install fbi
#Open pdf files in a Linux Console
sudo fbgs nome_file.pdf


# Install Chromium
sudo apt-get install chromium-browser


# Installazione vlc player
sudo apt-get update && sudo apt-get install vlc

# Installazione mplayer
sudo apt-get install mplayer
# Run mplayer
mplayer test.mp3

# Installazione di xpdf
sudo apt-get install xpdf


Script superati con la nuova distrubuzione raspbian
# Aggiornamento del sitema operativo
# Configure Time
sudo dpkg-reconfigure tzdata
# Update software packages
sudo apt-get update
# Update Debian
sudo apt-get upgrade

# Configurazione SSH e connessioni remote
# Software consigliati: putty peril telnet e WinSCP o FileZilla per l'SFTP
sudo mv /boot/boot_enable_ssh.rc /boot/boot.rc
sudo shutdown -r now 


# Configurazione audio
sudo apt-get install alsa-utils
sudo modprobe snd_bcm2835
http://raspberrypi.stackexchange.com/questions/44/why-is-my-audio-sound-output-not-working
http://raspberrypi.stackexchange.com/questions/761/how-do-i-run-a-command-at-boot
sudo aplay /home/pi/test.wav


# Install omxplayer
wget http://seyrsnys.myzen.co.uk/rpi/omxplayer_0.0.1-arm.deb && sudo dpkg -i omxplayer_0.0.1-arm.deb && sudo apt-get -f install
# Run omxplayer
omxplayer -o hdmi "/home/pi/a.avi"
omxplayer -o local "/home/pi/a.avi"
 


Nessun commento:

Posta un commento