All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] Creating virtual consoles on the fly
@ 2003-09-03 19:59 Michael Talyansky
  2003-09-03 20:28 ` Matt Zimmerman
  2003-09-04  4:38 ` Russell Coker
  0 siblings, 2 replies; 9+ messages in thread
From: Michael Talyansky @ 2003-09-03 19:59 UTC (permalink / raw)
  To: user-mode-linux-devel

[-- Attachment #1: Type: text/plain, Size: 180 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 3357 bytes --]

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

* Re: [uml-devel] Creating virtual consoles on the fly
  2003-09-03 19:59 Michael Talyansky
@ 2003-09-03 20:28 ` Matt Zimmerman
  2003-09-04  4:38 ` Russell Coker
  1 sibling, 0 replies; 9+ messages in thread
From: Matt Zimmerman @ 2003-09-03 20:28 UTC (permalink / raw)
  To: user-mode-linux-devel

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

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

* Re: [uml-devel] Creating virtual consoles on the fly
  2003-09-03 19:59 Michael Talyansky
  2003-09-03 20:28 ` Matt Zimmerman
@ 2003-09-04  4:38 ` Russell Coker
  1 sibling, 0 replies; 9+ messages in thread
From: Russell Coker @ 2003-09-04  4:38 UTC (permalink / raw)
  To: Michael Talyansky, user-mode-linux-devel

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

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

* RE: [uml-devel] Creating virtual consoles on the fly
@ 2003-09-04 18:00 Michael Talyansky
  2003-09-04 22:49 ` Nuno Silva
  2003-09-05 20:12 ` Jeff Dike
  0 siblings, 2 replies; 9+ messages in thread
From: Michael Talyansky @ 2003-09-04 18:00 UTC (permalink / raw)
  To: user-mode-linux-devel

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

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

* Re: [uml-devel] Creating virtual consoles on the fly
  2003-09-04 18:00 [uml-devel] Creating virtual consoles on the fly Michael Talyansky
@ 2003-09-04 22:49 ` Nuno Silva
  2003-09-05 20:12 ` Jeff Dike
  1 sibling, 0 replies; 9+ messages in thread
From: Nuno Silva @ 2003-09-04 22:49 UTC (permalink / raw)
  To: Michael Talyansky; +Cc: user-mode-linux-devel

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

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

* Re: [uml-devel] Creating virtual consoles on the fly
  2003-09-04 18:00 [uml-devel] Creating virtual consoles on the fly Michael Talyansky
  2003-09-04 22:49 ` Nuno Silva
@ 2003-09-05 20:12 ` Jeff Dike
  1 sibling, 0 replies; 9+ messages in thread
From: Jeff Dike @ 2003-09-05 20:12 UTC (permalink / raw)
  To: Michael Talyansky; +Cc: user-mode-linux-devel

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

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

* RE: [uml-devel] Creating virtual consoles on the fly
@ 2003-09-05 20:46 Michael Talyansky
  2003-09-06  0:53 ` Henrik Nordstrom
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Talyansky @ 2003-09-05 20:46 UTC (permalink / raw)
  To: Jeff Dike; +Cc: user-mode-linux-devel

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

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

* RE: [uml-devel] Creating virtual consoles on the fly
  2003-09-05 20:46 Michael Talyansky
@ 2003-09-06  0:53 ` Henrik Nordstrom
  2003-09-13 14:33   ` BlaisorBlade
  0 siblings, 1 reply; 9+ messages in thread
From: Henrik Nordstrom @ 2003-09-06  0:53 UTC (permalink / raw)
  To: Michael Talyansky; +Cc: Jeff Dike, user-mode-linux-devel

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 >/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

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

* Re: [uml-devel] Creating virtual consoles on the fly
  2003-09-06  0:53 ` Henrik Nordstrom
@ 2003-09-13 14:33   ` BlaisorBlade
  0 siblings, 0 replies; 9+ messages in thread
From: BlaisorBlade @ 2003-09-13 14:33 UTC (permalink / raw)
  To: user-mode-linux-devel

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 <<EOSIGN
Paolo Giarrusso, aka Blaisorblade
Linux Kernel 2.4.21/2.6.0-test on an i686; Linux registered user n. 292729
EOSIGN



-------------------------------------------------------
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

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

end of thread, other threads:[~2003-09-13 15:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-04 18:00 [uml-devel] Creating virtual consoles on the fly Michael Talyansky
2003-09-04 22:49 ` Nuno Silva
2003-09-05 20:12 ` Jeff Dike
  -- strict thread matches above, loose matches on Subject: below --
2003-09-05 20:46 Michael Talyansky
2003-09-06  0:53 ` Henrik Nordstrom
2003-09-13 14:33   ` BlaisorBlade
2003-09-03 19:59 Michael Talyansky
2003-09-03 20:28 ` Matt Zimmerman
2003-09-04  4:38 ` Russell Coker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.