[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[mgp-users 00927] Re: Problems embedding apps in presentations
- To: Chris Tyler <chris@global.proximity.on.ca>
- Subject: [mgp-users 00927] Re: Problems embedding apps in presentations
- From: Grunde L|voll <grunde.lovoll@fys.uio.no>
- Date: Thu, 6 Jun 2002 16:30:30 +0200 (MET DST)
- Cc: mgp-users@mew.org
- Delivered-to: mailing list mgp-users@mew.org
- In-reply-to: <>
- Mailing-list: contact mgp-users-help@mew.org; run by ezmlm
This donsn't work on my system. When I try I get the message:
gres>
gres> xmgp -t 100 sample.mgp
Xlib: connection to ":1.0" refused by server
Xlib: No protocol specified
Can't open display
X(1185): Operation not permitted
gres>
Does the script have to run as root or is there something wrong with the
configuration of my X-server?
Best
Grunde
On Thu, 6 Jun 2002, Chris Tyler wrote:
> Here is another solution to starting mgp without a window manager: I use a
> script named "xmgp" which starts X and then fires up the presentation on
> that display:
>
> #!/bin/bash
> #
> # xmgp :: start mgp on its own display
> #
> DISPLAY=":1" export DISPLAY
> X $DISPLAY 2>/dev/null &
> sleep 2 # give X a head-start
> mgp $*
> killall X # terminate X when mgp exits
> You use this script as you would mgp, that is, give the mgp options on
> the command line. Since this starts X display 1, it is compatible with the
> normal, runlevel 5 X server, which runs as display 0. In other words, you
> can login graphically, type "xmgp -t 100 mypresentation.mgp" and your
> presentation will start up full-screen. (Of course, you can also login
> non-graphically and start a presentation this way, too). When you exit
> from your mgp session you will generally be returned to the screen from
> which you started it.
>
> One nice thing about this approach is that you at any time switch between
> your regular X session (which typically runs on virtual terminal 7, press
> Ctrl+Alt+F7 to access) and your mgp session (which typically runs on vt 8,
> press Ctrl+Alt+F8 to access). I use this to teach Unix courses at a
> college and like to be able to skip over to a full KDE or Gnome
> environment to give demos.
>
> (This works under the default setup of RedHat and SuSE. On other distros
> or customized setups your mileage may vary; for example, at home I have
> four graphical logins on vt7-10 so that family members can login without
> logging me out ;-) so I have to use 'DISPLAY=":4" ' in the script at home).
>
> --
> Chris Tyler
> Seneca@York
>
> ===============================================================================