LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 06-18-2019, 09:14 AM   #1
Pipeline79
Member
 
Registered: Sep 2018
Location: Kent, United Kingdom
Distribution: Slackware 14.2
Posts: 33

Rep: Reputation: Disabled
Problems accessing Xnested or Xephyr display from remote machine, Xauth issue?


OK,

I've been playing around with using a Linux laptop to remotely display applications from my Linux PC over X, both running Slackware. After a lot of trial and error, I've got the remote apps/clients from the PC to come up consistently on the same screen (:0.0) as my laptop desktop. This is with the 'vanilla' X11 forwarding which requires me to start my laptop xsession with the -listen tcp argument to open the X ports.

However, I'd like to open a screen with Xephyr/Xnest and put it on the next workspace and run a remote window manager like MWM on that and switch between the two.

The problem I'm having is that if I try and open anything from the remote host to put on screen [laptop.ip.address]:1.0 it just 'fails' to open that display.

When I run the Xephyr command, I use the -ac option, which should allow remote access.

The annoying thing is I had this working the other day, but I was getting all kinds of problems logging out and back into X on both computers because of something to do with the .Xauthority file in the home directory. .X0-lock files in /tmp and 'missing' .server#### in /home. Therefore, I deleted the .Xauthority file (which creates a clean one) and that's gone away.

If I use the "xauth list" command on my laptop, I now only have a magic cookie for the laptop itself, screen :0. So, I'm thinking that's the problem. But what is the correct way to deal with this? Of course, I could be completely wrong.

EDIT: I don't think it is xauth now, because I'm using the xhost +ipaddress command as well, which overrides the magic cookie check, and it still won't open the Xephyr display.

Sorry if that's a long rambling question, but I'm trying to give as much useful information as is relevant.

Last edited by Pipeline79; 06-18-2019 at 10:09 AM. Reason: update
 
Old 03-25-2020, 09:48 PM   #2
linuxgeex
LQ Newbie
 
Registered: Mar 2020
Posts: 1

Rep: Reputation: Disabled
Exclamation Awkward workaround

I have the same issue and I get complaints that Xephyr doesn't implement the security extension.

What works:

Code:
$ LOCAL_IP=10.0.3.100
$ REMOTE_IP=10.0.3.135
$ X_DPY=:10

$ Xephyr $X_DPY -glamor -screen 1600x900x24 -listen TCP

$ DISPLAY=:10 xterm;
.. then at the xterm in the Xephyr X server:

Code:
$ compton &>/dev/null </dev/null &  # really helps with performance
$ xhost +$REMOTE_IP
... then at the remote host:

Code:
$ fluxbox $LOCAL_IP &>/dev/null </dev/null &
... after that you can close the xterm and launch remote apps from fluxbox

Bizzarely, if you issue that xhost command from anywhere other than a terminal running in Xephyr, it gets ignored. If you close that terminal, poof, you can no longer connect, unless you have a persistent connection from the remote already, which is the role fluxbox performs.

[GUMP]And that's all I have to say about that[/GUMP]

Last edited by linuxgeex; 03-25-2020 at 09:53 PM.
 
  


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
no xauth data for X-session with a remote machine isnurmi Linux - Security 3 07-28-2016 08:06 PM
Accessing remote desktop on VM from a remote machine using iptables cram869 Linux - Networking 3 03-07-2012 03:25 PM
Using xauth for remote access ashkash13 Linux - Software 3 10-14-2010 08:38 AM
xauth fails for remote client MrUmunhum Linux - Networking 4 07-01-2010 03:47 PM
Xephyr/Xnest - all I can get is a weave pattern instead of remote desktop gctaylor1 Linux - Desktop 1 01-05-2007 10:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:31 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