<?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>Sand2Silicon</title>
	<atom:link href="http://guardiansrealm.net/sand2silicon/feed/" rel="self" type="application/rss+xml" />
	<link>http://guardiansrealm.net/sand2silicon</link>
	<description>Hacking the world, one line at a time!</description>
	<lastBuildDate>Wed, 02 Mar 2011 18:02:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>This Blog Has Moved!</title>
		<link>http://guardiansrealm.net/sand2silicon/2011/03/this-blog-has-moved/</link>
		<comments>http://guardiansrealm.net/sand2silicon/2011/03/this-blog-has-moved/#comments</comments>
		<pubDate>Wed, 02 Mar 2011 18:02:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://guardiansrealm.net/sand2silicon/?p=195</guid>
		<description><![CDATA[We relocated! Please visit the new blog at Sand2Silicon.com. Remember to update your bookmarks, RSS, etc. This older install will no longer be updated.]]></description>
			<content:encoded><![CDATA[<p>We relocated! Please visit the new blog at <a title="Sand2Silicon's New Blog Location" href="http://sand2silicon.com">Sand2Silicon.com</a>. Remember to update your bookmarks, RSS, etc. This older install will no longer be updated.</p>
]]></content:encoded>
			<wfw:commentRss>http://guardiansrealm.net/sand2silicon/2011/03/this-blog-has-moved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protected: TZ-150 SubDomain Help?</title>
		<link>http://guardiansrealm.net/sand2silicon/2010/03/tz-150-subdomain-help/</link>
		<comments>http://guardiansrealm.net/sand2silicon/2010/03/tz-150-subdomain-help/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 17:55:24 +0000</pubDate>
		<dc:creator>RavenSlay3r</dc:creator>
				<category><![CDATA[2009.06]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[OpenSolaris]]></category>

		<guid isPermaLink="false">http://guardiansrealm.net/sand2silicon/?p=158</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://guardiansrealm.net/sand2silicon/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-158">Password:<br />
