-
auto login
Is it possible to set a Linux box to login automatically? I've tried setting
it to single user mode via inittab but I can seem to get it to launch a script
when I do this.
We have process control apps running and they are often unattended. The
boxes have a watchdog that causes a reboot in the event of a communication
failure. When this happens, the system needs to reboot and continue the
process.
Everything is fine except for this...
-
Re: auto login
duane wrote:
> Is it possible to set a Linux box to login automatically? I've tried setting
> it to single user mode via inittab but I can seem to get it to launch a script
> when I do this.
>
> We have process control apps running and they are often unattended. The
> boxes have a watchdog that causes a reboot in the event of a communication
> failure. When this happens, the system needs to reboot and continue the
> process.
>
> Everything is fine except for this...
You do NOT need to login! Configure your services to run in the boot sequence and
you are done (e.g. see how to configure Samba to run at startup). You can also
access the video (the SVGALib, or whatever it is called, requires you to be root).
As another example, see Suse: it can be configured to automatically start an
X-Window login shell.
Bye Bye!!!
-
Re: auto login
>You do NOT need to login! Configure your services to run in the boot sequence
and
>you are done (e.g. see how to configure Samba to run at startup). You can
also
>access the video (the SVGALib, or whatever it is called, requires you to
be root).
>As another example, see Suse: it can be configured to automatically start
an
>X-Window login shell.
Not sure what you mean. I can set Samba to run at startup using inet.d but
Samba runs in the background. My app needs to have access to the console
to display menus etc. How can I access a console without logging in to it?
Sorry if this is a dumb question. My experience with Linux may be a bit
lacking.
-
Re: auto login
>You do NOT need to login! Configure your services to run in the boot sequence
and
>you are done (e.g. see how to configure Samba to run at startup). You can
also
>access the video (the SVGALib, or whatever it is called, requires you to
be root).
>As another example, see Suse: it can be configured to automatically start
an
>X-Window login shell.
>
>Bye Bye!!!
Thnanks. I looked at the way samba was actually loading and I saw what you
meant. I was able to create a link to my app and call it from /etc/rc.d/rc.sysinit
and it seems to work. This is probably not the most elegant way but I should
be able to figure it out from here.
Thanks.
-
Re: auto login
"duane" <duane@nitrex.com> wrote:
>
>Is it possible to set a Linux box to login automatically? I've tried setting
>it to single user mode via inittab but I can seem to get it to launch a
script
>when I do this.
>
>We have process control apps running and they are often unattended. The
>boxes have a watchdog that causes a reboot in the event of a communication
>failure. When this happens, the system needs to reboot and continue the
>process.
>
>Everything is fine except for this...
Hi,
I have never really tried this, but it should be possible.
You might have to have a perl program and start it from one of the
startup scripts. It may also be possible with a shell script.
Sorry - I am no good at perl.
Perl provides MD5 authentication and I have heard few being succesful
in doing exactly what you wish to do with perl.
About starting the program - Its just a matter of putting into one of
the scripts - better of if you make a new script for it - like
rc.login
I can only help you so much.
sorry.
-
Re: auto login
duane wrote:
> Not sure what you mean. I can set Samba to run at startup using inet.d but
> Samba runs in the background. My app needs to have access to the console
> to display menus etc. How can I access a console without logging in to it?
I have not done it either, but to my knowledge it should be possible. Anyaway,
this is clearly a process control problem, so you might try to look for REAL help
(and not just ideas :-( ) searching for people how use Linux for embedded systems.
REALLY sorry not to be able to help more :-(.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|