<?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>Sys-Admin Information&#039;s &#187; Tips &amp; Tricks</title>
	<atom:link href="http://sysinfo.bascomp.org/category/solaris/tips-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysinfo.bascomp.org</link>
	<description></description>
	<lastBuildDate>Fri, 23 Apr 2010 09:43:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Set hostname without reboot</title>
		<link>http://sysinfo.bascomp.org/2008/04/set-hostname-without-reboot/</link>
		<comments>http://sysinfo.bascomp.org/2008/04/set-hostname-without-reboot/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 07:00:46 +0000</pubDate>
		<dc:creator>Gun nee</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/?p=51</guid>
		<description><![CDATA[
bash&#62; uname -a
SunOS Trojan 5.9 Generic_118558-33 sun4u sparc SUNW,Netra-T12

replace old "hostname" with new "hostname" in file /etc/hosts, /etc/nodename, /etc/hostname."ethernet_port_name", /etc/net/ticlts/hosts, /etc/net/ticotsord/hosts, /etc/net/ticots/hosts

bash&#62; vi /etc/hosts
bash&#62; vi /etc/nodename
bash&#62; vi /etc/hostname.bge0
bash&#62; vi /etc/net/ticlts/hosts
bash&#62; vi /etc/net/ticotsord/hosts
bash&#62; vi /etc/net/ticots/hosts

and then execute command :

hostname &#34;new hostname&#34;


bash&#62; hostname worm
bash&#62; . /.profile

]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-a</span>
SunOS Trojan <span style="color: #000000;">5.9</span> Generic_118558-<span style="color: #000000;">33</span> sun4u sparc SUNW,Netra-T12</pre></div></div>

<p>replace old "hostname" with new "hostname" in file /etc/hosts, /etc/nodename, /etc/hostname."ethernet_port_name", /etc/net/ticlts/hosts, /etc/net/ticotsord/hosts, /etc/net/ticots/hosts</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nodename
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hostname.bge0
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>ticlts<span style="color: #000000; font-weight: bold;">/</span>hosts
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>ticotsord<span style="color: #000000; font-weight: bold;">/</span>hosts
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>ticots<span style="color: #000000; font-weight: bold;">/</span>hosts</pre></div></div>

<p>and then execute command :</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">hostname &quot;new hostname&quot;</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">hostname</span> worm
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> . <span style="color: #000000; font-weight: bold;">/</span>.profile</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/04/set-hostname-without-reboot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to mount an ISO image in Solaris</title>
		<link>http://sysinfo.bascomp.org/2007/11/howto-mount-an-iso-image-in-solaris/</link>
		<comments>http://sysinfo.bascomp.org/2007/11/howto-mount-an-iso-image-in-solaris/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 12:21:48 +0000</pubDate>
		<dc:creator>Hendrawan</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2007/11/15/howto-mount-an-iso-image-in-solaris/</guid>
		<description><![CDATA[Q. How do I mount ISO FILE, And Read under it?
A. You can Use lofi(7D)/lofiadm the loopback  file  driver
Mounting an Existing CD-ROM Image Or File image
Use lofiadm to attach a block device to it:

bash&#62; lofiadm -a /path/to/file.iso
/dev/lofi/1

And Then Use the mount command to mount the image:

bash&#62; mount -F hsfs -o ro /dev/lofi/1 /path/output

lofiadm [...]]]></description>
			<content:encoded><![CDATA[<p>Q. How do I mount ISO FILE, And Read under it?<br />
A. You can Use lofi(7D)/lofiadm the loopback  file  driver</p>
<p>Mounting an Existing CD-ROM Image Or File image<br />
Use lofiadm to attach a block device to it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> lofiadm <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>file.iso
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>lofi<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span></pre></div></div>

<p>And Then Use the mount command to mount the image:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-F</span> hsfs <span style="color: #660033;">-o</span> ro <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>lofi<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>output</pre></div></div>

<p>lofiadm picks the device and prints the device name to the standard  output.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> lofiadm
Block Device    File
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>lofi<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span>    <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>file.iso</pre></div></div>

<p>Check to ensure that Solaris understands the image:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #660033;">-h</span>
Filesystem    <span style="color: #c20cb9; font-weight: bold;">size</span>   used  avail capacity  Mounted on
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>lofi<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span>     0K     0K     0K     <span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">%</span>    <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>output</pre></div></div>

<p>As a final step, unmount and detach the images:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>output
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> lofiadm <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>lofi<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> lofiadm
Block Device    File</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2007/11/howto-mount-an-iso-image-in-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
