<?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>Schlunix.org &#187; Solaris 10</title>
	<atom:link href="http://schlunix.org/archives/category/solaris10/feed" rel="self" type="application/rss+xml" />
	<link>http://schlunix.org</link>
	<description>endeavors in *nix</description>
	<lastBuildDate>Thu, 30 Sep 2010 03:40:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Solaris 10 DNS Server for LAN</title>
		<link>http://schlunix.org/archives/8</link>
		<comments>http://schlunix.org/archives/8#comments</comments>
		<pubDate>Sun, 25 May 2008 10:03:00 +0000</pubDate>
		<dc:creator>Lyle</dc:creator>
				<category><![CDATA[Apache 2]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dns server]]></category>
		<category><![CDATA[lan]]></category>
		<category><![CDATA[solaris 10]]></category>

		<guid isPermaLink="false">http://schlunix.org/?p=8</guid>
		<description><![CDATA[I finally got a DNS server up and running for my computers. Thanks to http://www.logiqwest.com/dataCenter/Demos/RunBooks/DNS/DNSsetup.html with a great little script that turns your hosts file into DNS entries for BIND. Basically it came down to: Editing the /etc/hosts file to have all the records I wanted Create /var/named directory Place the h2n script in the [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got a DNS server up and running for my computers. Thanks to <a title="Logiqwest.com" href="http://www.logiqwest.com/dataCenter/Demos/RunBooks/DNS/DNSsetup.html" target="_blank">http://www.logiqwest.com/dataCenter/Demos/RunBooks/DNS/DNSsetup.html</a><br />
with a great little script that turns your hosts file into DNS entries for BIND.<br />
Basically it came down to:<br />
Editing the /etc/hosts file to have all the records I wanted<br />
Create /var/named directory<br />
Place the h2n script in the /var/named directory<br />
Execute the script with the following options:<br />
./h2n -d mydomain.home -n 192.168.1 -u email@mydomain.home<br />
Edit the resulting db.mydomain file to contain a CNAME to work nicely with my apache config<br />
*                       CNAME   sunfire<br />
Download the named.root file from <a href="ftp://ftp.rs.internic.net/" target="_blank">ftp://ftp.rs.internic.net/</a><br />
Copy it into the /var/named directory and change the name to db.cache<br />
cp named.conf /etc<br />
Make sure /etc/nsswitch.conf has the following line:<br />
hosts:      files    dns<br />
Create or Edit /etc/defaultdomain to contain the domain name, ie, &#8220;mydomain.home&#8221;<br />
Set the domain name<br />
# domainname `cat /etc/defaultdomain`<br />
Edit /etc/resolv.conf to contain:<br />
# these entries should be after the real world nameserver entries<br />
domain mydomain.home         # the domain just made<br />
nameserver 192.168.1.110   # the IP of the DNS server<br />
Check if the DNS server is running:<br />
svcs -a | grep dns<br />
If it isn&#8217;t, start it with:<br />
svcadm enable /network/dns/server<br />
Then start the named service:<br />
/usr/sbin/in.named &amp;<br />
&#8220;To use DNS, clients need to modify the /etc/resolv.conf, and /etc/nsswitch.conf as above. The /etc/defaultdomain file must also be created and establsihed as above.&#8221;<br />
I was able to use the DNS server I just made from a linux PC by just adding the IP of the new DNS server to my /etc/resolv.conf file</p>
]]></content:encoded>
			<wfw:commentRss>http://schlunix.org/archives/8/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris 10 NTP Setup</title>
		<link>http://schlunix.org/archives/7</link>
		<comments>http://schlunix.org/archives/7#comments</comments>
		<pubDate>Sun, 25 May 2008 10:00:53 +0000</pubDate>
		<dc:creator>Lyle</dc:creator>
				<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[ntpd]]></category>
		<category><![CDATA[solaris 10]]></category>

		<guid isPermaLink="false">http://schlunix.org/?p=7</guid>
		<description><![CDATA[The config file is in /etc/inet/ntp.conf Setup the file based on instructions here http://www.itworld.com/Comp/3380/nls_unixntp3041028/ &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; The top 50 lines or so of this prototype file are comments that provide information on the syntax of the operative lines. The most important line of this file is the server line. The initial server line will look like [...]]]></description>
			<content:encoded><![CDATA[<p>The config file is in<br />
/etc/inet/ntp.conf</p>
<p>Setup the file based on instructions here <a href="http://www.itworld.com/Comp/3380/nls_unixntp3041028/" target="_blank">http://www.itworld.com/Comp/3380/nls_unixntp3041028/</a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
The top 50 lines or so of this prototype file are comments that provide information on the syntax of the operative lines. The most important line of this file is the server line. The initial server line will look like this:</p>
<p>server 127.127.XType.0 prefer</p>
<p>If you want to set up NTP for synchronization purposes only and are unconcerned with whether or not the system clocks are accurate with respect to the atomic clocks, you can configure this line to look like this:</p>
<p>server 127.127.1.0 prefer</p>
<p>The third octet in this IP address, the &#8220;1&#8243;, indicates that you are electing to use a reference clock driver of type &#8220;undisciplined local clock&#8221;. This simply means your system clock. This setting is intended for isolated networks where no external source of synchronization is available. The 127.127.1.0 IP address is a type of loopback (as are all IP addresses in the 127.127.x.x range), indicating that this NTP server will use its own clock as a time reference and will make no requests to external time sources. NTP clients using this server for time information should use the multicastclient keyword as shown below. The 127.127.1.0 loopback can also be used on networks where real time is unimportant, but synchronization is critical.</p>
<p>multicastclient 224.0.1.1</p>
<p>If you want your NTP server to obtain time updates from external servers, add server lines like these (the same as those shown earlier in the column):</p>
<p>server 129.6.15.28 prefer<br />
server 216.200.93.8<br />
server 64.236.96.53<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Check what dependencies xntp relies on:<br />
svcs -l svc:/network/ntp:default</p>
<p>If all dependencies exist then:<br />
svcadm enable svc:/network/ntp<br />
svcadm refresh svc:/network/ntp<br />
svcadm restart svc:/network/ntp</p>
<p>This should start xntpd.</p>
<p>Check to see if the ntp daemon is running:<br />
svcs | grep ntp</p>
<p>should give something like:<br />
online         Nov_10   svc:/network/ntp:default</p>
]]></content:encoded>
			<wfw:commentRss>http://schlunix.org/archives/7/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris 10 Networking Setup</title>
		<link>http://schlunix.org/archives/6</link>
		<comments>http://schlunix.org/archives/6#comments</comments>
		<pubDate>Sun, 25 May 2008 09:59:57 +0000</pubDate>
		<dc:creator>Lyle</dc:creator>
				<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[solaris 10]]></category>

		<guid isPermaLink="false">http://schlunix.org/?p=6</guid>
		<description><![CDATA[With all I&#8217;ve been doing getting the server up and running with apache and everything else I never realized it could not connect to the internet. blastwave.org to the rescue: http://www.blastwave.org/docs/step-152.html To get the networking setup to be able to access the internet I needed to edit /etc/defaultrouter and put my router&#8217;s IP in there. [...]]]></description>
			<content:encoded><![CDATA[<p>With all I&#8217;ve been doing getting the server up and running with apache and everything else I never realized it could not connect to the internet.</p>
<p>blastwave.org to the rescue: <a href="http://www.blastwave.org/docs/step-152.html" target="_blank">http://www.blastwave.org/docs/step-152.html</a></p>
<p>To get the networking setup to be able to access the internet I needed to edit /etc/defaultrouter and put my router&#8217;s IP in there. This file was already correct from when I first setup Solaris.</p>
<p>I had to create the file /etc/inet/resolv.conf which is setup just like the Linux /etc/resolv.conf. Just add nameservers to it, one on each line:<br />
nameserver 192.168.1.1<br />
nameserver 22.33.44.55</p>
<p>chown the resolv.conf file with &#8216;chown root:sys /etc/inet/resolv.conf&#8217;</p>
<p>Then make a symlink from /etc/inet/resolv.conf to /etc/resolv.conf with: &#8216;ln -s /etc/inet/resolv.conf /etc/resolv.conf&#8217;</p>
<p>Edit /etc/nsswitch.conf and add &#8220;dns&#8221; to the &#8220;hosts&#8221; line.</p>
<p>Make sure /etc/inet/hosts and /etc/inet/ipnodes are setup correctly. Hosts should have the loopback and your network IP with your hostname and &#8216;loghost&#8217; on that line:<br />
127.0.0.1       localhost<br />
192.168.1.110   sunfire loghost</p>
<p>ipnodes is very similar:<br />
::1     localhost<br />
127.0.0.1       localhost<br />
192.168.1.110   sunfire loghost</p>
<p>And thats it. Didn&#8217;t have to restart networking or reboot the machine or anything. A simple &#8216;ping -s google.com 56 10&#8242; confirmed that the machine could resolve an IP and hit google.</p>
]]></content:encoded>
			<wfw:commentRss>http://schlunix.org/archives/6/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C Shell in Solaris 10</title>
		<link>http://schlunix.org/archives/5</link>
		<comments>http://schlunix.org/archives/5#comments</comments>
		<pubDate>Sun, 25 May 2008 09:58:31 +0000</pubDate>
		<dc:creator>Lyle</dc:creator>
				<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[c shell]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[solaris 10]]></category>
		<category><![CDATA[tcsh]]></category>

		<guid isPermaLink="false">http://schlunix.org/?p=5</guid>
		<description><![CDATA[I forget where I found the instructions on to do this, but I simplified them to make it easier for me next time&#8230; Anyway here it is. I set up C shell on the Sun server. Much nicer than Bourne. It has history and a nice looking prompt and everything. Can even use the arrow [...]]]></description>
			<content:encoded><![CDATA[<p>I forget where I found the instructions on to do this, but I simplified them to make it easier for me next time&#8230; Anyway here it is.</p>
<p>I set up C shell on the Sun server. Much nicer than Bourne. It has history and a nice looking prompt and everything. Can even use the arrow keys.<br />
As a non root user to change your shell:<br />
passwd -e</p>
<p>It will prompt you for your new shell, you want /bin/tcsh</p>
<p>In your home directory, make/modify &#8216;.login&#8217; so it contains:<br />
#&#8212;&#8211;start of file<br />
stty erase ^H<br />
#&#8212;&#8211;end of file</p>
<p>make/modify &#8216;.cshrc&#8217; so it contains:<br />
#&#8212;&#8211;start of file<br />
set autolist<br />
set notify<br />
set correct=cmd<br />
set prompt=&#8221;[%n@%m][%c]$ &#8221;<br />
set savehist=7000<br />
setenv PAGER &#8216;less -s&#8217;[/code]<br />
#-----end of file</p>
<p>As root you want to keep the Bourne shell, but if you want, just use it once you are logged in by typing /bin/tcsh at the command prompt.</p>
<p>I copied the .login and .cshrc files to root's home and changed the '$' in the prompt to a '#'</p>
<p>I also copied both of those files to /etc/skel so they can be put in all new users home folders and will be useful if I set their default shell (or they set it) to C shell.</p>
]]></content:encoded>
			<wfw:commentRss>http://schlunix.org/archives/5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

