<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-530912761327159356</atom:id><lastBuildDate>Sat, 02 Jan 2010 13:32:42 +0000</lastBuildDate><title>Quick Solaris/UNIX Tips</title><description></description><link>http://www.sunfederal.net/tips/</link><managingEditor>Scott@RX8R3.com (Scots)</managingEditor><generator>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-530912761327159356.post-7429537399721556223</guid><pubDate>Mon, 06 Apr 2009 16:42:00 +0000</pubDate><atom:updated>2009-04-06T09:48:56.328-07:00</atom:updated><title>Solaris: SunRay Error Codes</title><description>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;</description><link>http://www.sunfederal.net/tips/2009/04/solaris-sunray-error-codes.html</link><author>Scott@RX8R3.com (Scots)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-530912761327159356.post-3778006645435160680</guid><pubDate>Wed, 01 Apr 2009 05:34:00 +0000</pubDate><atom:updated>2009-03-31T22:46:21.279-07:00</atom:updated><title>MAC OS X: Create an ISO from CD/DVD (and mount it)</title><description>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;</description><link>http://www.sunfederal.net/tips/2009/03/mac-os-x-create-iso-from-cddvd-and.html</link><author>Scott@RX8R3.com (Scots)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-530912761327159356.post-6996934185407740465</guid><pubDate>Wed, 01 Apr 2009 01:51:00 +0000</pubDate><atom:updated>2009-03-31T19:10:46.395-07:00</atom:updated><title>MAC OS X: Creating an ISO file from a directory ...</title><description>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;</description><link>http://www.sunfederal.net/tips/2009/03/mac-os-x-creating-iso-file-from.html</link><author>Scott@RX8R3.com (Scots)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-530912761327159356.post-837062466713322192</guid><pubDate>Fri, 27 Mar 2009 11:18:00 +0000</pubDate><atom:updated>2009-03-27T04:52:39.352-07:00</atom:updated><title>Solaris:  Mount an ISO file</title><description>&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;</description><link>http://www.sunfederal.net/tips/2009/03/solaris-mount-iso-file.html</link><author>Scott@RX8R3.com (Scots)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-530912761327159356.post-5906799461675544590</guid><pubDate>Thu, 26 Mar 2009 19:06:00 +0000</pubDate><atom:updated>2009-03-26T12:11:17.453-07:00</atom:updated><title>Solaris: Resetting webconsole, smcwebconsole so it will start</title><description>&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;</description><link>http://www.sunfederal.net/tips/2009/03/solaris-resetting-webconsole.html</link><author>Scott@RX8R3.com (Scots)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-530912761327159356.post-6450375046988167373</guid><pubDate>Thu, 26 Mar 2009 15:44:00 +0000</pubDate><atom:updated>2009-03-26T09:05:22.923-07:00</atom:updated><title>UNIX: Listing Used Ports</title><description>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;</description><link>http://www.sunfederal.net/tips/2009/03/unix-listing-used-ports.html</link><author>Scott@RX8R3.com (Scots)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-530912761327159356.post-8755161288433140371</guid><pubDate>Thu, 26 Mar 2009 15:41:00 +0000</pubDate><atom:updated>2009-03-26T08:44:19.722-07:00</atom:updated><title>Solaris: Giving a user the ability to start privileged ports</title><description>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;</description><link>http://www.sunfederal.net/tips/2009/03/solaris-giving-user-ability-to-start.html</link><author>Scott@RX8R3.com (Scots)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-530912761327159356.post-7819027438807122545</guid><pubDate>Thu, 26 Mar 2009 15:37:00 +0000</pubDate><atom:updated>2009-03-26T08:40:56.733-07:00</atom:updated><title>Copy files maintaining ACL's</title><description>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;</description><link>http://www.sunfederal.net/tips/2009/03/copy-file-maintaining-acls.html</link><author>Scott@RX8R3.com (Scots)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-530912761327159356.post-2681363811429554542</guid><pubDate>Thu, 26 Mar 2009 14:52:00 +0000</pubDate><atom:updated>2009-03-26T07:58:41.929-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>quick</category><category domain='http://www.blogger.com/atom/ns#'>tips</category><category domain='http://www.blogger.com/atom/ns#'>technical</category><category domain='http://www.blogger.com/atom/ns#'>unix</category><category domain='http://www.blogger.com/atom/ns#'>solaris</category><title>Welcome to Quick Tips for Solaris/Unix</title><description>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;</description><link>http://www.sunfederal.net/tips/2009/03/welcome-to-quick-tips-for-solarisunix.html</link><author>Scott@RX8R3.com (Scots)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item></channel></rss>