Re: X11 forwarding

2013-06-26 Thread Mark Pace
I've had some to time to go back and make this work properly through X11
forwarding.  I've followed the Ported Tools guide to setup X11 forwarding,
which included compling the xauth program and changing some parameters in
the sshd_config.  But when I connect via PuTTY with X11 forwarding turned
on I receive these messages.  Each time I see it creating a new .Xauthority
file, yet I never see that file being created.  Also I receive some errors
about bad display names.  And lastly I receive erros trying to run the X
application.  No amount of googleing has had an answer to the bad display
name, which I assume also has something to do with the errors running the
app.  Anyone with experience with X11 on z/OS  have an idea what I am doing
wrong?

login as: marpace
marpace@172.16.1.13's password:
/usr/lpp/tcpip/X11R6/lib/xauth:  creating new authority file
/u/home/MARPACE/.Xauthority
/usr/lpp/tcpip/X11R6/lib/xauth: (stdin):1:  bad display name unix:10.0 in
remove command
/usr/lpp/tcpip/X11R6/lib/xauth: (stdin):2:  bad display name unix:10.0 in
add command
MARPACE: ls -al
total 176
drwxr-xr-x   4 KBURTON  TCPIP   8192 Jun 26 13:00 .
drwxr-xr-x   9 DRVUSER  AOPADMIN8192 Jun  7 08:49 ..
-rw---   1 DRVUSER  TCPIP   2770 Jun 26 12:59 .history
-rwxr-xr-x   1 DRVUSER  TCPIP992 Jun  6 10:56 .profile
-rw---   1 DRVUSER  TCPIP   2336 Jun 26 13:00 .sh_history
drwx--   2 DRVUSER  TCPIP   8192 Jun  5 10:46 .ssh
-rwxr--r--   1 DRVUSER  TCPIP   6004 Jun 10 15:31 .tcshrc
-rw-rw-rw-   1 DRVUSER  TCPIP499 Jun  7 09:01 EmptyFrame1$1.class
-rw-rw-rw-   1 DRVUSER  TCPIP640 Jun  7 09:01 EmptyFrame1.class
-rw-rw-rw-   1 DRVUSER  TCPIP642 Jun  7 09:00 EmptyFrame1.java
drwxrwxrwx   3 DRVUSER  TCPIP   8192 Jun 26 11:15 XauthBuild
MARPACE: /usr/lpp/java/J6.0/bin/java EmptyFrame1
EZYXW01E Xlib: connection to localhost:10.0 refused by server
PuTTY X11 proxy: wrong authentication protocol attempted
Exception in thread main java.lang.InternalError: Can't connect to X11
window server using 'localhost:10.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)
at
sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)
at
java.security.AccessController.doPrivileged(AccessController.java:202)
at
sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java:131)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:136)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at java.awt.Window.init(Window.java:380)
at java.awt.Window.init(Window.java:432)
at java.awt.Frame.init(Frame.java:415)
at java.awt.Frame.init(Frame.java:380)
at javax.swing.JFrame.init(JFrame.java:175)
at EmptyFrame1.init(EmptyFrame1.java:9)
at EmptyFrame1.main(EmptyFrame1.java:23)




On Mon, Jun 10, 2013 at 8:10 AM, Mark Pace pacemainl...@gmail.com wrote:

 True - that was my stated objective.  But it was out of ignorance, I
 thought all X went through SSH.  Since this test is over a VPN, I don't
 care how it works, as long as it does.


 On Fri, Jun 7, 2013 at 5:09 PM, Paul Gilmartin paulgboul...@aim.comwrote:

 On Fri, 7 Jun 2013 13:53:38 -0400, Mark Pace wrote:

 I appreciate the heads-up, Mark.  But this traffic is going through a
 VPN,
 so I'm not concerned about it.  I will make note of this if I ever have
 to
 do this in the clear.
 
 Your initial stated objective was to get X11 forwarding working and
 verified.
 But now that it isn't but something else is working, you seem satisfied.


 On Fri, Jun 7, 2013 at 1:31 PM, Mark Post wrote:
 
   In this case the export DISPLAY IP is my desktop running the X
 server.
 
  Well, what is working is _not_ tunneling X over SSH.  You're sending X
  traffic back to your desktop over an entirely different port, with no
  encryption.  If anyone decides to close off traffic on ports 6000+
 you're
  going to be out of luck.
 
 A common pitfall is that programmers accustomed to other techniques code
 in their .profile, $ENV, .login, .cshrc, .bashrc, ... code to set and
 export
 DISPLAY, often based on parsing the output of a command such as who am
 i.
 This code must be made conditional wherever it occurs (often in several
 places) with a conditional construct such as:

 DISPLAY=${DISPLAY-`find-value-of-display`} export DISPLAY

 in order not to override the value correctly set by sshd.

 -- gil

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN




 --

Re: X11 forwarding

2013-06-26 Thread Mark Pace
Finally found it.  It was a problem with the make file.


