[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reboot, autoload server
On Oct 5, 3:08am, Mike Nicholas wrote:
> Subject: Re: Reboot, autoload server
> Let me clarify what I am doing and trying to achieve:
>
> 1. Running RH 5.2 as a server.
> 2. Every time the system powers up I must -
> A. Type "root" at the login prompt
> B. Type the "password"
> C. Run /sbin /init 5
>
> Line C above will configure server for users to connect with SuperX. The
> users are running Win 9x/NT and connect to the Linux server via X to the
> static IP address. This is just an intranet with limited access points for
> training and experimentation.
>
> I would like to create an autoboot up login (if possible) to do the above.
> Ideally, it would lock the console (keyboard) after the above procedure. Of
> course, if the system is not shut down properly, there is still the
> likelihood of damage/corruption. I just need to have the system return to
> the Xserver mode without manual intervention.
>
> Is this possible?
>
> Thanks.....Mike
>
>
> At 12:59 AM 10/1/1999 -0400, you wrote:
> >I'm not sure what you're looking for here.
> >
> >Most services (httpd, ftpd, etc) start automatically at boot. I'm not
> >sure what "a server program" is, but you can execute programs
> >immediately after loading by putting them in the /etc/rc.d/rc.local
> >file. From this file, programs runs as root (I use this to run ipchains
> >and set up IP forwarding, for example).
> >
> >I hope that helps...
> >--
> >Wesley Leonard
> >x95leonard@wmich.edu
> >
> >http://members.xoom.com/pacd
> >"Anyone who stands out in the middle of a road looks like roadkill to
> >me."
> > --Linus Torvalds
> > (Referring to the cover of Bill Gates' book "The Road Ahead")
> >
> >
> >Mike Nicholas wrote:
> >>
> >> Is there a procedure (when a server reboots as in power interruption) to
> >> have it automatically load, login as root, and run a server program to
allow
> >> users to then again access it? RH 5.x
Yep, what you are doing manually is changing from runlevel "3" (not xdm) to
runlevel 5 (xdm running). You simply need to change the default runlevel. In
/etc/inittab is a line that loks like this:
id:3:initdefault:
change it too:
id:5:initdefault:
and your all set. You can do this through linuxconf or control-panel as well.