I tried to use my new rasperry pi for a signage-device (it must only display a certain web-page and autoscrolling it) in my school (borg perg). I created a SD-card with debian-wheezy - documented on the raspberry website. Then I applied the following changes:
sudo vi /etc/passwdDeleting the 'x' in the line starting with 'pi'!
sudo raspi-configThen choose between the various layouts
sudo apt-get install mingettyin /etc/inittab exchange the line for the first tty
1:2345:respawn:/sbin/mingetty --autologin pi tty1
sudo vi /boot/config.txtappend the line
display_rotate=1
vi ~/.bash_profileappend the line
/usr/bin/startx
sudo apt-get install unclutter x11-server-utilscreate a file 'my_autostart' in /home/pi, make it executable (chmod +x) and fill in the lines
/usr/bin/unclutter #hide mouse pointer xset -dpms # switch off display power management xset s noblank xset s off # no screensaver /usr/bin/midori
sudo vi /etc/xdg/lxsession/LXDE/autostartfill in the line
/home/pi/my_autostart
sudo apt-get install chromium-browserChromium takes more time to start but then its javascript engine reacts faster. Of course I had to adapt the line concerning to midori in "my_autostart"-script.
Then I wanted chromium to start maximized, "--kiosk" start parameter did not help. So I tried to
simulate pressing the F11 key(full screen mode) with xdotool
But it did not work for me - after 1 hour of trying I gave up. But I used it later - read further on.
raspian-config
sudo -s apt-get update apt-get install unclutter x11-xserver-utils apt-get install chromium-browser xdotool
sudo vi /etc/xdg/lxsession/LXDE/autostart
/usr/bin/unclutter #hide mouse pointer xset -dpms # switch off display power management xset s noblank xset s off # no screensaver /usr/bin/chromium /home/pi/pressF11pressF11 is a script, which simulates pressing F11 (switching into full screen mode of the browser)
cat /home/pi/pressF11 #!/bin/bash sleep 60 WIN=$(xdotool search --onlyvisible --class chromium|head -1) xdotool key --window $WIN F11
auto lo iface lo inet loopback #iface eth0 inet dhcp ###################### iface eth0 inet static address 192.168.0.248 netmask 255.255.248.0 gateway 192.168.0.1 ###################### #allow-hotplug wlan0 #iface wlan0 inet manual #wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf #iface default inet dhcp