remote desktop to Linux box

I managed to used NX to remote desktop to SuSe Linux box.

If I remote desktop from home to my windows box at work, I can see the exact image which is present at work. (meaning the session is same)

However when I remote desktop to Linux box, its a complete new session.
Lets say if I have an  opened eclipse on Linux box which is kept open, after remote desktop to linux box, I get a new session and I can't open eclipse on this new session as it is already open on the actual linux box.

My question is why do I get new session when I remote desktop to Linux. I am expecting to see the exact same session which is present on Linux box so that I can use all the window/session which are currently open in linux box. Is this possible??
learningunixAsked:
Who is Participating?
 
Micha3615Connect With a Mentor Commented:
From what I can see you are trying to run a X11 Session, have your tried gnome or KDE.

This should be under your General tab, you should see desktop and then you can select if you want to rdp, under unix  run either a X11 desktop as KDE, GNOME, CDE and XDM or a single application by choosing the Custom option.

You can even select VNC if you have the vnc server running.

0
 
shawnmstoutCommented:
you have to append the connection with a :1 to join the first session here is an example

192.168.0.1:1
ip_address:session_number

and thats it
0
 
tniemetzCommented:
In your NX client settings look for an option called "Shadow" - that's the only way to connect to an existing session with NX. I think it's in the General tab of the configuration section.
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
learningunixAuthor Commented:
is the "shadow " available for free NX version? as i couldn't find it
0
 
learningunixAuthor Commented:
:1  also didn't work for me.
0
 
shawnmstoutCommented:
im sorry the option i have you was for vncviewer, for nix you should join the same session, are you suspending the session when you leave it?  this is very important cause if you dont suspend it then you would be opening a new session.
0
 
learningunixAuthor Commented:
no i didn't suspend the session before leaving. i'll try that tomorrow morning when i go to work and see.

I did see bunch of options in /usr/NX/etc/server.cfg file  like

EnableDesktopSharing= “1”
 EnableSystemDesktopSharingAuthorization = "0"

and many others. may be one this might also work.  i'll try tomorrow and see.
0
 
torimarCommented:
You have to select "Desktop: Shadow" in the client, and set "EnableSessionShadowingAuthorization" to 0 in the server.cfg.
Check here: http://www.opensourcetutor.com/2007/06/21/nomachine-nx-desktop-sharing-shadowing-now-available/

ps:
As I tried to tell you in your last question, NX (or FreeNX: http://freenx.berlios.de/) is required only when the server runs headless, i.e. without its own desktop, because NX will emulate a virtual X server. If the server you want to remote into already runs its own X windows system, any VNC will do. Most Linux distros come with a VNC server pre-installed which only needs to be enabled.
Check this for complete reference: http://tr.opensuse.org/Remote_Access_to_SUSE
0
 
learningunixAuthor Commented:
I tried this
>>
You have to select "Desktop: Shadow" in the client, and set "EnableSessionShadowingAuthorization" to 0 in the server.cfg.
>>

Client failed with

NX> 726 Asking user for authorization to attach to session
NX> 596 Error: Unrecognized answer from nxnode: Xlib: No protocol specified

nxclient: cannot connect to X server :0.0
.

NX> 999 Bye.
NX> 105 NX> 280 Exiting on signal: 15

0
 
learningunixAuthor Commented:
I tried this:

EnableSessionShadowing = "1"
EnableInteractiveSessionShadowing = "1"
EnableSessionShadowingAuthorization = "0"
EnableDesktopSharing = "1"
EnableInteractiveDesktopSharing = "1"
EnableFullDesktopSharing = "1"
EnableAdministratorDesktopSharing = "1"
EnableDesktopSharingAuthorization = "0"
EnableSystemDesktopSharingAuthorization = "0"

This time it went pass the authorization phase and it was trying to establish and it failed saying "The connection with the remote server was shut down. please check the state of your network connection"
0
 
torimarCommented:
Try setting:

EnableInteractiveSessionShadowing = "1"
EnableInteractiveDesktopSharing = "1"

to "0". "Interactive" may mean that feedback is expected from inside the running session.
0
 
learningunixAuthor Commented:
Didn't work setting to "0" .

One thing I noticed is. It was trying to establish "Display Connection" and then suddenly it failed with the above error message.

0
 
learningunixAuthor Commented:
i have attached the image of failure...
img.bmp
0
 
learningunixAuthor Commented:
well i also noticed it said "Established Display Connection" but in the end it fails with the connection error.
0
 
learningunixAuthor Commented:
it looks a font issue based on this:
http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ/Server

 DEFAULT_FONT_PATH=$(echo $(grep -v '^ *#' /etc/X11/xorg.conf | grep FontPath | awk '{print $2}' | sed -r "s/^[\"']|[\"']$//g") | sed 's/ /,/g')                                                                                      
 AGENT_EXTRA_OPTIONS_X="-fp $DEFAULT_FONT_PATH"

I am trying to find in my suse linux 11 where to find the profile/login to set these variables

any idea where is this located?
0
 
torimarCommented:
You are not using FreeNX, you are using the original NX by Nomachines; so you should turn to their resources for troubleshooting:
http://www.nomachine.com/ar/view.php?ar_id=AR11B00098

That page contains a variety of hints and links to half a dozen more pages that are on the topic.

I think it could be a user/permission related issue. Remember you tweaked NX into letting you connect as root? Try connecting as a normal user/user "NX" first and see if that works.
0
 
learningunixAuthor Commented:
i tried updating /etc/profile and added AGENT_EXTRA_OPTIONS_X still didn't work :(

let me try what you suggested.
0
 
learningunixAuthor Commented:
i think so I am going to give up now ;)

in which file do I need to add

 DEFAULT_FONT_PATH=$(echo $(grep -v '^ *#' /etc/X11/xorg.conf | grep FontPath | awk '{print $2}' | sed -r "s/^[\"']|[\"']$//g") | sed 's/ /,/g')                                                                                      
 AGENT_EXTRA_OPTIONS_X="-fp $DEFAULT_FONT_PATH"

I added in /etc/profile and restarted the session but didn't work.


I guess i need to add somewhere in /usr/NX
0
 
learningunixAuthor Commented:
any ideas guys?
0
 
learningunixAuthor Commented:
i know what the issue. look at the image attached. the client does not know the "Geometry". not sure how to fix it.


image.bmp
0
 
learningunixAuthor Commented:
can you please force close the question as it is still unresolved and I am still having t
0
 
crazedsanityCommented:
I would seriously suggest using any for of VNC, as suggested previously.  NX/FreeNX is most useful if you don't care about connecting to an existing session.  Although it requires learning something different, I really think it would ultimately be the best solution.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.