<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 22/09/16 20:01, manik sheeri wrote:<br>
<blockquote
cite="mid:CAJjAwapo57Cq+wuWPGM=Yi6ZQkkYdOqD39e4X2TcPm8Lhoj=6w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>
<p style="margin:0px 0px
1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(17,17,17);font-family:ubuntu,arial,'libra
sans',sans-serif;line-height:19.5px">I was able to fix
it and run <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:consolas,menlo,monaco,'lucida console','liberation mono','dejavu sans mono','bitstream vera sans mono','courier new',monospace,sans-serif;white-space:pre-wrap;background-color:rgb(239,240,241)">glxgears</code> in
root mode. The problem was with the xauth.</p>
<p style="margin:0px 0px
1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(17,17,17);font-family:ubuntu,arial,'libra
sans',sans-serif;line-height:19.5px">The host system
already had <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:consolas,menlo,monaco,'lucida console','liberation mono','dejavu sans mono','bitstream vera sans mono','courier new',monospace,sans-serif;white-space:pre-wrap;background-color:rgb(239,240,241)">xauth</code>.The
idea is to use the key of the already trusted user,
which in my case was <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:consolas,menlo,monaco,'lucida console','liberation mono','dejavu sans mono','bitstream vera sans mono','courier new',monospace,sans-serif;white-space:pre-wrap;background-color:rgb(239,240,241)">manik</code> on
the host system.</p>
<p style="margin:0px 0px
1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(17,17,17);font-family:ubuntu,arial,'libra
sans',sans-serif;line-height:19.5px">Using command <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:consolas,menlo,monaco,'lucida console','liberation mono','dejavu sans mono','bitstream vera sans mono','courier new',monospace,sans-serif;white-space:pre-wrap;background-color:rgb(239,240,241)">xauth list</code> on
host gave me the following output:</p>
<pre style="margin-top:0px;padding:5px;border:0px;font-size:13px;width:auto;max-height:600px;overflow:auto;font-family:consolas,menlo,monaco,'lucida console','liberation mono','dejavu sans mono','bitstream vera sans mono','courier new',monospace,sans-serif;word-wrap:normal;color:rgb(17,17,17);background-color:rgb(239,240,241)"><code style="margin:0px;padding:0px;border:0px;font-family:consolas,menlo,monaco,'lucida console','liberation mono','dejavu sans mono','bitstream vera sans mono','courier new',monospace,sans-serif;white-space:inherit">manik/unix:0 MIT-MAGIC-COOKIE-1 a4f6256398303725763c5595f404afbb
</code></pre>
<p style="margin:0px 0px
1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(17,17,17);font-family:ubuntu,arial,'libra
sans',sans-serif;line-height:19.5px">I am going to use
the key in hex(right-most most entry above) in my root
user account inside container.</p>
<p style="margin:0px 0px
1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(17,17,17);font-family:ubuntu,arial,'libra
sans',sans-serif;line-height:19.5px">I installed xauth
package in the container:</p>
<pre style="margin-top:0px;padding:5px;border:0px;font-size:13px;width:auto;max-height:600px;overflow:auto;font-family:consolas,menlo,monaco,'lucida console','liberation mono','dejavu sans mono','bitstream vera sans mono','courier new',monospace,sans-serif;word-wrap:normal;color:rgb(17,17,17);background-color:rgb(239,240,241)"><code style="margin:0px;padding:0px;border:0px;font-family:consolas,menlo,monaco,'lucida console','liberation mono','dejavu sans mono','bitstream vera sans mono','courier new',monospace,sans-serif;white-space:inherit">sudo apt-get install xauth
</code></pre>
<p style="margin:0px 0px
1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(17,17,17);font-family:ubuntu,arial,'libra
sans',sans-serif;line-height:19.5px">Inside <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:consolas,menlo,monaco,'lucida console','liberation mono','dejavu sans mono','bitstream vera sans mono','courier new',monospace,sans-serif;white-space:pre-wrap;background-color:rgb(239,240,241)">root</code> user
prompt in container:</p>
<pre style="margin-top:0px;padding:5px;border:0px;font-size:13px;width:auto;max-height:600px;overflow:auto;font-family:consolas,menlo,monaco,'lucida console','liberation mono','dejavu sans mono','bitstream vera sans mono','courier new',monospace,sans-serif;word-wrap:normal;color:rgb(17,17,17);background-color:rgb(239,240,241)"><code style="margin:0px;padding:0px;border:0px;font-family:consolas,menlo,monaco,'lucida console','liberation mono','dejavu sans mono','bitstream vera sans mono','courier new',monospace,sans-serif;white-space:inherit">export DISPLAY=":0"
xauth add $DISPLAY . a4f6256398303725763c5595f404afbb
</code></pre>
<p style="margin:0px 0px
1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(17,17,17);font-family:ubuntu,arial,'libra
sans',sans-serif;line-height:19.5px">And now <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:consolas,menlo,monaco,'lucida console','liberation mono','dejavu sans mono','bitstream vera sans mono','courier new',monospace,sans-serif;white-space:pre-wrap;background-color:rgb(239,240,241)">glxgears</code> works
fine in root mode.</p>
</div>
</div>
</div>
</div>
</blockquote>
Wow! Looks like a way to proper solution, but do you think it's
possible to automate this?<br>
<br>
<div class="moz-signature">
--<br>
<br>
With Best Regards,<br>
Marat Khalili<br>
</div>
<br>
</body>
</html>