🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.sgi.misc
6 messages
6 total messages Started by Penio Penev Fri, 08 Jan 1993 00:01
How can I rlogin with the DISPLAY envar propagated?
#184
Author: Penio Penev
Date: Fri, 08 Jan 1993 00:01
25 lines
1627 bytes
Hi sgi netters,

I work on a X terminal, connected to a network of Indigos (4.0.1) and a
Crimson(4.0.4). Usually I connect to a certain host and start Xsgi and 4Dwm
from it. As long as I work on the same host, My DISPLAY points
correctly to my Xterminal. When I wont to do computations on a
different machine though, I have to rlogin there and start and monitor
the job. The problem is that I no longer have my DISPLAY properly
pointed at and certain X features (for example the -keymap option of
xwsh) do not work.

I do not want to use telnet, becuse It doesn't understand euivalent
hosts.

The man pages, say that the inclusion of DISPLAY propagation is in the
to-do list. Is there a newer version of rlogin, which does this? Or is
there a known workaround? Can I use telnet, perhaps with some options
to setup equivalent hosts and/or users?

I feel, that this may be a problem for any user, which has the DISPLAY
different from the REMOTEHOST, presumably all who use Xterminals.

Any info would be greatly appreciated.

-- Penio.
Re: How can I rlogin with the DISPLAY envar propagated?
#192
Author: John Gerth
Date: Fri, 08 Jan 1993 02:46
41 lines
2101 bytes
Instead of using 'rlogin', you can use 'rsh' to start an 'xterm'
on the target system propagating your current DISPLAY variable.
Since the new 'xterm' will be operating against the server at
the DISPLAY variable all the customizations will apply.

Now there are lots of ways to do this.  Attached is a 'ksh' script
I use to do it on Irix 4.0.5 and which may well need to be customized
to your own tastes:
*-*-*-*-* cut here *-*-*-*
#!/bin/ksh
#
#  start a remote xterm with args, e.g. "rx over_there -bg seagreen ...."
#
#  $1 has the remote host name 
#

rx=$1; shift;
# I usually run with 'xhost +'. If you do too, comment out the following
xhost +$rx

# use /usr/bsd/hostname to get current host. An alternative is to use
#  an environment variable with your normal home workstation.  The latter
#   permits one to use this script again from 'rx'
#   
xh=`hostname`

# now spawn the login  
rsh $r . .profile \; xterm -ls -display $xh:${DISPLAY#*:} $* &

# NOTES:
#  (1)  running .profile gets the PATH, etc. setup over there
#           but assumes that one uses bsh or ksh on the remote.
#  (2)  The goop with DISPLAY handles the general case of
#          X display names, e.g. on multi-headed systems where
#          it can look like "unix:1.2".  We only want the "1.2".

*-*-*-*-* cut here *-*-*-*


-- 
John Gerth	 gerth@watson.ibm.com		(914) 784-7639
Re: How can I rlogin with the DISPLAY envar propagated?
#187
Author: Benjamin Z. Goldsteen
Date: Fri, 08 Jan 1993 03:05
19 lines
1271 bytes
penev@venezia (Penio Penev) writes:

>Hi sgi netters,

>I work on a X terminal, connected to a network of Indigos (4.0.1) and a
>Crimson(4.0.4). Usually I connect to a certain host and start Xsgi and 4Dwm
>from it. As long as I work on the same host, My DISPLAY points
>correctly to my Xterminal. When I wont to do computations on a
>different machine though, I have to rlogin there and start and monitor
>the job. The problem is that I no longer have my DISPLAY properly
>pointed at and certain X features (for example the -keymap option of
>xwsh) do not work.

       Why not use the xon(1) script found on many archives --
it starts up a remote xterm pretty nicely. 
	xon remotehost xterm -ls
would fire an xterm back to your Xterminal.
-- 
Benjamin Z. Goldsteen
Re: How can I rlogin with the DISPLAY envar propagated?
#193
Author: Phil Karlton
Date: Fri, 08 Jan 1993 19:31
189 lines
5928 bytes
In article <1993Jan8.000124.1271@sol.ctr.columbia.edu>, penev@venezia writes:

    I work on a X terminal, connected to a network of Indigos (4.0.1) and a
    Crimson(4.0.4). Usually I connect to a certain host and start Xsgi and 4Dwm
    from it. As long as I work on the same host, My DISPLAY points
    correctly to my Xterminal. When I wont to do computations on a
    different machine though, I have to rlogin there and start and monitor
    the job. The problem is that I no longer have my DISPLAY properly
    pointed at and certain X features (for example the -keymap option of
    xwsh) do not work.

There are scripts around that help you start up an arbitrary application
on a remote host. I use the following which is a hacked up version of
something else I found some time ago.

========================= /usr/local/bin/xrsh ===========================
#! /bin/sh
#
# Usage:
# 	xrsh machine [-l user] cmd [ args... ]
#
# Runs 'cmd args...' on 'machine' (optionally as 'user').
# If 'machine' is the local host (and -l user is not given), then the
# 'cmd' is run directly, instead of using rsh.
# Tries to make sure no extraneous rsh, rshd, or sh processes are left.
# Runs an 'xhost' first to allow access (rsh-ing it to the DISPLAY
# machine if necessary.

# Parse off rsh initial args
fullclientmach=${1-"noclientspecified"}
if test x$fullclientmach != xnoclientspecified ; then
        shift
fi

while true; do
    case $1 in 
	-l)	lflag="-l $2" ; shift ;;
	*)	break ;;
    esac
    shift
done

# Client program name defaults to xterm
clientprog=${1-"noclientspecified"}
if test x$clientprog != xnoclientspecified ; then
        shift
else
	clientprog=xterm
	echo No program specified. using $clientprog
fi

args=$*

#figure out where we are running now and where the server is running
fullhere=${FULLHOST-`hostname`}
display=${DISPLAY=$fullhere:0}

oldIFS=$IFS
IFS="$oldIFS."
set -$- $fullhere
here=$1
IFS=$oldIFS
if test $# = 1 ; then
     domain=`domainname`   
     if test x$domain != x ; then
	fullhere=$fullhere.$domain
    fi
fi

IFS="$oldIFS:"
set -$- $display
if test $# = 2 ; then
	displaynum=$2
	fullservermach=$1
else
	displaynum=$1
	fullservermach=$fullhere
        display=$fullhere:$displaynum
fi
IFS=$oldIFS

#Check if $DISPLAY was unix:0 localhost:0 or just :0 
case x$fullservermach in
    xunix | x | xlocalhost)
        display=$fullhere:$displaynum
        fullservermach=$fullhere
    ;;
esac

if test x$fullclientmach = xnoclientspecified ; then
        fullclientmach=$fullservermach
fi

IFS="$oldIFS."
set -$- $fullclientmach
clientmach=$1
IFS=$oldIFS

debugcsh=${XDEBUG-">& /dev/null &"}
debugsh=${XDEBUG-">/dev/null 2>&1 &"}
# try to run xhost on remote host cuz server is not here
case $fullservermach in
    $fullhere)
	case $fullclientmach in
	    $fullhere) ;;
	    *) eval xhost $fullclientmach $debugsh ;;
	esac
	;;
    *)
        rsh $fullservermach -n \
                "sh -c \"DISPLAY=$display  xhost $fullclientmach\""
        sleep 1
	;;
esac

# run the rsh
if test $clientmach != $here -o x"$lflag" != x ; then
	# And start the client
	rsh $fullclientmach -n $lflag \
	    "sh -c \"DISPLAY=$display  $clientprog $args >/dev/null 2>&1 &\""
else
	eval "exec $clientprog $args $debugsh"
fi


===================== end /usr/local/bin/xrsh ===========================

    The man pages [I assume you mean rlogin here. PK] , say that the
    inclusion of DISPLAY propagation is in the to-do list.

I doubt that rlogin will ever be changed to do this. One problem is
that there is no room in the initial handshake to pass the additional
information. Breaking compatibility with the current rlogind would be
a major no-no.

Here is something else you might try. I'm a csh (well really tcsh)
user.  You can temporarily bury extra information in your $TERM
envariable and pluck that out when you get to the remote side. I use
'@' as a separator between my real $TERM and $DISPLAY.  I have this in
my .login file

