<p>I follow <a href="https://medium.freecodecamp.org/learn-kubernetes-in-under-3-hours-a-detailed-guide-to-orchestrating-containers-114ff420e882" rel="nofollow noreferrer">this</a> tutorial about Kubernetes.</p>

<p>I got to the part, which guide me to run:</p>

<pre><code>minikube service sa-frontend-lb
</code></pre>

<p>(I used sudo to run it, because if I don't use sudo it ask me to use sudo).</p>

<p>I get those following errors:</p>

<pre><code>Opening kubernetes service default/sa-frontend-lb in default browser...
No protocol specified
No protocol specified

(firefox:4538): Gtk-WARNING **: 22:07:38.395: cannot open display: :0
/usr/bin/xdg-open: line 881: x-www-browser: command not found
No protocol specified
No protocol specified

(firefox:4633): Gtk-WARNING **: 22:07:39.112: cannot open display: :0
/usr/bin/xdg-open: line 881: iceweasel: command not found
/usr/bin/xdg-open: line 881: seamonkey: command not found
/usr/bin/xdg-open: line 881: mozilla: command not found
No protocol specified
Unable to init server: Could not connect: Connection refused
Failed to parse arguments: Cannot open display: 
/usr/bin/xdg-open: line 881: konqueror: command not found
/usr/bin/xdg-open: line 881: chromium: command not found
[4749:4749:0805/220740.485576:ERROR:zygote_host_impl_linux.cc(88)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
[4757:4757:0805/220740.725100:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
/usr/bin/xdg-open: line 881: www-browser: command not found
/usr/bin/xdg-open: line 881: links2: command not found
/usr/bin/xdg-open: line 881: elinks: command not found
/usr/bin/xdg-open: line 881: links: command not found
</code></pre>

<p>I installed chromium and xdg-utils, but neither works.</p>

<p>How can I enter to the service, to see that it works?</p>

Yagel
<p>As one can see, it <em>is</em> attempting to launch a browser, but there are none installed that it recognizes, except for what I would <em>guess</em> is Chrome <em>(since one can see that "chromium" did not work out)</em>, and as the message indicates, it doesn't tolerate running as <code>root</code>.</p>

<p>In that case, what you want is actually:</p>

<pre><code>minikube service --url sa-frontend-lb
</code></pre>

<p>which causes <code>minikube</code> to <em>print</em> the URL rather than attempting to use <a href="https://github.com/pkg/browser/blob/master/browser_linux.go#L4" rel="noreferrer">xdg-open</a> to launch a browser.</p>
