<?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=8094&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] How can I make "xhost +" the default at every boot?]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=8094</link>
		<description><![CDATA[The most recent posts in [SOLVED] How can I make "xhost +" the default at every boot?.]]></description>
		<lastBuildDate>Sat, 18 Jul 2026 16:20:06 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] How can I make "xhost +" the default at every boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=64810#p64810</link>
			<description><![CDATA[<p>Or use <span class="bbc">xhost +localhost</span> to allow connections from the same system only. See <span class="bbc">man xhost</span> for details (it imples that <span class="bbc">xhost local</span> would do the same, but I&#039;m not sure if i understood it correctly).</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Sat, 18 Jul 2026 16:20:06 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=64810#p64810</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How can I make "xhost +" the default at every boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=64797#p64797</link>
			<description><![CDATA[<p>Thanks fsmithred, while .xsession isn&#039;t quite the right file either, by pointing me to it I did some research on it and stumbled upon the correct file: </p><div class="codebox"><pre><code>.xsessionrc</code></pre></div><p>As far as I figured out .xsession <span class="bbu">replaces</span> the default session startup scripts that are under /etc/X11, while .xsessionrc only complements them, i.e. gets parsed last thing after the /etc/X11 startup scripts, and that&#039;s exactly what I was looking for.<br />I already tested it and it works as expected.</p><p>With regards to the security risks, there are none as Devuan (like most Linux distros since many years) starts Xorg with the &quot;-nolisten tcp&quot; parameter, so it&#039;s not accessible via the network. Only local users can access it and this is a desktop PC used by a single human user.</p>]]></description>
			<author><![CDATA[dummy@example.com (tux_99)]]></author>
			<pubDate>Fri, 17 Jul 2026 19:52:50 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=64797#p64797</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How can I make "xhost +" the default at every boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=64779#p64779</link>
			<description><![CDATA[<p><span class="bbc">man xsession</span> says:</p><div class="codebox"><pre><code>       $HOME/.xsession
              is  a  sequence  of commands invoking X clients (or a session manager such as xsm(1)).  See the manual page
              for xinit for tips on writing an .xsession file.</code></pre></div><p>This page talks about the security risks of &#039;xhost +&#039;:<br /><a href="https://www.debian.org/doc/manuals/securing-debian-manual/ch05s04.en.html" rel="nofollow">https://www.debian.org/doc/manuals/secu … 04.en.html</a></p><div class="quotebox"><blockquote><div><p>If you follow the (very bad) suggestion of many docs, you type xhost + on your machine. This allows any X client to connect to your system. For slightly better security, you can use the command xhost +hostname instead to only allow access from specific hosts.</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Thu, 16 Jul 2026 21:28:38 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=64779#p64779</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How can I make "xhost +" the default at every boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=64778#p64778</link>
			<description><![CDATA[<p>I sort of solved this by adding the xhost commands I need in the XFCE configuration under &quot;Session and Startup&quot; -&gt; &quot;Application Autostart&quot; as a &#039;program&#039; to be run on login.</p><p>It works fine but I don&#039;t consider it an ideal solution as it&#039;s DE specific.</p><p>Surely there must be a generic DE-independent X11 config file where I could put these &#039;xhost&#039; commands so that they run on login?<br />(I did also try .xinitrc in my home directory but that is ignored)</p>]]></description>
			<author><![CDATA[dummy@example.com (tux_99)]]></author>
			<pubDate>Thu, 16 Jul 2026 20:23:35 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=64778#p64778</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How can I make "xhost +" the default at every boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=64736#p64736</link>
			<description><![CDATA[<p>Thanks, that could be a feasible workaround but surely there must be a X11 config file that gets read each time X11 is started (i.e. when logging in) in which I could put the xhost command?</p>]]></description>
			<author><![CDATA[dummy@example.com (tux_99)]]></author>
			<pubDate>Mon, 13 Jul 2026 16:40:34 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=64736#p64736</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How can I make "xhost +" the default at every boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=64705#p64705</link>
			<description><![CDATA[<p>Another approach would be to only use &#039;xhost +&#039; when you want to be the other user and then &#039;xhost -&#039; when you&#039;re done. Put the following script in your path, make it executable and use it like this. I&#039;m calling it &#039;swu&#039;. You can call it whatever you like.</p><p>Open a terminal.</p><div class="codebox"><pre><code>swu &lt;otheruser&gt;
(run some commands as the other user)
exit</code></pre></div><p>Here&#039;s the magic sauce:</p><div class="codebox"><pre><code>#!/usr/bin/env bash
# swu

otheruser=&quot;$1&quot;

xhost +
su &quot;$otheruser&quot; 
xhost -

exit 0</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sat, 11 Jul 2026 23:30:00 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=64705#p64705</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How can I make "xhost +" the default at every boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=64704#p64704</link>
			<description><![CDATA[<p>BTW, I already tried creating /etc/X0.hosts with relevant entries (see below) as indicated in the xhost manpage but that doesn&#039;t seem to have any effect.</p><div class="codebox"><pre><code>$ more /etc/X0.hosts
+SI:localuser:username1
+SI:localuser:username2</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (tux_99)]]></author>
			<pubDate>Sat, 11 Jul 2026 22:25:37 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=64704#p64704</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] How can I make "xhost +" the default at every boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=64703#p64703</link>
			<description><![CDATA[<p>I run some X11-apps as a different user than the user with which i log on to the desktop (XFCE) so after a reboot I always have to type &quot;xhost +&quot; in a terminal before being able to launch these X11-apps as a different user.</p><p>So how can I make &quot;xhost +&quot; the default at every boot?</p><p>In which config file do I have to set this to avoid having to type it manually each time?</p>]]></description>
			<author><![CDATA[dummy@example.com (tux_99)]]></author>
			<pubDate>Sat, 11 Jul 2026 20:36:55 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=64703#p64703</guid>
		</item>
	</channel>
</rss>