======================= .login exceprt ==================================
if ($?TERM) then
  if ( $TERM =~ *@* ) then
    eval `echo $TERM | sed 's/\(.*\)@\(.*\)/setenv DISPLAY \2; set term=\1/'`
  endif
endif
if ($?DISPLAY == 0 && $?REMOTEHOST) then
    setenv DISPLAY ${REMOTEHOST}:0
endif

====================== end .login exceprt =================================

and the following in /usr/local/bin/rlogin

====================== /usr/local/bin/rlogin ==============================
#!/bin/csh -f

if ($?DISPLAY) then
    switch ( $DISPLAY )
      case "":
	setenv DISPLAY :0
      case ":*":
      case "unix:*":
      case "localhost:*":
	setenv HOSTNAME `/usr/bsd/hostname`
	setenv YPDOMAIN `echo $HOSTNAME | sed -e 's/[^.]*\.\(.*\)/\1/'`
	if ( "$YPDOMAIN" == "$HOSTNAME" ) then
	    # hostname doesn't contain domain
	    setenv HOSTNAME ${HOSTNAME}.`/usr/bin/domainname`
	endif
 	setenv TERM $term@${HOSTNAME}:`expr $DISPLAY : ".*:\(.*\)"`
 	breaksw
    default
 	setenv TERM $term@$DISPLAY
    endsw
endif

exec /usr/bsd/rlogin $*

====================== end /usr/local/bin/rlogin ==========================

PK
--
Phil Karlton				Silicon Graphics Computer Systems
The Curmudgeon				2011 N. Shoreline Blvd.
					Mountain View, CA  94039-7311
karlton@.sgi.com			415-390-1557
Re: How can I rlogin with the DISPLAY envar propagated?
#195
Author: Martin-D. Lacasse
Date: Fri, 08 Jan 1993 20:40
368 lines
16908 bytes
	Here is the solution we had for our network. It works on both
	Xterminals and consoles. One has to use 4Dwm. It consists of
	choosing one of our host using the window manager so that this
	solution is easier for users. The names of the hosts appear
	in the window, and different window colors were selected to
	represent the different machine architectures.

	Here is our complete /usr/lib/X11/system.4Dwmrc:


----
 Martin-D. Lacasse                   internet: isaac@physics.mcgill.ca
 Physics Department                     voice: (514) 398-7027
 McGill University                        fax: (514) 398-8434
 Montreal
 Quebec, Canada
 &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&


################################################################################
#                                                                              #
#              LOCAL     4Dwm RESOURCE DESCRIPTION FILE                        #
#                        (system.4Dwmrc, $HOME/.4Dwmrc)                        #
#                                                                              #
# This file is less imposing than it seems at first glance.  It includes       #
# two clearly identified sets of values.                                       #
#                                                                              #
#	* OSF original values -- included so that anyone who wants to either   #
#	  use the original OSF values or see what changes SGI has made has     #
#	  an easy way to do so.                                                #
#                                                                              #
#	* 4Dwm values -- uses a superset of mwm functions, and takes	       #
#	  advantage of new features in 4Dwm.  Settings which establish SGI's   #
#	   default end user environment are included here.		       #
#                                                                              #
# We provide both versions to allow easy user switching and comparison         #
# between them.                                                                #
#                                                                              #
################################################################################



################################################################################
#                                                                              #
#                         BUTTON BINDING DESCRIPTIONS                          #
#                                                                              #
################################################################################

#
# OSF Button Binding Descriptions
#
Buttons DefaultButtonBindings
{
        <Btn1Down>      icon|frame      f.raise
        <Btn3Down>      icon            f.post_wmenu
        <Btn1Down>      root            f.menu  WinCntrl
        <Btn2Down>      root            f.menu  SessionCntrl
        <Btn3Down>      root            f.menu  HostCntrl
}
 
Buttons ExplicitButtonBindings
{
        <Btn1Down>      frame|icon      f.raise
        <Btn3Down>      frame|icon      f.post_wmenu
        <Btn1Down>      root            f.menu  WinCntrl
        <Btn2Down>      root            f.menu  SessionCntrl
        <Btn3Down>      root            f.menu  HostCntrl
        Meta<Btn1Down>  window|icon     f.lower
!        Meta<Btn2Down>  window|icon     f.resize
!        Meta<Btn3Down>  window|icon     f.move
}
 
Buttons PointerButtonBindings
{
        <Btn1Down>      frame|icon      f.raise
        <Btn3Down>      frame|icon      f.post_wmenu
        <Btn1Down>      root            f.menu  WinCntrl
        <Btn2Down>      root            f.menu  SessionCntrl
        <Btn3Down>      root            f.menu  HostCntrl
        <Btn1Down>      window          f.raise
        Meta<Btn1Down>  window|icon     f.lower
!       Meta<Btn2Down>  window|icon     f.resize
!       Meta<Btn3Down>  window|icon     f.move
}

#
# SGI 4Dwm Button Binding Descriptions
#
Buttons 4DwmButtonBindings
{
        <Btn1Down>	root		f.menu	WinCntrl
!       <Btn1Down>	window		f.raise
        <Btn1Click>	frame		f.raise
!    Click, so we don't disable the Btn1Down ability to move the icon.
!    Btn1Down doing an f.move is in the OSF manuals.
        <Btn1Click>	icon		f.normalize
    Ctrl<Btn1Down>	frame|icon	f.lower
   Shift<Btn1Down>	frame|icon	f.raise
Shift Ctrl<Btn1Down>    window          f.raise_resize

        <Btn2Down>	root		f.menu	SessionCntrl
        <Btn2Down>	frame|icon	f.move
    Ctrl<Btn2Down>	frame|icon	f.lower
   Shift<Btn2Down>	frame|icon	f.raise
Shift Ctrl<Btn2Down>    window          f.raise_move

        <Btn3Down>	root		f.menu	HostCntrl
        <Btn3Down>	frame|icon	f.post_wmenu
    Ctrl<Btn3Down>	frame|icon	f.post_wmenu
   Shift<Btn3Down>	frame|icon	f.post_wmenu
    Meta<Btn3Down>	window|icon	f.post_wmenu
Shift Ctrl<Btn3Down>    window          f.post_wmenu
}


################################################################################
#                                                                              #
#                          KEY BINDING DESCRIPTIONS                            #
#                                                                              #
################################################################################

#
# OSF key binding descriptions
#
Keys DefaultKeyBindings
{
        Shift<Key>Escape        window|icon             f.post_wmenu
        Meta<Key>space          window|icon             f.post_wmenu
        Meta<Key>Tab            root|icon|window        f.next_key
        Meta Shift<Key>Tab      root|icon|window        f.prev_key
        Meta<Key>Escape         root|icon|window        f.next_key
        Meta Shift<Key>Escape   root|icon|window        f.prev_key
        Meta Shift Ctrl<Key>exclam root|icon|window     f.set_behavior
        Meta<Key>F6             window                  f.next_key transient
        Meta Shift<Key>F6       window                  f.prev_key transient
            <Key>F4             icon                    f.post_wmenu
}


#
# SGI 4Dwm key binding descriptions
#
Keys 4DwmKeyBindings
{
    # Same as the standard OSF Key Bindings
        Shift<Key>Escape        window|icon             f.post_wmenu
        Meta<Key>space          window|icon             f.post_wmenu
        Meta<Key>Tab            root|icon|window        f.next_key
        Meta Shift<Key>Tab      root|icon|window        f.prev_key
        Meta<Key>Escape         root|icon|window        f.next_key
        Meta Shift<Key>Escape   root|icon|window        f.prev_key
        Meta Shift Ctrl<Key>exclam root|icon|window     f.set_behavior
        Meta<Key>F6             window                  f.next_key transient
        Meta Shift<Key>F6       window                  f.prev_key transient
        <Key>F4			icon			f.post_wmenu
		<Key>Caps_Lock      window                  f.nop

    # SGI added key bindings
	Shift<Key>Escape	root			f.menu SessionCntrl
	Meta<Key>space		root			f.menu HostCntrl
}

################################################################################
#                                                                              #
#                 LOCAL PANE DEFINITIONS                                       #
#                                                                              #
################################################################################


