Xterm in HP UX


xterm terminal is powerfull. It is available with almost all variants of Unix OS.


Explanation of switches available for xterm:
======================================================================
-T "Title name" : Used for displaying title
-bg : For background color
-fg : For foreground color
-fn : For font name (it can be name as well as size also)
-e : This x-application will open in xterm window
-geometry 180x60 : To define xterm's window size and location (optional)
-display : To send the xterm's display on "Hostname" (i.e. for remote display)

How to open Xterm on local system:
======================================================================
xterm -T "This xterm is from: `whoami`@`hostname`" -bg black -fg white -fn fixed -geometry 180x60
xterm -T "This xterm is from: `whoami`@`hostname`" -bg black -fg white -fn "*-fixed-*-*-*-20-*" -geometry 180x60


How to open Xterm on remote system:
======================================================================
xterm -T "This xterm is from: `whoami`@`hostname`" -bg black -fg white -fn fixed -display 10.10.10.230:6.0
xterm -T "This xterm is from: `whoami`@`hostname`" -bg black -fg white -fn "*-fixed-*-*-*-20-*" -display 10.10.10.230:6.0
xterm -T "This xterm is from: `whoami`@`hostname`" -bg black -fg white -fn fixed -display 10.10.10.230:6.0 -e xclock

Post a Comment

1 Comments

  1. While executing the xclock command on local user prompting below error messages.
    lc$ xclock
    Error: Can't open display: 10.37.93.100:0

    Exeuted below steps.
    #/usr/dt/bin/dtconfig -e
    # /sbin/init.d/dtlogin.rc stop
    # /sbin/init.d/dtlogin.rc start

    export DISPLAY=10.37.93.100:0
    Still same problem....

    ReplyDelete