Re: screen with su and dosemu

Sven Guckes <[email protected]> Thu, 18 Mar 2004 13:31:15 +0100
Newsgroups gmane.comp.gnu.screen
Message-ID <[email protected]>
* <[email protected]> [2004-03-18 12:00]:
> i want to launch a DOS application within
> dosemu on startup of the machine.
>
> I want use the following command:
> su - user - c screen dosemu
>
> But i have the following error:
>   "Cannot open your terminal
>   '/dev/pts/0' - please check."
>
> Today, the actual situation is to wait, boot, and
> logon for the user and launch the screen command
> with dosemu after. Is not the boot target for
> me, i want to automatic solution on startup.
>
> can you help me?

i wonder what problem you are trying to solve with this.

you did not specify your problem and yet you say that
you "want to use the command" so you are giving
a possible solution to yet unknown problem.

do you simply want to display a DOS program on startup?
then you might as well boot windows and place
the DOS program into the startup folder.

anyway, you can only start a screen session
on a terminal which belongs to the user, too.

example:

  guckes@home:~> id
  uid=1000(guckes) gid=1000(guckes) groups=1000(guckes)

so i am "me" on my home system.

i'll use "sudo" to become "root".

  guckes@home:~> sudo bash
  Password:
  2.05b root@home ~> id
  uid=0(root) gid=0(root) groups=0(root)

but the terminal still belongs to user "guckes":

  2.05b root@home ~> ls -l `tty`
  crw-------    1 guckes   tty      136,   5 Mar 18 13:18 /dev/pts/5

so that's why starting screen as root won't work.

but i think there was a way... gotta read
up on the mailing list archive for that..

then again, i haven't used dosemu in quite a while.
i think you have to make sure that DOS is installed
on your disk - and maybe answer some prompts, too.

anyway, i think you should a decription of your *real* problem
which you are trying to solve with the help of screen and dosemu..

Sven


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/gnu-screen/

<*> To unsubscribe from this group, send an email to:
     [email protected]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/