Menu WinCntrl
{
    "Window Control"        f.title
	"Tools"					_T  f.menu  Tools
	"Set Background"	  _B    f.menu  Roots
	no-label					f.separator
	"Shuffle Up"		  _U	f.circle_up
	"Shuffle Down"		  _D	f.circle_down
	"Tidy Icons"		  _T	f.pack_icons
	no-label					f.separator
	"Minimize All"		  _M	f.minimize_all
	"Restore All"		  _R	f.normalize_all
	"Refresh All"		  _f	f.refresh
}

Menu Roots
{
	"Gray"	   f.exec "/usr/bin/X11/xsetroot -solid grey"
    "X Cross Weave" f.exec "/usr/bin/X11/xsetroot -bitmap /usr/include/X11/bitmaps/root_weave"
    "Scales"        f.exec "/usr/bin/X11/xsetroot -bitmap /usr/include/X11/bitmaps/scales"
    "Texture"       f.exec "/usr/bin/X11/xsetroot -bitmap /usr/include/X11/bitmaps/grainy"
    "Granite"       f.exec "/usr/bin/X11/xsetroot -bitmap /usr/include/X11/bitmaps/granite" 
}

Menu Tools
{
	"Xtex"        f.exec        "/usr/bin/X11/xtex"
	"Xpsview"        f.exec        "/usr/sbin/xpsview"
    "Calculators"    f.menu Calcs
	"Clocks"      f.menu   	Clocks
    "Calendar"    f.exec "/usr/bin/X11/xcalendar"
}

Menu  Clocks
{
    "Round Clock"   f.exec "/usr/bin/X11/oclock"
    "Digital Clock" f.exec "/usr/bin/X11/xclock -update 1 -digital -fn '-adobe-helvetica-bold-o-normal--18-*'"
    "Analog Clock"  f.exec "/usr/bin/X11/xclock -update 1"
}

Menu  Calcs
{
    "Posix" f.exec 	"/usr/bin/X11/xcalc -stipple"
    "Reverse Polish"  f.exec "/usr/bin/X11/xcalc -stipple -rpn"
}



#
# Hosts Control
#
Menu HostCntrl
{
        "Host Control"             f.title
		"Local Host"		_L			f.exec "/usr/sbin/winterm -T 'Local:`hostname`' -n `hostname` -bg sgigrey24 -fg sgigrey88 < /dev/null &"
        no-label                f.separator
		"Sgi Cluster..."		_i			f.menu SgiMenu
        no-label                f.separator
		"Sun Cluster..."		_S			f.menu SunMenu
        no-label                f.separator
		"Ibm Cluster..."		_b			f.menu IbmMenu
        no-label                f.separator
		"VM1"		_V			f.exec "xterm -display $DISPLAY -T 'IBM:VM1' -n VM1 -e tn3270 vm1.cc.mcgill.ca &"
}


Menu SunMenu
{
	"aragorn"   f.exec "/usr/bsd/rsh aragorn /usr/local/X11/bin/xterm +ut -T 'Sun:aragorn' -n aragorn -display $DISPLAY  -ls -sb -sk -sl 128  -bg blue4 -fg ivory < /dev/null &"
	"bilbo" f.exec "/usr/bsd/rsh bilbo /usr/local/X11/bin/xterm +ut -T 'Sun:bilbo' -n bilbo -display $DISPLAY -rv -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
	"boromir" f.exec "/usr/bsd/rsh boromir /usr/local/X11/bin/xterm +ut -T 'Sun:boromir' -n boromir -display $DISPLAY  -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
	"frodo" f.exec "/usr/bsd/rsh frodo /usr/local/X11/bin/xterm +ut -T 'Sun:frodo' -n frodo -display $DISPLAY  -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
	"eowyn" f.exec "/usr/bsd/rsh eowyn /usr/local/X11/bin/xterm +ut -T 'Sun:eowyn' -n eowyn -display $DISPLAY  -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
	"gandalf" f.exec "/usr/bsd/rsh gandalf /usr/local/X11/bin/xterm +ut -T 'Sun:gandalf' -n gandalf -display $DISPLAY  -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
	"gimli" f.exec "/usr/bsd/rsh gimli /usr/local/X11/bin/xterm +ut -T 'Sun:gimli' -n gimli -display $DISPLAY  -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
	"gollum" f.exec "/usr/bsd/rsh gollum /usr/local/X11/bin/xterm +ut -T 'Sun:gollum' -n gollum -display $DISPLAY  -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
	"legolas"   f.exec "/usr/bsd/rsh legolas /usr/local/X11/bin/xterm +ut -T 'Sun:legolas' -n legolas -display $DISPLAY  -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
	"sauron"    f.exec "/usr/bsd/rsh sauron /usr/local/X11/bin/xterm +ut -T 'Sun:sauron' -n sauron -display $DISPLAY  -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
}

