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
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
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
sudo getenforce <---- will return Enforcing if SELinux is enabled and enforcingsudo 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
hmm. when I attempt those commands I Just get "command not found"
12/23/2017 1:05:46 PM
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
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
https://stackoverflow.com/questions/12366373/java-application-and-x11-forwardingTry that maybe
12/24/2017 1:15:50 AM
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
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 graphicshttp://www.oracle.com/technetwork/articles/javase/headless-136834.htmlAfter 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
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