tigervnc or Xvnc VNC/X server on Pandora?


Which script?


There are plenty of ways to do things while booting in linux.


Edit: If it is a bashscript, yes, you can enter commands like on the cli.
 
Last edited by a moderator:
So you want to start a script at launch?


If you want to write a bashscript, put #!/bin/bash in the first line.


To make it run at boot, put it into /etc/rc.local or something.
 
Last edited by a moderator:
Cool! thanks! Is there a way to give it SU permissions? Would sudo work? Also, if I had a script that I only wanted to run on first boot, could I make it have sudo rm /etc/rc.local/firstboot.bat ?
 
rc.local is a file. Not a directory. A normal bashscript extension would be sh instead of bat.


If you touch a file and want to make it executable, you need to do a chmod +x myscript.sh first.


Only then you can start it directly by executing it with ./ or in another script.


I think you won't need sudo as rc.local stuff is run as root anyway.


Another idea is to google "linux autostart root" and learn a bit about what you are doing here before going on.


Potentially you can rip wide open holes into the security of your system with auch stuff.


And yes, you can erase the lines that call the script from the rc.local in the script.


Have a look at the sed program.
 
Last edited by a moderator:
Cool!thanks for all the help! I was having trouble last night getting xvfb to work but I think its because its not compiled for ARM. Again, thanks for all the help
 
Back
Top