<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=3829&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Nested Xsessions with Xephyr-xserver <Solved>]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=3829</link>
		<description><![CDATA[The most recent posts in Nested Xsessions with Xephyr-xserver <Solved>.]]></description>
		<lastBuildDate>Wed, 16 Sep 2020 21:45:14 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Nested Xsessions with Xephyr-xserver <Solved>]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=24706#p24706</link>
			<description><![CDATA[<p>I got it working.&#160; The major problem that I had was that the entry in both the sshd_config file on the remote system and the ssh_config file on the local system had the entry as the default:</p><div class="codebox"><pre><code>XAuthLocation $HOME/.Xauthority</code></pre></div><p>It would not work with this entry in either file.</p><p>So I changed this entry in both files to: </p><div class="codebox"><pre><code>XAuthLocation /usr/bin/xauth</code></pre></div><p>And it works.</p><p>So for anyone that runs across this thread, I will put the config entries in both the files that are working now.</p><p>On the remote sshd_config file, I have:</p><div class="codebox"><pre><code>X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
AllowTcpForwarding yes
XAuthLocation /usr/bin/xauth</code></pre></div><p>On the local system and its ssh_config file, I have in the&#160; ~/.ssh/config&#160; file:</p><div class="codebox"><pre><code>Host IP_ADDR
    ForwardAgent yes
    ForwardX11 yes
    ForwardX11Trusted yes
    XAuthLocation /usr/bin/xauth </code></pre></div><p>To use, I open a terminal window and enter the Xephyr command to open a blank and black window:</p><div class="quotebox"><blockquote><div><p>Xephyr :2 -screen 1368x768 -resizeable &amp;</p></div></blockquote></div><p>Next, enter the command to ssh into the remote box and forward the xsession to display two on the local machine:</p><div class="quotebox"><blockquote><div><p>DISPLAY=:2 ssh -Y USER@IP_ADDRESS</p></div></blockquote></div><p>Lastly, in the same terminal window which is now showing connected to the remote machine, I entered </p><div class="codebox"><pre><code>startxfce4</code></pre></div><p>And it works.</p>]]></description>
			<author><![CDATA[dummy@example.com (nixer)]]></author>
			<pubDate>Wed, 16 Sep 2020 21:45:14 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=24706#p24706</guid>
		</item>
		<item>
			<title><![CDATA[Re: Nested Xsessions with Xephyr-xserver <Solved>]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=24693#p24693</link>
			<description><![CDATA[<p>Thanks for your input fsr, I will keep tinkering with this some more.&#160; It may be something small on my system that is the problem, but I don&#039;t know what it could be and I can&#039;t think of what else to check.&#160; Thanks again, at least now I know that it does work on someone else&#039;s system, and I am motivated to keep looking and trying to find a resolution.</p>]]></description>
			<author><![CDATA[dummy@example.com (nixer)]]></author>
			<pubDate>Wed, 16 Sep 2020 13:00:03 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=24693#p24693</guid>
		</item>
		<item>
			<title><![CDATA[Re: Nested Xsessions with Xephyr-xserver <Solved>]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=24690#p24690</link>
			<description><![CDATA[<p>Oh, man, that is weird. It&#039;ll start xfce even if xfce is already running. I was doing this on my second monitor, and when I ran startxfce4, I saw the panel on my first monitor flash like it was restarting.*&#160; I don&#039;t know what the deal is with xfce, but I can get it to work correctly with icewm, jwm or even openbox.</p><div class="codebox"><pre><code>ssh -X user@remote
Xephyr :1 -screen 1024x768 -resizeable &amp;</code></pre></div><p>And then one of the following:</p><div class="codebox"><pre><code>icewm --display=:1
jwm -display=:1
DISPLAY=:1 openbox-session</code></pre></div><p>usernames are not the same on local and remote machines.<br />I didn&#039;t have to do anything with Xauthority or Forwarding settings.</p><p>Tested on second machine where I had to use :2 instead of :1.</p><p>* Just to be perfectly clear, I was in a terminal and logged into the remote with &#039;ssh -X&#039; when I ran startxfce4, and it affected the local machine instead of the remote.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Wed, 16 Sep 2020 12:20:19 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=24690#p24690</guid>
		</item>
		<item>
			<title><![CDATA[Re: Nested Xsessions with Xephyr-xserver <Solved>]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=24689#p24689</link>
			<description><![CDATA[<p>Thanks for responding rr.&#160; I have never needed xvfb before and up until now I have never seen it mentioned as being a dependency or needed for nested xsessions.&#160; </p><p>This is an example of what I have used in the past:<br /><a href="https://nek0.eu/posts/2014-10-25-Desktop-forwarding-via-X-using-Xephyr.html" rel="nofollow">https://nek0.eu/posts/2014-10-25-Deskto … ephyr.html</a><br />or <br /><a href="https://www.dedoimedo.com/computers/xephyr.html" rel="nofollow">https://www.dedoimedo.com/computers/xephyr.html</a></p><p>But this depends on Xforwarding successfully working, which I am getting errors on at the moment.&#160; Thanks again.</p>]]></description>
			<author><![CDATA[dummy@example.com (nixer)]]></author>
			<pubDate>Wed, 16 Sep 2020 10:59:30 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=24689#p24689</guid>
		</item>
		<item>
			<title><![CDATA[Re: Nested Xsessions with Xephyr-xserver <Solved>]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=24682#p24682</link>
			<description><![CDATA[<p>Wouldn&#039;t you neeed to use <span class="bbc">xvfb</span> to run an X server remotely without displaying on a real console?</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Wed, 16 Sep 2020 00:43:06 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=24682#p24682</guid>
		</item>
		<item>
			<title><![CDATA[Nested Xsessions with Xephyr-xserver <Solved>]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=24681#p24681</link>
			<description><![CDATA[<p>Sorry for such a long post, but I wanted to include all that I thought was relevant to my issue.&#160; I am trying to use nested X-sessions between a client and server using the Xephyr-xserver package.&#160; The Xephyr program appears to be working but I keep seeing these errors when I try to ssh into the server machine with the following command:</p><p>$ ssh -v -Y user@xxx.xxx.xxx.100</p><div class="quotebox"><blockquote><div><p>Warning: No xauth data; using fake authentication data for X11 forwarding.<br />...<br />debug1: Remote: No xauth program; cannot forward X11.<br />X11 forwarding request failed on channel 0</p></div></blockquote></div><p>TL/DR-<br />- xauth is installed on both the client and server<br />- .Xauthority file is located on both client and server and it has the correct permissions<br />- sshd_config on server and ssh_config on client &quot;appear&quot; to have all needed options active.</p><p>These are the commands used with Xephyr,</p><div class="quotebox"><blockquote><div><p>user@host:~$ Xephyr :2 -screen 1368x768 -resizeable &amp;<br />[1] 4819</p></div></blockquote></div><p>This loads a blank black screen, which is normal.</p><p>user@host:~$ DISPLAY=:2 ssh -Y user@xxx.xxx.xxx.100</p><div class="codebox"><pre><code>...
Warning: No xauth data; using fake authentication data for X11 forwarding.
...</code></pre></div><p>Common configurations of client and server:</p><p># xauth is installed on both the client and server</p><div class="quotebox"><blockquote><div><p># apt policy xauth<br />xauth:<br />&#160; Installed: 1:1.0.10-1<br />&#160; Candidate: 1:1.0.10-1<br />&#160; Version table:<br /> *** 1:1.0.10-1 500<br />&#160; &#160; &#160; &#160; 500 <a href="http://deb.devuan.org/merged" rel="nofollow">http://deb.devuan.org/merged</a> beowulf/main amd64 Packages<br />&#160; &#160; &#160; &#160; 100 /var/lib/dpkg/status</p></div></blockquote></div><p>&#160; &#160; &#160; &#160; <br /># xorg is installed on both client and server</p><div class="quotebox"><blockquote><div><p># apt policy xorg<br />xorg:<br />&#160; Installed: 1:7.7+19<br />&#160; Candidate: 1:7.7+19<br />&#160; Version table:<br /> *** 1:7.7+19 500<br />&#160; &#160; &#160; &#160; 500 <a href="http://deb.devuan.org/merged" rel="nofollow">http://deb.devuan.org/merged</a> beowulf/main amd64 Packages<br />&#160; &#160; &#160; &#160; 100 /var/lib/dpkg/status</p></div></blockquote></div><p># Xauthority has the proper permissions on both the client and server</p><div class="quotebox"><blockquote><div><p>$ ls -n .Xauthority<br />-rw------- 1 1000 1000 105 Sep 15 16:07 .Xauthority</p></div></blockquote></div><p>I added this to both the server and client in the ~/.bashrc file just to try &quot;something&quot;</p><div class="quotebox"><blockquote><div><p>export XAUTHORITY=$HOME/.Xauthority</p></div></blockquote></div><p>The username on the account is the same for both server and client.</p><p>Server setup</p><p># sshd_config contains</p><div class="quotebox"><blockquote><div><p>AddressFamily any&#160; &#160; # ipv6 is not disabled<br />AllowAgentForwarding yes<br />X11Forwarding yes<br />XAuthLocation $HOME/.Xauthority<br />X11DisplayOffset 10<br />X11UseLocalhost yes<br />AllowTcpForwarding yes</p></div></blockquote></div><p># Client setup</p><p># ssh_config contains in ~/.ssh/config</p><div class="quotebox"><blockquote><div><p>Host xxx.xxx.xxx.100<br />&#160; &#160; ForwardAgent yes<br />&#160; &#160; ForwardX11 yes<br />&#160; &#160; ForwardX11Trusted yes<br />&#160; &#160; XAuthLocation $HOME/.Xauthority</p></div></blockquote></div><p>There is a lot written about this on the web and it seems rather straightforward to implement.&#160; However, I am overlooking something.&#160; I have tried several examples that I found on the web, but still I get these errors.</p><div class="quotebox"><blockquote><div><p>Warning: No xauth data; using fake authentication data for X11 forwarding.<br />...<br />debug1: Remote: No xauth program; cannot forward X11.<br />X11 forwarding request failed on channel 0</p></div></blockquote></div><p>Additional info:<br />Even with the ssh x-forwarding errors, the ssh connection will succeed, so if I go ahead and issue the command to &quot;startxfce4&quot; in the terminal window connected to the server, I expect the xsession to start in the blank black Xephyr window.&#160; Instead, I get this output:</p><div class="quotebox"><blockquote><div><p>$ startxfce4<br />/usr/bin/startxfce4: Starting X server<br />/usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server<br />xinit: giving up<br />xinit: unable to connect to X server: Connection refused<br />xinit: server error</p></div></blockquote></div><p>But if I go into /etc/X11/Xwrapper-config and change </p><div class="codebox"><pre><code>allowed_users=console</code></pre></div><p>to</p><div class="codebox"><pre><code>allowed_users=anybody</code></pre></div><p>then the xsession will start, but not within the Xephyr nested x window.&#160; It starts on the monitor connected to the physical machine.&#160; </p><p>It is not forwarding the xsession to Xephyr, and I am out of ideas on what to check and I can not find anything new on the web to help me out, yet.&#160; So I am asking for help.&#160; Any ideas?</p>]]></description>
			<author><![CDATA[dummy@example.com (nixer)]]></author>
			<pubDate>Wed, 16 Sep 2020 00:28:19 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=24681#p24681</guid>
		</item>
	</channel>
</rss>
