• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Full login user's environment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Full login user's environment


  • Subject: Re: Full login user's environment
  • From: "Thomas 'Tom' R. Treadway III" <email@hidden>
  • Date: Tue, 18 Feb 2003 17:57:56 -0800

In my .kshrc (or .bashrc)
case $- in
*i*)    # interactive
  alias h='fc -l'
  alias ll='ls -l'
  alias lsr='ls -RC'
  alias lsa='ls -a'
  alias so='ps -ax|grep -v grep|grep'
  alias errno='_errno'
  alias signal='_signal'
  alias dtp="xauth extract - $DISPLAY|ssh sunhost xauth merge -; \
    ssh -X -f sunhost /usr/dt/bin/dtterm -ls -sb -sl 4096 \
    -title sunhost -fg white -bg black "
  alias dt7="xauth extract - $DISPLAY|ssh linuxhost xauth merge -; \
    ssh -X -f linuxhost /usr/X11R6/bin/nxterm -ls -sb -sl 4096 \
    -title linuxhost.llnl.gov -fg white -bg black "
  case $TERM in
    dtterm|aixterm|xterm|vt*|VT*|2621|2397|hp*|HP*|X-hpterm)
#
      alias cd='_cd'
      alias vi='_vi'
      function term_title {
        case $TERM in
          2621|2397|hp*|HP*|X-hpterm)
            echo "\033&f0a0k${#1}D${1}\c"
            ;;
          dtterm|aixterm|xterm|vt*|VT*)
###         echo "^[]2;${1}^G"
            printf "\033]2;%s\007" ${1}
            ;;
        esac
      }

      function term_icon_label {
        case $TERM in
          2621|2397|hp*|HP*|X-hpterm)
            echo "\033&f0a-1k${#1}D${1}\c"
            ;;
          dtterm|aixterm|xterm|vt*|VT*)
###         echo "^[]1;${1}^G"
            printf "\033]1;%s\007" ${1}
            ;;
        esac
      }
      _cd() {
        \cd $*
        _title="$(hostname):${PWD#$HOME/}"
        term_title ${_title}
        _iconName="$(hostname)"
        term_icon_label ${_iconName}
      }

      _vi() {
        _title="$(hostname):${@}"
        term_title ${_title}
        _iconName="$(hostname)"
        term_icon_label ${_iconName}
        /usr/bin/vi $@
        _cd .
      }
      unset _title
      unset _iconName
      _cd .
      ;;
    *)
        :
        ;;
  esac

  alp ()
  {
    enscript -p- -G2r $*|atprint "HP 2500C Series:LaserWriter"
  }
  _errno ()
  {
    grep -i $1 /usr/include/sys/errno.h
  }
  _signal ()
  {
   grep -i $1 /usr/include/sys/signal.h
  }
  ;;
esac



   trt

I'm trying to find out how to have a full user's login environment
of a remote host displayed on my Mac. By this I mean having
X11 display the remote machine's login/password program as
displayed on the VGA screen directly connected to the machine,
and entering a username/password and have the full environment
displayed as if I were sat at the machine itself. So far I have managed
to get remote display of individual applications on the Mac using
ssh -X user@machine but they have to all be started up from the
command line - it would be much better to have the menus which
the (Mandrake Linux) machine provides to the directly connected
user.

Is this possible with the Apple X11 application? I've seen it done
on PCs and Solaris boxes so in principle it should be possible...

Regards,

Tim Hewett.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.



--
Thomas R. Treadway
Computer Scientist
Lawrence Livermore Nat'l Lab
7000 East Avenue, L-365
Livermore, CA 94550-0611
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.

References: 
 >Full login user's environment (From: Tim Hewett <email@hidden>)

  • Prev by Date: MacFixIt Article: Troubleshooting X11: Solution for non-admin user problems
  • Next by Date: Xauth, dhcp, and Powerbook
  • Previous by thread: Full login user's environment
  • Next by thread: Re: Full login user's environment
  • Index(es):
    • Date
    • Thread