From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 19udnZ-0004R7-00 for ; Wed, 03 Sep 2003 13:00:13 -0700 Received: from [64.6.182.228] (helo=gummo.domain.trailerparc.com) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.22) id 19udnY-0007QW-Rl for user-mode-linux-devel@lists.sourceforge.net; Wed, 03 Sep 2003 13:00:12 -0700 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C37255.E56E60D2" Message-ID: <10C160F5A03A0942A1A87B658784CA6A0A4928@gummo.domain.trailerparc.com> From: "Michael Talyansky" Subject: [uml-devel] Creating virtual consoles on the fly Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: Date: Wed, 3 Sep 2003 12:59:34 -0700 To: user-mode-linux-devel@lists.sourceforge.net This is a multi-part message in MIME format. ------_=_NextPart_001_01C37255.E56E60D2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Is there a programmatic way to create a virtual console on the fly, that is, without changing /etc/inittab and doing something like "telinit q"?=20 =20 Thanks in advance, Michael ------_=_NextPart_001_01C37255.E56E60D2 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Is there a programmatic way to create a virtual = console on the fly, that is, without changing /etc/inittab and doing something like “telinit q”? =

 

Thanks in advance,

Michael

=00 ------_=_NextPart_001_01C37255.E56E60D2-- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 19ueEl-0000bN-00 for ; Wed, 03 Sep 2003 13:28:19 -0700 Received: from smtp01.mrf.mail.rcn.net ([207.172.4.60]) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.22) id 19ueEl-0005Gz-Dm for user-mode-linux-devel@lists.sourceforge.net; Wed, 03 Sep 2003 13:28:19 -0700 Received: from 216-15-124-77.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com ([216.15.124.77] helo=mizar.alcor.net) by smtp01.mrf.mail.rcn.net with esmtp (Exim 3.35 #4) id 19ueEj-00066B-00 for user-mode-linux-devel@lists.sourceforge.net; Wed, 03 Sep 2003 16:28:17 -0400 Received: from mdz by mizar.alcor.net with local (Exim 3.36 #1 (Debian)) id 19ueEj-0003aU-00 for ; Wed, 03 Sep 2003 16:28:17 -0400 From: Matt Zimmerman Subject: Re: [uml-devel] Creating virtual consoles on the fly Message-ID: <20030903202817.GX7304@alcor.net> References: <10C160F5A03A0942A1A87B658784CA6A0A4928@gummo.domain.trailerparc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10C160F5A03A0942A1A87B658784CA6A0A4928@gummo.domain.trailerparc.com> Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: Date: Wed, 3 Sep 2003 16:28:17 -0400 To: user-mode-linux-devel@lists.sourceforge.net On Wed, Sep 03, 2003 at 12:59:34PM -0700, Michael Talyansky wrote: > Is there a programmatic way to create a virtual console on the fly, that > is, without changing /etc/inittab and doing something like "telinit q"? inittab isn't magic; all it does is to run programs as appropriate for the current runlevel. You can run the same programs manually. -- - mdz ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 19ultY-0005t7-00 for ; Wed, 03 Sep 2003 21:38:56 -0700 Received: from sat.sws.net.au ([202.5.161.49] ident=postfix) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.22) id 19ultV-0001OM-IU for user-mode-linux-devel@lists.sourceforge.net; Wed, 03 Sep 2003 21:38:54 -0700 From: Russell Coker Reply-To: russell@coker.com.au Subject: Re: [uml-devel] Creating virtual consoles on the fly References: <10C160F5A03A0942A1A87B658784CA6A0A4928@gummo.domain.trailerparc.com> In-Reply-To: <10C160F5A03A0942A1A87B658784CA6A0A4928@gummo.domain.trailerparc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309041438.55653.russell@coker.com.au> Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: Date: Thu, 4 Sep 2003 14:38:55 +1000 To: Michael Talyansky , user-mode-linux-devel@lists.sourceforge.net On Thu, 4 Sep 2003 05:59, Michael Talyansky wrote: > Is there a programmatic way to create a virtual console on the fly, that > is, without changing /etc/inittab and doing something like "telinit q"? What is wrong with openvt? -- http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 19uyQe-0006CF-00 for ; Thu, 04 Sep 2003 11:01:56 -0700 Received: from [64.6.182.228] (helo=gummo.domain.trailerparc.com) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.22) id 19uyQV-0002pe-2p for user-mode-linux-devel@lists.sourceforge.net; Thu, 04 Sep 2003 11:01:47 -0700 content-class: urn:content-classes:message Subject: RE: [uml-devel] Creating virtual consoles on the fly MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Message-ID: <10C160F5A03A0942A1A87B658784CA6A0976D2@gummo.domain.trailerparc.com> From: "Michael Talyansky" Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: Date: Thu, 4 Sep 2003 11:00:54 -0700 Content-Transfer-Encoding: 8bit To: user-mode-linux-devel@lists.sourceforge.net This is the result of "openvt -l bash": Couldnt get a file descriptor referring to the console Could not get a file descriptor referring to the console If I run /sbin/mingetty with a new console tty (say, ttys/2), the virtual console xterm does come up, but then mingetty terminates, and no login process is run for the new console. Could someone tell me what am I doing wrong? Thanks! -----Original Message----- From: Russell Coker [mailto:russell@coker.com.au] Sent: Wednesday, September 03, 2003 9:39 PM To: Michael Talyansky; user-mode-linux-devel@lists.sourceforge.net Subject: Re: [uml-devel] Creating virtual consoles on the fly On Thu, 4 Sep 2003 05:59, Michael Talyansky wrote: > Is there a programmatic way to create a virtual console on the fly, that > is, without changing /etc/inittab and doing something like "telinit q"? What is wrong with openvt? -- http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 19v2uO-0005wM-00 for ; Thu, 04 Sep 2003 15:48:56 -0700 Received: from fep04-svc.mail.telepac.pt ([194.65.5.203]) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.22) id 19v2uN-0006XX-Iv for user-mode-linux-devel@lists.sourceforge.net; Thu, 04 Sep 2003 15:48:55 -0700 Message-ID: <3F57C169.3050303@vgertech.com> From: Nuno Silva MIME-Version: 1.0 Subject: Re: [uml-devel] Creating virtual consoles on the fly References: <10C160F5A03A0942A1A87B658784CA6A0976D2@gummo.domain.trailerparc.com> In-Reply-To: <10C160F5A03A0942A1A87B658784CA6A0976D2@gummo.domain.trailerparc.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: Date: Thu, 04 Sep 2003 23:49:13 +0100 To: Michael Talyansky Cc: user-mode-linux-devel@lists.sourceforge.net Hi! Michael Talyansky wrote: > This is the result of "openvt -l bash": > > Couldnt get a file descriptor referring to the console > Could not get a file descriptor referring to the console > > If I run /sbin/mingetty with a new console tty (say, ttys/2), the > virtual console xterm does come up, but then mingetty terminates, and no > login process is run for the new console. Could someone tell me what am > I doing wrong? Maybe you didn't configure any "consoles" in the command line? Read this: http://user-mode-linux.sourceforge.net/input.html Regards, Nuno Silva ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 19vN12-0000eQ-00 for ; Fri, 05 Sep 2003 13:17:08 -0700 Received: from lakshmi.addtoit.com ([198.99.130.6] helo=lakshmi.solana.com) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.22) id 19vN10-0005vk-KJ for user-mode-linux-devel@lists.sourceforge.net; Fri, 05 Sep 2003 13:17:08 -0700 Received: from ccure.karaya.com (lakshmi.solana.com [127.0.0.1]) by lakshmi.solana.com (8.11.2/8.9.3) with ESMTP id h85K9bj04382 for ; Fri, 5 Sep 2003 16:09:38 -0400 Message-Id: <200309052012.h85KCUjh001314@ccure.karaya.com> Subject: Re: [uml-devel] Creating virtual consoles on the fly In-Reply-To: Your message of "Thu, 04 Sep 2003 11:00:54 PDT." <10C160F5A03A0942A1A87B658784CA6A0976D2@gummo.domain.trailerparc.com> References: <10C160F5A03A0942A1A87B658784CA6A0976D2@gummo.domain.trailerparc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: Jeff Dike Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: Date: Fri, 05 Sep 2003 16:12:30 -0400 To: Michael Talyansky Cc: user-mode-linux-devel@lists.sourceforge.net michaelt@doublewidesoft.com said: > If I run /sbin/mingetty with a new console tty (say, ttys/2), the > virtual console xterm does come up, but then mingetty terminates, and > no login process is run for the new console. Could someone tell me > what am I doing wrong? Have you tried putting an entry in inittab and kill -1 1? I've tried running getty from the command like in the past, and IIRC it wasn't happy about that. Jeff ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 19vNTv-0005Ny-00 for ; Fri, 05 Sep 2003 13:46:59 -0700 Received: from [64.6.182.228] (helo=gummo.domain.trailerparc.com) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.22) id 19vNTu-0004EH-PE for user-mode-linux-devel@lists.sourceforge.net; Fri, 05 Sep 2003 13:46:58 -0700 content-class: urn:content-classes:message Subject: RE: [uml-devel] Creating virtual consoles on the fly MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Message-ID: <10C160F5A03A0942A1A87B658784CA6A0976D4@gummo.domain.trailerparc.com> From: "Michael Talyansky" Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: Date: Fri, 5 Sep 2003 13:46:22 -0700 Content-Transfer-Encoding: 8bit To: Jeff Dike Cc: user-mode-linux-devel@lists.sourceforge.net That works fine. You could also to telinit -q which has the same effect as kill -1 1. I was looking for a programmatic way of doing it, like when someone sends a command to UML from the outside to open a new virtual console. I guess if there is no other way, this will have to do. Do you know why mingetty is unhappy when run from the command line? If there is some additional stuff I have to do programmatically, I can do it from a script or a little program. Thanks, Michael -----Original Message----- From: Jeff Dike [mailto:jdike@addtoit.com] Sent: Friday, September 05, 2003 1:13 PM To: Michael Talyansky Cc: user-mode-linux-devel@lists.sourceforge.net Subject: Re: [uml-devel] Creating virtual consoles on the fly michaelt@doublewidesoft.com said: > If I run /sbin/mingetty with a new console tty (say, ttys/2), the > virtual console xterm does come up, but then mingetty terminates, and > no login process is run for the new console. Could someone tell me > what am I doing wrong? Have you tried putting an entry in inittab and kill -1 1? I've tried running getty from the command like in the past, and IIRC it wasn't happy about that. Jeff ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 19vRKh-0000qD-00 for ; Fri, 05 Sep 2003 17:53:43 -0700 Received: from marasystems.com ([213.150.153.194] helo=filer.marasystems.com) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.22) id 19vRKg-0004jH-Ds for user-mode-linux-devel@lists.sourceforge.net; Fri, 05 Sep 2003 17:53:42 -0700 From: Henrik Nordstrom Subject: RE: [uml-devel] Creating virtual consoles on the fly In-Reply-To: <10C160F5A03A0942A1A87B658784CA6A0976D4@gummo.domain.trailerparc.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: Date: Sat, 6 Sep 2003 02:53:35 +0200 (CEST) To: Michael Talyansky Cc: Jeff Dike , user-mode-linux-devel@lists.sourceforge.net On Fri, 5 Sep 2003, Michael Talyansky wrote: > Do you know why mingetty is unhappy when run from the command line? If > there is some additional stuff I have to do programmatically, I can do > it from a script or a little program. Probably it wants to be a process group leader to start a new session. try setsid mingetty ... or if that fails setsid mingetty ... /dev/null 2>&1 Regards Henrik ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 19yCl3-0008Bq-00 for ; Sat, 13 Sep 2003 08:56:21 -0700 Received: from smtp011.mail.yahoo.com ([216.136.173.31]) by sc8-sf-mx1.sourceforge.net with smtp (Exim 4.22) id 19yCky-00009L-GB for user-mode-linux-devel@lists.sourceforge.net; Sat, 13 Sep 2003 08:56:16 -0700 From: BlaisorBlade Subject: Re: [uml-devel] Creating virtual consoles on the fly References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309131633.07928.blaisorblade_spam@yahoo.it> Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: Date: Sat, 13 Sep 2003 16:33:07 +0200 To: user-mode-linux-devel@lists.sourceforge.net Alle 02:53, sabato 6 settembre 2003, Henrik Nordstrom ha scritto: > Probably it wants to be a process group leader to start a new session. Yeah, you are right! I'm not the one who asked the question but I've always been wondering for this(it's a mingetty, not an UML issue). > > try > > setsid mingetty ... Works! Thanks a lot! -- cat <