[daip] do me a favour
Eric Greisen
egreisen at nrao.edu
Fri Apr 9 15:28:59 EDT 2004
First, please choose a more descriptive subject line - "do me a favor"
is usually an appeal for money from africa or to buy drugs inthe 100's
of spam we receive each day.
I have added in the last day information on this problem - which I do
not understand - to the AIPS Manager FAQ web page. This indicates
that your computer cannot reference itself via the internet, that it
is missing the necessary "loopback" capability. The FAQ is at
http://www.aoc.nrao.edu/aips/aipsmgr
and the specific entry (w html markup) is
<dt><strong>AIPS works but the XWindows tools can't open
display</strong>
<dd><p>AIPS uses the display assignment <em>hostname</em>:0 to avoid
all sorts of problems especially those related to ssh.
Unfortunately, this seems to cause problems with some machines,
especially laptops. What is needed is a "loopback" function that
allows a computer to talk to itself on the internet. This is
automatically present when connected to the internet but is
missing on some laptops when not connected. Try
<pre>
/sbin/ifconfig -a
</pre>
which should show (among other sections) a loopback section:
</pre>
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:18279881 errors:0 dropped:0 overruns:0 frame:0
TX packets:18279881 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1598819254 (1524.7 Mb) TX bytes:1598819254 (1524.7 Mb)
</pre>
Our system experts have written a script which they then have
executed. The following may be of use:
<pre>
This is a script we put in /etc/init.d
Then we use the following command to activate it...
chkconfig --level 2345 loopback on
mind you this is redhat9 specific and also specific to how we do things.
Honestly I don't know why someone wouldn't have a loopback device *shrug*
#!/bin/sh
#
#File: /users/krowe/loopback
#Author: K. Scott Rowe
#Time-stamp: <09/22/2003 13:48:44 krowe at rastan.aoc.nrao.edu>
#
# chkconfig: 2 10 90
# description: Activates/Deactivates just the loopback interfaces
. /etc/init.d/functions
# See how we were called.
case "$1" in
start)
# bring up loopback interface
action $"Bringing up loopback interface: " /sbin/ifup ifcfg-lo
;;
stop)
action $"Shutting down loopback interface: " /sbin/ifdown ifcfg-lo
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
</pre>
xwzheng at nju.edu.cn writes:
> From: Site 29
> To: aipsmail at nrao.edu
>
> Sir,
>
> I installed the 31DEc03 version of AIPS in the LINUX OS in PC. It seems I have
> some trouble with the disply by the entrance of both 'aips' and 'aips
> tv=local'. I'd appreciate it very much if you'd help me solve the problem.
> The following message is the print out when running aips.
>
> Regards, Xingwu
>
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> % %
> % Xingwu Zheng %
> % %
> % Astronomy Department %
> % Nanjing University %
> % Nanjing 210093 %
> % People's Republic of China %
> % %
> % Email: xwzheng at nju.edu.cn %
> % Tel. : 86-25-86207445 %
> % Fax. : 86-25-83235192 %
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>
> [aips at localhost aips]$ aips
> START_AIPS: Your initial AIPS printer is the
> START_AIPS: - system name , AIPS type
>
> START_AIPS: User data area assignments:
> (Using global default file /aips/DA00/DADEVS.LIST)
> Disk 1 (1) is /aips/DATA/LOCALHOST_1
>
> Tape assignments:
> Tape 1 is REMOTE
> Tape 2 is REMOTE
>
> START_AIPS: I am GUESSING you are at a workstation called localhost
> START_AIPS: Starting TV servers on localhost asynchronously
> START_AIPS: - with Internet Sockets...
> START_AIPS: Starting TPMON daemons on LOCALHOST asynchronously...
> Starting up 31DEC03 AIPS with normal priority
> Begin the one true AIPS number 1 (release of 31DEC03) at priority = 0
> AIPS 1: You are assigned TV device/server 1
> AIPS 1: You are assigned graphics device/server 1
> AIPS 1: Enter user ID number
> ?XASERVERS: Start TV LOCK daemon TVSERV on localhost
> TVSERVER: Starting AIPS TV locking, Inet domain
> XASERVERS: Start XAS on localhost, DISPLAY localhost:0
> XAS: cannot connect to X server localhost:0
> XASERVERS: Start graphics server TEKSRV on localhost, DISPLAY localhost:0
> xterm Xt error: Can't open display: localhost:0
> XASERVERS: Start message server MSGSRV on localhost, DISPLAY localhost:0
> xterm Xt error: Can't open display: localhost:0
>
> AIPS 1: Enter user ID number
> ?42
> AIPS 1: 31DEC03 AIPS:
> AIPS 1: Copyright (C) 1995-2003 Associated Universities, Inc.
> AIPS 1: AIPS comes with ABSOLUTELY NO WARRANTY;
> AIPS 1: for details, type HELP GNUGPL
> AIPS 1: This is free software, and you are welcome to redistribute it
> AIPS 1: under certain conditions; type EXPLAIN GNUGPL for details.
> AIPS 1: Previous session command-line history recovered.
> AIPS 1: TAB-key completions enabled, type HELP READLINE for details.
> AIPS 1: Recovered POPS environment from last exit
> >exit
> AIPS 1: Begin check for any 'standard' scratch files
> AIPS 1: Scratch files -- destroyed: 0 still active: 0
> AIPS 1: Destroyed empty user catalog on disk 1
> AIPS 1: User 42: 30 messages, oldest written 09-APR-2004 15:09:26
> AIPS 1: Deleted 0 messages
> AIPS 1: Saved POPS environment in area named 'LASTEXIT'
> AIPS 1: Session command-line history saved.
> AIPS 1: localhost 31DEC03 TST: Cpu= 0.0 Real= 3
> ------------------------------------------------------------------------------
>
> [aips at localhost aips]$ aips tv=local
> START_AIPS: Will use or start first available Unix Socket based TV
> START_AIPS: Your initial AIPS printer is the
> START_AIPS: - system name , AIPS type
>
> START_AIPS: User data area assignments:
> (Using global default file /aips/DA00/DADEVS.LIST)
> Disk 1 (1) is /aips/DATA/LOCALHOST_1
>
> Tape assignments:
> Tape 1 is REMOTE
> Tape 2 is REMOTE
>
> START_AIPS: I am GUESSING you are at a workstation called localhost
> START_AIPS: - but have chosen to run the TV locally on LOCALHOST
> START_AIPS: Starting TV servers on localhost asynchronously
> START_AIPS: - WITH Unix Sockets as requested...
> START_AIPS: Starting TPMON daemons on LOCALHOST asynchronously...
> Starting up 31DEC03 AIPS with normal priority
> Begin the one true AIPS number 1 (release of 31DEC03) at priority = 0
> AIPS 1: You are not on a local TV device, welcome stranger
> AIPS 1: You are assigned TV device/server 2
> AIPS 1: You are assigned graphics device/server 2
> AIPS 1: Enter user ID number
> ?UNIXSERVERS: TVSRV1 is already running on host localhost, user aips
> UNIXSERVERS: Start XAS1 on localhost, DISPLAY localhost:0
> XAS: cannot connect to X server localhost:0
> UNIXSERVERS: Start graphics server TKSRV1 on localhost, display localhost:0
> xterm Xt error: Can't open display: localhost:0
> UNIXSERVERS: Start message server MSSRV1 on localhost, display localhost:0
> xterm Xt error: Can't open display: localhost:0
>
> AIPS 1: Enter user ID number
> ?42
> AIPS 1: 31DEC03 AIPS:
> AIPS 1: Copyright (C) 1995-2003 Associated Universities, Inc.
> AIPS 1: AIPS comes with ABSOLUTELY NO WARRANTY;
> AIPS 1: for details, type HELP GNUGPL
> AIPS 1: This is free software, and you are welcome to redistribute it
> AIPS 1: under certain conditions; type EXPLAIN GNUGPL for details.
> AIPS 1: Previous session command-line history recovered.
> AIPS 1: TAB-key completions enabled, type HELP READLINE for details.
> AIPS 1: Recovered POPS environment from last exit
> >
> >exit
> AIPS 1: Begin check for any 'standard' scratch files
> AIPS 1: Scratch files -- destroyed: 0 still active: 0
> AIPS 1: Destroyed empty user catalog on disk 1
> AIPS 1: User 42: 64 messages, oldest written 09-APR-2004 15:09:26
> AIPS 1: Deleted 0 messages
> AIPS 1: Saved POPS environment in area named 'LASTEXIT'
> AIPS 1: Session command-line history saved.
> AIPS 1: localhost 31DEC03 TST: Cpu= 0.0 Real= 53
>
> _______________________________________________
> Daip mailing list
> Daip at listmgr.cv.nrao.edu
> http://listmgr.cv.nrao.edu/mailman/listinfo/daip
>
More information about the Daip
mailing list