Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I want to have a remote desktop client software that be a os independent and can run on every client machine , so i used SSH -x with JAVA programming , but i have a problem with x ssh , not JAVA, here is my problem:
i tried command like "ssh -x server(for example)" and tried to run xclock or xeyes or every even gnome-session , but these applications are just ran on server node and on client node nothing happened!!
i tried that command on wire and also wireless network , i got same result , but when i tried "ssh -x -C" command on wireless network (for compression) the problem solved and i saw remote X applications successfully , but on wire network problem still exist , did anyone know what is the problem? and what should i do for solving that?!
p.sISPLAY variable is set to ":0.0" also x11 forwarding and agent is set to yes.
Look at TightVNC. The remote desktop KDE programs will also work with windows remote desktop.
Another thing to look at is Cygwin/X. That will allow you to log into a remote X session from windows to Linux, or to run a single program remotely and have is show up in a window on Linux. This would allow you to run multiple programs on different Linux machines.
The problem isnt because of Java codes or etc...
i want to have a secure remote desktop with ssh , and i just test it on two linux os , client is Fedora 10 and server is centos 4.7! so i didnt try that on windows machine yet , but technically if i use JAVA for that i shouldnt have problem cause of its OS independent , anyway here is the problem:
I want to x-ssh to linux server with linux client at this moment , why i have that problem?!and what should i do ?!
also i havent any problem with ssh on those systems and ssh work fine. i think maybe this problem is because of DISPLAY variable, and it didnt set well so i cant see x windows on that.
So strange ,
I tried "ssh -Y" and it hasnt any problem and i can launch and see all of X windows on server without any problem!
i checked the man page and it says "Y" enable the trusted X11 forwarding.
Do you know why i have problem with "ssh -X" option?! i found out "ssh -Y" didnt neet to set DISPLAY variable , and it works without that.
I don't understand why you need to use Java. Anyway, if your ssh client has a -v option, then try logging in using the "-v -X" options. The client or server display is regarded as untrusted, and the -Y option will connect anyway, bypassing the X SECURITY controls. The -v option may provide further details. Also check the logs.
The latest issue of Linux Pro Magazine has an article on using the xrdp server. If you want to connect to a terminal session from a windows machine using windows remote desktop client that may be a good option.
Installing an X server on a windows machine is another option. Using Cygwin/X you can log in using an openssh client, the same as you would in Linux. There is an other project that supplies an X server on Windows, but I don't think it gives you a local bash shell, and programs.
The reason that i want to do that with java is cause of it's a part of application that i working on it , i wrote other parts with JAVA ,so since JAVA is OS independent i decide to write this part with JAVA too , but if u know OS independent client and server tool for secure remote desktop let me know.
Anyway , i tried "ssh -X -v" and i didnt get any error , tried xeyes , a xeyes ran on server desktop but i didnt see that on client desktop and on client side terminal i didnt see any error.
xeyes ran on the remote server's desktop? What happens if you are logged out at the server.
There can be a problem if you try to run firefox remotely. You need to use the '-no-remote' option (to have it run remotely!) and display on the client. I have a desktop with SuSE and a laptop with Fedora Core. If I enter "ssh -X hpmedia firefox" from my Fedora laptop, I will see the Fedora Core home page instead of the SuSE home page.
I wonder if JAVA may be doing something similar.
If I run xeyes, it will be displayed on my laptop. Running konqueror may be a better test. You can verify that it is running on the computer you think it is.
Double check that the $DISPLAY variable is 'localhost:10.0' or 'localhost:11.0'. I can run "DISPLAY=':0.0' xeyes" on the laptop after ssh'ing in and it will run on the ssh server (desktop). If I wouldn't be logged into desktop, then there wouldn't be a ":0.0" or I wouldn't own the screen, so there would be an error instead.
"localhost:10.0" works for me , thanks for that , anyway , is there any possible way to have remote desktop on anpther window (for example a new window will be open and i can see remote desktop there)?! cause of when i tried gnome or kde remotely (gnome-session/startkde) , i cant see remote desktop properly , i mean it has some conflict with client desktop , also is there any way that for example if somebody is on server node and trying to change mouse cursor position , i can see that in client node too!? some thing like remote desktop applications.