Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-06-2011, 12:35 AM   #1
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, 09:48 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

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

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

From the xhost man pages:
[+]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, 02:29 PM   #3
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?


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

All times are GMT -5. The time now is 01:24 PM.

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