<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rob Garth &#187; leopard</title>
	<atom:link href="http://blog.sumostyle.net/robg/tag/leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sumostyle.net/robg</link>
	<description>Mildly Useful Stuff</description>
	<lastBuildDate>Fri, 12 Aug 2011 00:36:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Leopard, sudo, proxies and environment variables</title>
		<link>http://blog.sumostyle.net/robg/2009/04/03/leopard-sudo-proxies-and-environment-variables/</link>
		<comments>http://blog.sumostyle.net/robg/2009/04/03/leopard-sudo-proxies-and-environment-variables/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 01:24:37 +0000</pubDate>
		<dc:creator>robg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[leopard]]></category>

		<guid isPermaLink="false">http://blog.sumostyle.net/robg/?p=311</guid>
		<description><![CDATA[Wow, just ran into this problem. The sudoers file on leopard has some new settings as default, which means that if you have environment variables set, they will not be inherited as superuser unless they are explicitly set. # Defaults specification Defaults        env_reset Defaults        env_keep += "BLOCKSIZE" Defaults   [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, just ran into this problem. The sudoers file on leopard has some new settings as default, which means that if you have environment variables set, they will not be inherited as superuser unless they are explicitly set.</p>
<pre><code># Defaults specification
Defaults        env_reset
Defaults        env_keep += "BLOCKSIZE"
Defaults        env_keep += "COLORFGBG COLORTERM"
Defaults        env_keep += "__CF_USER_TEXT_ENCODING"
Defaults        env_keep += "CHARSET LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE"
Defaults        env_keep += "LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME"
Defaults        env_keep += "LINES COLUMNS"
Defaults        env_keep += "LSCOLORS"
Defaults        env_keep += "SSH_AUTH_SOCK"
Defaults        env_keep += "TZ"
Defaults        env_keep += "DISPLAY XAUTHORIZATION XAUTHORITY"
Defaults        env_keep += "EDITOR VISUAL"</code></pre>
<p>At work I am behind a proxy, commands run as root from the terimnal are not inheriting my terminals proxy settings. MacPorts was failing.</p>
<p>There are 2 solutions.</p>
<p>Explicitly state the environment variable in the command line:</p>
<pre><code>$ sudo env http_proxy=http://proxy.url:port/ command</code></pre>
<p>or, add the environmant variable <code>"http_proxy"</code> to the list in <code>/etc/sudoers</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sumostyle.net/robg/2009/04/03/leopard-sudo-proxies-and-environment-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting Leopard to a Linux VNC Server</title>
		<link>http://blog.sumostyle.net/robg/2008/08/05/connecting-leopard-to-linux-vnc-server/</link>
		<comments>http://blog.sumostyle.net/robg/2008/08/05/connecting-leopard-to-linux-vnc-server/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 00:04:01 +0000</pubDate>
		<dc:creator>robg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://blog.sumostyle.net/robg/?p=176</guid>
		<description><![CDATA[Leopard has a nifty VNC implementation built right into the OS, you can share your screen from the Sharing preferences and connect to it using any VNC client. And there is a VNC client built right into the finder ⌘-K (Connect to server) allows you to enter in a vnc server in the form vnc://server:port. But [...]]]></description>
			<content:encoded><![CDATA[<p>Leopard has a nifty VNC implementation built right into the OS, you can share your screen from the Sharing preferences and connect to it using any VNC client. And there is a VNC client built right into the finder ⌘-K (Connect to server) allows you to enter in a vnc server in the form vnc://server:port.</p>
<p>But if you try and connect to an up to date Xvnc server it will probably fail, you need to specify that your VNC server uses the VNC protocol 3.3 for backwards compatibility, the command option is simply &#8220;-Protocol3.3&#8243; you will now be able to connect to your Xvnc server from Leopard using the built in viewer.</p>
<p>If you were to follow my earlier instruction for a <a href="http://blog.sumostyle.net/robg/?p=82" target="_blank">GDM VNC Server</a> then simply add this option to: /etc/xinetd.d/vnc</p>
<p><strong><em>UPDATE #1</em></strong></p>
<p>You will notice that the connecting to server box doesn&#8217;t go away, this is because Apple does not like the option: -securitytypes=none</p>
<p>Setup a password file using vncpasswd and remove the above option and add the option:</p>
<p>-rfbauth=/path/to/vncpasswd_file</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sumostyle.net/robg/2008/08/05/connecting-leopard-to-linux-vnc-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