Menu SgiMenu
{
	"arwen"    f.exec "/usr/bsd/rsh arwen /usr/sbin/winterm -T 'Indigo:arwen' -n arwen -display $DISPLAY -bg sgigrey24 -fg sgigrey88 < /dev/null &"
	"balrog"    f.exec "/usr/bsd/rsh balrog /usr/sbin/winterm -T 'Personal:balrog' -n balrog -display $DISPLAY -bg sgigrey24 -fg sgigrey88 < /dev/null &"
	"celeborn"    f.exec "/usr/bsd/rsh celeborn /usr/sbin/winterm -T 'Indigo:celeborn' -n celeborn -display $DISPLAY -bg sgigrey24 -fg sgigrey88 < /dev/null &"
	"cirdan"    f.exec "/usr/bsd/rsh cirdan /usr/sbin/winterm -T 'Indigo:cirdan' -n cirdan -display $DISPLAY -bg sgigrey24 -fg sgigrey88 < /dev/null &"
	"elrond"    f.exec "/usr/bsd/rsh elrond /usr/sbin/winterm -T 'Indigo:elrond' -n elrond -display $DISPLAY -bg sgigrey24 -fg sgigrey88 < /dev/null &"
	"gildor"    f.exec "/usr/bsd/rsh gildor /usr/sbin/winterm -T 'Indigo:gildor' -n gildor -display $DISPLAY -bg sgigrey24 -fg sgigrey88 < /dev/null &"
	"glaurung"    f.exec "/usr/bsd/rsh glaurung /usr/sbin/winterm -T 'Personal:glaurung' -n glaurung -display $DISPLAY -bg sgigrey24 -fg sgigrey88 < /dev/null &"
	"nazgul"    f.exec "/usr/bsd/rsh nazgul /usr/sbin/winterm -T 'Personal:nazgul' -n nazgul -display $DISPLAY -bg sgigrey24 -fg sgigrey88 < /dev/null &"
	"smaug" f.exec "/usr/bsd/rsh smaug /usr/bin/X11/xterm +ut -T 'Personal:smaug' -n smaug -display $DISPLAY -rv -ls -sb -sk -sl 128 -bg sgigrey24 -fg sgigrey88 < /dev/null &"
}


Menu IbmMenu
{
	"muzgash"    f.exec "/usr/bsd/rsh muzgash /usr/bin/X11/xterm +ut -T 'IBM:muzgash' -n muzgash -display $DISPLAY -ls -sb -sk -sl 128 -fg midnightblue -bg lightgrey < /dev/null &"
}


Menu SessionCntrl
{
	"Session Control"		f.title
	"Kill Application"  _K f.exec  "/usr/bin/X11/xkill"
	"Set Behavior"      _B  f.set_behavior
	"Restart"			_R	f.restart
	no-label				f.separator
	"Log Out"		  _L	f.exec "/usr/bin/X11/endsession"
}



################################################################################
#                                                                              #
#                          ROOT MENU PANE DEFINITIONS                          #
#                                                                              #
################################################################################

#
# OSF Root Menu Description
#
Menu RootMenu
{
        "Root Menu"             f.title
        "New Window"            f.exec "xterm &"
        "Shuffle Up"            f.circle_up
        "Shuffle Down"          f.circle_down
        "Refresh"               f.refresh
        no-label                f.separator
        "Restart..."            f.restart
}

#
# SGI 4Dwm Root Menu Descriptions.
#
Menu 4DwmRootMenu
{
        "4D Window Manager"             f.title
	"Log Out"		  _L	f.exec "/usr/bin/X11/endsession"
}

