SUMMARY: tty control in single user mode?

From: Saar Picker <saarp_at_uclink4.berkeley.edu>
Date: Thu, 22 Apr 1999 12:59:05 -0700

Hi all,

Thanks for suggestions from John Klapp <jhk_at_pacific.mps.ohio-state.edu> and
the venerable and ever-present ( :) ) Dr. Tom Blinn <tpb_at_doctor.zk3.dec.com>
which were unfortunately unhelpful. I did, however figure out this obscure
problem.

It seems that DU's BSD tty interface is implemented over the STREAMS
interface. In order for this to work properly, the kernel loadable module
daemon, STREAMS devices must be present, and STREAMS autopushing must be in
place. The short of it is, the following need to be run:

        /sbin/kloadsrv # kernel loadable module server
        /usr/sbin/strsetup -i # creates streams devices
        /usr/sbin/autopush -f /etc/autopush.conf # streams autopush

These generally get run by a combination of /etc/inittab,
/sbin/init.d/autosysconfig, and I think /sbin/it.

More generally, though, this was one of the problems I've had to figure out
when creating a bootable Digital/Tru64 Unix cdrom for disaster recovery. The
cdrom includes initialization scripts, an NSR client, ssh, and Netscape
Navigator on a viable complete install of DU. If anyone is interested in a
copy, information about the cd creation process, etc., I will answer e-mail on
the topic. If there is sufficient demand, I may put up a web page. Just
thought I'd offer if any of you are going through or plan to go through this
pretty annoying process.

-Saar

Original message below.

-------- Original Message --------
Subject: tty control in single user mode?
Date: Mon, 19 Apr 1999 15:31:16 -0700
From: Saar Picker <saarp_at_uclink4.berkeley.edu>
To: tru64 <tru64-unix-managers_at_ornl.gov>


Hi all,

This is sort of a wierd request. I'm trying to create a DU boot cdrom. For
some reason, though, it is impossible to open more than one terminal session.
The two things I've tried are setting up networking and running sshd and
running an X server with xterms. When connecting to the single-user machine
with ssh or when opening an xterm, character input is not recognized (ie. you
type and no characters show up). When I use alphatrace on the processes, I see
stuff like this:

[254]: open ("/dev/tty", O_WRONLY, 00) = -1 (No such device or address)
[254]: ioctl (8, 0x20007461<Void,TIOCSCTTY,0>, 0) = -1 (Not a typewriter)
[254]: send (3, 0x11fffd0e8="<27>Apr 19 13:24:06 sshd[254]: error: open
/dev/tty
 failed - could not set contr"...118, ) = -1 (Destination address required)

The devices exist and seem to be working.

What I'm wondering is am I failing to start up some vital kernel-related
process or setting some kinda of kernel configuration parameter? Is there a
reason only one shell is accepting input?

Thanks,

-Saar

-- 
====================================================================
 Saar Picker                            saarp_at_socrates.berkeley.edu
 CCS/SDA - Administrative Unix                       (510) 643-8168
 UC Berkeley                                         261 Evans Hall
====================================================================
Received on Thu Apr 22 1999 - 20:01:44 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT