<br><div><span class="gmail_quote">On 2/23/07, <b class="gmail_sendername">Kevin Ballard</b> &lt;<a href="mailto:eridius@macports.org">eridius@macports.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div>I&#39;m not particularly familiar with how X servers work, but I thought that usually to connect to a local X server you set your DISPLAY to :0.0 which makes it connect to localhost.</div><div><br></div>
<div>Perhaps installing XFree86 does something to set DISPLAY to your particular hostname? This seems odd, but I don&#39;t know any reason for your hostname to affect this otherwise.</div><div><br></div><div>What do you get if you do an `echo $DISPLAY`?
</div></div></blockquote><div><br>Thanks Kevin for your suggestion. When I am in a normal terminal shell on OS X, and if I echo $DISPLAY as you suggest, I get nothing back in the shell. I don&#39;t have $DISPLAY defined in my bash profile (should I have? I didn&#39;t seem to have a problem with startx prior to my Computer Name and thus hostname change)? Before the change, I would type &quot;startx&quot; on the command line and in doing so XDarwin would launch. I would then select the Full Screen or Rootless option and then my window manager (wmaker) would go to work and I&#39;d see a few icons and from there I could go to town.
<br><br>After changing the Computer Name and therefore, indirectly, the hostname, and when I would type &#39;startx&#39; on the command line in a new shell, XDarwin will launch but then when I select either Full Screen or Rootless, I see the following repeated in the shell that I started X from:
<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">Xlib: connection to &quot;:0.0&quot; refused by server<br>Xlib: No protocol specified
<br></blockquote><br>I&#39;m not an expert with regard to X so I wonder what to make of this. Also (even before I made the changes to the Computer Name), once I had X up and running, I could only run apps like OpenOffice from an xterm terminal shell but never from an OS X terminal shell. I suppose it must have something to do with how Xterm is configured ... are there some decent HowTos to read with regard to how to best set up one&#39;s bash profile on OS X in order to be able to run X apps from the normal terminal shell instead of requiring to run under Xterm, all in the context of MacPorts?
<br><br>Thanks for your suggestions!<br><br>TM<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style=""><div><span class="q">
<div>On Feb 23, 2007, at 1:15 AM, Tabitha McNerney wrote:</div><br></span><div><span class="e" id="q_110ef40d051a53bf_2"><blockquote type="cite"><span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
Hello,<br><br>Today I needed to change the hostname of a Mac (running 10.4.8) which has previously been installed with numerous MacPorts including XDarwin via XFree86.<span>&nbsp;</span><br><br>After changing the hostname and then running:
<br><br>$ startx<br><br>I could not connect to the X server, so I had to change the hostname back to the name that was used when the MacPorts were built and installed.<span>&nbsp;</span><br><br>I&#39;m not ultra familiar with X and I&#39;m wondering if anyone can suggest how to change the hostname without having to uninstall and then reinstall?
<span>&nbsp;</span><br><br>In general, is it a risk to many other MacPorts to later change the hostname?<br><br>Thanks for any suggestions,</span></blockquote></span></div></div><br><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<div>--&nbsp;</div><div>Kevin Ballard</div><div><a href="http://kevin.sb.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://kevin.sb.org</a></div><div><a href="mailto:eridius@macports.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
eridius@macports.org</a></div><div><a href="http://www.tildesoft.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.tildesoft.com</a></div><br></span> </div><br></div></blockquote></div>
<br>