Menu 4DwmLongRootMenu
{
	"4D Window Manager"		f.title
!	"New Window"		  _N	f.exec "xterm &"
	"Shuffle Up"		  _U	f.circle_up
	"Shuffle Down"		  _D	f.circle_down
	"Tidy Icons"		  _T	f.pack_icons
	"Minimize All"		  _M	f.minimize_all
	"Restore All"		  _A	f.normalize_all
	"Refresh All"		  _f	f.refresh
	no-label			f.separator
	"Restart 4Dwm"		  _R	f.restart
	"Quit 4Dwm"		  _Q	f.quit_mwm
	no-label			f.separator
	"Log Out"		  _L	f.exec "/usr/bin/X11/endsession"
}

################################################################################
#                                                                              #
#                           WINDOW PANE DEFINITIONS                            #
#                                                                              #
################################################################################

#
# OSF Default Window Menu Description
#

Menu DefaultWindowMenu
{
        Restore         _R      Alt<Key>F5      f.normalize
        Move            _M      Alt<Key>F7      f.move
        Size            _S      Alt<Key>F8      f.resize
        Minimize        _n      Alt<Key>F9      f.minimize
        Maximize        _x      Alt<Key>F10     f.maximize
        Lower           _L      Alt<Key>F3      f.lower
        no-label                                f.separator
        Close           _C      Alt<Key>F4      f.kill
}


#
# SGI 4Dwm Window Menu Description.
#

Menu 4DwmWindowMenu
{
        Restore         _R      Alt<Key>F5      f.normalize
        Move            _M      Alt<Key>F7      f.move
        Size            _S      Alt<Key>F8      f.resize
        Minimize        _n      Alt<Key>F9      f.minimize
        Maximize        _x      Alt<Key>F10     f.maximize
	Raise		_a	Alt<key>F1	f.raise
        Lower           _L      Alt<Key>F3      f.lower
        no-label                                f.separator
        Close           _C          	        f.kill
        Quit	        _Q      	        f.quit_app
}
Re: How can I rlogin with the DISPLAY envar propagated?
#203
Author: Penio Penev
Date: Sat, 09 Jan 1993 11:43
52 lines
2694 bytes
Penio Penev (penev@venezia) wrote:
: Hi sgi netters,
: 
: I work on a X terminal, connected to a network of Indigos (4.0.1) and a
: Crimson(4.0.4). Usually I connect to a certain host and start Xsgi and 4Dwm
: from it. As long as I work on the same host, My DISPLAY points
: correctly to my Xterminal. When I wont to do computations on a
: different machine though, I have to rlogin there and start and monitor
: the job. The problem is that I no longer have my DISPLAY properly
: pointed at and certain X features (for example the -keymap option of
: xwsh) do not work.
: 
: I do not want to use telnet, becuse It doesn't understand euivalent
: hosts.
: 
: The man pages, say that the inclusion of DISPLAY propagation is in the
: to-do list. Is there a newer version of rlogin, which does this? Or is
: there a known workaround? Can I use telnet, perhaps with some options
: to setup equivalent hosts and/or users?
: 
: I feel, that this may be a problem for any user, which has the DISPLAY
: different from the REMOTEHOST, presumably all who use Xterminals.
: 
: Any info would be greatly appreciated.
: 
: -- Penio.
: 

Thank You very much for the suggestions. Besides the folowups I got
one email also.

There seem to be two basic methods for doing this. 1) Transmit
additional information in the TERM envar. 2) Use the rsh to connext
and then invoke xterm/winterm/xwsh with the -display option.

The first method is more general in the sense, that You may adapt it
to trasmit any information to the remote host.

The second one transmits oly the $DIPSPLAY envar, but is good, that it
lives the -e(xecuite) option of xwsh free for launching an application
on the remote machine. This again leaves room for transmitting any
information to the remote host (via the application launched). 

I personaly chose the 'rsh host xwsh -display $DISPLAY -e app_name',
since I usually do this from toolchest or 4Dwm.

I would suggest the two workarounds to be included in the man page of
rlogin in the BUGS: section.

Thank You again!

-- Penio.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads