- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- connecting to HP-UX from linux
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2006 08:21 PM
04-24-2006 08:21 PM
Has someone got any tips on how to connect to HP-UX boxes from a linux client.
I can connect just by using telnet and ssh from a command line, however the problem I have is with glance whenever I use it all the bars etc are messed up and there are lots of erroneous characters on screen - any tips greatly received.
Also, does anyone know how to change the title bar of gterm (or any terminal app for that matter) to show which UX box I am connected to?
Both of these things would help me get rid of windows for good off my desktop!
(I am using Opensuse 10 just for info)
thanks a lot
Guy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2006 09:13 PM
04-24-2006 09:13 PM
Re: connecting to HP-UX from linux
openssh is a default package on all Linux.
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA
Is the HP-UX equivalent.
This openssh connection is the best and most secure way to handle connectivity and even script and control issues. It can be made password free when needed.
HP-UX machines in general do not change the title bar due to TERM, terminal or TERMCAP issues.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2006 09:51 PM
04-24-2006 09:51 PM
Re: connecting to HP-UX from linux
I have attached a screenshot of me using glance over a ssh login - it ain't pretty!
And you say that in general HP-UX won't alter the titlebar. To me, that means that it MAY do so in extreme circumstances (I am an eternal optimist :)) surely someone else must login from linux istead of from windows? I have trouble keeping track of which machine I am in at any particular time with multiple connections on the go.
I have to continually do a "uname -a" before any other commands to make sure I am on the correct box - it gets quite annoying as you can imagine.
Thanks again to anyone who can help
Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2006 09:55 PM
04-24-2006 09:55 PM
Re: connecting to HP-UX from linux
Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2006 11:39 PM
04-24-2006 11:39 PM
Re: connecting to HP-UX from linux
I know you would prefer the hostname to show in the xterm, but how about putting it in the prompt...at least you would always know what server you are on and would save you from doing uname all the time.
Add to your .profile :
PS1="`hostname`# "
Hope that helps,
Sally
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2006 12:25 AM
04-25-2006 12:25 AM
Re: connecting to HP-UX from linux
Cheers
Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2006 12:45 AM
04-25-2006 12:45 AM
Solutionyou can include an escape sequence in your prompt to include text in the header or icon text of dtterm or just echo one to perform a one-time entry.
At login time I use to set the icon title to LOGNAME@HOST:
HOST=${HOST:-`uname -n`}
case "$TERM" in
iris-ansi*)
print -n '\033P3.y'$LOGNAME@$HOST'\033\\'
;;
xterm|aixterm|dtterm)
print -n '\033]1;'$LOGNAME@$HOST'\007'
;;
esac
To include the working directory name, I use:
...
case "$TERM" in
*hpterm)
PS1="$LOGNAME@$HOST[!] ^[&f0k\${#PWD}D\$PWD"
;;
xterm|aixterm|dtterm|vt200)
PS1="^[];$LOGNAME@$HOST:\${PWD#$HOME/}^G^M$LOGNAME@$HOST[!] "
;;
...
Note, that the characters '^[' in the PS1 string are escape characters.
You can try, if gterm uses one of my existing entries. Else check the documentation for escape chars used there and expand the 'case' statement as neeeded.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2006 12:55 AM
04-25-2006 12:55 AM
Re: connecting to HP-UX from linux
Simply set your xhosts on the Linux client, the DISPLAY on the HP-UX server and run gpm for full gui luxury.
I change the title using a function in my .profile
function settitle
{
case $TERM in
xterm|dtterm)
echo "\033]0;$1\007\c"
;;
hp*)
echo "\033&f0k${#1}D$1\c"
;;
*)
;;
esac
}
PS1=$(settitle '[$LOGNAME]'`hostname`:'${PWD}')^M'[$LOGNAME]'`hostname`':${PWD}> '
The ^M really is a control M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2006 07:33 PM
04-25-2006 07:33 PM
Re: connecting to HP-UX from linux
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
In bash, $PROMPT_COMMAND is evaluated before a prompt is shown. What the above will do, is that the xterm title is updated before every prompt and it'll always show the current $USER@$HOST:$PWD
Reg. PATH in prompt: I've got:
PS1='[\[\033[01;31m\]\t \[\033[01;39m\]\u\[\033[00m\]@\[\033[01;35m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]] $ '
It'll show a nice colourful prompt, like this:
[09:30:24 vz6tml@dewup-ww02:/tmp] $
It's not too colourful, though - see attachment. Also not the title of the window.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 12:35 AM
04-26-2006 12:35 AM
Re: connecting to HP-UX from linux
In either case, the profiles should be corrected ($HOME/.Xdefault should have *loginShell: true for the source of the emulator) and the if statement about TERM="" in profiles should be removed and replaced with: eval $(ttytype -s)
Now that the terminal can be correctly set in HP-UX, Glance still works better in an HP terminal, so I would start hpterm rather than dtterm or xterm. You get the full size for softkey labels and video enhancements work correctly. NOTE: Glance is designed for 80x24 screens and the default Xwindow behavior for resizing a window is to change the number of characters and lines, not make the font larger. This is not handled well by Glance -- after all, you can't make a dumb terminal like a vt100 100x50 chars/lines. By using .Xdefaults on the HP-UX side, you can select a larger font, set screen colors and even the window title while allowing Glance to run as it was designed.
So 'borrow' hpterm from the HP-UX server for displaying Glance and all will be well. Otherwise, make sure that ttytype -s is eval'ed as you login so TERM matches your terminal window and is know to the terminfo database (hint: ll /usr/lib/terminfo/*/*)
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2006 01:25 AM
04-27-2006 01:25 AM
Re: connecting to HP-UX from linux
It was Steve in the end who showed me the way. Just use gpm!! - brilliantly simple
I had not even considered using it - too used to console based glance.
got my display and xhost sorted and got it running, however upon running it remembered why I don't use it - not as nicely setout as character based glance (IMHO) but carried on with the X server theme and launched a hpterm and then ran glance from that - got my old favourite glance back and the host name in the titlebar automagically by using the X version of hpterm - sweet.
thanks again to all
Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2006 01:26 AM
04-27-2006 01:26 AM