From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079040315882.tru64-unix-managers.marc@archive.invalid> From: Saar Picker Date: Thu, 22 Apr 1999 19:59:05 +0000 To: tru64-unix-managers Subject: SUMMARY: tty control in single user mode? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079040315882 Hi all, Thanks for suggestions from John Klapp and the venerable and ever-present ( :) ) Dr. Tom Blinn 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 To: tru64 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, 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@socrates.berkeley.edu CCS/SDA - Administrative Unix (510) 643-8168 UC Berkeley 261 Evans Hall ====================================================================