Results 1 to 10 of 14
I want to autostart a program in Ubuntu 8.10. That is: I want to start the program when the ordinary user (no special permissions) logs in.
The command line equivalents ...
- 03-05-2009 #1Just Joined!
- Join Date
- Oct 2008
- Posts
- 12
rc.local - howto?
I want to autostart a program in Ubuntu 8.10. That is: I want to start the program when the ordinary user (no special permissions) logs in.
The command line equivalents are roughly in the format:
1. cd /home/directoryx
2. sudo <java command>
If this were done as a command line there would now be a request for the password.
I need to avoid this request for the password. Can this maybe be fed into the startup script? Or is there another solution?
I am new to this rc.local script so any information would be useful.
Is there any good alternative to the rc.local script?
- 03-05-2009 #2Linux Newbie
- Join Date
- Feb 2009
- Location
- Third ring of Pergatory
- Posts
- 199
rc.local runs at boot up after the system goes muti user, before anybody logs in. Are these users using a standardized desktop/windows manager? Fluxbox has a file called "apps" which is a script file specifically for login scripts. I think xfce has the same file in it's root directory. You could hard code the password into the script if you had too.
- 03-05-2009 #3
- 03-06-2009 #4Linux Newbie
- Join Date
- Feb 2009
- Location
- Third ring of Pergatory
- Posts
- 199
Your right, it's a java app so it's got to stay in the sand box. I'm just leary of sudoers.
- 03-06-2009 #5Just Joined!
- Join Date
- Oct 2008
- Posts
- 12
This is just a standard gnome desktop with some icon and app adds and subtracts.
The main point is that the java app carries a selective locking/ networking setup.
It may well be that the whole will be operated entirely by plain non-technical users who would die of fright at a command line!
- 03-06-2009 #6Linux Newbie
- Join Date
- Feb 2009
- Location
- Third ring of Pergatory
- Posts
- 199
- 03-07-2009 #7Just Joined!
- Join Date
- Oct 2008
- Posts
- 12
- 03-07-2009 #8Linux Newbie
- Join Date
- Feb 2009
- Location
- Third ring of Pergatory
- Posts
- 199
Read theman page on "visudo" and "sudo", what your actually doing is making the command passwordless for these users.
- 03-07-2009 #9
- 03-07-2009 #10Just Joined!
- Join Date
- Oct 2008
- Posts
- 12


Reply With Quote
