Another way to approach this is by using the autorun script section on you BBB and doing it through node.js. All you have to do is add this script to your autorun folder in Cloud9 and reboot the board.
// http://nodejs.org/api.html#_child_processes var sys = require('sys'); var exec = require('child_process').exec; var child; // executes `pwd` var command = "x11vnc -bg -o %HOME/.x11vnc.log.%VNCDISPLAY -auth /var/run/gdm/auth-for-gdm*/database -display :0 -forever"; child = exec(command, function (error, stdout, stderr) { sys.print('stdout: ' + stdout); sys.print('stderr: ' + stderr); if (error !== null) { console.log('exec error: ' + error); } }); On Monday, May 20, 2013 10:12:29 PM UTC-5, Wilfredo Nieves wrote: > > Hey guys > > Thought i would make a tutorial on installing x11vnc and setting it up > to auto load at startup with a permanent connection. > > > I am doing it so that anybody that is interested in using vnc can find > the info in one location. > > Ok here goes nothing! > > 1. Open a terminal and type "opkg update" and hit enter. > > 2. Type "opkg install x11vnc" and hit enter. > > 3. Type "x11vnc -bg -o %HOME/.xllvnc.log.%VNCDISPLAY -auth > /var/run/gdm/auth-for-gdm*/database -display :0" and hit enter. > > 4. Type "nautilus" it will bring up a new window. Make sure not to mess > with any files if you do not know what they are. Nautilus gives you the > ability to delete and modify system files. > > 5. Now find a place to create a new file (make sure it is some where it > will not get deleted). > > 6. Now right click and select create new document > empty file. > > 7. Now name the file what ever you like but make sure it is something that > makes sense. Also make sure the name ends with ".sh". For instance i used > "VncStartup.sh". > > 8. Now double click the file and it will open an editor. > > 9. Now type. > > "#!/bin/sh > exec x11vnc -forever" > > 10. Now save the file and close the editor. > > 11. Make note of the file path, you will need it in the next step. > > 12. In the terminal type "chmod a+x /your/file/path/here" (for instance > mine was chmod a+x /MYscrpits/VncStartup.sh) and hit enter. > > 13. Now on the panel (up top where it says Applications, Places, System) > select System > Preferences > Startup Applications. > > 14. Select the startup programs tab and click Add. > > 15. For the name you can choose what ever you like (i used Vnc Startup). > Now click browse and locate the file you created earlier and click open. > For the comment you can type in a description that tells you what it does > and click save. > > 16. Close the startup applications window and restart your board. > > Now you should have a working vnc connection and it doesn't matter how > many times you terminate your connection to the board, you will always have > a connection and not have to restart x11vnc every time you want to use it. > > Please note that you will need to know the ip address of the board to > connect to it. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
