LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-27-2008, 05:57 PM   #1
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Fedora Core 17
Posts: 298

Rep: Reputation: 32
Is it possible to access my session via desktop sharing while another user is active?


I am using remote desktop client successfully (krfb/krdc). Typically, 2 or 3 of us have sessions running, & we can if necessary get our shared files using samba. However, I would like to be able to access my session from another box.
My main reason is that one of our boxes has larger ram & processor than the others.
The other reason is that I am interested to find a simple method for eg a family or department to make good use of ageing computers- to put it another way, could one pc be made to operate as a "terminal" of another? I remember working for an accounts department in 1985 where the mainframe was as big as a freezer, there were numerous terminals, but, in addition, some of the pc's were running "emulation" to operate as terminals.
 
Old 04-27-2008, 06:57 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
I think the title does not say what you intend. As the title indicates, you want to access your (active) session on your computer while another user is active. I don't think that is possible.

However, (if I get the meaning of your question right) it is perfectly possible to start another session on a remote terminal. It doesn't make any difference whether is it you or another users who starts another session. You can not start a session on another computer, and then come home and continue this session at your own computer. This is also not "desktop sharing". You don't share a desktop, you start a new session.

I forgot what the correct terminology is, whether you start the X server on the remote machine, or you start it on the local machine and direct the display to the remote machine. Don't forget, in Linux the thing that displays the picture is the X server and your application is the X client.

Now the bad news, although I am sure that it exists, but I cannot give you detailed information how to do it. There is plenty of information in Google, and you best search for Debian specific directions. I think "debian remote session desktop" should give you some hits. There is also another problem, you have to allow on the central machine that a remote display is used. I never succeeded in that, but the last time I tried was in Sarge.

Sorry that I cannot be more specific. I hope it helps anyway.

jlinkels
 
Old 04-28-2008, 03:53 AM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
I think this is very easy for you to set up.
On your big server, you need to start vncservers for each of your users, each on a different display.
You could put these lines at the end of /etc/rc.local

Code:
su - user1 -c "cd /home/user1/ && vncserver :1 -geometry 1024x768 -depth 24" &
su - user2 -c "cd /home/user2/ && vncserver :2 -geometry 1024x768 -depth 24" &
su - user3 -c "cd /home/user3/ && vncserver :3 -geometry 1024x768 -depth 24" &
su - user4 -c "cd /home/user4/ && vncserver :4 -geometry 1024x768 -depth 24" &
If user1 wants a connection to their session on the server they connect to it like this:

vncviewer server:1

user4 connects like this:

vncviewer server:4

users 1 and 2 can be connected at the same time (they will not interfere with each other as they are using different displays)

I have icons (Eg Office, Server etc.) on my desktop for opening vnc sessions on other computers on my LAN. It works very well
 
Old 04-28-2008, 11:24 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
there is an easier way
Why use "SPAMMER'S APPLICATION" (which you have to pay for) when all you need can be simply accomplished with simple, native linux, open-source tools?
NO WAY am I going to use your application!

You wouldn't be advertising for them would you Roza? (Roza registered today. First post = "Hello, Hello", at 17:13 today. Next post, above, one minute later, at 17:14, and is SPAM)

Last edited by tredegar; 04-28-2008 at 11:52 AM.
 
Old 04-28-2008, 11:38 AM   #5
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by tredegar View Post
Why use "livelook.net" (which you have to pay for) when all you need can be simply accomplished with simple, native linux, open-source tools?
NO WAY am I going to use "livelook"!

You wouldn't be advertising for them would you Roza? (Roza registered today. First post = "Hello, Hello", at 17:13 today. Next post, above, one minute later, at 17:14, is basically SPAM)
Googling "roza livelook" threw this up as the first hit: http://www.linkedin.com/pub/4/946/ABB in addition to this post in another forum: http://forums.macrumors.com/showpost...27&postcount=3

SPAM indeed.
 
Old 04-28-2008, 11:42 AM   #6
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 33
how about using freenx + nxclient ?

sessions can be left "open" even after disconnecting, so you could continue working at home exactly where you left. accessing active "normal" x sessions only works with the (free) nxserver from nomachine.com though.
 
Old 04-28-2008, 11:50 AM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
@PC101
Quote:
SPAM indeed.
Thanks, I've reported it, and will edit out of my post references to his wretched site.

@rtspitz,
vnc sessions also stay "open", when you close the local viewer, the vncserver stays running on the server, and it'll be as you left it, when you reconnect.
 
Old 04-28-2008, 12:49 PM   #8
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 33
but it's kinda slow...

maybe this is advertising too, but freenx is impressively fast
 
Old 04-28-2008, 01:55 PM   #9
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
@LQ Mods - well that was fast, efficient and effective! The spam post has completely disapeared, which now makes this thread read rather strangely [tredegar apparently directs a rant at a non-existant post ], no matter.

