LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-06-2011, 01:35 AM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
How do I share a X session with another user...


I've been wanting to setup a chess game on my server so that my cousin and I can play over the course of several months. Here's what I had in mind.

On the server I startx using twm and load up xboard and put it in Edit Mode. I'm not going to be using -ics. Then I add the hostnames of my user and my cousins user to the access list for xhost.

Now here is where I am stuck. How can I login to the server and open up that X session where xboard exists?

From what I understand when I used startx, it automatically defaults the X session to :0.

I tried doing the following.

Xnest :0 -query ip_of_server -wr &
But I can't see the instance of xboard.

How can I and my cousin both connect to that X session on :0 where xboard is running?

How can I approach this problem? I do not want to use VNC. I want to stick with only X.
 
Old 11-06-2011, 10:48 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,877

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Xhost might be able to help you.

xhost +<username> or xhost +, depending on how you want to do it.

From the xhost man pages:
Quote:
[+]name The given name (the plus sign is optional) is added to the list allowed to
connect to the X server. The name can be a host name or a user name.
+ Access is granted to everyone, even if they aren't on the list (i.e., access
control is turned off).
See the man pages and google searches for more information.
 
Old 11-07-2011, 03:29 PM   #3
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Original Poster
Rep: Reputation: 69
Yea tried that. Is there a way to do X11 forwarding on a program that has already been started?

Like say on server A I start xboard. Then on server B, I log into server A with x11 forwarding. Can I x11 forward out that xboard program? Or can I only x11 forward out new programs?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Share user's vnc connection w/ existing desktop session? enriquei Linux - Server 1 10-15-2009 03:23 PM
Apache - Tomcat How to use session ID to confirm an active user session? klroller Linux - Server 4 10-08-2009 10:43 PM
sabayon user owns nfs share - normal user can't write to share tdos20 Slackware 1 06-21-2008 02:01 PM
How to share single X-session? ofdofd Linux - General 3 02-12-2006 05:58 AM
QUESTION: How to share a terminal session with a user nathan_clark80 Linux - Software 0 12-14-2004 01:17 PM


All times are GMT -5. The time now is 06:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration