Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Missed the first post (duplicate on XDM)
@ 1998-05-24 15:33 Scott
  1998-05-24 16:06 ` Christopher Curtis
  0 siblings, 1 reply; 12+ messages in thread
From: Scott @ 1998-05-24 15:33 UTC (permalink / raw)
  To: AXPUsers

Hi gang, probably a bit off topic but need some serious newbie help on XDM.
I have set up Linux 5.0 on a UDB within my home. My Desktop of choice is
KDE.
All is working wonderfully. I have another server running NT and all the
family
clients are running Win95 with an X interface to accept XDMCP (?)
broadcasts,
this works as well. My question is this. Is the there any way to start XDM
on startup, without having to log into the box and start it manually? I am
seriously a newbie, am not good in the shell, and was NOT looking for a free
ride but do need some guidance. Thanks for your consideration.

Regards,

Scott Matthews



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Missed the first post (duplicate on XDM)
  1998-05-24 16:06 ` Christopher Curtis
@ 1998-05-24 16:04   ` mgraffam
  1998-05-24 16:41     ` Andreas Johansson
  2018-05-24 11:45     ` K. Spoon
  1998-05-24 17:52   ` Stephen Williams
  1 sibling, 2 replies; 12+ messages in thread
From: mgraffam @ 1998-05-24 16:04 UTC (permalink / raw)
  To: AXPUsers

On Sun, 24 May 1998, Christopher Curtis wrote:

> On Sun, 24 May 1998, Scott wrote:
> 
> > Hi gang, probably a bit off topic but need some serious newbie help on XDM.
> > I have set up Linux 5.0 on a UDB within my home. My Desktop of choice is
> > KDE.
> [...]
> > this works as well. My question is this. Is the there any way to start XDM
> > on startup, without having to log into the box and start it manually? I am
> 
> I don't know if RedHat has this setup properly, but typically run level 4
> is for X-Windows;

I don't know if RH has that set up properly or not, but why not save
yourself the headache of finding out and just add "xdm &" to some
startup script, like rc.local?

Makes more sense to me, and if xdm fails or X bombs or whatever you will
still have a virtual console to fix up the system without rebooting.

Michael J. Graffam (mgraffam@mhv.net)
http://www.mhv.net/~mgraffam -- Philosophy, Religion, Computers, Crypto, etc
"Act only according to that maxim by which you can at the same time will that
it should become a universal law.." - Immanuel Kant "Metaphysics of Morals"


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Missed the first post (duplicate on XDM)
  1998-05-24 15:33 Missed the first post (duplicate on XDM) Scott
@ 1998-05-24 16:06 ` Christopher Curtis
  1998-05-24 16:04   ` mgraffam
  1998-05-24 17:52   ` Stephen Williams
  0 siblings, 2 replies; 12+ messages in thread
From: Christopher Curtis @ 1998-05-24 16:06 UTC (permalink / raw)
  To: AXPUsers

On Sun, 24 May 1998, Scott wrote:

> Hi gang, probably a bit off topic but need some serious newbie help on XDM.
> I have set up Linux 5.0 on a UDB within my home. My Desktop of choice is
> KDE.
[...]
> this works as well. My question is this. Is the there any way to start XDM
> on startup, without having to log into the box and start it manually? I am

I don't know if RedHat has this setup properly, but typically run level 4
is for X-Windows; the default is 3 - multiuser w/NFS.  *If* it is setup
right, simply edit /etc/inittab and change the default runlevel from 3 to
4.  You can test if it works by typing "init 4" as superuser, though I'm
not sure if it works correctly from runlevel 3 (I don't trust init
scripts).   You should be able to pass it the parameter "4" from the milo
boot prompt, but I haven't tried any of this on Alpha.  The only problem
being that if you change the default before you test it, you could render
your box dead, save recovery by using a boot floppy (change 4 back to 3).

regards,
--
Christopher Curtis               - http://www.ee.fit.edu/users/ccurtis
Florida Institute of Technology  - System Administrator, Programmer
Melbourne, Florida  USA          - http://www.lp.org/


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Missed the first post (duplicate on XDM)
  1998-05-24 16:04   ` mgraffam
