Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am new to linux(using Suse 9.3) and have a program (grahics) on running it I get this error
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:134)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Window.init(Window.java:231)
at java.awt.Window.<init>(Window.java:275)
at java.awt.Frame.<init>(Frame.java:401)
at javax.swing.JFrame.<init>(JFrame.java:198)
at JPanels.<init>(JPanels.java:15)
at JPanels.main(JPanels.java:11)
On the linux machine, it runs fine, but when I ssh into the box and try to run it I get this error. Y is this so an any solution.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
X server usually isn't configured to run remotely because it runs as root. You can use NFS to link to the executables and libraries, and then run the program on another X server. Lastly, you can configure the X server to run on a remote machine. This is a big security hole. You might also want to to try logging into ssh as a regular user on the remote machine and:
I am new to linux(using Suse 9.3) and have a program (grahics) on running it I get this error
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:134)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Window.init(Window.java:231)
at java.awt.Window.<init>(Window.java:275)
at java.awt.Frame.<init>(Frame.java:401)
at javax.swing.JFrame.<init>(JFrame.java:198)
at JPanels.<init>(JPanels.java:15)
at JPanels.main(JPanels.java:11)
On the linux machine, it runs fine, but when I ssh into the box and try to run it I get this error. Y is this so an any solution.
I did the xhost +myLinusBox.com and that added new access list. But it did not do anything. Sorry, but I am able to run my JPanel.class on the Linux Box but not when I am away from home. I get the
"Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable."
I have tried compiling as root and regular user but no luck. I am still lost.
I did the xhost +myLinusBox.com and that added new access list. But it did not do anything. Sorry, but I am able to run my JPanel.class on the Linux Box but not when I am away from home. I get the
"Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable."
I have tried compiling as root and regular user but no luck. I am still lost.
I am not clear on your original post but I believe you are logging in to a remote machine to run an x-windows application that will display on your local terminal. If this is the case there are a few things that need to be done.
On the local machine allow remote access to your loacl x-windows.
Change your x configuration files to allow remote access.
This will depend on what version of X you are using.
Two examples
Older RH distros (xfree, early x.org)
in /etc/X11/gdm/gdm.conf
DisallowTCP=false
Hello,
Thanks for reading and replying,
I do not have the gdm folder in my filesystem but these are the files in etc/X11/
". qt_gtk_fnt2fntrc xdm Xmodmap.remote
.. qt_plugins_3.3rc XF86Config xorg.conf
fs .qt_plugins_3.3rc.lock XF86Config-20060506 xorg.conf.install
fvwm2 qtrc xim xorg.conf.saxsave
kstylerc .qtrc.lock xim.d Xresources
.kstylerc.lock rstart xinit xserver
lbxproxy twm xkb xsm
proxymngr WindowMaker Xmodmap
"
do you know where elseI might have to look or prop installing the folder?
This is the senerio, lest say I have a program that I am running but I would run it on your server. If I try doing so it gives me the error as stated above.
I am using suse 9.3
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.