<input name="post_password" id="pwbox-158" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://guardiansrealm.net/sand2silicon/2010/03/tz-150-subdomain-help/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Access OpenSolaris CIFS Fileserver</title>
		<link>http://guardiansrealm.net/sand2silicon/2009/08/access-opensolaris-cifs-fileserver/</link>
		<comments>http://guardiansrealm.net/sand2silicon/2009/08/access-opensolaris-cifs-fileserver/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 23:21:27 +0000</pubDate>
		<dc:creator>RavenSlay3r</dc:creator>
				<category><![CDATA[2009.06]]></category>
		<category><![CDATA[OpenSolaris]]></category>

		<guid isPermaLink="false">http://guardiansrealm.net/sand2silicon/?p=140</guid>
		<description><![CDATA[I have a mixed environment with OpenSolaris-2009.06, SuseLinux, and WindowsXP clients trying to access an OpenSolaris-2009.06 ZFS File-Server. I&#8217;m the only user on the network, which is entirely behind a hardware-firewall. For now, I&#8217;ve been erring on the side of overly-permissible file-premissions, and still can&#8217;t access my own data. The fileserver (Shangri-La or 192.168.28.29) has [...]]]></description>
			<content:encoded><![CDATA[<p>I have a mixed environment with OpenSolaris-2009.06, SuseLinux, and WindowsXP clients trying to access an OpenSolaris-2009.06 ZFS File-Server.</p>
<p>I&#8217;m the only user on the network, which is entirely behind a hardware-firewall. For now, I&#8217;ve been erring on the side of overly-permissible file-premissions, and still can&#8217;t access my own data.</p>
<p>The fileserver (Shangri-La or 192.168.28.29) has a static-IP, as no real local DNS is configured. I have the same username and password on all my machines.</p>
<h3>Current Client Access</h3>
<p>- Currently I can&#8217;t seem to automount the ZFS filesystems at all.<br />
- If I use the GUI &#8220;Connect To Server&#8221; on OpenSolaris or Linux I can connect to a specific ZFS fileshare<br />
- However If I connect to a top-level one, I get &#8216;permission-denied&#8217; when trying to traverse into a lower one.<br />
- I have to connect-to them all separately or simply connect-to the bottom leaves of the tree.</p>
<p>OpenSolaris Client now can browse all the filesystems individually, from gnome using eg: (smb://shangrila/dpool_import_cairo/)</p>
<p>I&#8217;ve followed numerous guides, and leafed through the ZFS and CIFS admin books. But still have no sane/consistent way to access the data from my Opensolaris client, let alone the suse one. Haven&#8217;t even tried Windows yet.</p>
<h2>Server Side Config Files</h2>
<p><em>~/bin/aclres.exe</em><br />
With my limited knowledge of ACL permissions,  I wrote this primitive brute-force script to set the permissions on the files I wanted to share.</p>
<pre>#!/bin/bash

## Defaults
chmod -R A-    *
chmod -R 755    *
chown -R johnSmith *
chgrp -R staff *

## Files
chmod -R A=everyone@:rwxpaRcs:allow    *
chmod -R A+everyone@:AWCo:deny    *

chmod -R A+group@:rwxpd:allow    *
chmod -R A+group@::deny     *

chmod -R A+owner@:rwxpdDAWCo:allow    *
chmod -R A+owner@::deny    *

## Directories
chmod -Rf A=everyone@:rwxpaRcs:fd:allow    *
chmod -Rf A+everyone@:AWCo:fd:deny    *

chmod -Rf A+group@:rwxpd:fd:allow    *
chmod -Rf A+group@::fd:deny     *

chmod -Rf A+owner@:rwxpdDAWCo:fd:allow    *
chmod -Rf A+owner@::fd:deny    *
</pre>
<h3>ZFS Layout</h3>
<pre>johnSmith@shangrila:~$ zfs list |grep  dpool
dpool                                  174G  54.5G  25.5K  /dpool
dpool/data                              62K  54.5G    22K  /dpool/data
dpool/data/davinci                      20K  54.5G    20K  /dpool/data/davinci
dpool/data/firefly                      20K  54.5G    20K  /dpool/data/firefly
dpool/dev                             16.3G  54.5G    22K  /dpool/dev
dpool/dev/magento                       20K  54.5G    20K  /dpool/dev/magento
dpool/dev/torque                      16.3G  54.5G  16.3G  /dpool/dev/torque
dpool/import                           114G  54.5G    23K  /dpool/import
dpool/import/athenaHome               57.5G  54.5G  57.1G  /dpool/import/athenaHome
dpool/import/aura                       20K  54.5G    20K  /dpool/import/aura
dpool/import/cairo                    56.1G  54.5G  39.1G  /dpool/import/cairo
dpool/media                           44.0G  54.5G    24K  /dpool/media
dpool/media/amadeus                   22.2G  54.5G  22.2G  /dpool/media/amadeus
dpool/media/holly                     21.8G  54.5G  21.8G  /dpool/media/holly
dpool/media/import                      20K  54.5G    20K  /dpool/media/import
</pre>
<h2>Client Side Config Files</h2>
<h3>/etc/auto_master</h3>
<pre>+auto_master
/net		-hosts		-nosuid,nobrowse
/home		auto_home	-nobrowse
#/dpool   auto_smb   -nobrowse
/-       auto_direct
</pre>
<h3>/etc/auto_direct</h3>
<pre>/dpool                -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool
/dpool/data           -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/data
/dpool/data/davinci   -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/data/davinci
/dpool/data/firefly   -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/data/firefly
/dpool/dev            -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/dev
/dpool/dev/magento    -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/dev_magneto
/dpool/dev/torque     -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/dev_torque
/dpool/import         -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/import
/dpool/import/athenaHome -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/import/athenaHome
/dpool/import/aura    -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/import/aura
/dpool/import/cairo   -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/import/cairo
/dpool/media          -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/media
/dpool/media/amadeus  -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/media/amadeus
/dpool/media_/holly   -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/media/holly
/dpool/media/import   -fstype=smbfs, dirperms=0700, uid=johnSmith //192.168.28.29/dpool/media/import
</pre>
<h3>/etc/auto_smb</h3>
<pre>dpool                -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool
dpool_data           -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/data
dpool_data_davinci   -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/data/davinci
dpool_data_firefly   -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/data/firefly
dpool_dev            -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/dev
dpool_dev_magento    -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/dev_magneto
dpool_dev_torque     -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/dev_torque
dpool_import         -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/import
dpool_import_athenaHome -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/import/athenaHome
dpool_import_aura    -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/import/aura
dpool_import_cairo   -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/import/cairo
dpool_media          -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/media
dpool_media_amadeus  -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/media/amadeus
dpool_media__holly   -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/media/holly
dpool_media_import   -fstype=smbfs ://johnSmith:password@192.168.28.29/dpool/media/import
</pre>
<h3>Attempting to Automount from OpenSolaris Client</h3>
<pre>johnSmith@athena: 502# automount -v
automount: hierarchical mountpoint: /dpool and /dpool/data
automount: hierarchical mountpoint: /dpool and /dpool/data/davinci
automount: hierarchical mountpoint: /dpool and /dpool/data/firefly
automount: hierarchical mountpoint: /dpool and /dpool/dev
automount: hierarchical mountpoint: /dpool and /dpool/dev/magento
automount: hierarchical mountpoint: /dpool and /dpool/dev/torque
automount: hierarchical mountpoint: /dpool and /dpool/import
automount: hierarchical mountpoint: /dpool and /dpool/import/athenaHome
automount: hierarchical mountpoint: /dpool and /dpool/import/aura
automount: hierarchical mountpoint: /dpool and /dpool/import/cairo
automount: hierarchical mountpoint: /dpool and /dpool/media
automount: hierarchical mountpoint: /dpool and /dpool/media/amadeus
automount: hierarchical mountpoint: /dpool and /dpool/media_/holly
automount: hierarchical mountpoint: /dpool and /dpool/media/import
automount: /dpool mounted
automount: no unmounts
johnSmith@athena: 503# ls /dpool
/dpool: Permission denied
johnSmith@athena: 504#
</pre>
]]></content:encoded>
			<wfw:commentRss>http://guardiansrealm.net/sand2silicon/2009/08/access-opensolaris-cifs-fileserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Components and PEAR</title>
		<link>http://guardiansrealm.net/sand2silicon/2009/06/magento-components-and-pear/</link>
		<comments>http://guardiansrealm.net/sand2silicon/2009/06/magento-components-and-pear/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 08:03:20 +0000</pubDate>
		<dc:creator>RavenSlay3r</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[PEAR]]></category>

		<guid isPermaLink="false">http://guardiansrealm.net/sand2silicon/?p=130</guid>
		<description><![CDATA[Magento is a newish shopping cart platform with a built in package-manager built on PEAR for auto-install extension components. This article takes you through the steps.]]></description>
			<content:encoded><![CDATA[<h2>Magento</h2>
<p><a href="http://www.magentocommerce.com/" target="_blank">Magento</a> is a newish shopping cart platform that is pretty slick, engineered, and rather complex to pickup.You can auto-install extension components for your Magento store from <a href="http://www.magentocommerce.com/magento-connect" target="_blank">MagentoConnect</a> which it turns out is built on top of the <a href="http://pear.php.net/" target="_blank">PEAR</a> package-managing system. From the website you can browse for an extension, get an &#8220;activation key&#8221;, and use your store&#8217;s admin-gui to install a module.</p>
<hr /><em>Danger, Will Robinson, Danger:</em></p>
<ul>
<li>Make sure you&#8217;ve got a full backup or proper version-control of your stores source-code and mods.</li>
<li>Make SURE you BACKUP YOUR DATABASE &#8230;</li>
</ul>
<p>(I recently did a &#8220;live upgrade&#8221; of the &#8216;core&#8217; platform, on a test-site and it corrupted my DB &#8230; )</p>
<hr />
<h2>PHP</h2>
<p>You will need the <em>&#8220;php&#8221;</em> command in your <em>$PATH</em>.</p>
<ul>
<li> On a linux system you can usually discover it by calling:<code>$ whereis php</code></li>
<li>On OpenSolaris-2009.06 I found the webstack PHP in: <em>/usr/php/5.2/bin/php</em></li>
</ul>
<p>In either case we want to make this generically-accessible to our users, by adding a simple symbolic link from <em>/usr/bin</em> which IS in your $PATH to the actual php binary. If you can find the PEAR and want to add a similar link, do so as shown, but this is optional.:<br />
<code> $ cd /usr/bin<br />
$ ln -s /usr/php/5.2/bin/php php<br />
$ ln -s /usr/php/5.2/bin/pear pear</code></p>
<h2>PEAR</h2>
<p>Magento has a very broad file-structure, and modules put files in several locations. As a developer I wanted to <em>look</em>at an existing extension similar to one I&#8217;m developing, without hunting for bits and pieces or blowing up my dev-environment on a failed install. While the MagentoConnect webpage fails to offer us a simple &#8220;Download&#8221; button, hope is not lost, as we can simply use PEAR from the command line.</p>
<p>If your machine has PHP installed (required in your $PATH for this exercise) it probably also has  PEAR, however we will want to use the PEAR installation provided WITH Magento.</p>
<p><code><br />
// Setup Magento PEAR<br />
$ cd ~/public_html/magento/<br />
$ ./pear mage-setup<br />
$ ./pear -V<br />
$ ./pear list-channels</code></p>
<p>// Download a Package<br />
$ ./pear download connect.magentocommerce.com/community/ModuleFooBar</p>
<p>// Install a Package<br />
$ ./pear install connect.magentocommerce.com/community/ModuleFooBar</p>
<h3>Download a Package</h3>
<p>The PEAR &#8220;download&#8221; command does what it says and simply downloads a *.tar to your current directory. This is exactly what I required, now I have the files to move where I wish and examine at my leisure, if I had leisure&#8230;</p>
<h3>Install a Package</h3>
<p>The PEAR &#8220;install&#8221; command also does what it says, and goes stright to work attempting to install the package. This is (appears to be) essentially the same as grabbing the key-code from the web, and installing from your Magento AdminPanel GUI.</p>
<p>Note: You do not need to &#8220;download&#8221; a package before installing it as the PEAR &#8220;install&#8221; command is smart enough to do all the work for you.</p>
<h3>ModuleFooBar</h3>
<p>When you find a component ont he MagentoConnect site and click &#8220;Get Extension Key&#8221;, it gives you a string like <em>&#8220;magento-community/ModuleFooBarr&#8221;</em> to supply to the AdminPanel GUI. If your using PEAR, you still need to click this link and the final part &#8220;ModuleFooBar&#8221; is your package name. The first part of the path-name, you must discard in favor of PEAR channel-syntax.</p>
<p>Good Luck</p>
]]></content:encoded>
			<wfw:commentRss>http://guardiansrealm.net/sand2silicon/2009/06/magento-components-and-pear/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring OpenSolaris: Webstack phpMyAdmin</title>
		<link>http://guardiansrealm.net/sand2silicon/2009/06/configuring-opensolaris-webstack-phpmyadmin/</link>
		<comments>http://guardiansrealm.net/sand2silicon/2009/06/configuring-opensolaris-webstack-phpmyadmin/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 16:00:43 +0000</pubDate>
		<dc:creator>RavenSlay3r</dc:creator>
				<category><![CDATA[2009.06]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[IPS]]></category>
		<category><![CDATA[phpMyAdmin]]></category>
		<category><![CDATA[Webstack]]></category>

		<guid isPermaLink="false">http://guardiansrealm.net/sand2silicon/?p=96</guid>
		<description><![CDATA[Getting <em>phpMyAdmin</em> running is deceptively simple, unless like me, your utterly clueless and expect it to "just work". Once again, here's the instructions I wish I'd had...]]></description>
			<content:encoded><![CDATA[<p>Getting <em>phpMyAdmin</em> running is deceptively simple, unless like me, your utterly clueless and expect it to &#8220;just work&#8221;.</p>
<ol>
<li> Change your MySQL <em>ROOT</em> password!<br />
<code>$ /usr/mysql/5.1/bin/mysqladmin -u root password {{'NewPassword'}}<br />
$ mysql -u root -p<br />
</code></li>
<li>Install <em>phpMyAdmin</em><br />
<code>$ pfexec pkg set-authority -O http://pkg.opensolaris.org/webstack Webstack<br />
$ pfexec pkg refresh<br />
$ pfexec pkg install pkg://webstack/phpmyadmin<br />
$ man phpmyadmin<br />
$ /usr/bin/phpmyadmin_evaluation_init<br />
</code></li>
</ol>
<p>Final Configuration of phpMyAdmin:</p>
<ol>
<li>As root:<br />
<code># vi /etc/phpmyadmin/config.inc.php<br />
/blowfish_secret</code></li>
<li> In the empty <strong>&#8216; &#8216;</strong> after the <strong>=</strong> type any random string under 46 chars. Doesn&#8217;t matter what (AFAIK) and you won&#8217;t be asked again (AFAIK).</li>
<li><code>:wq</code></li>
</ol>
<p>Point your webbrowser at http://127.0.0.1/phpmyadmin/ and you should be ready to rock &amp; roll. If you have any trouble go back to the <em>origianl</em> <a title="Updated phpMyAdmin package" href="http://blogs.sun.com/jyrivirkki/entry/updated_phpmyadmin_package" target="_blank">Maintainer&#8217;s Blogpost</a> and also read the MAN pages more carefully.</p>
<p>You should also familiarize yourself with Sun&#8217;s: <a title="Sun: Webstack Getting Started Guide" href="http://wikis.sun.com/display/WebStack/Web+Stack+Getting+Started+Guide" target="_blank">Web Stack Getting Started Guide</a></p>
<p>Good Luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://guardiansrealm.net/sand2silicon/2009/06/configuring-opensolaris-webstack-phpmyadmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring OpenSolaris: Printing &#8211; Brother 7820N</title>
		<link>http://guardiansrealm.net/sand2silicon/2009/06/configuring-opensolaris-printing-brother-7820n/</link>
		<comments>http://guardiansrealm.net/sand2silicon/2009/06/configuring-opensolaris-printing-brother-7820n/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 00:38:13 +0000</pubDate>
		<dc:creator>RavenSlay3r</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Printing]]></category>

		<guid isPermaLink="false">http://guardiansrealm.net/sand2silicon/?p=67</guid>
		<description><![CDATA[Setting up your printer in OpenSolaris can be a trick if your drivers aren't yet included. This post gives you the pointer you need to get going. 

Then I unveil 'printcpp' for simple, beautiful, CLI printing of source-code!]]></description>
			<content:encoded><![CDATA[<h2>Install the Printer</h2>
<p>Setting up your printer in OpenSolaris can be a trick, if your drivers aren&#8217;t yet included.</p>
<ol>
<li> The place to start is in: <em>System | Administration | Print Manager</em></li>
<li>Click &#8220;Add Printer&#8221; button and get to work</li>
<li>If your printer isn&#8217;t available try getting a driver from one of these places:
<ul>
<li>http://www.linuxfoundation.org/en/OpenPrinting</li>
<li>http://www.cups.org/index.php</li>
</ul>
</li>
<li>You need to get a valid *.ppd or *.ppd.gz file for your printer.</li>
<li>Close the Print Manager GUI for now.</li>
<li>As ROOT type:<code><br />
# ppdmgr -a path_to_.ppd -w<br />
# ppdmgr -u</code></li>
<li>Reopen the Print Manager GUI and you should be able to find your driver.</li>
<li>Best of luck, that should make your printer happy!</li>
</ol>
<h2>Remove the Banner</h2>
<p>To remove the &#8216;banner page&#8217; that prints every time is easy:</p>
<ol>
<li>Click: <em>System | Administration | Solaris LP Print Manager</em></li>
<li>I just click &#8216;cancel&#8217; on the first dialog box that pops up&#8230;</li>
<li>Select your printer and click: <em>Printer | Modify Printer Properties</em></li>
<li>Under &#8220;Banner&#8221; select: <em>Never Print Baner</em></li>
<li>&#8216;Apply&#8217;, &#8216;Ok&#8217;, Good-2-Go.</li>
</ol>
<h2>Default to Letter-Size</h2>
<p>How? (possibly feature not implemented yet)</p>
<h2>Print Source Code with: printcpp </h2>
<p>Here&#8217;s an awesome hack handed down from my former Professor and UNIX Zen-Master. This simple alias prints nicely formatted plain-text files from the command-line with normal &#8216;C/C++ style&#8217; source-code syntax-highlighting. It&#8217;s also great for printing any text file in a hurry.</p>
<p>The first one is &#8216;portrait&#8217; mode and the second is &#8216;landscape&#8217; mode. You may have to tweak a little if your porting to a different UNIX/LINUX system, but I&#8217;ve always gotten it to work!</p>
<ol>
<li>See my prior post about installing more IPS repos!
<li>From IPS, select the &#8216;SunFreeware&#8217; repo, possibly marked &#8216;Companion&#8217; or &#8216;SFW&#8217;</li>
<li>Grab the GNU &#8220;Enscrip&#8221;&#8216; package.</li>
<li>Add some code to your .bashrc or .bash_aliases:<br />
<code><br />
alias printcpp='enscript -M Letter -G -i 2 -f Courier8 -Ecpp  -P myPrinterName'<br />
alias printcpp2='enscript -M Letter -r -G -i 2 -f Courier8 -Ecpp  -P myPrinterName'<br />
</code>
</li>
<li>Pay-attention and be sure to substitute YOUR printer name for &#8220;myPrinterName&#8221;.
<li> <em>$ source ~/.bashrc</em></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://guardiansrealm.net/sand2silicon/2009/06/configuring-opensolaris-printing-brother-7820n/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring OpenSolaris:  Installing SFE  (Spec Files Extras)</title>
		<link>http://guardiansrealm.net/sand2silicon/2009/06/configuring-opensolaris-installing-sfe-spec-files-extras/</link>
		<comments>http://guardiansrealm.net/sand2silicon/2009/06/configuring-opensolaris-installing-sfe-spec-files-extras/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 04:30:26 +0000</pubDate>
		<dc:creator>RavenSlay3r</dc:creator>
				<category><![CDATA[2009.06]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[CBE]]></category>
		<category><![CDATA[JDS]]></category>
		<category><![CDATA[OSD]]></category>
		<category><![CDATA[SFE]]></category>
		<category><![CDATA[Spec File Extra]]></category>

		<guid isPermaLink="false">http://guardiansrealm.net/sand2silicon/?p=28</guid>
		<description><![CDATA[SFE is a repository of RPM-like spec files for building Solaris SVr4 packages from various Open Source modules. While the existing 'getting-started' docs are somewhat scattered and outdated, fear not! This tutorial will have you installing SFE packages into the latest OpenSolaris in no time!]]></description>
			<content:encoded><![CDATA[<h2>What are SFEs?</h2>
<blockquote><p>What is spec-files-extra? SFE is a repository of RPM-like spec files for building Solaris SVr4 packages from various Open Source modules. ~ <a href="http://pkgbuild.sourceforge.net/spec-files-extra/">The SFE Site</a></p></blockquote>
<p>And if you follow the installation instructions closely-enough, without getting too bogged down in the details, you can probably be up and running <em>SFE Enabled</em> faster than I can write this blog. <em>However</em> those instructions are slightly dated, and even as a Sophomore to the OSol world, I hit a few bumps along the way, so here&#8217;s the short-list to get you going quickly!</p>
<h2>JDS -&gt; OSD</h2>
<p>As it happens I started following the original instruction-set, returned a few hours later and someone had done a bit of &#8220;Find &amp; Replace&#8221; re-branding; just to mess with my head I believe&#8230; So &#8211; just to clear up some confusion:</p>
<ul>
<li><strong>JDS-CBE </strong>- <em>(Java Desktop Source &#8211; Common Build Environment (?))</em></li>
<li><strong>OSD-CBE</strong>- <em>(OpenSolaris Desktop &#8211; Common Build Environment(?)) </em></li>
</ul>
<p style="text-align: right;"><em>Old Name</em>, <em>New Name</em>, respectively.</p>
<p>Currently, they are the same thing and you will need the underlying &#8220;CBE&#8221; portion of them, even if you don&#8217;t intend to do further OSol Desktop Development. Careful not to follow the original instruction sheets blindly though, or your in for a world of trouble &#8211; instead, keep reading here!</p>
<h2>Installing the Common Build Environment (CBE)</h2>
<h3>Reference Links</h3>
<p>All of the information on this page was pulled-from and relates back to the following links. Hopefully, however, this blogpost will save you from dredging through them for the insight you need. Hopefully&#8230;</p>
<p>Useful Links (for now)</p>
<ol>
<li><a title="SFE Installation Guide" href="http://pkgbuild.sourceforge.net/spec-files-extra/" target="_blank">Spec File Extra </a>- Main Site</li>
<li><a title="Building OSD on OpenSolaris" href="http://www.opensolaris.org/os/project/jds/contributing/building/" target="_blank">JDS / OSD / CBE Installation Guide</a></li>
<li><a title="JDS / OSD Download Center" href="http://dlc.sun.com/osol/jds/downloads/cbe/" target="_blank">OSD Download Center</a> on <em>Sun</em></li>
<li><a title="SFE Package Index" href="http://pkgbuild.svn.sourceforge.net/viewvc/pkgbuild/spec-files-extra/trunk/" target="_blank">SFE Index</a> on SourceForge</li>
</ol>
<p>Less Relevant Extra&#8217;s</p>
<ol>
<li><a title="OSD Source Code Tour" href="http://www.opensolaris.org/os/project/jds/documents/source_code_tour/" target="_blank">OSD Source Code Tour</a></li>
<li><a title="OSD Sources" href="http://cvs.opensolaris.org/source/xref/jds/" target="_blank">JDS / OSD Source Location</a></li>
<li><a title="pkgBuild Home on SourceForge" href="http://pkgbuild.sourceforge.net/" target="_blank"><span style="text-decoration: none;"><span style="font-family: arial,sans; color: #4444aa;"><strong>pkg</strong><span style="color: #000000;">build</span></span></span> Home on SourceForge<br />
</a></li>
</ol>
<h3>(Do Not) Build CBE from Source</h3>
<p><em>(Rant: Feel free to skip to next section!)</em><br />
Given my Sun AMD_X64 system, I was unusually motivated to build something from source. Unfortunately, after a great  effort it was not to be. After downloading <strong>jds-cbe-1.6.2-src.tar</strong>, one should be able to run the <em>cbe-install</em> script and things will be happy.</p>
<p>The CBE appeared to build and install the first several tools correctly including v.1.9 and v.1.10 of AutoMake (or was it AutoConf ?), disregarding that they both already exist. When the script got to building: <strong>libtool-1.5.22</strong> it demanded <em>AutoMake-1.9a</em> and some other weird tool (also v.1.9.a). If I went to the directory under <em>$HOME/PACKAGES</em>, found <em>libtool-1.5.22</em> I could &#8220;configure, make, make install&#8221; just fine. However, the &#8220;cbe-install&#8221; script was still not happy and would never complete. No luck with the <strong>jds-cbe-1.6.2-src.tar</strong> either&#8230;</p>
<h3>Install From Binaries</h3>
<ol>
<li>(As stated elsewhere) <em>&#8220;You don&#8217;t need root access for installing the CBE or building GNOME, but the build-user needs to have the &#8216;Software Installation&#8217; profile for installing the packages that the CBE creates,&#8221;&#8230;</em> Of course, giving yourself said permissions <em>may</em> require ROOT access (on a one-time basis). That said, from the desktop:
<pre>- Click: System | Administration | Users &amp; Groups
- Select your userName and click: Properties
- Click the 'User Profiles' Tab and check 'Software Installation'
- Click 'OK' (twice).</pre>
</li>
<li> Install <em>SunStudio Express</em> from the IPS package manager. Building SFE packages requires a compiler and now&#8217;s a good time to grab it.
<pre>- Select the 'OpenSolaris.org' repository
- Select 'All Categories'
- Search for: studio
- Check and Install: sunstudioexpress
- Search for: sfwhea
- Check and Install: SUNWsfwhea</pre>
</li>
<li>Visit the <a title="JDS / OSD Download Center" href="http://dlc.sun.com/osol/jds/downloads/cbe/" target="_blank">OSD Download Center</a> (Link #3) and grab the: <strong>jds-cbe-1.6.2-i386.tar.bz2</strong> binary package.<br />
<em>Warning:</em> The <strong>_src_</strong> does NOT build cleanly on OSol 2009.06, so for now don&#8217;t even waste your time!</li>
<li> <code>athena: 453$ bunzip2 jds-cbe-1.6.2-i386.tar.bz2<br />
athena: 454$ tar -xvf jds-cbe-1.6.2-i386.tar<br />
athena: 456$ cd jds-cbe-1.6.2<br />
athena: 459$ ./cbe-install</code></li>
<li>Follow the scripts instructions, mostly you want the defaults.
<ul>
<li>Specifically confirm your compiler is: <strong>/usr/bin/cc</strong></li>
<li>The install script will complain, as your compiler is NEWER than the script, and doesn&#8217;t provide the expected version-output. This is OK!</li>
</ul>
</li>
<li>Now you need to download the SFE Spec-Files, which as I understand it, are essentially header-files of meta-data for each SFE package. Thus when you tell the system to install one it has all the install info it needs on hand.<br />
<code><br />
athena: 460$ cd ~<br />
athena: 461$ svn co https://pkgbuild.svn.sourceforge.net/svnroot/pkgbuild/spec-files-extra/trunk SFE</code></li>
<li>At this point you will want to add to your<em> ~/.bashrc</em> file:
<pre>PATH=$PATH:/opt/jdsbld/bin          # JDS-CBE   - packages we installed</pre>
</li>
<li>Now source the ~/.bashrc, and then run the env.sh in the /opt/jdsbld/bin &#8230;<br />
<code>athena: 466$ source ~/.bashrc<br />
athena: 467$ . /opt/jdsbld/bin/env.sh</code></li>
</ol>
<p>Congratulations! At this point you have installed the CBE, downloaded the SFE spec files from subversion, and configured your environment to start building SFE spec-file packages! Every time you want to install SFE packages you should run the second console line from &#8216;step 8&#8242; above, and of course running the first line &#8220;source ~/.bashrc&#8221; will always revert you to your normal working shell-environment.</p>
<h2>Installing a SFE Package</h2>
<p><code><br />
athena: 468$ . /opt/jdsbld/bin/env.sh<br />
athena: 468$ pkgtool build --download SFEfoo.spec<br />
</code></p>
<p>Or, while not bullet-proof, you can often use the dependency-checking option.<br />
<code><br />
pkgtool build --download SFEfoo.spec --autodeps<br />
</code></p>
<h2>Other Approaches</h2>
<p>Unknown to me, there was already a well written article to this effect. If you found my post unclear or unhelpful you may have better luck reading this: <a title="SourceForge Wiki: OpenSolaris - PkgBuild" href="http://pkgbuild.wiki.sourceforge.net/pkgbuild+on+OpenSolaris" target="_blank">pkgbuild on OpenSolaris</a></p>
<p>As a final and entirely different method you may want to search for the <em>sfe-bootstrap-latest</em> script. Supposedly it is an all inclusive script to get you running. I believe it was originally published in THIS forum thread: <a title="SFE BootStrap Script" href="http://opensolaris.org/jive/thread.jspa?threadID=91341&amp;tstart=0">sfe-bootstrap-latest script</a></p>
]]></content:encoded>
			<wfw:commentRss>http://guardiansrealm.net/sand2silicon/2009/06/configuring-opensolaris-installing-sfe-spec-files-extras/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Configuring OpenSolaris: Adding IPS Repositories</title>
		<link>http://guardiansrealm.net/sand2silicon/2009/06/configuring-2009-06-adding-ips-repositories/</link>
		<comments>http://guardiansrealm.net/sand2silicon/2009/06/configuring-2009-06-adding-ips-repositories/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 21:43:28 +0000</pubDate>
		<dc:creator>RavenSlay3r</dc:creator>
				<category><![CDATA[2009.06]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Blastwave]]></category>
		<category><![CDATA[IPS]]></category>
		<category><![CDATA[SFW]]></category>
		<category><![CDATA[Webstack]]></category>

		<guid isPermaLink="false">http://guardiansrealm.net/sand2silicon/?p=9</guid>
		<description><![CDATA[If you've just installed OpenSolaris 2009.06 the only IPS repository on your list will be the default 'OpenSolaris' one. There are however, a few other reputable 3rd-party repositories who provide Solaris software packages which all new users should be familiar with!]]></description>
			<content:encoded><![CDATA[<h2>3rd Party Repositories</h2>
<p>If you&#8217;ve just installed OpenSolaris 2009.06 the only IPS repository on your list will be the default &#8216;OpenSolaris&#8217; one. There are however, a few other reputable 3rd-party repositories who provide Solaris software packages which all new users should be familiar with!</p>
<p>Many of these have been around for some time, and have some intricate build/install infrastructures, which once configured, allow you to easily install packages on older versions of Solaris. With the new IPS system, hopefully those days will soon be a hazy memory. However, thse repositories are <em>huge</em> and they have only just begun porting their software-packages to OpenSolaris, and to IPS.</p>
<ul>
<li><strong>Sun Extras</strong> &#8211; Not really sure what is &#8216;extra about these but they are separate from the primary repository. To add this IPS repo you will have to follow the (easy) instructions on this page to add it along with the secure SUN encryption keys.
<ul>
<li><a href="http://opensolaris.org/os/project/pkg/documents/repositories/">IPS Extras Repository</a></li>
</ul>
</li>
<li><strong>BlastWave</strong> &#8211; A popular 3rd party repository for solaris install packages.
<ul>
<li><a href="http://www.blastwave.org//">Blastwave</a></li>
</ul>
</li>
<li><strong>SunFreeware</strong> &#8211; &#8220;Celebrating 15 Years as the #1 Site for Free Software Packages for Solaris.&#8221; They have many additional software packages ready to install into Solaris.
<ul>
<li><a href="http://www.sunfreeware.com/">SunFreeWare.com</a></li>
<li><a href="http://www.opensolaris.org/os/project/sfwnv/;jsessionid=CF5D0996A663F22F83ADF8CA5E204653">SFW at OpenSolaris.org</a></li>
</ul>
</li>
<li><strong>Solaris WebStack</strong> -Includes special extras for the Solaris AMP Webstack, including <em>phpMyAdmin</em>.
<ul>
<li><a href="http://opensolaris.org/os/project/webstack//">Webstack on OpenSolaris.org</a></li>
<li><a href="http://blogs.sun.com/jyrivirkki/entry/web_stack_package_repository">Maintainer&#8217;s Blog</a></li>
</ul>
</li>
</ul>
<h2>Installing the IPS Repos</h2>
<ul>
<li>Blastwave</li>
<li>SunFreeWare</li>
<li>WebStack</li>
</ul>
<p><code><br />
$ pfexec pkg set-authority -O http://blastwave.network.com:10000/ Blastwave<br />
$ pfexec pkg set-authority -O http://pkg.sunfreeware.com:9000/ SunFreeware<br />
$ pfexec pkg set-authority -O http://pkg.opensolaris.org/webstack Webstack<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://guardiansrealm.net/sand2silicon/2009/06/configuring-2009-06-adding-ips-repositories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

