autorun at boot
I need for mozilla to autorun after the system boots. I am running an input program through a browser and do not want ANY user interaction with the OS. The machines actually have no keyboard or mouse, just a bc scanner.
Also, is there any way to get VNC or Xwin to share the same desktop as the locally logged in user like Windowz does with VNC. This way if I need to see that actual desktop I can see what the user is doing. Thanks for any help! I am running Fedora Core 1. |
Re: autorun at boot
Quote:
create a user mozilla, give the user mozilla a ~/.xinitrc with exec mozilla as the last line and then, from rc.local, do a su -c startx mozilla Cheers, Tink |
I was just trying to add "mozilla" to the end of the rc.local file. I created a special user called "track" that I am using but I also need that user to autologin to the system. How would I have the user autologin to run level "init 3"?
Also, I am not sure what you meant by: "give the user mozilla a ~/.xinitrc with exec mozilla as the last line" Are you saying create a file /home/track/.xinitrc and inserting "exec mozilla"? Sorry, I am not completely sure what you are suggesting. |
If track is the user you want to run mozilla as,
yes. You don't run mozilla from rc.local, though, but that line su -c startx track Cheers, Tink |
My rc.local file isn't running at boot automatically. If I run it manually it works and mozilla comes up. If I don't run it manually then nothing happens. The only thing that is in the rc.local file is:
#!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local su -c startx tracking If I run /etc/rc.d/rc.local I get an error saying permission denied and promted for a password. After I enter the password for the user "track" then the mozilla browser comes up? Any ideas? Thanks for the help! |
Quote:
the username ... I thought you said it's track, not tracking? [edit] Is your system currently starting in init 3? If it is, what happens if you login as root, and do su -c startx track ? [/edit] Cheers, Tink |
No, I boot to init 5 then go into 3. Not sure how to set it to auto go into 3.
When I try to run rc.local 3 from root I also get permission denied. If I run: su -c startx tracking as "root" I get permission denied but as user "tracking" I get prompted for a password? I just don't think the rc.local file is running at startup? Also, why am I getting prompted for password. Is there a way I can automate that as well? Sorry, I changed user to tracking. -Thanks |
Sorry, now root will run:
su -c startx tracking successfully with no password prompt and go directly into mozilla, but user "tracking" gets prompted for password. But I still have to run the command manually. |
Sorry m8, but I'm at loss here ... that root/tracking
should be denied permission to run startx can only mean that this is a DeadRat (Fedora) specific feature ... What does ls -l `which startx` give you? Cheers, Tink |
It gives me:
/usr/X11R6/bin/startx Maybe I will try RH9 instead. -thanks |
That would be the output of
which startx not of ls -l `which startx` It should look similar to this: -rwxr-xr-x 1 root root 3220 2004-04-04 12:18 /usr/X11R6/bin/startx Cheers, Tink |
All times are GMT -5. The time now is 01:08 PM. |