Sunday, September 28, 2014

Autorun testing

1/ For PI: - create a desktop file -> running a python file (readme)
- create a desktop file: type nano <filename>.desktop
- type the followings: http://www.raspberry-projects.com/pi/pi-operating-systems/raspbian/gui/desktop-shortcuts
- put it in the autostart directory: 'mkdir ~/.config/autostart" , then copy the desktop file to there (http://raspberrypi.stackexchange.com/questions/12730/start-a-lxterminal-on-startup)
- python path here:
 

setting full screen for lxterminal:

> change the xml file in pi/.config/openbox  -> add
<application name = "lxterminal"> 
<decor>no</decor>
<maximized>true</maximized>
<fullscreen>true</fullscreen>

Procedures for my pi:
- plug in ethernet cable (not the mouse and keyboard)
- plug in power
- everything will start by itself!

* To set HDMI -> VGA, need to change the config file: http://www.makeuseof.com/tag/three-ways-to-display-your-raspberry-pi-on-a-monitor-or-tv/
* To set background and foreground color, just go to lxterminal > preference
* To set screensaver off, edit the file (sudo nano xxxxxxx):






- http://www.etcwiki.org/wiki/Disable_screensaver_and_screen_blanking_Raspberry_Pi
- more methods: http://www.raspberrypi.org/forums/viewtopic.php?f=66&t=18200












- and this: http://it.thelibrarie.com/weblog/2013/07/raspberry-pi-disable-screensaver/

* to remove mouse cursor (this works for me, but you need to remove that line if you want the cursor appears again) : http://darmawan-salihun.blogspot.hk/2013/01/disabling-raspberry-pi-cursor-inside.html
...
[SeatDefaults]
xserver-command=X -nocursor
...

2/XP computer : running a web page
1/ get firefox and set the homepage
2/ download an addon call full screen add on -> do the settings for auto full screen
3/ create a new firefox short cut in start up : start> all programs > right click > ..
4/ hide your mouse here: http://www.softwareok.com/?seite=Microsoft/AutoHideMouseCursor

3/ macbook : running a python file (writeemail)

- Download iTerm2 to replace original terminal (because with full screen feature)
- Then set the default command line (say: run a specific python path)
- Set the full screen mode and set as default window arrangement
- in iTerm2 preference, check for default window arrangement (means everytime will open in full screen)
- go to system preference > account > login > add in iTerms (to make sure whenever macbook login, it will automatically load iTerm2)

No comments:

Post a Comment