On Wed, Jun 26, 2013 at 1:09 PM, Mark Pace pacemainl...@gmail.com wrote:

 I've had some to time to go back and make this work properly through X11
 forwarding.  I've followed the Ported Tools guide to setup X11 forwarding,
 which included compling the xauth program and changing some parameters in
 the sshd_config.  But when I connect via PuTTY with X11 forwarding turned
 on I receive these messages.  Each time I see it creating a new .Xauthority
 file, yet I never see that file being created.  Also I receive some errors
 about bad display names.  And lastly I receive erros trying to run the X
 application.  No amount of googleing has had an answer to the bad display
 name, which I assume also has something to do with the errors running the
 app.  Anyone with experience with X11 on z/OS  have an idea what I am doing
 wrong?

 login as: marpace
 marpace@172.16.1.13's password:
 /usr/lpp/tcpip/X11R6/lib/xauth:  creating new authority file
 /u/home/MARPACE/.Xauthority
 /usr/lpp/tcpip/X11R6/lib/xauth: (stdin):1:  bad display name unix:10.0
 in remove command
 /usr/lpp/tcpip/X11R6/lib/xauth: (stdin):2:  bad display name unix:10.0
 in add command
 MARPACE: ls -al
 total 176
 drwxr-xr-x   4 KBURTON  TCPIP   8192 Jun 26 13:00 .
 drwxr-xr-x   9 DRVUSER  AOPADMIN8192 Jun  7 08:49 ..
 -rw---   1 DRVUSER  TCPIP   2770 Jun 26 12:59 .history
 -rwxr-xr-x   1 DRVUSER  TCPIP992 Jun  6 10:56 .profile
 -rw---   1 DRVUSER  TCPIP   2336 Jun 26 13:00 .sh_history
 drwx--   2 DRVUSER  TCPIP   8192 Jun  5 10:46 .ssh
 -rwxr--r--   1 DRVUSER  TCPIP   6004 Jun 10 15:31 .tcshrc
 -rw-rw-rw-   1 DRVUSER  TCPIP499 Jun  7 09:01 EmptyFrame1$1.class
 -rw-rw-rw-   1 DRVUSER  TCPIP640 Jun  7 09:01 EmptyFrame1.class
 -rw-rw-rw-   1 DRVUSER  TCPIP642 Jun  7 09:00 EmptyFrame1.java
 drwxrwxrwx   3 DRVUSER  TCPIP   8192 Jun 26 11:15 XauthBuild
 MARPACE: /usr/lpp/java/J6.0/bin/java EmptyFrame1
 EZYXW01E Xlib: connection to localhost:10.0 refused by server
 PuTTY X11 proxy: wrong authentication protocol attempted
 Exception in thread main java.lang.InternalError: Can't connect to X11
 window server using 'localhost:10.0' as the value of the DISPLAY variable.
 at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
 at
 sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)
 at
 sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)
 at
 java.security.AccessController.doPrivileged(AccessController.java:202)
 at
 sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java:131)
 at java.lang.J9VMInternals.initializeImpl(Native Method)
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
 at java.lang.Class.forNameImpl(Native Method)
 at java.lang.Class.forName(Class.java:136)
 at
 java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
 at java.awt.Window.init(Window.java:380)
 at java.awt.Window.init(Window.java:432)
 at java.awt.Frame.init(Frame.java:415)
 at java.awt.Frame.init(Frame.java:380)
 at javax.swing.JFrame.init(JFrame.java:175)
 at EmptyFrame1.init(EmptyFrame1.java:9)
 at EmptyFrame1.main(EmptyFrame1.java:23)




 On Mon, Jun 10, 2013 at 8:10 AM, Mark Pace pacemainl...@gmail.com wrote:

 True - that was my stated objective.  But it was out of ignorance, I
 thought all X went through SSH.  Since this test is over a VPN, I don't
 care how it works, as long as it does.


 On Fri, Jun 7, 2013 at 5:09 PM, Paul Gilmartin paulgboul...@aim.comwrote:

 On Fri, 7 Jun 2013 13:53:38 -0400, Mark Pace wrote:

 I appreciate the heads-up, Mark.  But this traffic is going through a
 VPN,
 so I'm not concerned about it.  I will make note of this if I ever have
 to
 do this in the clear.
 
 Your initial stated objective was to get X11 forwarding working and
 verified.
 But now that it isn't but something else is working, you seem satisfied.


 On Fri, Jun 7, 2013 at 1:31 PM, Mark Post wrote:
 
   In this case the export DISPLAY IP is my desktop running the X
 server.
 
  Well, what is working is _not_ tunneling X over SSH.  You're sending X
  traffic back to your desktop over an entirely different port, with no
  encryption.  If anyone decides to close off traffic on ports 6000+
 you're
  going to be out of luck.
 
 A common pitfall is that programmers accustomed to other techniques code
 in their .profile, $ENV, .login, .cshrc, .bashrc, ... code to set and
 export
 DISPLAY, often based on parsing the output of a command such as who am
 i.
 This code must be made conditional wherever it occurs (often in several
 places) with a conditional construct such as:

 DISPLAY=${DISPLAY-`find-value-of-display`} export DISPLAY

 in order not to override the value correctly set by sshd.

 -- gil

 

Re: X11 forwarding

2013-06-26 Thread Donald J.
Check x11DisplayOffset value.   If should be set to something like 10 if
you want to forward directly via port 6010,
or set to 0 if you want to tunnel through your SSH port 22 connection.
My DISPLAY is set to 127.0.0.1:0 and my x11DisplayOffset is 0.

-- 
  Donald J.
  dona...@4email.net

On Wed, Jun 26, 2013, at 10:09 AM, Mark Pace wrote:
 I've had some to time to go back and make this work properly through X11
 forwarding.  I've followed the Ported Tools guide to setup X11
 forwarding,
 which included compling the xauth program and changing some parameters in
 the sshd_config.  But when I connect via PuTTY with X11 forwarding turned
 on I receive these messages.  Each time I see it creating a new
 .Xauthority
 file, yet I never see that file being created.  Also I receive some
 errors
 about bad display names.  And lastly I receive erros trying to run the X
 application.  No amount of googleing has had an answer to the bad display
 name, which I assume also has something to do with the errors running the
 app.  Anyone with experience with X11 on z/OS  have an idea what I am
 doing
 wrong?
 
 

-- 
http://www.fastmail.fm - Choose from over 50 domains or use your own

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-10 Thread Mark Pace
True - that was my stated objective.  But it was out of ignorance, I
thought all X went through SSH.  Since this test is over a VPN, I don't
care how it works, as long as it does.


On Fri, Jun 7, 2013 at 5:09 PM, Paul Gilmartin paulgboul...@aim.com wrote:

 On Fri, 7 Jun 2013 13:53:38 -0400, Mark Pace wrote:

 I appreciate the heads-up, Mark.  But this traffic is going through a VPN,
 so I'm not concerned about it.  I will make note of this if I ever have to
 do this in the clear.
 
 Your initial stated objective was to get X11 forwarding working and
 verified.
 But now that it isn't but something else is working, you seem satisfied.


 On Fri, Jun 7, 2013 at 1:31 PM, Mark Post wrote:
 
   In this case the export DISPLAY IP is my desktop running the X server.
 
  Well, what is working is _not_ tunneling X over SSH.  You're sending X
  traffic back to your desktop over an entirely different port, with no
  encryption.  If anyone decides to close off traffic on ports 6000+
 you're
  going to be out of luck.
 
 A common pitfall is that programmers accustomed to other techniques code
 in their .profile, $ENV, .login, .cshrc, .bashrc, ... code to set and
 export
 DISPLAY, often based on parsing the output of a command such as who am i.
 This code must be made conditional wherever it occurs (often in several
 places) with a conditional construct such as:

 DISPLAY=${DISPLAY-`find-value-of-display`} export DISPLAY

 in order not to override the value correctly set by sshd.

 -- gil

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN




-- 
The postings on this site are my own and don’t necessarily represent
Mainline’s positions or opinions

Mark D Pace
Senior Systems Engineer
Mainline Information Systems

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-07 Thread Mark Pace
Thank you!  But that main(Stringݨ     What are those characters?


On Thu, Jun 6, 2013 at 11:02 PM, Donald J. dona...@4email.net wrote:

 Here is a java program EmptyFrame1.java you can easily compile:


 // file: EmptyFrame1.java

 import java.awt.event.*;
 import javax.swing.*;

 class EmptyFrame1 extends JFrame {

   // Constructor:
  public EmptyFrame1() {
setTitle(Donald's Empty Frame);
setSize(300,200); // default size is 0,0
setLocation(10,200); // default is 0,0 (top left corner)

// Window Listeners
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
   System.exit(0);
} //windowClosing
} );
  }

  public static void main(Stringݨ args) {
JFrame f = new EmptyFrame1();
f.show();
  } //main
 } //class EmptyFrame1
 --
   Donald J.
   dona...@4email.net

 On Thu, Jun 6, 2013, at 07:42 AM, Mark Pace wrote:
  I want to test X11 forwarding using SSH in Unix System Services.  But I
  can't find an executable X application like xclock.  I find some sample
  programs, but not any executable code.  Is there some executable files
  that
  I am not finding?
 
  --
  The postings on this site are my own and don’t necessarily represent
  Mainline’s positions or opinions
 
  Mark D Pace
  Senior Systems Engineer
  Mainline Information Systems
 
  --
  For IBM-MAIN subscribe / signoff / archive access instructions,
  send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

 --
 http://www.fastmail.fm - Send your email first class

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN




-- 
The postings on this site are my own and don’t necessarily represent
Mainline’s positions or opinions

Mark D Pace
Senior Systems Engineer
Mainline Information Systems

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-07 Thread Martin Packer
Open and close square bracket, I expect.

Cheers, Martin

Martin Packer,
zChampion, Principal Systems Investigator,
Worldwide Banking Center of Excellence, IBM

+44-7802-245-584

email: martin_pac...@uk.ibm.com

Twitter / Facebook IDs: MartinPacker
Blog: 
https://www.ibm.com/developerworks/mydeveloperworks/blogs/MartinPacker



From:   Mark Pace pacemainl...@gmail.com
To: IBM-MAIN@listserv.ua.edu, 
Date:   06/07/2013 01:49 PM
Subject:Re: X11 forwarding
Sent by:IBM Mainframe Discussion List IBM-MAIN@listserv.ua.edu



Thank you!  But that main(Stringݨ     What are those characters?


On Thu, Jun 6, 2013 at 11:02 PM, Donald J. dona...@4email.net wrote:

 Here is a java program EmptyFrame1.java you can easily compile:


 // file: EmptyFrame1.java

 import java.awt.event.*;
 import javax.swing.*;

 class EmptyFrame1 extends JFrame {

   // Constructor:
  public EmptyFrame1() {
setTitle(Donald's Empty Frame);
setSize(300,200); // default size is 0,0
setLocation(10,200); // default is 0,0 (top left corner)

// Window Listeners
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
   System.exit(0);
} //windowClosing
} );
  }

  public static void main(Stringݨ args) {
JFrame f = new EmptyFrame1();
f.show();
  } //main
 } //class EmptyFrame1
 --
   Donald J.
   dona...@4email.net

 On Thu, Jun 6, 2013, at 07:42 AM, Mark Pace wrote:
  I want to test X11 forwarding using SSH in Unix System Services.  But 
I
  can't find an executable X application like xclock.  I find some 
sample
  programs, but not any executable code.  Is there some executable files
  that
  I am not finding?
 
  --
  The postings on this site are my own and don’t necessarily represent
  Mainline’s positions or opinions
 
  Mark D Pace
  Senior Systems Engineer
  Mainline Information Systems
 
  --
  For IBM-MAIN subscribe / signoff / archive access instructions,
  send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

 --
 http://www.fastmail.fm - Send your email first class

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN




-- 
The postings on this site are my own and don’t necessarily represent
Mainline’s positions or opinions

Mark D Pace
Senior Systems Engineer
Mainline Information Systems

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN








Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU







--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-07 Thread Mark Pace
That was the problem.
Some other issues with deprecated APIs.  Maybe if I look at the sample C
code I can figure out what to change in the java code.


