User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Ubuntu Java X11 Forwarding Page [1]  
Cherokee
All American
8264 Posts
user info
edit post

This has to be something incredibly basic but:

Running Ubuntu server (16.04 64 Bit) on a dedicated (offsite) server. I can SSH in, I can forward apps (xterm/xclock both forward the GUI to my local machine). When I attempt to run a java program, there are no errors but I do not get the GUI forwarded to my local machine.

ssh_config is set correctly (as far as I know) for both server and client.

The local machine I'm currently testing on is Ubuntu desktop 16.04 64 Bit. I'll eventually want to forward it via Putty/Cygwin.

Any ideas?

[Edited on December 23, 2017 at 2:50 AM. Reason : a]

12/23/2017 2:48:54 AM

dinamod
Starting Lineup
88 Posts
user info
edit post

Are there any AVC denials in /var/log/audit.log ? Have you tried setting SELinux into permissive mode?

12/23/2017 10:53:00 AM

Cherokee
All American
8264 Posts
user info
edit post

No audit.log file present in /var/log.

I'm not sure if SELinux is installed on the system or not. /etc/selinux exists but in there is only semanage.conf, and the file is essentially blank aside from a wall of commented out text.

12/23/2017 12:22:48 PM

dinamod
Starting Lineup
88 Posts
user info
edit post

sudo getenforce <---- will return Enforcing if SELinux is enabled and enforcing
sudo setenforce 0 <---- will set to permissive mode so you can see if SELinux is preventing when it's in enforcing mode

12/23/2017 12:49:18 PM

Cherokee
All American
8264 Posts
user info
edit post

hmm. when I attempt those commands I Just get "command not found"

12/23/2017 1:05:46 PM

dinamod
Starting Lineup
88 Posts
user info
edit post

Interesting. Seems like SELinux is not installed for you. I use fedora these days, but remember having to disable SELinux on older Ubuntu versions.

Perhaps x11 logs have some info for you.

12/23/2017 1:15:25 PM

Cherokee
All American
8264 Posts
user info
edit post

Unfortunately absolutely nothing popping up. It's so bizarre. I'm not even getting errors running the java file, it just won't forward/open a GUI on my local machine. If I run a local copy of it, opens just fine.

12/23/2017 1:35:18 PM

moron
All American
33692 Posts
user info
edit post

https://stackoverflow.com/questions/12366373/java-application-and-x11-forwarding

Try that maybe

12/24/2017 1:15:50 AM

Cherokee
All American
8264 Posts
user info
edit post

Thanks for posting that. If I'm understanding it correctly, it sounds like a java application has to be programmed with the ability to perform headless work. In that case I'm stuck but at least I know. Thanks again!

12/26/2017 12:28:37 PM

moron
All American
33692 Posts
user info
edit post

I think when you run the Java app you just have to pass this flag:
-Djava.awt.headless=true

unless the app somehow is not using awt to draw its graphics

http://www.oracle.com/technetwork/articles/javase/headless-136834.html
After reading this Try setting it to "false" too, that might actually work

[Edited on December 28, 2017 at 12:24 PM. Reason : ]

12/28/2017 12:22:08 PM

Cherokee
All American
8264 Posts
user info
edit post

Hmm I tried it with the "true" argument and it seemed to run a sec and then crash due to some error. I'll have to try "false" here in a second.

What I'm thinking is the jar file I have doesn't have the awt graphics codes in them. It's a few years old.

[edit] Damn, same exact CLI output if I use true or false. No GUI.

[Edited on December 28, 2017 at 11:11 PM. Reason : a]

12/28/2017 10:56:49 PM

 Message Boards » Tech Talk » Ubuntu Java X11 Forwarding Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.