Quote:
but it's kinda slow...
There's also xtightvncviewer and tightvncserver which are faster, but I thought I'd start simply as "freenx" isn't in my (k)ubuntu repositories. Thanks for the suggestion though.
Quote:
maybe this is advertising too,
No, it's not (and I hope you can understand why)

But the OP, sonichedgehog, hasn't been back has and missed all the fun (and the advice).
 
Old 04-28-2008, 09:09 PM   #10
Roza
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
My apologies.

I apologize for a post which sounded like an add. I received an email pointing out that there are other ways we can deliver our message to Linux users on this forum and we intend to explore those possibilities.

I never intended to hide my association with LiveLOOK. If that was my intention I would have used a false name.

Different blogs have different rules and definition of spam is unfortunately very subjective (as illustrated even in this thread).

I understand there are some devoted proponents of open source, and there is NO WAY they are going to use any service which is not free. They also have to realize that their skill level is significantly higher than that of an average user.

People who developed LiveLOOK are formally from Bell Labs – the same place VNC came from – with 16 years of experience developing conferencing systems. And we think the main reason why screen sharing is still not as common as say chat because it is still relatively complex.

In order to be accepted by majority:
It should work on any OS – Linux, Mac or Windows.
It should work with any firewall / NAT, etc… without requiring user to configure anything.
And finally, in this day and age it should be completely Web Based (like Google apps).

Instead 99.9% of systems out there is some variation of VNC which is an executable you have to download (at least for a presenter). No wonder, everybody copies from the same source

Once again, my apologies if I violated any rules. I sincerely hope that this post will also not be classified as an advertising

Roza Dabaghyan
LiveLOOK.net
 
Old 04-29-2008, 01:41 PM   #11
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
The OP had come obviously to the correct site anyway, but unfortunately no one (including myself) directed him to the correct page: http://wiki.linuxquestions.org/wiki/...top_connection

And indeed, NX is one of the alternatives mentioned here.

jlinkels
 
Old 04-29-2008, 06:49 PM   #12
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Fedora Core 17
Posts: 298

Original Poster
Rep: Reputation: 32
Hi Tredegar, jlinkels, rtspitz-
The gap between my original post and this reply is typical for me... I enjoy this site so much that I have to stay away while I'm at work- and looking at the activity that I have accidentally generated, it was just as well on this occasion!

Your advice is most welcome, and I will work on it when I have the amount of time it deserves. Just for now though...

Thank you for the link. The free nx software is accessible and extensively documented, but not, I am afraid, readily intelligible for my level of ability.

However, the vncserver suggestion seems to be the most direct route. I assume that the server will need to create an invitation using krfb or similar (after the etc/rclocal modification)- then #vncviewer*** from terminal on the "thin" machine- is this correct, or will I need to launch the invitation in some other way?
 
Old 04-30-2008, 03:19 AM   #13
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
I assume that the server will need to create an invitation using krfb or similar (after the etc/rclocal modification)
No, it's even easier than that: On the server, the command
Code:
su - user1 -c "cd /home/user1/ && vncserver :1 -geometry 1024x768 -depth 24" &
( Which needs to be run as root, as it will be if you put it in /etc/rc.local )
Starts a virtual session on display :1 for user1 which justs sits there, doing nothing until somebody connects to it with
Quote:
vncviewer IP.OF.SER.VER:1
from a "thin" machine (or even the server itself!). A window opens on the thin machine, displaying the servers :1 display desktop.

They can then start a program running on the server in this window, disconnect by closing the window, then later reconnect with vncviewer IP.OF.SER.VER:1 and their program will still be running.

Note: If you are going to play with networking like this, it is a very good idea to make sure that when you create usernames on your server, that their UIDs and GIDs are the same as the username's UIDs and GIDs on the thin machines.
 
Old 04-30-2008, 05:06 PM   #14
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Fedora Core 17
Posts: 298

Original Poster
Rep: Reputation: 32
Talking

Thanks, I'll post again with result in a few days
 
Old 05-01-2008, 04:43 PM   #15
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Fedora Core 17
Posts: 298

Original Poster
Rep: Reputation: 32
Made the suggested change to rc.local... problem now is:
$ vncviewer server:1
vncviewer: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
Hopping around the net, this is a common error message but none of the posts seem to lead to a solution, including, I think, on LQ. Perhaps I haven't looked hard enough? I can't see anything that exactly fits the bill in synaptic, and don't want to get into installing stuff at random. I haven't spent long on this because as you all use Debian or similar I hoped you might have dealt with this...?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I tear down an active tcp/udp session thru my firewall drokmed Linux - Security 9 04-11-2008 12:07 PM
FC5 / Ubuntu home directory sharing without sharing session information cdhgee Fedora 1 07-26-2006 05:47 PM
Remote into active session??? tiger.woods Linux - General 11 03-29-2006 06:16 AM
remote desktop in suse 9.1 - grant access each session? spankmeister7 Linux - Networking 1 08-05-2004 02:34 AM
Active X session Sonte Linux - Newbie 1 03-06-2004 01:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration