cammos-rpi-displays
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cammos-rpi-displays [2015/04/09 11:30] – snarg | cammos-rpi-displays [2015/06/22 11:57] (current) – snarg | ||
---|---|---|---|
Line 9: | Line 9: | ||
==== Change default password ==== | ==== Change default password ==== | ||
The default password for the " | 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==== | ==== Static IP instructions==== | ||
Line 20: | Line 26: | ||
iface eth0 inet static | iface eth0 inet static | ||
- | address 10.106.228.231 | + | #(Change to the IP you require) |
+ | address 10.106.228.231 | ||
gateway 10.106.224.250 | gateway 10.106.224.250 | ||
netmask 255.255.248.0 | netmask 255.255.248.0 | ||
network 10.106.228.0 | network 10.106.228.0 | ||
- | broadcast 10.106.228.255</ | + | broadcast 10.106.231.255</ |
- Save and exit nano. | - Save and exit nano. | ||
- | - Restart new network configuration by typing the following:< | + | - Restart new network configuration by typing the following:< |
==== SAMBA instructions: | ==== SAMBA instructions: | ||
Line 66: | Line 73: | ||
==== Switching on Tab Mix Plus Tab Slideshow after bootup ==== | ==== 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 | + | There seems to be no setting to have slideshow mode active by default on start. To solve this we'll script |
- Install xdotool:< | - 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:< | - Edit the LXDE autostart file:< | ||
- | - Add the following line to the end:< | + | - Add the following line to the end:< |
==== Setting firefox to auto load tabs after crash without confirmation ==== | ==== Setting firefox to auto load tabs after crash without confirmation ==== | ||
Line 81: | Line 144: | ||
- Enter password twice, enter to store in default location, then CTRL+C to quit x11vnc after its fired up. | - Enter password twice, enter to store in default location, then CTRL+C to quit x11vnc after its fired up. | ||
- 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. | - Save and exit. | ||
- Reboot and test. | - Reboot and test. | ||
Line 93: | 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. | ||
+ | |||
+ | ==== How to run a cron job every 5 minutes ==== | ||
+ | |||
+ | |||
+ | To edit the crontab, use the command < | ||
+ | |||
+ | The format of a crontab is 6 columns, space (or tab) separated. The first 5 columns detail the time when to run a command, which is specified in the last column. The last " | ||
+ | < | ||
+ | |||
+ | What the above shows, per column: | ||
+ | - Minute to run on, a value of 0-59: 5 means on the 5th minute of the hour | ||
+ | - The Hour, a value of 0-23: * means every hour | ||
+ | - Day of the Month, 1-31: * means every day of the month | ||
+ | - The Month, 1-12: * means every month | ||
+ | - Day of the Week, 0-7 (0 and 7 are both Sunday): * means every day | ||
+ | - The Command: In this case, a command at / | ||
+ | |||
+ | With older crontabs, like the one on legacy Solaris, this is mostly all that can be done. One variation is to use comma separated lists. Modern crontabs can use string names for days, and wildcards with increments. So, to create an entry that runsmy_script.sh every 5 minutes would be as follows on Linux: | ||
+ | < | ||
+ | |||
+ | The */5 notation in the first column means "every 5 minutes" | ||
+ | |||
+ | ==== Remotely checking to see what screen connector is active ==== | ||
+ | |||
+ | the command to see the status of displays and resolution in Xorg is " | ||
+ | < | ||
cammos-rpi-displays.1428550200.txt.gz · Last modified: 2015/04/09 11:30 by snarg