<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-530912761327159356</id><updated>2010-01-02T05:32:42.284-08:00</updated><title type='text'>Quick Solaris/UNIX Tips</title><subtitle type='html'></subtitle><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default'/><link rel='alternate' type='text/html' href='http://www.sunfederal.net/tips/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.sunfederal.net/tips/atom.xml'/><author><name>Scots</name><uri>http://www.blogger.com/profile/16698584664079449904</uri><email>Scott@RX8R3.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-530912761327159356.post-7429537399721556223</id><published>2009-04-06T09:42:00.001-07:00</published><updated>2009-04-06T09:48:56.328-07:00</updated><title type='text'>Solaris: SunRay Error Codes</title><content type='html'>Here are the error codes for the SunRay devices&lt;br /&gt;&lt;br /&gt;http://www.filibeto.org/sun/sunray-users/lib/sunsolve/77966.html&lt;br /&gt;&lt;br /&gt;Enjoy!  (Thanks Chris!)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/530912761327159356-7429537399721556223?l=www.sunfederal.net%2Ftips' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/7429537399721556223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.sunfederal.net/tips/2009/04/solaris-sunray-error-codes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/7429537399721556223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/7429537399721556223'/><link rel='alternate' type='text/html' href='http://www.sunfederal.net/tips/2009/04/solaris-sunray-error-codes.html' title='Solaris: SunRay Error Codes'/><author><name>Scots</name><uri>http://www.blogger.com/profile/16698584664079449904</uri><email>Scott@RX8R3.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16888993343181992995'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-530912761327159356.post-3778006645435160680</id><published>2009-03-31T22:34:00.000-07:00</published><updated>2009-03-31T22:46:21.279-07:00</updated><title type='text'>MAC OS X: Create an ISO from CD/DVD (and mount it)</title><content type='html'>Run this command to create an ISO image from a physical CD/DVD:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# for i in `drutil status | grep dev | awk '{print $4}'` &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&gt; do diskutil unmountDisk $i&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&gt; dd if=${i} of=/Users/username/Desktop/thecdname.iso bs=2048&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&gt; done&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Mount it&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;mount /Users/username/Desktop/thecdname.iso -t iso9660 -o ro,loop /mnt/&lt;/span&gt;&lt;mount style="font-family: courier new;" point=""&gt;&lt;/mount&gt;&lt;br /&gt;&lt;br /&gt;Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/530912761327159356-3778006645435160680?l=www.sunfederal.net%2Ftips' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/3778006645435160680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.sunfederal.net/tips/2009/03/mac-os-x-create-iso-from-cddvd-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/3778006645435160680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/3778006645435160680'/><link rel='alternate' type='text/html' href='http://www.sunfederal.net/tips/2009/03/mac-os-x-create-iso-from-cddvd-and.html' title='MAC OS X: Create an ISO from CD/DVD (and mount it)'/><author><name>Scots</name><uri>http://www.blogger.com/profile/16698584664079449904</uri><email>Scott@RX8R3.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16888993343181992995'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-530912761327159356.post-6996934185407740465</id><published>2009-03-31T18:51:00.000-07:00</published><updated>2009-03-31T19:10:46.395-07:00</updated><title type='text'>MAC OS X: Creating an ISO file from a directory ...</title><content type='html'>Here is the command to create an iso file from a directory on your Mac OS X system:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;hdiutil makehybrid -o ~/image.iso ~/directory -iso -joliet&lt;br /&gt;&lt;br /&gt;Enjoy!  &lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/530912761327159356-6996934185407740465?l=www.sunfederal.net%2Ftips' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/6996934185407740465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.sunfederal.net/tips/2009/03/mac-os-x-creating-iso-file-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/6996934185407740465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/6996934185407740465'/><link rel='alternate' type='text/html' href='http://www.sunfederal.net/tips/2009/03/mac-os-x-creating-iso-file-from.html' title='MAC OS X: Creating an ISO file from a directory ...'/><author><name>Scots</name><uri>http://www.blogger.com/profile/16698584664079449904</uri><email>Scott@RX8R3.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16888993343181992995'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-530912761327159356.post-837062466713322192</id><published>2009-03-27T04:18:00.000-07:00</published><updated>2009-03-27T04:52:39.352-07:00</updated><title type='text'>Solaris:  Mount an ISO file</title><content type='html'>&lt;span&gt;Solaris has the ability to mount an ISO file, just like you stuck in a DVD into the drive.  You need to first create the software device that is "mountable" and then mount it, so there are two basic commands.&lt;br /&gt;&lt;br /&gt;The two files in this example are located in /root/&lt;br /&gt;     sol-10-u6-ga1-sparc-dvd.iso&lt;br /&gt;     sol-10-u6-ga1-x86-dvd.iso&lt;br /&gt;&lt;br /&gt;Create a directory to mount the ISOs to.  I like to create a directory off of root (/) called lofi.  So when you are done, you will have /lofi.  "cd" into /lofi and create two directories, one for each of the solaris types, sol10-sparc sol10-x86 ... so when you are done ... you will have /lofi/sol10-sparc and /lofi/sol10-x86.&lt;br /&gt;&lt;br /&gt;The files you need are in /root, so the lofi command will look like this&lt;br /&gt;     # lofiadm -a /root/sol-10-u6-sparc-dvd.iso /dev/lofi/1&lt;br /&gt;&lt;br /&gt;     # lofiadm -a /root/sol-10-u6-x86-dvd.iso /dev/lofi/2&lt;br /&gt;&lt;br /&gt;Note the device number change at the end.  Now let's mount them to the directories we created.  Remember to "mount" something, the directory has to already exist.&lt;br /&gt;&lt;br /&gt;The command below mounts the sparc image.  The -F is the filesystem type, in this case it is High Sierra File System (HSFS) also known as a type of CD/DVD file system. &lt;br /&gt;&lt;br /&gt;The -o are options that you can add ... in this case we want to specify read-only so the system or users don't think otherwise.&lt;br /&gt;     # mount -F hsfs -o ro /dev/lofi/1 /lofi/sol10-sparc&lt;br /&gt;     # mount -F hsfs -o ro /dev/lofi/2 /lofi/sol10-x86&lt;br /&gt;&lt;br /&gt;So now you can cd into the directories and nab file as needed.&lt;br /&gt;&lt;br /&gt;When you are finished you reverse the steps to get rid of the configuration:&lt;br /&gt;&lt;br /&gt;Unmount the lofi devices&lt;br /&gt;     # umount /lofi/sol10-sparc (make sure you aren't in the directory or it won't unmount)&lt;br /&gt;     # umount /lofi/sol10-x86&lt;br /&gt;&lt;br /&gt;To see the devices that are registered in lofi, just type&lt;br /&gt;     # lofiadm&lt;br /&gt;          Block Device             File&lt;br /&gt;          /dev/lofi/1              /root/sol-10-u6-ga1-sparc-dvd.iso&lt;br /&gt;          /dev/lofi/2              /root/sol-10-u6-ga1-x86-dvd.iso&lt;br /&gt;&lt;br /&gt;To remove the devices:&lt;br /&gt;     # lofiadm -d /dev/lofi/1 (you can enter either the device name or file name)&lt;br /&gt;     # lofiadm -d /dev/lofi/2&lt;br /&gt;&lt;br /&gt;Issue the command lofiadm again ... it should be empty ...&lt;br /&gt;&lt;br /&gt;Enjoy!&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/530912761327159356-837062466713322192?l=www.sunfederal.net%2Ftips' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/837062466713322192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.sunfederal.net/tips/2009/03/solaris-mount-iso-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/837062466713322192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/837062466713322192'/><link rel='alternate' type='text/html' href='http://www.sunfederal.net/tips/2009/03/solaris-mount-iso-file.html' title='Solaris:  Mount an ISO file'/><author><name>Scots</name><uri>http://www.blogger.com/profile/16698584664079449904</uri><email>Scott@RX8R3.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16888993343181992995'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-530912761327159356.post-5906799461675544590</id><published>2009-03-26T12:06:00.000-07:00</published><updated>2009-03-26T12:11:17.453-07:00</updated><title type='text'>Solaris: Resetting webconsole, smcwebconsole so it will start</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: arial;"&gt;This command resets Solaris smcwebserver also known as svc:/system/webconsole:console in services land.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;pre&gt;&lt;span style="font-family: courier new;font-size:100%;" &gt;# smcwebserver stop&lt;br /&gt;# /usr/share/webconsole/private/bin/&lt;b style="color: black; background-color: rgb(255, 255, 102);"&gt;wcremove&lt;/b&gt; -i console&lt;/span&gt;&lt;span style="font-family: Georgia,serif;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# svcs webconsole&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;If it isn't enabled, then make sure cacaoadm is enabled and running&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# /usr/sbin/cacaoadm status&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# /usr/sbin/cacaoadm enable&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# /usr/sbin/cacaoadm start&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# svcadm enable webconsole&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Everything should startup ... &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/530912761327159356-5906799461675544590?l=www.sunfederal.net%2Ftips' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/5906799461675544590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.sunfederal.net/tips/2009/03/solaris-resetting-webconsole.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/5906799461675544590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/5906799461675544590'/><link rel='alternate' type='text/html' href='http://www.sunfederal.net/tips/2009/03/solaris-resetting-webconsole.html' title='Solaris: Resetting webconsole, smcwebconsole so it will start'/><author><name>Scots</name><uri>http://www.blogger.com/profile/16698584664079449904</uri><email>Scott@RX8R3.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16888993343181992995'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-530912761327159356.post-6450375046988167373</id><published>2009-03-26T08:44:00.000-07:00</published><updated>2009-03-26T09:05:22.923-07:00</updated><title type='text'>UNIX: Listing Used Ports</title><content type='html'>This will list used ports on a server along with the interface it is bound to.&lt;br /&gt;&lt;br /&gt;# netstat -an | grep LISTEN | awk '{print $1}'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/530912761327159356-6450375046988167373?l=www.sunfederal.net%2Ftips' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/6450375046988167373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.sunfederal.net/tips/2009/03/unix-listing-used-ports.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/6450375046988167373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/6450375046988167373'/><link rel='alternate' type='text/html' href='http://www.sunfederal.net/tips/2009/03/unix-listing-used-ports.html' title='UNIX: Listing Used Ports'/><author><name>Scots</name><uri>http://www.blogger.com/profile/16698584664079449904</uri><email>Scott@RX8R3.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16888993343181992995'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-530912761327159356.post-8755161288433140371</id><published>2009-03-26T08:41:00.001-07:00</published><updated>2009-03-26T08:44:19.722-07:00</updated><title type='text'>Solaris: Giving a user the ability to start privileged ports</title><content type='html'>In order to give a user other than root to start services requiring ports that are privileged. &lt;br /&gt;&lt;br /&gt;As root, enter the following command on Solaris&lt;br /&gt;&lt;br /&gt;# usermod -K defaultpriv=basic,net_privaddr &lt;username/rolename&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/530912761327159356-8755161288433140371?l=www.sunfederal.net%2Ftips' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/8755161288433140371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.sunfederal.net/tips/2009/03/solaris-giving-user-ability-to-start.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/8755161288433140371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/8755161288433140371'/><link rel='alternate' type='text/html' href='http://www.sunfederal.net/tips/2009/03/solaris-giving-user-ability-to-start.html' title='Solaris: Giving a user the ability to start privileged ports'/><author><name>Scots</name><uri>http://www.blogger.com/profile/16698584664079449904</uri><email>Scott@RX8R3.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16888993343181992995'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-530912761327159356.post-7819027438807122545</id><published>2009-03-26T08:37:00.000-07:00</published><updated>2009-03-26T08:40:56.733-07:00</updated><title type='text'>Copy files maintaining ACL's</title><content type='html'>Following these steps will copy files exactly as they sit on the system.  Doing a regular cp -R /local/original /local/destination will not maintain ACL's&lt;br /&gt;&lt;br /&gt;1.  cd /local/original&lt;br /&gt;2.  mkdir /local/destination&lt;br /&gt;3. find . -print | cpio -dumpv /local/destination&lt;br /&gt;&lt;br /&gt;Thanks Christocyr!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/530912761327159356-7819027438807122545?l=www.sunfederal.net%2Ftips' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/7819027438807122545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.sunfederal.net/tips/2009/03/copy-file-maintaining-acls.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/7819027438807122545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/7819027438807122545'/><link rel='alternate' type='text/html' href='http://www.sunfederal.net/tips/2009/03/copy-file-maintaining-acls.html' title='Copy files maintaining ACL&apos;s'/><author><name>Scots</name><uri>http://www.blogger.com/profile/16698584664079449904</uri><email>Scott@RX8R3.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16888993343181992995'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-530912761327159356.post-2681363811429554542</id><published>2009-03-26T07:52:00.000-07:00</published><updated>2009-03-26T07:58:41.929-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='quick'/><category scheme='http://www.blogger.com/atom/ns#' term='tips'/><category scheme='http://www.blogger.com/atom/ns#' term='technical'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><category scheme='http://www.blogger.com/atom/ns#' term='solaris'/><title type='text'>Welcome to Quick Tips for Solaris/Unix</title><content type='html'>This blog contains totally random Solaris and UNIX quick tips as they come up in my line of work.  I am constantly trying to find the tips that I have found and then lost again.  I hope that this will assist all others who are struggling with simple tasks that are hard to find.&lt;br /&gt;&lt;br /&gt;God bless,&lt;br /&gt;&lt;br /&gt;Scott McDuff, CISSP SCSA MCSE TCA&lt;br /&gt;&lt;a href="mailto:scott@mcduff.org"&gt;scott@mcduff.org&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/530912761327159356-2681363811429554542?l=www.sunfederal.net%2Ftips' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/2681363811429554542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.sunfederal.net/tips/2009/03/welcome-to-quick-tips-for-solarisunix.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/2681363811429554542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/530912761327159356/posts/default/2681363811429554542'/><link rel='alternate' type='text/html' href='http://www.sunfederal.net/tips/2009/03/welcome-to-quick-tips-for-solarisunix.html' title='Welcome to Quick Tips for Solaris/Unix'/><author><name>Scots</name><uri>http://www.blogger.com/profile/16698584664079449904</uri><email>Scott@RX8R3.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16888993343181992995'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry></feed>