@ 1998-05-24 16:41     ` Andreas Johansson
  2018-05-24 11:45     ` K. Spoon
  1 sibling, 0 replies; 12+ messages in thread
From: Andreas Johansson @ 1998-05-24 16:41 UTC (permalink / raw)
  To: AXPUsers

On Sun, 24 May 1998 mgraffam@mhv.net wrote:

> I don't know if RH has that set up properly or not, but why not save
> yourself the headache of finding out and just add "xdm &" to some
> startup script, like rc.local?
> 
> Makes more sense to me, and if xdm fails or X bombs or whatever you will
> still have a virtual console to fix up the system without rebooting.

Well, as I use a monosync monitor I use xdm. I can confirm that Red Hat's
xdm setup works very well with the inittab change, only you should use
initlevel 5 rather than level 4 as suggested previously. All you need to
do is change the first noncomment line in /etc/inittab from this

id:3:initdefault:

to this

id:5:initdefault:

and xdm will come up automatically at boot. To change initlevel to 5 at a
given time, use 'telinit 5'. You will NOT lose your "normal" vt:s when you
run at initlevel 5 per default (this can be changed in inittab if you
don't want them).

/Andreas


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Missed the first post (duplicate on XDM)
  2018-05-24 11:45     ` K. Spoon
@ 1998-05-24 17:01       ` Christopher Curtis
  1998-05-24 17:54         ` H. Peter Anvin
  0 siblings, 1 reply; 12+ messages in thread
From: Christopher Curtis @ 1998-05-24 17:01 UTC (permalink / raw)
  To: AXPUsers

On Thu, 24 May 2018, K. Spoon wrote:

>   1) RedHat does have it set up properly. (At least, it's pretty much the
>      same as what I've seen on other Linux distribs :)
>   2) The run level for xdm is 5.  Run level 4 is unused.
>   3) Use "telinit <level>" to switch run levels from the command line.
>   4) Use the settings in inittab because xdm will be restarted
>      whenever it exits...just like *getty.

I'm curious ... is there a standard for inittab layout?  Some of you may
recognize my suggestions as being very Solaris-y.  For those unaware,
SunOS/Solaris do:

0    halt (go to firmware)
1,s  single user
2    multiuser
3    multiuser w/NFS
4    X (+multiuser w/NFS)
5    power off
6    reboot

What is the "Linux standard", or is there one?

0   halt (power off?)
1,s single user
2   multiuser
3   multiuser w/NFS
4   *unused* ?
5   X ?
6   ?

--
Christopher Curtis               - http://www.ee.fit.edu/users/ccurtis
Florida Institute of Technology  - System Administrator, Programmer
Melbourne, Florida  USA          - http://www.lp.org/


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Missed the first post (duplicate on XDM)
  1998-05-24 16:06 ` Christopher Curtis
  1998-05-24 16:04   ` mgraffam
@ 1998-05-24 17:52   ` Stephen Williams
  1998-05-24 19:47     ` Christopher Curtis
  1998-05-25  4:37     ` Michal Jaegermann
  1 sibling, 2 replies; 12+ messages in thread
From: Stephen Williams @ 1998-05-24 17:52 UTC (permalink / raw)
  To: axp-list


ccurtis@ee.fit.edu said:
> The only problem being that if you change the default before you test
> it, you could render your box dead, save recovery by using a boot
> floppy (change 4 back to 3).

boot single works no matter what is in /etc/inittab.

-- 
Steve Williams                "The woods are lovely, dark and deep.
steve@icarus.com              But I have promises to keep,
steve@picturel.com            and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Missed the first post (duplicate on XDM)
  1998-05-24 17:01       ` Christopher Curtis
@ 1998-05-24 17:54         ` H. Peter Anvin
  1998-05-26 10:01           ` Mike "Ford" Ditto
  0 siblings, 1 reply; 12+ messages in thread
From: H. Peter Anvin @ 1998-05-24 17:54 UTC (permalink / raw)
  To: axp-list; +Cc: axp-list

> 
> I'm curious ... is there a standard for inittab layout?  Some of you may
> recognize my suggestions as being very Solaris-y.  For those unaware,
> SunOS/Solaris do:
> 
> 0    halt (go to firmware)
> 1,s  single user
> 2    multiuser
> 3    multiuser w/NFS
> 4    X (+multiuser w/NFS)
> 5    power off
> 6    reboot
> 

It's worth pointing out 5 is a very recently Sun-invention.

> What is the "Linux standard", or is there one?
> 
> 0   halt (power off?)
> 1,s single user
> 2   multiuser
> 3   multiuser w/NFS
> 4   *unused* ?
> 5   X ?
> 6   ?
> 

There isn't one; most use a System V-like setup:

0	halt
1,s	single user
2	multiuser
3	multiuser w/network services
4	multiuser variant (unused in RedHat)
5	multiuser variant (X11 in RedHat)
6	reboot

Early versions of Slackware used 6 for X11.

Since Linux now supports poweroff, following the Solaris convention
probably would make sense.

	-hpa


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Missed the first post (duplicate on XDM)
  1998-05-24 17:52   ` Stephen Williams
@ 1998-05-24 19:47     ` Christopher Curtis
  1998-05-25  4:37     ` Michal Jaegermann
  1 sibling, 0 replies; 12+ messages in thread
From: Christopher Curtis @ 1998-05-24 19:47 UTC (permalink / raw)
  To: axp-list

On Sun, 24 May 1998, Stephen Williams wrote:

> ccurtis@ee.fit.edu said:
> > The only problem being that if you change the default before you test
> > it, you could render your box dead, save recovery by using a boot
> > floppy (change 4 back to 3).
> 
> boot single works no matter what is in /etc/inittab.

This is true; however, as my Alpha is in a land far, far, away, and
doesn't seem to be talking to the outside world ( :-\ ) I preferred to err
on the side of caution since I don't know offhand how to tell MILO to do
the equivalent of "boot s".

--
Christopher Curtis               - http://www.ee.fit.edu/users/ccurtis
Florida Institute of Technology  - System Administrator, Programmer
Melbourne, Florida  USA          - http://www.lp.org/


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Missed the first post (duplicate on XDM)
  1998-05-24 17:52   ` Stephen Williams
  1998-05-24 19:47     ` Christopher Curtis
@ 1998-05-25  4:37     ` Michal Jaegermann
  1 sibling, 0 replies; 12+ messages in thread
From: Michal Jaegermann @ 1998-05-25  4:37 UTC (permalink / raw)
  To: axp-list

Steve Williams replied:
> 
> ccurtis@ee.fit.edu said:
> > The only problem being that if you change the default before you test
> > it, you could render your box dead, save recovery by using a boot
> > floppy (change 4 back to 3).
> 
> boot single works no matter what is in /etc/inittab.

Also you can specify level as an argument to your kernel (a number).

That is why it is nice to have a boot menu entry which does not go
into an automatic boot immediately. :-)

  --mj


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Missed the first post (duplicate on XDM)
  1998-05-24 17:54         ` H. Peter Anvin
@ 1998-05-26 10:01           ` Mike "Ford" Ditto
  1998-05-26 14:24             ` Christopher Curtis
  0 siblings, 1 reply; 12+ messages in thread
From: Mike "Ford" Ditto @ 1998-05-26 10:01 UTC (permalink / raw)
  To: axp-list

> From: "H. Peter Anvin" <hpa@transmeta.com>
> > 5    power off
> It's worth pointing out 5 is a very recently Sun-invention.

Not exactly.  Sun and Linux both got the runlevel stuff from SVR4, which
defines a power off runlevel:

0    power off
1,s  single user
2    multiuser
3    multiuser w/NFS
4    available for custom definition
5    halt (go to firmware)
6    reboot

Somehow Sun got levels 0 and 5 reversed in Solaris, but aside from those
two numbers being swapped the definitions are the same as SVR4.0 .

					-=] Ford [=-

"The term most often used in this	(In Real Life:  Mike Ditto)
 manual is `implementation-defined'."	ford@omnicron.com
 - SVR4 Programmer's Guide: POSIX	http://www.omnicron.com/~ford/ford.html


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Missed the first post (duplicate on XDM)
  1998-05-26 10:01           ` Mike "Ford" Ditto
@ 1998-05-26 14:24             ` Christopher Curtis
  0 siblings, 0 replies; 12+ messages in thread
From: Christopher Curtis @ 1998-05-26 14:24 UTC (permalink / raw)
  To: axp-list

On Tue, 26 May 1998, Mike "Ford" Ditto wrote:

> Not exactly.  Sun and Linux both got the runlevel stuff from SVR4, which
> defines a power off runlevel:
> 
> 0    power off
> 5    halt (go to firmware)
> 
> Somehow Sun got levels 0 and 5 reversed in Solaris, but aside from those

This should actually be expected from Sun.  On their old hardware SCSI id
3 is physically SCSI id 0, and id 0 is 3.  Go figure.  Where they
determine the numbers to swap I have no idea.

SCSI target:   Sun calls it:
     0            3
     1            1
     2            2
     3            0
     4            4
     5            5
     6            6
     7            7

--
Christopher Curtis               - http://www.ee.fit.edu/users/ccurtis
Florida Institute of Technology  - System Administrator, Programmer
Melbourne, Florida  USA          - http://www.lp.org/


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Missed the first post (duplicate on XDM)
  1998-05-24 16:04   ` mgraffam
  1998-05-24 16:41     ` Andreas Johansson
@ 2018-05-24 11:45     ` K. Spoon
  1998-05-24 17:01       ` Christopher Curtis
  1 sibling, 1 reply; 12+ messages in thread
From: K. Spoon @ 2018-05-24 11:45 UTC (permalink / raw)
  To: AXPUsers

On Sun, 24 May 1998 mgraffam@mhv.net wrote:
> On Sun, 24 May 1998, Christopher Curtis wrote:
> > On Sun, 24 May 1998, Scott wrote:

>>> this works as well. My question is this. Is the there any way to start XDM
>>> on startup, without having to log into the box and start it manually? I am
 
>> I don't know if RedHat has this setup properly, but typically run level 4
>> is for X-Windows;

> I don't know if RH has that set up properly or not, but why not save
> yourself the headache of finding out and just add "xdm &" to some
> startup script, like rc.local?

  1) RedHat does have it set up properly. (At least, it's pretty much the
     same as what I've seen on other Linux distribs :)
  2) The run level for xdm is 5.  Run level 4 is unused.
  3) Use "telinit <level>" to switch run levels from the command line.
  4) Use the settings in inittab because xdm will be restarted
     whenever it exits...just like *getty.
 
> Makes more sense to me, and if xdm fails or X bombs or whatever you will
> still have a virtual console to fix up the system without rebooting.

Check out /etc/inittab.  Boogy on down to where the tty's are spawned.
You'll notice that all 6 tty's are set to run at run level 5.  If you
set 5 as your default, you won't lose your virtual consoles.
 

-K. Spoon
--
"They that can give up essential liberty to obtain a little temporary
 saftey deserve neither liberty not saftey."  --  Benjamin Franklin, 1759 


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~1998-05-26 14:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-24 15:33 Missed the first post (duplicate on XDM) Scott
1998-05-24 16:06 ` Christopher Curtis
1998-05-24 16:04   ` mgraffam
1998-05-24 16:41     ` Andreas Johansson
2018-05-24 11:45     ` K. Spoon
1998-05-24 17:01       ` Christopher Curtis
1998-05-24 17:54         ` H. Peter Anvin
1998-05-26 10:01           ` Mike "Ford" Ditto
1998-05-26 14:24             ` Christopher Curtis
1998-05-24 17:52   ` Stephen Williams
1998-05-24 19:47     ` Christopher Curtis
1998-05-25  4:37     ` Michal Jaegermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox