<?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>unixwiz &#187; Sun Ray</title>
	<atom:link href="http://blogs.sungeek.net/unixwiz/tag/sun-ray/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.sungeek.net/unixwiz</link>
	<description>anything dealing with *NIX or what ever I want to write about</description>
	<lastBuildDate>Fri, 02 Jul 2010 02:28:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Sun Ray 5 Early Access part 2</title>
		<link>http://blogs.sungeek.net/unixwiz/2009/07/25/sun-ray-5-early-access-part-2/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2009/07/25/sun-ray-5-early-access-part-2/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 23:48:26 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[Sun Ray]]></category>
		<category><![CDATA[Sun Ray @Home]]></category>
		<category><![CDATA[Fusion]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[MacPro]]></category>
		<category><![CDATA[Sun Ray 5 Early Access]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=1168</guid>
		<description><![CDATA[I finally got time again to start playing with Sun Ray 5 Early Access software. Now my current setup probably should not be used for any type of test more than simple single/dual user testing. But I did not want to test the software on the current working server. So I decided to install it [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got time again to start playing with Sun Ray 5 Early Access software. Now my current setup probably should not be used for any type of test more than simple single/dual user testing. But I did not want to test the software on the current working server. So I decided to install it in a VMWare image on my Mac Pro. The Mac Pro is more than suited to handle it and had plenty of free memory/processor/storage to use so there was no contention (I gave the VM 4 processors and 8 gig of ram)..</p>
<p>The kicker was getting VMWare Fusion to actually allocate the network cards the way I needed them. I gave the VM 2 nics (the Mac Pro has 2), however the only options that VMWare Fusion let you do is NAT, Host-Only, and Bridged. None of which will work if I want a private network for the Sun Ray&#8217;s. To fix this you will need to go and edit some files that VMWare Fusion uses. What I had to do was the following:</p>
<p>1. Open up the Terminal app<br />
2. Edit the file /Library/Application Support/VMware Fusion/boot.sh </p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;"><span class="kw2">sudo</span> vi /Library/Application\ Support/VMware\ Fusion/boot.<span class="kw2">sh</span></div>
</div>
<p>3. Comment out the following line:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;"><span class="st0">&quot;$LIBDIR/vmnet-bridge&quot;</span> -d /var/run/vmnet-bridge-vmnet0.pid vmnet0 <span class="st0">&#8221;</span></div>
</div>
<p>And then add 2 lines directly below that line, which tells vmware to bind the en0 physical device to the vmnet0 virtual device, same for en1 to vmnet2. Note you can not use vmnet1 or vmnet8 as those are for NAT and Host-only connections.</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;"><span class="st0">&quot;$LIBDIR/vmnet-bridge&quot;</span> -d /var/run/vmnet-bridge-vmnet0.pid vmnet0 en0<br />
<span class="st0">&quot;$LIBDIR/vmnet-bridge&quot;</span> -d /var/run/vmnet-bridge-vmnet2.pid vmnet2 en1</div>
</div>
<p>Once done, do the following:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;"><span class="kw2">sudo</span> /Library/Application\ Support/VMware\ Fusion/boot.<span class="kw2">sh</span> &#8211;restart</div>
</div>
<p>Now go in to your Mac System Preferences and configure the second network card for a private subnet (i.e. 192.168.128.0/24, and set the IP to be something like 192.168.128.254). </p>
<p>Now make sure that your VM is NOT started and is in a powered off state. Go in to the VM and under the settings for that VM add another network adapter, make sure it is selected as &#8220;Connected&#8221; it doesn&#8217;t matter what the device is configured to as we will change it later to an option that is not shown in that list.</p>
<p>Now you need to change the .VMX file so that it can use the new network device. So go in to the directory where you have your VM&#8217;s at and then cd in to the machine.vmwarevm directory (For example mine is called SolarisDev.vmwarevm)</p>
<p>Once in there you will need to edit the vmx file, mine is called SolarisDev.vmx. The first thing we are going to change is the ethernet0.connectionType property. Right now it could be any of the ones listed (host-only,bridged, nat). But we are going to change this to &#8220;custom&#8221;:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">ethernet0.<span class="re2">connectionType=</span><span class="st0">&quot;custom&quot;</span></div>
</div>
<p>Next find the entry for ethernet0.vnet, if it doesn&#8217;t exist create it and make it look like the line below. If it does exist and doesn&#8217;t match that below, make it match that:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">ethernet0.vnet = <span class="st0">&quot;vmnet0&quot;</span></div>
</div>
<p>Now we need to do the same for the ethernet1 entries. The only difference to what is above is vmnet0 changes to vmnet2. Once the changes are made you can save the file and start up your Solaris VM. Now what ever network is on your en0 connection on your Mac should be what is connected to the e1000g0 network on the Solaris side. I used the e1000g0 as the &#8220;public&#8221; side of the Sun Ray server. The e1000g1 interface will be what ever is connected on the en1 connection on the Mac side. I used this adapter for the private Sun Ray Lan.</p>
<p>You should be able to finish following the instructions on the Sun Ray wiki now and get everything configured. </p>
<p>To test the soft client, I set up LAN Connections on the Sun Ray Server:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">/opt/SUNWut/sbin/utadm -L on</div>
</div>
<p>I then installed the soft client in another VM on the same machine that only had access to the public network. You then can tell the soft client what the IP of the Sun Ray server is and it will connect. Pretty darn cool that the soft client works with minimal config.</p>
<p>This can probably be done on a MacBook Pro as well, if you use the wireless connection as the public side and the wired as the private side. Nice way to do a little demo in one computer.</p>
<p>For reference here is what my network section of the .vmx file looks like :</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">ethernet0.addressType = <span class="st0">&quot;generated&quot;</span><br />
ethernet0.connectionType = <span class="st0">&quot;custom&quot;</span><br />
ethernet0.generatedAddress = <span class="st0">&quot;00:0c:29:f8:29:3b&quot;</span><br />
ethernet0.generatedAddressOffset = <span class="st0">&quot;0&quot;</span><br />
ethernet0.linkStatePropagation.<span class="kw3">enable</span> = <span class="st0">&quot;TRUE&quot;</span><br />
ethernet0.pciSlotNumber = <span class="st0">&quot;32&quot;</span><br />
ethernet0.present = <span class="st0">&quot;TRUE&quot;</span><br />
ethernet0.virtualDev = <span class="st0">&quot;e1000&quot;</span><br />
ethernet0.vnet = <span class="st0">&quot;vmnet0&quot;</span><br />
ethernet0.wakeOnPcktRcv = <span class="st0">&quot;FALSE&quot;</span><br />
ethernet1.addressType = <span class="st0">&quot;generated&quot;</span><br />
ethernet1.connectionType = <span class="st0">&quot;custom&quot;</span><br />
ethernet1.generatedAddress = <span class="st0">&quot;00:0c:29:f8:29:45&quot;</span><br />
ethernet1.generatedAddressOffset = <span class="st0">&quot;10&quot;</span><br />
ethernet1.linkStatePropagation.<span class="kw3">enable</span> = <span class="st0">&quot;TRUE&quot;</span><br />
ethernet1.pciSlotNumber = <span class="st0">&quot;35&quot;</span><br />
ethernet1.present = <span class="st0">&quot;TRUE&quot;</span><br />
ethernet1.virtualDev = <span class="st0">&quot;e1000&quot;</span><br />
ethernet1.vnet = <span class="st0">&quot;vmnet2&quot;</span><br />
ethernet1.wakeOnPcktRcv = <span class="st0">&quot;FALSE&quot;</span></div>
</div>
<p>References:<br />
Sun Ray Software 4.2 Wiki:<a href="http://wikis.sun.com/display/SRSS4dot2/Home"> http://wikis.sun.com/display/SRSS4dot2/Home</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2009/07/25/sun-ray-5-early-access-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Ray Software 5 Early Access</title>
		<link>http://blogs.sungeek.net/unixwiz/2009/07/12/sun-ray-software-5-early-access/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2009/07/12/sun-ray-software-5-early-access/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 00:23:58 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Sun Ray]]></category>
		<category><![CDATA[Sun Ray @Home]]></category>
		<category><![CDATA[Early Access]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=1162</guid>
		<description><![CDATA[Started installing the Sun Ray 5 Early Access software tonight. Some things I found so far that weren&#8217;t where I thought they should have been in the wiki docs: 1. It requires that you have Java 1.6 on the machine. Solaris 10 Update 7 does not come with Java 1.6, so I had to download [...]]]></description>
			<content:encoded><![CDATA[<p>Started installing the Sun Ray 5 Early Access software tonight. Some things I found so far that weren&#8217;t where I thought they should have been in the wiki docs:</p>
<p>1. It requires that you have Java 1.6 on the machine. Solaris 10 Update 7 does not come with Java 1.6, so I had to download and install it.</p>
<p>2. It needed apache tomcat installed, this is for the admin gui. </p>
<p>Unfortunately I only got as far as getting it installed. I was testing it in a Solaris VM machine on my Mac, however I was having problems getting it to bind to the second ethernet interface. So that will be for later.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2009/07/12/sun-ray-software-5-early-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the deal with blade servers</title>
		<link>http://blogs.sungeek.net/unixwiz/2007/11/08/what-is-the-deal-with-blade-servers-2/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2007/11/08/what-is-the-deal-with-blade-servers-2/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 02:05:57 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[Sun Ray]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/2007/11/08/what-is-the-deal-with-blade-servers-2/</guid>
		<description><![CDATA[I went to a presentation today by a hardware vendor. Once again I am trying to understand why people think Blade server technology is such a great think to have. For example the vendor today had a blade system that was 10 RU high, and had slots for 10 blades. So basicly you have 10 [...]]]></description>
			<content:encoded><![CDATA[<p>I went to a presentation today by a hardware vendor. Once again I am trying to understand why people think Blade server technology is such a great think to have. For example the vendor today had a blade system that was 10 RU high, and had slots for 10 blades. So basicly you have 10 1RU servers being mounted vertically in a 10 RU chassis. What does this actually buy you? Not to much of anything, you still have 10 independent servers to manage, you still had all the cables running to the chassis as you would if you had 10 1RU servers. The <b>only</b> thing you save is the number of power cords you need. I will say something about this vendor though, if I were to ever buy a Blade system, it would probably be theirs. So who was this vendor? Sun Microsystems. Some of the features that I think they have that other vendors don&#8217;t are the following:</p>
<ul>
<li>SPARC, AMD Opteron, and Intel Xeon processor-based server modules. The SPARC modules are based off of the Niagara chip set.</li>
<li>4 hot swappable hard drives per blade. This is a <b>MAJOR</b> issue with other vendors as they don&#8217;t provide hot-swappable hard drives, which means you have to take the blade out of service to replace the drives.</li>
<li>Twice the memory support that most other vendors. (up to 64GB)</li>
<li>Price &#8211; Just comparing list prices between the &#8220;top 3&#8243; shows that Sun has more bang for the buck.</li>
</ul>
<p>I am not an advocate on blades, I think they are just a way for vendors to play buzz word bingo with people who don&#8217;t know better. </p>
<p>One of the other cool things that was talked about is the <a href="http://www.sun.com/storagetek/disk_systems/enterprise/5800/">Sun StorageTek 5800</a> aka Honeycomb. When they first started talking about it, it almost sounded like they were talking about WinFS that was supposed to be in Longhorn. But the more they talked about it, the more I saw that it was not WinFS, but a really cool and really fast data storage system. Wish I could win the lottery to buy one <img src='http://blogs.sungeek.net/unixwiz/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  ..</p>
<p>Another server I would absolutly love to have at home is the <a href="http://www.sun.com/servers/x64/x4500/">Sun Fire X4500</a> aka Thumper, especially now that they are offering 1TB drives in it, which means it now holds 48TB of disk space. That is a lot of freaking space to have in a 5U format. If I only had the money, heck I would settle for the 24tb model. Add in <a href="http://www.sun.com/software/vdi/">Sun Virtual Desktop Infrastructure</a> to the thumper and you have one hell of a house server. You could put Sun Rays hanging off of the thumper and each Sun Ray could have Solaris or Windows or Linux or what ever desktop you want. And because all the data is stored on the thumper in a ZFS file system it is automatically protected by raidz (assuming you set it up that way), and you could share all your file with the other people in your house. </p>
<p>And the last but not least coolest thing they talked about was the new Niagara 2 chips. Some notable features:</p>
<ol>
<li>up to 64 simultaneous threads at a time &#8211; which means you basicly have an E10K/F12K/F15K in a single 2 RU box</li>
<li>One floating point unit per core. Whereas the Niagara 1 chips had one floating point for the CPU, the Niagara 2&#8242;s have 1 per core, which makes the chip even faster.</li>
<li>10 GB Ethernet on the silicon &#8211; if gigabit ethernet was not fast enough for you, then you can have up to 2 10GB ethernet connections that are piped directly in to the CPU. </li>
</ol>
<p>I can&#8217;t wait to get some of the new servers in with the Niagara 2 chips in them, they are going to spank the Niagara one machines. </p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2007/11/08/what-is-the-deal-with-blade-servers-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Ray&#8217;s in Hospitals</title>
		<link>http://blogs.sungeek.net/unixwiz/2006/11/06/sun-rays-in-hospitals/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2006/11/06/sun-rays-in-hospitals/#comments</comments>
		<pubDate>Tue, 07 Nov 2006 03:42:57 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[Sun Ray]]></category>
		<category><![CDATA[Sun Ray @Home]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=662</guid>
		<description><![CDATA[After reading ThinGuy&#8217;s Blog: Are PC&#8217;s Killing Health Care? I can&#8217;t agree more&#8230; It got me to thinking when I was in the emergency room of a local hospital last summer. (Long story, but spent a while there) Anyways, while I was there (I have not been to the ER in ages and the last [...]]]></description>
			<content:encoded><![CDATA[<p>After reading <a href="http://blogs.sun.com/ThinGuy/entry/pc%27s_killing_health_care%3F">ThinGuy&#8217;s Blog: Are PC&#8217;s Killing Health Care?</a> I can&#8217;t agree more&#8230; It got me to thinking when I was in the emergency room of a local hospital last summer. (Long story, but spent a while there)  Anyways, while I was there (I have not been to the ER in ages and the last time I was everything was still done on paper), they popped down a little thing on the wall and he behind it was a &#8220;Windows Thin client&#8221;. The nurse did nothing but b@#*h about how slow it was. I watched and it looked to be running a Wyse Client and using Windows from some place that was not local. I got to thinking about how a Sun Ray environment would work in this hospital. Here are some ideas I thought of while laying in that short bed (I am over 6&#8217;5&#8243;) for 5 hours.</p>
<ol>
<li>Instead of having the paper charts, when you arrive, your are &#8220;assigned&#8221; a smart card and all your information follows you on that card no matter where you go (AKA HCHD, Hospital Chart Hot Desking). For example I had to end up going to X-Ray, and the X-Ray tech did not have the complete orders and started taking Chest X-Ray&#8217;s instead of X-Ray&#8217;s of my knee. (Later found out that they wanted both, but the doctor forgot to put the knee one on the order sheet, if he had seen my chart he would have known that the original reason I was there was for knee problems). </li>
<li>The monitoring devices in the room (BP/Heart Rate/oxygen/etc) could be attached to the Sun Ray and therefore your info logged and displayed on the Sun Ray at a click of the button.</li>
<li>Each patient could be given their own card for surfing the web, etc.. (if they are ambulatory enough to do this) </li>
<li>By using the smart card to keep track of your stats, there is no paper to accidentally get &#8220;lost&#8221; or stolen (helps with HIPPA).</li>
<li>Be a lot faster than the current Wyse Terminals they were using as they would not have to wait for it to boot.</li>
<li>Security, there isn&#8217;t a day go by that I don&#8217;t read about some one losing some one else&#8217;s information. I.E. VA Hospital, (which uses some Sun Rays in areas around where I am), This would eliminate all of these loses, if everyone was forced to use it. </li>
<li>All Labs/X-Rays posted directly to the persons &#8220;card&#8221;</li>
</ol>
<p>Granted some of the above would be a feat to pull off, but it can be done.</p>
<p>I think that using Sun Ray&#8217;s is the coolest thing, especially now that I have it set up for all the people in my group to pull their card out of their Office Sun Ray and plug it in to their Home Sun Ray and everything is still there. (If I can just get the performance problems worked out it would be really killer, but something about the combination of Solaris 10, Sun Ray 4 is causing me some slowness, and I am not sure where it is exactly. )</p>
<p>Now if more people realize the benefits of using Sun Ray&#8217;s over other &#8220;Chubby Clients&#8221; Sun Ray&#8217;s would take over the world.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2006/11/06/sun-rays-in-hospitals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fun with Sun Desktop Manager</title>
		<link>http://blogs.sungeek.net/unixwiz/2006/10/26/fun-with-sun-desktop-manager/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2006/10/26/fun-with-sun-desktop-manager/#comments</comments>
		<pubDate>Fri, 27 Oct 2006 02:10:18 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Sun Ray]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=657</guid>
		<description><![CDATA[The other day I showed Chris how to install a new Sun Ray server. (this one is a 10 processor domain on a E25K, running Solaris 10, ZFS and everything new). Well we switched it over to be the primary Sun Ray server last night and noticed some slowness. So we decided to install APOC [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I showed <a href="http://www.cboyer.net/">Chris</a> how to install a new Sun Ray server. (this one is a 10 processor domain on a E25K, running Solaris 10, ZFS and everything new). Well we switched it over to be the primary Sun Ray server last night and noticed some slowness. So we decided to install <strike>APOC</strike> Sun Desktop Manager on it to see if we could disable some stuff to make the JDS enviroment run a little faster. The install of the console and server seemed to go fine, but every time we tried to run the &#8220;svcadm enable apocd/udp&#8221; it would fail and go in to maintenance mode. It seems that when ever the install happened, the info for the apocd/udp was not populated in to the inetadm..<br />
The first thing I did was look at the /var/adm/messages and saw this:</p>
<div class="codesnip-container" >Oct 26 10:12:06 megatron inetd[280]: [ID 702911 daemon.error] Property &#8216;name&#8217; of instance svc:/network/apocd/udp:default is missing, inconsistent or invalid<br />
Oct 26 10:12:06 megatron inetd[280]: [ID 702911 daemon.error] Property &#8216;endpoint_type&#8217; of instance svc:/network/apocd/udp:default is missing, inconsistent or inval<br />
id<br />
Oct 26 10:12:06 megatron inetd[280]: [ID 702911 daemon.error] Property &#8216;isrpc&#8217; of instance svc:/network/apocd/udp:default is missing, inconsistent or invalid<br />
Oct 26 10:12:06 megatron inetd[280]: [ID 702911 daemon.error] Property &#8216;wait&#8217; of instance svc:/network/apocd/udp:default is missing, inconsistent or invalid<br />
Oct 26 10:12:06 megatron inetd[280]: [ID 702911 daemon.error] Unspecified inetd_start method for instance svc:/network/apocd/udp:default<br />
Oct 26 10:12:06 megatron inetd[280]: [ID 702911 daemon.error] Invalid configuration for instance svc:/network/apocd/udp:default, placing in maintenance</div>
<p>Interesting, we then spent a while trying to figure out what was supposed to be in there. Running &#8220;inetadm -l network/apocd/udp&#8221; produced this:</p>
<div class="codesnip-container" ># inetadm -l network/apocd/udp<br />
SCOPE    NAME=VALUE<br />
Error: Required property name is missing.<br />
Error: Required property endpoint_type is missing.<br />
Error: Required property proto is missing.<br />
Error: Required property isrpc is missing.<br />
Error: Required property wait is missing.<br />
Error: Required property exec is missing.<br />
Error: Required property user is missing.<br />
default  bind_addr=&#8221;"<br />
default  bind_fail_max=-1<br />
default  bind_fail_interval=-1<br />
default  max_con_rate=-1<br />
default  max_copies=-1<br />
default  con_rate_offline=-1<br />
default  failrate_cnt=40<br />
default  failrate_interval=60<br />
default  inherit_env=TRUE<br />
default  tcp_trace=FALSE<br />
default  tcp_wrappers=FALSE</div>
<p>What I ended up doing was this:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">inetadm -m network/apocd/udp <span class="re2">name=</span>apocd<br />
inetadm -m network/apocd/udp <span class="re2">endpoint_type=</span>dgram<br />
inetadm -m network/apocd/udp <span class="re2">proto=</span>udp<br />
inetadm -m network/apocd/udp <span class="re2">isrpc=</span>FALSE<br />
inetadm -m network/apocd/udp <span class="re2">wait=</span>TRUE<br />
inetadm -m network/apocd/udp <span class="re2">exec=</span><span class="st0">&quot;/usr/lib/apoc/apocd inetdStart&quot;</span><br />
inetadm -m network/apocd/udp <span class="re2">user=</span><span class="st0">&quot;daemon&quot;</span><br />
inetadm -l network/apocd/udp<br />
SCOPE &nbsp; &nbsp;<span class="re2">NAME=</span>VALUE<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="re2">name=</span><span class="st0">&quot;apocd&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="re2">endpoint_type=</span><span class="st0">&quot;dgram&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="re2">proto=</span><span class="st0">&quot;udp&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="re2">isrpc=</span>FALSE<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="re2">wait=</span>TRUE<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="re2">exec=</span><span class="st0">&quot;/usr/lib/apoc/apocd inetdStart&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="re2">user=</span><span class="st0">&quot;daemon&quot;</span><br />
default &nbsp;<span class="re2">bind_addr=</span><span class="st0">&quot;&quot;</span><br />
default &nbsp;<span class="re2">bind_fail_max=</span><span class="nu0">-1</span><br />
default &nbsp;<span class="re2">bind_fail_interval=</span><span class="nu0">-1</span><br />
default &nbsp;<span class="re2">max_con_rate=</span><span class="nu0">-1</span><br />
default &nbsp;<span class="re2">max_copies=</span><span class="nu0">-1</span><br />
default &nbsp;<span class="re2">con_rate_offline=</span><span class="nu0">-1</span><br />
default &nbsp;<span class="re2">failrate_cnt=</span><span class="nu0">40</span><br />
default &nbsp;<span class="re2">failrate_interval=</span><span class="nu0">60</span><br />
default &nbsp;<span class="re2">inherit_env=</span>TRUE<br />
default &nbsp;<span class="re2">tcp_trace=</span>FALSE<br />
default &nbsp;<span class="re2">tcp_wrappers=</span>FALSE</p>
<p>
<span class="re3"># svcs apocd/udp</span><br />
STATE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;STIME &nbsp; &nbsp;FMRI<br />
maintenance &nbsp; &nbsp;<span class="nu0">11</span>:<span class="nu0">21</span>:<span class="nu0">41</span> svc:/network/apocd/udp:default<br />
<span class="re3"># svcadm disable apocd/udp</span><br />
<span class="re3"># svcadm <span class="kw3">enable</span> apocd/udp</span><br />
<span class="re3"># svcs apocd/udp</span><br />
STATE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;STIME &nbsp; &nbsp;FMRI<br />
online &nbsp; &nbsp; &nbsp; &nbsp; <span class="nu0">11</span>:<span class="nu0">36</span>:<span class="nu0">52</span> svc:/network/apocd/udp:default</div>
</div>
<p>So now apoc runs, but now only part of the config stuff that I set in the Desktop Manager actually works. For example, I got the splash screen not to show, but I can&#8217;t get the default terminal to be dtterm instead of gnome-terminal (dtterm uses about 7meg of ram, whereas gnome-terminal uses about 78 meg..Take that and add about 20 users with about 10 or 15 terminal windows open and you have 2gig of ram for dtterm vs 23.4 gig of ram) So now we are trying to figure out some other performance enhancements. Thinking about putting a less intensive graphical environment on it for the people to use.</p>
<p>Any one have some good tips for speeding up a 10 x 1.2GHz UltraIII box with 16gb of ram running Solaris 10?</p>
<p>Technorati Tags: <a href="http://technorati.com/tag/Sun+Ray" rel="tag">Sun Ray</a>, <a href="http://technorati.com/tag/Solaris+10" rel="tag"> Solaris 10</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2006/10/26/fun-with-sun-desktop-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interesting Sun Ray problem</title>
		<link>http://blogs.sungeek.net/unixwiz/2006/09/14/interesting-sun-ray-problem/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2006/09/14/interesting-sun-ray-problem/#comments</comments>
		<pubDate>Fri, 15 Sep 2006 03:05:53 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Computer Hardware]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[Sun Ray]]></category>
		<category><![CDATA[Thin Clients]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Zones/Containers]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=636</guid>
		<description><![CDATA[I got called the other night by our operations group because the keyboard and mouse would not work on their 3 head group of Sun Ray 150&#8242;s. So I went in and killed their session and had them restart it, did not work. So I went looking in the log files and saw this: Sep [...]]]></description>
			<content:encoded><![CDATA[<p>I got called the other night by our operations group because the keyboard and mouse would not work on their 3 head group of Sun Ray 150&#8242;s. So I went in and killed their session and had them restart it, did not work. So I went looking in the log files and saw this:</p>
<div class="codesnip-container" >Sep 11 17:53:41 [10.198.11.221.2.2]  0&#215;0.0x1c392b7 0:3:ba:3c:1b:c1 USB: enable change: 2 lost enable state!<br />
Sep 11 17:53:41 [10.198.11.221.2.2]  0&#215;0.0x1c392b7 0:3:ba:3c:1b:c1 USB: enable change: 4 lost enable state!<br />
Sep 11 20:28:44 [10.198.11.221.2.2]  0&#215;0.0x2a1 0:3:ba:3c:1b:c1 USB: usb port 1 overcurrent<br />
Sep 11 20:28:46 [10.198.11.221.2.2]  0&#215;0.0&#215;307 0:3:ba:3c:1b:c1 USB: usb port 2 overcurrent<br />
Sep 11 20:28:46 [10.198.11.221.2.2]  0&#215;0.0x36d 0:3:ba:3c:1b:c1 USB: usb port 3 overcurrent<br />
Sep 11 20:28:47 [10.198.11.221.2.2]  0&#215;0.0x3d3 0:3:ba:3c:1b:c1 USB: usb port 4 overcurrent<br />
Sep 11 20:28:48 [10.198.11.221.2.2]  0&#215;0.0&#215;439 0:3:ba:3c:1b:c1 USB: usb port 5 overcurrent<br />
Sep 11 20:45:34 [10.198.11.221.2.2]  0&#215;0.0&#215;291 0:3:ba:3c:1b:c1 USB: usb hub port 4 overcurrent!<br />
Sep 11 20:45:35 [10.198.11.221.2.2]  0&#215;0.0x2f9 0:3:ba:3c:1b:c1 USB: usb hub port 1 overcurrent!<br />
Sep 11 20:45:36 [10.198.11.221.2.2]  0&#215;0.0x35f 0:3:ba:3c:1b:c1 USB: usb hub port 2 overcurrent!<br />
Sep 11 20:45:37 [10.198.11.221.2.2]  0&#215;0.0x3c5 0:3:ba:3c:1b:c1 USB: usb hub port 3 overcurrent!<br />
Sep 11 20:45:38 [10.198.11.221.2.2]  0&#215;0.0x42b 0:3:ba:3c:1b:c1 USB: usb hub port 5 overcurrent!<br />
Sep 11 20:46:21 [10.198.11.221.2.2]  0&#215;0.0&#215;304 0:3:ba:3c:1b:c1 USB: usb hub port 1 overcurrent!<br />
Sep 11 20:46:22 [10.198.11.221.2.2]  0&#215;0.0x36a 0:3:ba:3c:1b:c1 USB: usb hub port 2 overcurrent!<br />
Sep 11 20:46:23 [10.198.11.221.2.2]  0&#215;0.0x3d0 0:3:ba:3c:1b:c1 USB: usb hub port 3 overcurrent!<br />
Sep 11 20:46:24 [10.198.11.221.2.2]  0&#215;0.0&#215;436 0:3:ba:3c:1b:c1 USB: usb hub port 4 overcurrent!<br />
Sep 11 20:46:25 [10.198.11.221.2.2]  0&#215;0.0x49c 0:3:ba:3c:1b:c1 USB: usb hub port 5 overcurrent!</div>
<p>Well that could not be good. So I ended up going in to the office. Tried unplugging the Sun Ray and plugging it back in. This is when I saw the 9 D error icon. Nice little icon with a picture of a USB connector and a yellow triangle. So I unplugged it and disconnected the keyboard and mouse and then plugged it back in. Still got the same error. The funny thing about the error is, it is listed as this in the docs:</p>
<blockquote><p>This is an over current condition on the USB bus, i.e., the total number of devices draws too much current . Consider using a powered hub.</p></blockquote>
<p>So now I ended up swaping it out with one that was in my office and rebuilding the multi-head group, and they were all set. The interesting thing about it is that the status LED stayed green, instead of turning amber. So the next morning I tried it on a different server (the original server it was attached to is running SRSS 2.0 still) that was running SRSS 3.1, this time nothing showed up in the log files, but the Sun Ray still showed the USB 9 icon and the keyboard and mouse did not work. So I ended up calling it in for replacement. It is nice that the Sun Ray&#8217;s have a long warrenty period. This one was bought 2 or 3 years ago. </p>
<p>In an unrelated note, I have to go in early to get a power backplane replaced in one of our V890&#8242;s because we have went through three power supplies in the PS0 slot in under a month. The bad part about this is the 890 has 11 zones on it and 1TB of disk, so we are going to have some services out while Sun replaces the backplane and power supply. Hopefully this will fix it though.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2006/09/14/interesting-sun-ray-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>new &#8220;ultra thin&#8221; client?</title>
		<link>http://blogs.sungeek.net/unixwiz/2006/08/03/new-ultra-thin-client/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2006/08/03/new-ultra-thin-client/#comments</comments>
		<pubDate>Fri, 04 Aug 2006 02:52:56 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Sun Ray]]></category>
		<category><![CDATA[Sun Ray @Home]]></category>
		<category><![CDATA[Thin Clients]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=624</guid>
		<description><![CDATA[I received a &#8220;big&#8221; envelope in the mail the other day, it was from Axel. (No Justin, not Axel Rose but the company Axel www.axel.com). In it they were talking about their new Ultra-Think Client techonology which is now available. What is interesting is their little info sheet that accompanied it. What follows is a [...]]]></description>
			<content:encoded><![CDATA[<p>I received a &#8220;big&#8221; envelope in the mail the other day, it was from Axel. (No Justin, not Axel Rose <img src='http://blogs.sungeek.net/unixwiz/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  but the company Axel <a href="http://www.axel.com">www.axel.com</a>). In it they were talking about their new Ultra-Think Client techonology which is now available. What is interesting is their little info sheet that accompanied it. What follows is a copy of what they had on the sheet:</p>
<blockquote>
<p>ULTRA-THIN CLIENT TECHNOLOGY is now available!!!</p>
<p>AXEL Inc has developed a unique technical approach, geared toward providing the following benefits:</p>
<ul>
<li>Optimized Electronics</li>
<li>No Opertaing System</li>
<li>No Local Administration necessary</li>
<li>Embedded native client for RDP and ICA</li>
<li>Emulation for 5250, 3270, UNIX</li>
<li>Multiple Independent Sessions</li>
<li>100% Virus immunity</li>
</ul>
<p>&#8230;Regardless of the size of your organization, type of host, servers, or application if reliability, security and cost of ownership are your primary concerns, <b><i>the ultra-thin client technology is the right answer.</i></b></p>
<p><b>Consider the following: (applicable to PC&#8217;s and OS-based thin clients)</b><br />
Anti virus license &#8211; Cost per PC or PC based thin client &#8211; $30.00 / year -<br />
Usual warranty coverage for PC&#8217;s &#8211; 3 years<br />
Up to 70% of standard PC&#8217;s (and thin clients based on this architecture) resources are dedicated to the operating system<br />
Extensive usage of network bandwidth capacity.<br />
Up grade license required for various application sold &#8211; per PC or user.<br />
Multiple support sources needed from various vendors depending on the nature of the problem</p>
<p><b>And then consider, with Axel&#8217;s Ultra Thin-Client Technology&#8230;</b></p>
<p>No need for Anti-Virus license<br />
5 years warranty<br />
Resources fully dedicated to applications<br />
Low Bandwidth usage thanks to smart display management<br />
Upgrades unnecessary<br />
Support from one source</p>
</blockquote>
<p>Now I have never used one of the Axel Terminal&#8217;s, but I have used nearly every type of Sun Ray from Sun Microsystems. What I find funny about this ad is that what they are talking about is nothing new. Sun has been doing it for years. What is intresting is that it says there is no operating system in the thin client. But if it supports all those emulations it must have some sort of OS in them wouldn&#8217;t it? I like how it says that it supports &#8220;Multiple Independent Sessions&#8221;, but from looking at the specs it doesn&#8217;t look like it supports the hot desking like the Sun Ray&#8217;s do. I really like Sun&#8217;s hot desking feature when I can go between my house, office and off-site data center and still have access to the same desktop in all three places. My sessions also stays where it was when the network goes out (like tonight for some reason we were having hit and miss getting to the sun ray server at the office, but our sessions were always in the state that they were when the network went out.</p>
<p>Doing a quick search on google it also looks like the price of these terminals may be more than Sun&#8217;s Sun Ray thin clients. Sorry Axel, nice flyer, but I will stick with Sun Ray&#8217;s. </p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2006/08/03/new-ultra-thin-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Ray 270</title>
		<link>http://blogs.sungeek.net/unixwiz/2006/07/11/sun-ray-270/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2006/07/11/sun-ray-270/#comments</comments>
		<pubDate>Wed, 12 Jul 2006 02:32:54 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Sun]]></category>
		<category><![CDATA[Sun Ray]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=607</guid>
		<description><![CDATA[Sun released the new RoHS complaint Sun Ray 270 today. Basicly the same as the Sun Ray 170, but one thing that needs changed on their page is a pretty &#8220;obvious&#8221; error.. Down under the hardware requirements it says : A monitor, keyboard, and mouse for each Sun Ray 270. Now I can see the [...]]]></description>
			<content:encoded><![CDATA[<p>Sun released the new RoHS complaint <a href="http://www.sun.com/sunray/sunray270/index.xml">Sun Ray 270</a> today. Basicly the same as the Sun Ray 170, but one thing that needs changed on their page is a pretty &#8220;obvious&#8221; error.. Down under the hardware requirements it says :</p>
<blockquote><p>A monitor, keyboard, and mouse for each Sun Ray 270.</p></blockquote>
<p>Now I can see the need for a keyboard and mouse, but not a montior, especially when it has a built in LCD Panel&#8230; Specificly if it does not have the built in dual head feature like the <a href="http://www.sun.com/sunray/sunray2fs/index.xml">Sun Ray 2FS</a> then why is a montior needed? I think they just probably copied a page from a different product.</p>
<p>Technorati Tags: <a href="http://technorati.com/tag/Sun+Ray" rel="tag">Sun Ray</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2006/07/11/sun-ray-270/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sun Ray @Home howto part 1 (quick and dirty)</title>
		<link>http://blogs.sungeek.net/unixwiz/2006/03/22/sun-ray-home-howto-part-1/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2006/03/22/sun-ray-home-howto-part-1/#comments</comments>
		<pubDate>Thu, 23 Mar 2006 03:30:43 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Sun Ray]]></category>
		<category><![CDATA[Sun Ray @Home]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=552</guid>
		<description><![CDATA[This part will cover how I accomplished getting a Sun Ray to run at home over a DSL and Cable modem. This is using SRSS 3.1. (Part 2 which I will do later is for SRSS 2.0 and 3.0) This is a quick and dirty howto, and assumes that you already have SRSS 3.1 up [...]]]></description>
			<content:encoded><![CDATA[<p>This part will cover how I accomplished getting a Sun Ray to run at home over a DSL and Cable modem. This is using SRSS 3.1. (Part 2 which I will do later is for SRSS 2.0 and 3.0) <em>This is a quick and dirty howto, and assumes that you already have SRSS 3.1 up and running on your local network and have some understanding of DNS, ipfilter, cisco access lists, (or equivelent)</em></p>
<p>Here is a quick overview</p>
<ol>
<li>Make sure specific ports are open to the server</li>
<li>Turn on LAN connections</li>
<li>Make sure the Sun Ray has the latest firmware for SRSS 3.1 that is available</li>
<li>Add DNS entries</li>
<li>Configure Home network</li>
<li>Enjoy Sun Ray from Home</li>
</ol>
<p><b>More Detailed Instructions</b></p>
<p><i>Configure Network to allow Specific ports to Sun Ray Server</i></p>
<p>These are the rules I used on my Cisco router (10.10.10.101 is the Public IP address of the server, just changed to hide it&#8217;s real ip) :</p>
<div class="codesnip-container" >access-list 16 permit tcp any host 10.10.10.101 eq 7007<br />
access-list 16 permit tcp any host 10.10.10.101 eq 7008<br />
access-list 16 permit tcp any host 10.10.10.101 eq 7009<br />
access-list 16 permit udp any host 10.10.10.101 eq 7009<br />
access-list 16 permit tcp any host 10.10.10.101 eq 7010<br />
access-list 16 permit tcp any host 10.10.10.101 eq 7011<br />
access-list 16 permit tcp any host 10.10.10.101 eq 7012<br />
access-list 16 permit tcp any host 10.10.10.101 eq 7013<br />
access-list 16 permit udp any host 10.10.10.101 eq 7013<br />
access-list 16 permit udp any host 10.10.10.101 range 40000 42000<br />
access-list 16 permit tcp any host 10.10.10.101 eq 80</div>
<p>Now that I have these ACL&#8217;s setup, ANY machine/Sun Ray on the Internet can get to the Sun Ray server. So to fix this I did the following:</p>
<p>Setup a Web server that runs on the Sun Ray server (or some place else if you wish). The purpose of this web server is to allow your users to &#8220;register&#8221; their Sun Ray to use the server. When I say &#8220;register&#8221; what I mean is this:</p>
<ol>
<li>By default I have IPFilter configured (the machine is running Solaris 10) to deny all incoming traffic except for port 80</li>
<li>The User then must go to the web server and log in with their username and password and on the web page it will ask them if their IP is correct, if it is not then they can update it. Once they update it a cron job runs in the background that creates new IPFilter rules and reloads the ipfilter firewall.</li>
<li>User can then power on their Sun Ray, they will then get the Secured Login where they have to have either a registered Java Card, or they can register their Java Card if they have a valid username and password on the box.</li>
<li>User should now be able to log in</li>
</ol>
<p>The reason I did it this way was I did not want any one in the world to be able to configure their Sun Ray to see my Sun Ray server. This way I am only allowing &#8220;known&#8221; people to get to it.</p>
<p>The way I store the IP&#8217;s is in a mysql db on the SunRay server. To reload the firewall I run this script as a cronjob that runs every minute:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;"><span class="re3">#!/bin/ksh</span><br />
<span class="re3">#purpose is to reload the ipfilter firewall rules <span class="kw1">for</span> when a new sunray needs access to the server</span><br />
<span class="re3">#Runs every minute from a cron job</span><br />
<span class="kw2">rm</span> -f /root/ipf.conf.tmp<br />
/usr/<span class="kw3">local</span>/bin/php /root/exportipf &gt; /root/ipf.conf.tmp</p>
<p><span class="re2">FILESIZE=</span><span class="st0">&quot;`wc -l /root/ipf.conf.tmp |awk &#8216;{print $1}&#8217;`&quot;</span><br />
<span class="kw1">if</span> <span class="br0">&#91;</span><span class="br0">&#91;</span> <span class="re0">$<span class="br0">&#123;</span>FILESIZE<span class="br0">&#125;</span></span> -gt <span class="nu0">0</span> <span class="br0">&#93;</span><span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">rm</span> -f /etc/ipf/ipf.conf<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">cat</span> /etc/ipf/ipf.conf.<span class="kw2">head</span> &gt; /etc/ipf/ipf.conf<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">cat</span> /root/ipf.conf.tmp &gt;&gt; /etc/ipf/ipf.conf<br />
&nbsp; &nbsp; &nbsp; &nbsp; ipf -Fa -f /etc/ipf/ipf.conf<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">rm</span> -f /root/ipf.conf.tmp<br />
<span class="kw1">fi</span></div>
</div>
<p>The contents of the ipf.conf.head file look like this:</p>
<div class="codesnip-container" >block in log on ge0 all<br />
pass out quick on ge0 all keep state<br />
pass in quick on ge0 proto tcp from any to any port = 80 flags S keep state</div>
<p>The exportipf file is a php script that looks like this:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">&lt; ?<br />
<a href="http://www.php.net/mysql_connect"><span class="kw3">mysql_connect</span></a><span class="br0">&#40;</span><span class="st0">&quot;localhost&quot;</span>,<span class="st0">&quot;root&quot;</span><span class="br0">&#41;</span>;<br />
<a href="http://www.php.net/mysql_select_db"><span class="kw3">mysql_select_db</span></a><span class="br0">&#40;</span><span class="st0">&quot;sunray&quot;</span><span class="br0">&#41;</span>;<br />
<span class="re0">$result</span>=<a href="http://www.php.net/mysql_query"><span class="kw3">mysql_query</span></a><span class="br0">&#40;</span><span class="st0">&quot;select count(*) as count from homeusers where active=&#8217;N'&quot;</span><span class="br0">&#41;</span>;<br />
<span class="re0">$num</span>=<a href="http://www.php.net/mysql_result"><span class="kw3">mysql_result</span></a><span class="br0">&#40;</span><span class="re0">$result</span>,<span class="nu0">0</span>,<span class="st0">&quot;count&quot;</span><span class="br0">&#41;</span>;<br />
<span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$num</span> &gt; <span class="nu0">0</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//New IP address has shown up, create new set of rules</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$result</span>=<a href="http://www.php.net/mysql_query"><span class="kw3">mysql_query</span></a><span class="br0">&#40;</span><span class="st0">&quot;select ipaddress,who from homeusers order by ipaddress&quot;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$num</span>=<a href="http://www.php.net/mysql_num_rows"><span class="kw3">mysql_num_rows</span></a><span class="br0">&#40;</span><span class="re0">$result</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$i</span>=<span class="nu0">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">while</span> <span class="br0">&#40;</span><span class="re0">$i</span> &lt; <span class="re0">$num</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$ipaddress</span><span class="br0">&#91;</span><span class="re0">$i</span><span class="br0">&#93;</span>=<a href="http://www.php.net/mysql_result"><span class="kw3">mysql_result</span></a><span class="br0">&#40;</span><span class="re0">$result</span>,<span class="re0">$i</span>,<span class="st0">&quot;ipaddress&quot;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$who</span><span class="br0">&#91;</span><span class="re0">$i</span><span class="br0">&#93;</span>=<a href="http://www.php.net/mysql_result"><span class="kw3">mysql_result</span></a><span class="br0">&#40;</span><span class="re0">$result</span>,<span class="re0">$i</span>,<span class="st0">&quot;who&quot;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;#$who[$i]<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;pass in quick on ge0 proto tcp from $ipaddress[$i]/32 to any port = 7007 flags S keep state<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;pass in quick on ge0 proto tcp from $ipaddress[$i]/32 to any port = 7008 flags S keep state<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;pass in quick on ge0 proto tcp from $ipaddress[$i]/32 to any port = 7009 flags S keep state<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;pass in quick on ge0 proto udp from $ipaddress[$i]/32 to any port = 7009 flags S keep state<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;pass in quick on ge0 proto tcp from $ipaddress[$i]/32 to any port = 7010 flags S keep state<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;pass in quick on ge0 proto tcp from $ipaddress[$i]/32 to any port = 7011 flags S keep state<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;pass in quick on ge0 proto tcp from $ipaddress[$i]/32 to any port = 7012 flags S keep state<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;pass in quick on ge0 proto tcp from $ipaddress[$i]/32 to any port = 7013 flags S keep state<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;pass in quick on ge0 proto udp from $ipaddress[$i]/32 to any port = 7013 flags S keep state<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;pass in quick on ge0 proto udp from $ipaddress[$i]/32 to any port 40000 &gt;&lt; 42000 flags S keep state<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;<span class="es0">\n</span><span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/mysql_query"><span class="kw3">mysql_query</span></a><span class="br0">&#40;</span><span class="st0">&quot;update homeusers set active=&#8217;Y&#8217; where ipaddress=&#8217;$ipaddress[$i]&#8216;&quot;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$i</span>++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span><br />
<span class="kw2">?&gt;</span></div>
</div>
<p>Now that the ports are &#8220;open&#8221;, we need to make sure the Sun Ray&#8217;s can connect, to do this we need to turn on Lan connections:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">/opt/SUNWut/sbin/utadm -L on</div>
</div>
<p>Now, add the following entries in to your DNS for the domain you want the Sun Ray&#8217;s to query:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">sunray-config-servers &nbsp; IN &nbsp; &nbsp; &nbsp;A &nbsp; &nbsp; &nbsp; <span class="nu0">10.10</span><span class="nu0">.10</span><span class="nu0">.101</span><br />
sunray-servers &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IN &nbsp; &nbsp; &nbsp;A &nbsp; &nbsp; &nbsp; <span class="nu0">10.10</span><span class="nu0">.10</span><span class="nu0">.101</span></div>
</div>
<p>So we would now have FQDN of sunray-config-servers.someplace.net and sunray-servers.someplace.net.</p>
<p>Now it is time to take the Sun Ray home and configure your home network. I am going to assume that you have some sort of &#8220;firewall/router&#8221; device, such as a Linksys Broadband router, etc.. The key thing you need to do is configure the DNS Domain that is handed to your DHCP clients to be the same as what you made your DNS host entries as. So in our case, I would configure the DNS domain to be <b>someplace.net</b>. Now you should be able to boot your Sun Ray and get a &#8220;login screen&#8221; or some other response codes from the server. I have noticed that some time&#8217;s the Sun Ray will stay on a 26B, if this happens, you can insert your Java Card, and a login screen should come up. I have not quite figured out what causes it.</p>
<p>Hopefully this will help those running SRSS 3.1.. I will put the instructions for version 2 and 3.0 up later, as they are extremely more involved and requires more hardware to do. But since 3.1 is now &#8220;free&#8221; everyone should be using it, or moving to it soon!</p>
<p>Some Notes about using a Sun Ray at home:</p>
<ol>
<li>USB Thumbdrives/cdroms/harddrives do not work if you are behind a NAT device</li>
<li>Depending on your connection speed, you may want to disable all background images, and any &#8220;fancy&#8221;  items such as anti-aliased fonts, shadows, network connection app, etc</li>
<li>Streaming Audio will start out a little shaky, but &#8220;will&#8221; work if nothing else is happening. (This is based on trying it with a cable modem and dsl modem</li>
<li>I have not tried to upgrade the firmware remotely on the Sun Ray&#8217;s, currently I have just have the users bring it back in to the office to have the firmware upgraded</li>
</ol>
<p>Technorati Tags: <a href="http://technorati.com/tag/Sun+Ray+%40Home" rel="tag">Sun Ray @Home</a>, <a href="http://technorati.com/tag/Sun+Ray" rel="tag"> Sun Ray</a>, <a href="http://technorati.com/tag/Wan+Ray" rel="tag"> Wan Ray</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2006/03/22/sun-ray-home-howto-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Interesting Digg link</title>
		<link>http://blogs.sungeek.net/unixwiz/2006/03/05/interesting-digg-link/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2006/03/05/interesting-digg-link/#comments</comments>
		<pubDate>Mon, 06 Mar 2006 01:07:39 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Sun Ray]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=542</guid>
		<description><![CDATA[I found this link http://linuxgazette.net/124/smith.html on digg. It is how to make a multi-head, multi-user Linux machine. My personal opinion.. Go get the Sun Ray Server software and do it for a cheaper and you can have more than 6 people on the machine at once. The Advantages they list are: Advantages of a Multi-Seat [...]]]></description>
			<content:encoded><![CDATA[<p>I found this link <a href="http://linuxgazette.net/124/smith.html">http://linuxgazette.net/124/smith.html</a> on digg. It is how to make a multi-head, multi-user Linux machine. My personal opinion.. Go get the Sun Ray Server software and do it for a cheaper and you can have more than 6 people on the machine at once. </p>
<p>The Advantages they list are:</p>
<blockquote><p>Advantages of a Multi-Seat System:  The advantages of multi-seat systems in schools, Internet cafes, and libraries include more than just saving money. They include much lower noise pollution, much less power consumption, and lowered space requirements. For many applications, power and noise budgets are as important as initial cost.</p></blockquote>
<p>But what they didn&#8217;t mention was the biggest disadvantage:<br />
All the monitors basicly have to be with in 6 feet of the PC, and that you have to have 6 Video cards to drive the six &#8220;heads&#8221;&#8230; </p>
<p>If they were to switch this to Sun Ray&#8217;s, They could easily have more than 6 people on the same machine and they are not limited to be sitting at the same table as everyone else is.</p>
<p>Just another reason to use the FREE Sun Ray Server software. </p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2006/03/05/interesting-digg-link/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
