cammos-rpi-displays
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
cammos-rpi-displays [2015/04/08 13:54] – snarg | cammos-rpi-displays [2015/05/26 11:28] – [Static IP instructions] snarg | ||
---|---|---|---|
Line 3: | Line 3: | ||
Start by: | Start by: | ||
- | - Downloading | + | - Download |
- | - Loading | + | - Load the img onto an sd card (using dd on linux or Win32DiskImager on windows). |
- Boot up your raspberry pi, and load a terminal. | - Boot up your raspberry pi, and load a terminal. | ||
+ | |||
+ | ==== Change default password ==== | ||
+ | The default password for the " | ||
+ | |||
+ | ==== Change keyboard layout to US ==== | ||
+ | - Type this:< | ||
+ | - Then find where it says< | ||
+ | - Change to< | ||
+ | - Save and exit. | ||
+ | |||
+ | ==== Static IP instructions==== | ||
+ | This is optional, samba and vnc will work fine on DHCP settings. | ||
+ | |||
+ | - Type this to change the network settings:< | ||
+ | - Comment out the line:< | ||
+ | - Add the following making sure you change the IP address for the different PI< | ||
+ | |||
+ | auto eth0 | ||
+ | |||
+ | iface eth0 inet static | ||
+ | #(Change to the IP you require) | ||
+ | address 10.106.228.231 | ||
+ | gateway 10.106.224.250 | ||
+ | netmask 255.255.248.0 | ||
+ | network 10.106.228.0 | ||
+ | broadcast 10.106.231.255</ | ||
+ | - Save and exit nano. | ||
+ | - Restart new network configuration by typing the following:< | ||
==== SAMBA instructions: | ==== SAMBA instructions: | ||
+ | Note this is only useful if the rpi is going to be located on the same LAN as the computer that will be uploading files to it. Alternately openssh-server can be used with no further changes (ie filezilla or winscp from windows) as this is pre-installed and working by default on Raspbian. | ||
- type this to install samba server:< | - type this to install samba server:< | ||
- edit the smb.conf with this: < | - edit the smb.conf with this: < | ||
Line 21: | Line 50: | ||
- Create the directory referenced by that share with:< | - Create the directory referenced by that share with:< | ||
- Restart samba with:< | - Restart samba with:< | ||
- | - | + | |
==== Autostarting firefox/ | ==== Autostarting firefox/ | ||
- Type this to install iceweasel: < | - Type this to install iceweasel: < | ||
Line 33: | Line 62: | ||
- Install tab mix plus addon in Iceweasel Addons. | - Install tab mix plus addon in Iceweasel Addons. | ||
- | - Under addons, tabmix preferences, | + | - Under addons, tabmix preferences, |
+ | - In the " | ||
+ | - In the " | ||
+ | - Press close. | ||
- Load the PDF you want to display ([[file:/// | - Load the PDF you want to display ([[file:/// | ||
- Go to preference, general, and press "Use Current Page" for home page (for convenience only) but then set " | - Go to preference, general, and press "Use Current Page" for home page (for convenience only) but then set " | ||
Line 39: | Line 71: | ||
- Press F11 to go fullscreen (this setting will be remembered between reboots). | - Press F11 to go fullscreen (this setting will be remembered between reboots). | ||
- Close firefox/ | - Close firefox/ | ||
+ | |||
+ | ==== Switching on Tab Mix Plus Tab Slideshow after bootup ==== | ||
+ | There seems to be no setting to have slideshow mode active by default on start. To solve this we'll script xdotool to send the CTRL+F9 keystroke to firefox after it has loaded. Note: for this to work, you need to have completed setting this keybinding in the instructions above for Setting up Tab Mix Plus. | ||
+ | - Install xdotool:< | ||
+ | - Create a script with:< | ||
+ | - Paste the following commands into the script:< | ||
+ | |||
+ | # delay to let firefox/ | ||
+ | sleep 120 | ||
+ | |||
+ | #find what windowID firefox/ | ||
+ | WID=`xdotool search " | ||
+ | |||
+ | #activate the window | ||
+ | xdotool windowactivate --sync $WID | ||
+ | |||
+ | #send CTRL+F9 to it to start the tab slideshow feature of tab mix plus | ||
+ | xdotool key " | ||
+ | - Make the script executable with:< | ||
+ | - Edit the LXDE autostart file:< | ||
+ | - Add the following line to the end:< | ||
+ | |||
+ | ==== Alternative to tab mix plus tab slideshow ==== | ||
+ | This method for rotating the tabs gives more flexibility to script PGDOWN keystrokes etc to scroll multiple PDF pages. Do this *instead* of the above CTRL+F9 method. | ||
+ | Note: we use xte from xautomation package for keystroke events on RPI debian wheezy instead of xtotool, because xtotool on latest Raspbian seems to have a 100% cpu openbox bug. We use xtotool only to activate focus on the correct window. | ||
+ | - Install xdotool and xautomation:< | ||
+ | - Create a script with:< | ||
+ | - Paste the following commands into the script:< | ||
+ | |||
+ | #initial delay while iceweasel loads | ||
+ | sleep 120 | ||
+ | |||
+ | |||
+ | #find what windowID firefox/ | ||
+ | WID=`xdotool search " | ||
+ | |||
+ | while true | ||
+ | do | ||
+ | # delay for reading the page | ||
+ | sleep 20 | ||
+ | |||
+ | #activate the window | ||
+ | xdotool windowactivate --sync $WID | ||
+ | #Page down | ||
+ | xte 'key Page_Down' | ||
+ | |||
+ | |||
+ | #delay for reading the page | ||
+ | sleep 20 | ||
+ | |||
+ | #activate the window | ||
+ | xdotool windowactivate --sync $WID | ||
+ | #Home to go back to top of current tab | ||
+ | xte 'key Home' | ||
+ | #ctrl+tab to go to next tab | ||
+ | xte ' | ||
+ | xte 'key Tab' | ||
+ | xte 'keyup Control_L' | ||
+ | done</ | ||
+ | - Make the script executable with:< | ||
+ | - Edit the LXDE autostart file:< | ||
+ | - Add the following line to the end:< | ||
+ | |||
+ | ==== Setting firefox to auto load tabs after crash without confirmation ==== | ||
+ | If the Raspberry pi is unsafely shut down (ie power pulled), firefox will come back with a crash recovery page. This increases the maximum number of " | ||
+ | - go to about: | ||
+ | - Search for browser.sessionstore.max_resumed_crashes and set it to 100 | ||
==== VNC instructions ==== | ==== VNC instructions ==== | ||
Line 46: | Line 145: | ||
- Type the following to edit the autostart file (make sure the directory exists first)< | - Type the following to edit the autostart file (make sure the directory exists first)< | ||
- Add the line:< | - Add the line:< | ||
+ | - Save and exit. | ||
+ | - Reboot and test. | ||
+ | |||
+ | ==== Setting the Display to portrait mode ==== | ||
+ | - Type the following< | ||
+ | - Add (or edit) the following line:< | ||
- Save and exit. | - Save and exit. | ||
- Reboot and test. | - Reboot and test. | ||
Line 51: | Line 156: | ||
==== Turning off screen blanking ==== | ==== Turning off screen blanking ==== | ||
- Type the following to edit the autostart file (make sure the directory exists first)< | - Type the following to edit the autostart file (make sure the directory exists first)< | ||
- | - Add the lines:< | + | - Add the lines:< |
- | @xset -dpms</ | + | xset -dpms</ |
- Save and exit. | - Save and exit. | ||
- Reboot and test. | - Reboot and test. | ||
cammos-rpi-displays.txt · Last modified: 2015/06/22 11:57 by snarg