Need to open A Console and issue a command at boot...
Hello Linux Peoples !!!
Thanks for all the help on my tightvnc and x issues. All are now resolved!!! I need to open a console window and make that console issue a command at boot on a mandriva 2008 system... Any suggestions ? Thanks in advance !!! |
What command(s) and what type of privileges do you want the command to execute with, eg. root, ordinary user, etc ?
If you just want to run a few commands and the end of your init scripts, edit your /etc/rc.d/rc.local by adding your commands at the end of rc.local. The rc.local file is the last init script to run and is commonly edited to run commands you want executed every time you boot. |
I need to run this command from a regular console.
I have mandriva set to boot automatically into the user "musicshare" I need to run VNC on a private network behind a firewall using the command.... x11vnc -password (mypassword) I need the console window to remain open for the x11vnc server to remain on. |
Please ? Anyone know how to do this ?
I am just trying to have a console window open at startup and run a certain command as the user. no need to run as root... Anyone ? |
It depends a little on which desktop environment you use. You want to do whatever you need for you environment to start a program when you log on, and set it to run the console you want. Most consoles have some option to run commands in the terminal and close the terminal when it ends. For example for konsole (the KDE terminal) you could run:
konsole -e x11vnc -password (mypassword) |
I tried this and the console window will not open or run any programs.
I need to be able to run x11vnc from the command line in webmin. So that one can remote in and take full command of the system. It is the only way I can see to make x11vnc to run any time I want it to. As I do not really want it running all the time. Any suggestions there ? Thanks again guys for all the continued help. Thanks to you I have made the switch from Windows Platforms to Linux and WILL NEVER go back. Thanks! |
If you can run this in a console after logging in:
x11vnc -password (mypassword) without having to enter a password then you should be able to create a bash script to run that command and set it to autorun every time you login. If you need to manually enter the password after running: x11vnc -password then a simple bash script won't work. You still haven't answered which desktop environment(DE) you are running, eg kde, gnome, etc. Each DE has it's own way of setting up what autoruns on login. Since mandriva defaults to kde, I assume that's what you are running. In that case, after making your script, you would just place it in /home/<username>/.kde/Autostart. Every time you login to kde, the script will run. |
I am running KDE with Mandriva One 2008. I am trying to make it so that X11VNC can be run from a console at any time. The bash script sounds interesting...
I am trying to make it so that one can log into the PC remotely at any time by running a small script or command from the WEBMIN command shell at another PC in the office. I am able to open a konsole manually and type x11vnc -passwd (Mypassword) Thanks ! |
All times are GMT -5. The time now is 01:46 PM. |