On Fri, Jun 7, 2013 at 9:00 AM, Martin Packer martin_pac...@uk.ibm.comwrote:

 Open and close square bracket, I expect.

 Cheers, Martin

 Martin Packer,
 zChampion, Principal Systems Investigator,
 Worldwide Banking Center of Excellence, IBM

 +44-7802-245-584

 email: martin_pac...@uk.ibm.com

 Twitter / Facebook IDs: MartinPacker
 Blog:
 https://www.ibm.com/developerworks/mydeveloperworks/blogs/MartinPacker



 From:   Mark Pace pacemainl...@gmail.com
 To: IBM-MAIN@listserv.ua.edu,
 Date:   06/07/2013 01:49 PM
 Subject:Re: X11 forwarding
 Sent by:IBM Mainframe Discussion List IBM-MAIN@listserv.ua.edu



 Thank you!  But that main(Stringݨ     What are those characters?


 On Thu, Jun 6, 2013 at 11:02 PM, Donald J. dona...@4email.net wrote:

  Here is a java program EmptyFrame1.java you can easily compile:
 
 
  // file: EmptyFrame1.java
 
  import java.awt.event.*;
  import javax.swing.*;
 
  class EmptyFrame1 extends JFrame {
 
// Constructor:
   public EmptyFrame1() {
 setTitle(Donald's Empty Frame);
 setSize(300,200); // default size is 0,0
 setLocation(10,200); // default is 0,0 (top left corner)
 
 // Window Listeners
 addWindowListener(new WindowAdapter() {
 public void windowClosing(WindowEvent e) {
System.exit(0);
 } //windowClosing
 } );
   }
 
   public static void main(Stringݨ args) {
 JFrame f = new EmptyFrame1();
 f.show();
   } //main
  } //class EmptyFrame1
  --
Donald J.
dona...@4email.net
 
  On Thu, Jun 6, 2013, at 07:42 AM, Mark Pace wrote:
   I want to test X11 forwarding using SSH in Unix System Services.  But
 I
   can't find an executable X application like xclock.  I find some
 sample
   programs, but not any executable code.  Is there some executable files
   that
   I am not finding?
  
   --
   The postings on this site are my own and don’t necessarily represent
   Mainline’s positions or opinions
  
   Mark D Pace
   Senior Systems Engineer
   Mainline Information Systems
  
   --
   For IBM-MAIN subscribe / signoff / archive access instructions,
   send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
 
  --
  http://www.fastmail.fm - Send your email first class
 
  --
  For IBM-MAIN subscribe / signoff / archive access instructions,
  send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
 



 --
 The postings on this site are my own and don’t necessarily represent
 Mainline’s positions or opinions

 Mark D Pace
 Senior Systems Engineer
 Mainline Information Systems

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN








 Unless stated otherwise above:
 IBM United Kingdom Limited - Registered in England and Wales with number
 741598.
 Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU







 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN




-- 
The postings on this site are my own and don’t necessarily represent
Mainline’s positions or opinions

Mark D Pace
Senior Systems Engineer
Mainline Information Systems

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-07 Thread Donald J.
You will also have to compile the xauth c program.
I don't think IBM supplies a binary for it.

-- 
  Donald J.
  dona...@4email.net

On Fri, Jun 7, 2013, at 06:07 AM, Mark Pace wrote:
 That was the problem.
 Some other issues with deprecated APIs.  Maybe if I look at the sample C
 code I can figure out what to change in the java code.
 
 
 On Fri, Jun 7, 2013 at 9:00 AM, Martin Packer
 martin_pac...@uk.ibm.comwrote:
 
  Open and close square bracket, I expect.
 
  Cheers, Martin
 
  Martin Packer,
  zChampion, Principal Systems Investigator,
  Worldwide Banking Center of Excellence, IBM
 
  +44-7802-245-584
 
  email: martin_pac...@uk.ibm.com
 
  Twitter / Facebook IDs: MartinPacker
  Blog:
  https://www.ibm.com/developerworks/mydeveloperworks/blogs/MartinPacker
 
 
 
  From:   Mark Pace pacemainl...@gmail.com
  To: IBM-MAIN@listserv.ua.edu,
  Date:   06/07/2013 01:49 PM
  Subject:Re: X11 forwarding
  Sent by:IBM Mainframe Discussion List IBM-MAIN@listserv.ua.edu
 
 
 
  Thank you!  But that main(Stringݨ     What are those characters?
 
 
  On Thu, Jun 6, 2013 at 11:02 PM, Donald J. dona...@4email.net wrote:
 
   Here is a java program EmptyFrame1.java you can easily compile:
  
  
   // file: EmptyFrame1.java
  
   import java.awt.event.*;
   import javax.swing.*;
  
   class EmptyFrame1 extends JFrame {
  
 // Constructor:
public EmptyFrame1() {
  setTitle(Donald's Empty Frame);
  setSize(300,200); // default size is 0,0
  setLocation(10,200); // default is 0,0 (top left corner)
  
  // Window Listeners
  addWindowListener(new WindowAdapter() {
  public void windowClosing(WindowEvent e) {
 System.exit(0);
  } //windowClosing
  } );
}
  
public static void main(Stringݨ args) {
  JFrame f = new EmptyFrame1();
  f.show();
} //main
   } //class EmptyFrame1
   --
 Donald J.
 dona...@4email.net
  
   On Thu, Jun 6, 2013, at 07:42 AM, Mark Pace wrote:
I want to test X11 forwarding using SSH in Unix System Services.  But
  I
can't find an executable X application like xclock.  I find some
  sample
programs, but not any executable code.  Is there some executable files
that
I am not finding?
   
--
The postings on this site are my own and don’t necessarily represent
Mainline’s positions or opinions
   
Mark D Pace
Senior Systems Engineer
Mainline Information Systems
   
--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
  
   --
   http://www.fastmail.fm - Send your email first class
  
   --
   For IBM-MAIN subscribe / signoff / archive access instructions,
   send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
  
 
 
 
  --
  The postings on this site are my own and don’t necessarily represent
  Mainline’s positions or opinions
 
  Mark D Pace
  Senior Systems Engineer
  Mainline Information Systems
 
  --
  For IBM-MAIN subscribe / signoff / archive access instructions,
  send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
 
 
 
 
 
 
 
 
  Unless stated otherwise above:
  IBM United Kingdom Limited - Registered in England and Wales with number
  741598.
  Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
 
 
 
 
 
 
 
  --
  For IBM-MAIN subscribe / signoff / archive access instructions,
  send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
 
 
 
 
 -- 
 The postings on this site are my own and don’t necessarily represent
 Mainline’s positions or opinions
 
 Mark D Pace
 Senior Systems Engineer
 Mainline Information Systems
 
 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

-- 
http://www.fastmail.fm - Send your email first class

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-07 Thread Donald J.
Commands like this will be needed when compiling xauth:

export
_C89_PSYSLIB=SYS1.IBM.CEE.SCEEOBJ:SYS1.IBM.CEE.SCEECPP:SYS1.IBM.CBC.SCLBDLL 
export
_C89_LSYSLIB=SYS1.IBM.CEE.SCEELKEX:SYS1.IBM.CEE.SCEELKED:SYS1.IBM.CBC.SCCNOBJ:SYS1.CSSLIB
_C89_CCMODE=1 make   /home/sys/luhe338/xauth/output.log 

-- 
  Donald J.
  dona...@4email.net

On Fri, Jun 7, 2013, at 06:17 AM, Donald J. wrote:
 You will also have to compile the xauth c program.
 I don't think IBM supplies a binary for it.
 
 -- 
   Donald J.
   dona...@4email.net
 
 On Fri, Jun 7, 2013, at 06:07 AM, Mark Pace wrote:
  That was the problem.
  Some other issues with deprecated APIs.  Maybe if I look at the sample C
  code I can figure out what to change in the java code.
  
  
  On Fri, Jun 7, 2013 at 9:00 AM, Martin Packer
  martin_pac...@uk.ibm.comwrote:
  
   Open and close square bracket, I expect.
  
   Cheers, Martin
  
   Martin Packer,
   zChampion, Principal Systems Investigator,
   Worldwide Banking Center of Excellence, IBM
  
   +44-7802-245-584
  
   email: martin_pac...@uk.ibm.com
  
   Twitter / Facebook IDs: MartinPacker
   Blog:
   https://www.ibm.com/developerworks/mydeveloperworks/blogs/MartinPacker
  
  
  
   From:   Mark Pace pacemainl...@gmail.com
   To: IBM-MAIN@listserv.ua.edu,
   Date:   06/07/2013 01:49 PM
   Subject:Re: X11 forwarding
   Sent by:IBM Mainframe Discussion List IBM-MAIN@listserv.ua.edu
  
  
  
   Thank you!  But that main(Stringݨ     What are those characters?
  
  
   On Thu, Jun 6, 2013 at 11:02 PM, Donald J. dona...@4email.net wrote:
  
Here is a java program EmptyFrame1.java you can easily compile:
   
   
// file: EmptyFrame1.java
   
import java.awt.event.*;
import javax.swing.*;
   
class EmptyFrame1 extends JFrame {
   
  // Constructor:
 public EmptyFrame1() {
   setTitle(Donald's Empty Frame);
   setSize(300,200); // default size is 0,0
   setLocation(10,200); // default is 0,0 (top left corner)
   
   // Window Listeners
   addWindowListener(new WindowAdapter() {
   public void windowClosing(WindowEvent e) {
  System.exit(0);
   } //windowClosing
   } );
 }
   
 public static void main(Stringݨ args) {
   JFrame f = new EmptyFrame1();
   f.show();
 } //main
} //class EmptyFrame1
--
  Donald J.
  dona...@4email.net
   
On Thu, Jun 6, 2013, at 07:42 AM, Mark Pace wrote:
 I want to test X11 forwarding using SSH in Unix System Services.  But
   I
 can't find an executable X application like xclock.  I find some
   sample
 programs, but not any executable code.  Is there some executable files
 that
 I am not finding?

 --
 The postings on this site are my own and don’t necessarily represent
 Mainline’s positions or opinions

 Mark D Pace
 Senior Systems Engineer
 Mainline Information Systems

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
   
--
http://www.fastmail.fm - Send your email first class
   
--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
   
  
  
  
   --
   The postings on this site are my own and don’t necessarily represent
   Mainline’s positions or opinions
  
   Mark D Pace
   Senior Systems Engineer
   Mainline Information Systems
  
   --
   For IBM-MAIN subscribe / signoff / archive access instructions,
   send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
  
  
  
  
  
  
  
  
   Unless stated otherwise above:
   IBM United Kingdom Limited - Registered in England and Wales with number
   741598.
   Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
  
  
  
  
  
  
  
   --
   For IBM-MAIN subscribe / signoff / archive access instructions,
   send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
  
  
  
  
  -- 
  The postings on this site are my own and don’t necessarily represent
  Mainline’s positions or opinions
  
  Mark D Pace
  Senior Systems Engineer
  Mainline Information Systems
  
  --
  For IBM-MAIN subscribe / signoff / archive access instructions,
  send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
 
 -- 
 http://www.fastmail.fm - Send your email first class
 
 --
 For IBM-MAIN subscribe / signoff / archive access instructions

Re: X11 forwarding

2013-06-07 Thread Mark Pace
Now this is something I never expected to see.

# export
export: Command not found.
# find / -name export
#

/bin/export is gone?!?!


On Fri, Jun 7, 2013 at 9:22 AM, Donald J. dona...@4email.net wrote:

 Commands like this will be needed when compiling xauth:

 export

 _C89_PSYSLIB=SYS1.IBM.CEE.SCEEOBJ:SYS1.IBM.CEE.SCEECPP:SYS1.IBM.CBC.SCLBDLL
 export

 _C89_LSYSLIB=SYS1.IBM.CEE.SCEELKEX:SYS1.IBM.CEE.SCEELKED:SYS1.IBM.CBC.SCCNOBJ:SYS1.CSSLIB
 _C89_CCMODE=1 make   /home/sys/luhe338/xauth/output.log

 --
   Donald J.
   dona...@4email.net

 On Fri, Jun 7, 2013, at 06:17 AM, Donald J. wrote:
  You will also have to compile the xauth c program.
  I don't think IBM supplies a binary for it.
 
  --
Donald J.
dona...@4email.net
 
  On Fri, Jun 7, 2013, at 06:07 AM, Mark Pace wrote:
   That was the problem.
   Some other issues with deprecated APIs.  Maybe if I look at the sample
 C
   code I can figure out what to change in the java code.
  
  
   On Fri, Jun 7, 2013 at 9:00 AM, Martin Packer
   martin_pac...@uk.ibm.comwrote:
  
Open and close square bracket, I expect.
   
Cheers, Martin
   
Martin Packer,
zChampion, Principal Systems Investigator,
Worldwide Banking Center of Excellence, IBM
   
+44-7802-245-584
   
email: martin_pac...@uk.ibm.com
   
Twitter / Facebook IDs: MartinPacker
Blog:
   
 https://www.ibm.com/developerworks/mydeveloperworks/blogs/MartinPacker
   
   
   
From:   Mark Pace pacemainl...@gmail.com
To: IBM-MAIN@listserv.ua.edu,
Date:   06/07/2013 01:49 PM
Subject:Re: X11 forwarding
Sent by:IBM Mainframe Discussion List 
 IBM-MAIN@listserv.ua.edu
   
   
   
Thank you!  But that main(Stringݨ     What are those
 characters?
   
   
On Thu, Jun 6, 2013 at 11:02 PM, Donald J. dona...@4email.net
 wrote:
   
 Here is a java program EmptyFrame1.java you can easily compile:


 // file: EmptyFrame1.java

 import java.awt.event.*;
 import javax.swing.*;

 class EmptyFrame1 extends JFrame {

   // Constructor:
  public EmptyFrame1() {
setTitle(Donald's Empty Frame);
setSize(300,200); // default size is 0,0
setLocation(10,200); // default is 0,0 (top left corner)

// Window Listeners
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
   System.exit(0);
} //windowClosing
} );
  }

  public static void main(Stringݨ args) {
JFrame f = new EmptyFrame1();
f.show();
  } //main
 } //class EmptyFrame1
 --
   Donald J.
   dona...@4email.net

 On Thu, Jun 6, 2013, at 07:42 AM, Mark Pace wrote:
  I want to test X11 forwarding using SSH in Unix System Services.
  But
I
  can't find an executable X application like xclock.  I find some
sample
  programs, but not any executable code.  Is there some executable
 files
  that
  I am not finding?
 
  --
  The postings on this site are my own and don’t necessarily
 represent
  Mainline’s positions or opinions
 
  Mark D Pace
  Senior Systems Engineer
  Mainline Information Systems
 
 
 --
  For IBM-MAIN subscribe / signoff / archive access instructions,
  send email to lists...@listserv.ua.edu with the message: INFO
 IBM-MAIN

 --
 http://www.fastmail.fm - Send your email first class


 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO
 IBM-MAIN

   
   
   
--
The postings on this site are my own and don’t necessarily represent
Mainline’s positions or opinions
   
Mark D Pace
Senior Systems Engineer
Mainline Information Systems
   
   
 --
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO
 IBM-MAIN
   
   
   
   
   
   
   
   
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with
 number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire
 PO6 3AU
   
   
   
   
   
   
   
   
 --
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO
 IBM-MAIN
   
  
  
  
   --
   The postings on this site are my own and don’t necessarily represent
   Mainline’s positions or opinions
  
   Mark D Pace
   Senior Systems Engineer
   Mainline Information Systems

Re: X11 forwarding

2013-06-07 Thread Mark Pace
DOH!  I'm no UNIX expert.  I had changed my shell to TCSH because I liked
using tab key for autocomplete and arrow up to go back through command
history.  Surprise!  That was the problem.  I put my shell back SH and
export works again. ARGH!


On Fri, Jun 7, 2013 at 9:42 AM, Farley, Peter x23353 
peter.far...@broadridge.com wrote:

 ??? Isn't export a shell command, provided by the shell and not by an
 external executable?

 Though I can't explain the Command not found error either...

 Peter

 -Original Message-
 From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
 Behalf Of Mark Pace
 Sent: Friday, June 07, 2013 9:38 AM
 To: IBM-MAIN@LISTSERV.UA.EDU
 Subject: Re: X11 forwarding

 Now this is something I never expected to see.

 # export
 export: Command not found.
 # find / -name export
 #

 /bin/export is gone?!?!

 --

 This message and any attachments are intended only for the use of the
 addressee and may contain information that is privileged and confidential.
 If the reader of the message is not the intended recipient or an authorized
 representative of the intended recipient, you are hereby notified that any
 dissemination of this communication is strictly prohibited. If you have
 received this communication in error, please notify us immediately by
 e-mail and delete the message and any attachments from your system.

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN




-- 
The postings on this site are my own and don’t necessarily represent
Mainline’s positions or opinions

Mark D Pace
Senior Systems Engineer
Mainline Information Systems

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-07 Thread Mark Pace
Going back to the /bin/sh shell I was able to

 export DISPLAY=172.16.0.6:0.0
 /usr/lpp/java/J6.0/bin/java EmptyFrame1

And I got a blank window to pop-up on my Xwindows server.

Thanks very much!!!


On Fri, Jun 7, 2013 at 9:47 AM, Mark Pace pacemainl...@gmail.com wrote:

 DOH!  I'm no UNIX expert.  I had changed my shell to TCSH because I liked
 using tab key for autocomplete and arrow up to go back through command
 history.  Surprise!  That was the problem.  I put my shell back SH and
 export works again. ARGH!


 On Fri, Jun 7, 2013 at 9:42 AM, Farley, Peter x23353 
 peter.far...@broadridge.com wrote:

 ??? Isn't export a shell command, provided by the shell and not by an
 external executable?

 Though I can't explain the Command not found error either...

 Peter

 -Original Message-
 From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
 Behalf Of Mark Pace
 Sent: Friday, June 07, 2013 9:38 AM
 To: IBM-MAIN@LISTSERV.UA.EDU
 Subject: Re: X11 forwarding

 Now this is something I never expected to see.

 # export
 export: Command not found.
 # find / -name export
 #

 /bin/export is gone?!?!

 --

 This message and any attachments are intended only for the use of the
 addressee and may contain information that is privileged and confidential.
 If the reader of the message is not the intended recipient or an authorized
 representative of the intended recipient, you are hereby notified that any
 dissemination of this communication is strictly prohibited. If you have
 received this communication in error, please notify us immediately by
 e-mail and delete the message and any attachments from your system.

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN




 --
 The postings on this site are my own and don’t necessarily represent
 Mainline’s positions or opinions

 Mark D Pace
 Senior Systems Engineer
 Mainline Information Systems






-- 
The postings on this site are my own and don’t necessarily represent
Mainline’s positions or opinions

Mark D Pace
Senior Systems Engineer
Mainline Information Systems

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-07 Thread John McKown
The TCSH equivalent to the export builtin is setenv.

On Fri, Jun 7, 2013 at 8:47 AM, Mark Pace pacemainl...@gmail.com wrote:

 DOH!  I'm no UNIX expert.  I had changed my shell to TCSH because I liked
 using tab key for autocomplete and arrow up to go back through command
 history.  Surprise!  That was the problem.  I put my shell back SH and
 export works again. ARGH!


 On Fri, Jun 7, 2013 at 9:42 AM, Farley, Peter x23353 
 peter.far...@broadridge.com wrote:

  ??? Isn't export a shell command, provided by the shell and not by an
  external executable?
 
  Though I can't explain the Command not found error either...
 
  Peter
 
  -Original Message-
  From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
  Behalf Of Mark Pace
  Sent: Friday, June 07, 2013 9:38 AM
  To: IBM-MAIN@LISTSERV.UA.EDU
  Subject: Re: X11 forwarding
 
  Now this is something I never expected to see.
 
  # export
  export: Command not found.
  # find / -name export
  #
 
  /bin/export is gone?!?!
 
  --
 
  This message and any attachments are intended only for the use of the
  addressee and may contain information that is privileged and
 confidential.
  If the reader of the message is not the intended recipient or an
 authorized
  representative of the intended recipient, you are hereby notified that
 any
  dissemination of this communication is strictly prohibited. If you have
  received this communication in error, please notify us immediately by
  e-mail and delete the message and any attachments from your system.
 
  --
  For IBM-MAIN subscribe / signoff / archive access instructions,
  send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
 



 --
 The postings on this site are my own and don’t necessarily represent
 Mainline’s positions or opinions

 Mark D Pace
 Senior Systems Engineer
 Mainline Information Systems

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN




-- 
This is a test of the Emergency Broadcast System. If this had been an
actual emergency, do you really think we'd stick around to tell you?

Maranatha! 
John McKown

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-07 Thread Paul Gilmartin
On Fri, 7 Jun 2013 09:47:38 -0400, Mark Pace wrote:

DOH!  I'm no UNIX expert.  I had changed my shell to TCSH because I liked
using tab key for autocomplete and arrow up to go back through command
history.  Surprise!  That was the problem.  I put my shell back SH and
export works again. ARGH!
 
I think there's a make macro that lets you control the shell make uses,
but the default really, really should be POSIX shell, not the caller's
login shell.

Are you using IBM's make?  I've had similar problems because when
IBM's make thinks it can parse the command it uses spawn() rather
than system().  Sometimes it guesses wrong.

For that matter, what does system() use nowadays?  long ago it used
to use the user's login shell, which is wrong, rather than POSIX shell.

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-07 Thread Mark Pace
Thank you.  And I found the format is slightly different.

export DISPLAY=172.16.0.6:0.0

setenv DISPLAY 172.16.0.6:0.0




On Fri, Jun 7, 2013 at 10:12 AM, John McKown
john.archie.mck...@gmail.comwrote:

 The TCSH equivalent to the export builtin is setenv.

 On Fri, Jun 7, 2013 at 8:47 AM, Mark Pace pacemainl...@gmail.com wrote:

  DOH!  I'm no UNIX expert.  I had changed my shell to TCSH because I liked
  using tab key for autocomplete and arrow up to go back through command
  history.  Surprise!  That was the problem.  I put my shell back SH and
  export works again. ARGH!
 
 
  On Fri, Jun 7, 2013 at 9:42 AM, Farley, Peter x23353 
  peter.far...@broadridge.com wrote:
 
   ??? Isn't export a shell command, provided by the shell and not by an
   external executable?
  
   Though I can't explain the Command not found error either...
  
   Peter
  
   -Original Message-
   From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
 On
   Behalf Of Mark Pace
   Sent: Friday, June 07, 2013 9:38 AM
   To: IBM-MAIN@LISTSERV.UA.EDU
   Subject: Re: X11 forwarding
  
   Now this is something I never expected to see.
  
   # export
   export: Command not found.
   # find / -name export
   #
  
   /bin/export is gone?!?!
  
   --
  
   This message and any attachments are intended only for the use of the
   addressee and may contain information that is privileged and
  confidential.
   If the reader of the message is not the intended recipient or an
  authorized
   representative of the intended recipient, you are hereby notified that
  any
   dissemination of this communication is strictly prohibited. If you have
   received this communication in error, please notify us immediately by
   e-mail and delete the message and any attachments from your system.
  
   --
   For IBM-MAIN subscribe / signoff / archive access instructions,
   send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
  
 
 
 
  --
  The postings on this site are my own and don’t necessarily represent
  Mainline’s positions or opinions
 
  Mark D Pace
  Senior Systems Engineer
  Mainline Information Systems
 
  --
  For IBM-MAIN subscribe / signoff / archive access instructions,
  send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
 



 --
 This is a test of the Emergency Broadcast System. If this had been an
 actual emergency, do you really think we'd stick around to tell you?

 Maranatha! 
 John McKown

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN




-- 
The postings on this site are my own and don’t necessarily represent
Mainline’s positions or opinions

Mark D Pace
Senior Systems Engineer
Mainline Information Systems

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-07 Thread Mark Post
 On 6/7/2013 at 10:10 AM, Mark Pace pacemainl...@gmail.com wrote: 
 Going back to the /bin/sh shell I was able to
 
  export DISPLAY=172.16.0.6:0.0
  /usr/lpp/java/J6.0/bin/java EmptyFrame1
 
 And I got a blank window to pop-up on my Xwindows server.

Is that the IP address of your MVS system, or your desktop?  If it's your 
desktop, then you aren't doing X11 forwarding over SSH.

Normally, when using X11 forwarding over SSH with xauth, your DISPLAY variable 
gets set automatically to something like: localhost:10.0

If you don't have xauth on your MVS system, that will cause problems, forcing 
you to do that export command, but it means you're not really doing what you 
think.


Mark Post

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-07 Thread Mark Pace
In this case the export DISPLAY IP is my desktop running the X server.  It
appears to me that xauth is not compiled.  So I get a message about xauth,
but I do get the X window, so it is working.


On Fri, Jun 7, 2013 at 12:02 PM, Mark Post mp...@suse.com wrote:

  On 6/7/2013 at 10:10 AM, Mark Pace pacemainl...@gmail.com wrote:
  Going back to the /bin/sh shell I was able to
 
   export DISPLAY=172.16.0.6:0.0
   /usr/lpp/java/J6.0/bin/java EmptyFrame1
 
  And I got a blank window to pop-up on my Xwindows server.

 Is that the IP address of your MVS system, or your desktop?  If it's your
 desktop, then you aren't doing X11 forwarding over SSH.

 Normally, when using X11 forwarding over SSH with xauth, your DISPLAY
 variable gets set automatically to something like: localhost:10.0

 If you don't have xauth on your MVS system, that will cause problems,
 forcing you to do that export command, but it means you're not really doing
 what you think.


 Mark Post

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN




-- 
The postings on this site are my own and don’t necessarily represent
Mainline’s positions or opinions

Mark D Pace
Senior Systems Engineer
Mainline Information Systems

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-07 Thread Mark Post
 On 6/7/2013 at 01:04 PM, Mark Pace pacemainl...@gmail.com wrote: 
 In this case the export DISPLAY IP is my desktop running the X server.  It
 appears to me that xauth is not compiled.  So I get a message about xauth,
 but I do get the X window, so it is working.

Well, what is working is _not_ tunneling X over SSH.  You're sending X traffic 
back to your desktop over an entirely different port, with no encryption.  If 
anyone decides to close off traffic on ports 6000+ you're going to be out of 
luck.


Mark Post

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-07 Thread Mark Pace
I appreciate the heads-up, Mark.  But this traffic is going through a VPN,
so I'm not concerned about it.  I will make note of this if I ever have to
do this in the clear.


On Fri, Jun 7, 2013 at 1:31 PM, Mark Post mp...@suse.com wrote:

  On 6/7/2013 at 01:04 PM, Mark Pace pacemainl...@gmail.com wrote:
  In this case the export DISPLAY IP is my desktop running the X server.
  It
  appears to me that xauth is not compiled.  So I get a message about
 xauth,
  but I do get the X window, so it is working.

 Well, what is working is _not_ tunneling X over SSH.  You're sending X
 traffic back to your desktop over an entirely different port, with no
 encryption.  If anyone decides to close off traffic on ports 6000+ you're
 going to be out of luck.


 Mark Post

 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN




-- 
The postings on this site are my own and don’t necessarily represent
Mainline’s positions or opinions

Mark D Pace
Senior Systems Engineer
Mainline Information Systems

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-07 Thread Paul Gilmartin
On Fri, 7 Jun 2013 13:53:38 -0400, Mark Pace wrote:

I appreciate the heads-up, Mark.  But this traffic is going through a VPN,
so I'm not concerned about it.  I will make note of this if I ever have to
do this in the clear.
 
Your initial stated objective was to get X11 forwarding working and verified.
But now that it isn't but something else is working, you seem satisfied.


On Fri, Jun 7, 2013 at 1:31 PM, Mark Post wrote:

  In this case the export DISPLAY IP is my desktop running the X server.

 Well, what is working is _not_ tunneling X over SSH.  You're sending X
 traffic back to your desktop over an entirely different port, with no
 encryption.  If anyone decides to close off traffic on ports 6000+ you're
 going to be out of luck.
 
A common pitfall is that programmers accustomed to other techniques code
in their .profile, $ENV, .login, .cshrc, .bashrc, ... code to set and export
DISPLAY, often based on parsing the output of a command such as who am i.
This code must be made conditional wherever it occurs (often in several
places) with a conditional construct such as:

DISPLAY=${DISPLAY-`find-value-of-display`} export DISPLAY

in order not to override the value correctly set by sshd.

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-06 Thread Pfister, Nathan J CIV DISA ESB (US)
I'm not sure that there are any pre-compiled.

If you have the C compiler licensed (or you can use GCC see: 
http://gccmvs.sourceforge.net or www.cozx.com/~dpitts/gcc.html) you can compile 
then link-edit the modules. 

They are in the SEZAINST and SEZACMAC TCP/IP datasets.

See 
http://publib.boulder.ibm.com/infocenter/zos/v1r13/index.jsp?topic=%2Fcom.ibm.zos.r13.halx001%2Fclesxca.htm

Thanks, 

Nathan Pfister 
IT Specialist, DISA Mechanicsburg 
(717) 605-7820 DSN 430 
nathan.j.pfister@mail.mil 


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Mark Pace
Sent: Thursday, June 06, 2013 10:42
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: X11 forwarding

I want to test X11 forwarding using SSH in Unix System Services.  But I can't 
find an executable X application like xclock.  I find some sample programs, but 
not any executable code.  Is there some executable files that I am not finding?

--
The postings on this site are my own and don't necessarily represent Mainline's 
positions or opinions

Mark D Pace
Senior Systems Engineer
Mainline Information Systems

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: X11 forwarding

2013-06-06 Thread Donald J.
Here is a java program EmptyFrame1.java you can easily compile:


// file: EmptyFrame1.java  
   
import java.awt.event.*;   
import javax.swing.*;  
   
class EmptyFrame1 extends JFrame { 
   
  // Constructor:  
 public EmptyFrame1() {  
   setTitle(Donald's Empty Frame);  
   setSize(300,200); // default size is 0,0  
   setLocation(10,200); // default is 0,0 (top left corner)  
 
   // Window Listeners   
   addWindowListener(new WindowAdapter() {   
   public void windowClosing(WindowEvent e) {
  System.exit(0);
   } //windowClosing 
   } );  
 }   
 
 public static void main(Stringݨ args) {
   JFrame f = new EmptyFrame1(); 
   f.show(); 
 } //main  
} //class EmptyFrame1   
-- 
  Donald J.
  dona...@4email.net

On Thu, Jun 6, 2013, at 07:42 AM, Mark Pace wrote:
 I want to test X11 forwarding using SSH in Unix System Services.  But I
 can't find an executable X application like xclock.  I find some sample
 programs, but not any executable code.  Is there some executable files
 that
 I am not finding?
 
 -- 
 The postings on this site are my own and don’t necessarily represent
 Mainline’s positions or opinions
 
 Mark D Pace
 Senior Systems Engineer
 Mainline Information Systems
 
 --
 For IBM-MAIN subscribe / signoff / archive access instructions,
 send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

-- 
http://www.fastmail.fm - Send your email first class

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN