<?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</title>
	<atom:link href="http://schlunix.org/feed" rel="self" type="application/rss+xml" />
	<link>http://schlunix.org</link>
	<description>endeavors in *nix</description>
	<lastBuildDate>Sat, 16 Jan 2010 08:31:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Oops, I updated Windows and overwrote the MBR</title>
		<link>http://schlunix.org/archives/37</link>
		<comments>http://schlunix.org/archives/37#comments</comments>
		<pubDate>Sat, 16 Jan 2010 08:31:50 +0000</pubDate>
		<dc:creator>Lyle</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dual boot]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[mbr]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://schlunix.org/?p=37</guid>
		<description><![CDATA[I just updated to Windows 7 on my dual-boot laptop, and of course, Windows is greedy, and with its brain-dead installation process it just assumes I would like to overwrite the MBR. Here&#8217;s how I got GRUB working again: I downloaded the latest ArchLinux Live distro from http://arch-live.isawsome.net/iso/ which at the time of writing was [...]]]></description>
			<content:encoded><![CDATA[<p>I just updated to Windows 7 on my dual-boot laptop, and of course, Windows is greedy, and with its brain-dead installation process it just assumes I would like to overwrite the MBR. Here&#8217;s how I got GRUB working again:</p>
<p>I downloaded the latest ArchLinux Live distro from <a href="http://arch-live.isawsome.net/iso/" target="_blank">http://arch-live.isawsome.net/iso/</a> which at the time of writing was &#8220;20080731&#8243;. Burned the ISO to a disk and booted the computer from it. I chose the console only boot option, no need for a full desktop session as this is a quick fix.</p>
<p>The steps to locate the correct GRUB info and rewrite the MBR, directly from the ArchLinux wiki pages at <a href="http://wiki.archlinux.org/index.php/Grub" target="_blank">http://wiki.archlinux.org/index.php/Grub</a>. Just be mindful, like always, that if you do this wrong you may make matters worse, so do your reading first! If you screw up your computer, it&#8217;s your own fault.</p>
<p>If you are unaware of the the location of /boot, use the GRUB shell find command to locate the GRUB files.  Enter the GRUB shell by:</p>
<pre># grub
</pre>
<p>The following example is for systems <em>without</em> a separate /boot partition, wherein /boot is merely a directory under /:</p>
<pre>grub&gt; find /boot/grub/stage1
</pre>
<p>The following example is for systems <em>with</em> a separate /boot partition:</p>
<pre>grub&gt; find /grub/stage1
</pre>
<p>GRUB will find the file, and output the location of the stage1 file. For example:</p>
<pre>(hd0,0)
</pre>
<p>This value should be entered on the root line in your configuration file.</p>
<p>Use the root command with the output from the find command to instruct GRUB which partition contains stage1 (and therefore, /boot):</p>
<pre>grub&gt; root (hd0,0)</pre>
<p>The following example installs GRUB to the MBR of the first drive:</p>
<pre>grub&gt; setup (hd0)</pre>
<p>Then just reboot, pop the live CD out, and you have control of your computer again!</p>
]]></content:encoded>
			<wfw:commentRss>http://schlunix.org/archives/37/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot Connect to Hidden Wireless Network</title>
		<link>http://schlunix.org/archives/31</link>
		<comments>http://schlunix.org/archives/31#comments</comments>
		<pubDate>Sat, 01 Aug 2009 04:00:06 +0000</pubDate>
		<dc:creator>Lyle</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://schlunix.org/?p=31</guid>
		<description><![CDATA[I don&#8217;t know if this is Arch Linux specific or not. After a recent kernel upgrade, 2.6.28, I was not able to connect to hidden wireless networks. This could either be fixed by unhiding the SSID, or by the steps below. Install the &#8220;crda&#8221; package: # pacman -S crda Uncomment your region in the &#8220;wireless-regdom&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know if this is Arch Linux specific or not. After a recent kernel upgrade, 2.6.28, I was not able to connect to hidden wireless networks. This could either be fixed by unhiding the SSID, or by the steps below.</p>
<p>Install the &#8220;crda&#8221; package:<br />
# pacman -S crda</p>
<p>Uncomment your region in the &#8220;wireless-regdom&#8221; file:<br />
# vi /etc/conf.d/wireless-regdom</p>
<p>Add &#8220;wireless-regdom&#8221; to the daemons line of rc.conf:<br />
# vi /etc/rc.conf</p>
<blockquote><p>DAEMONS=(syslog-ng hal dhcdbd !network wireless-regdom networkmanager rpcbind nfs-common @alsa @openntpd @netfs @crond gdm)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://schlunix.org/archives/31/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lock mythtv frontends from updating video metadata</title>
		<link>http://schlunix.org/archives/12</link>
		<comments>http://schlunix.org/archives/12#comments</comments>
		<pubDate>Sun, 17 Aug 2008 18:20:31 +0000</pubDate>
		<dc:creator>Lyle</dc:creator>
				<category><![CDATA[MythTV]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[metadata]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://schlunix.org/?p=12</guid>
		<description><![CDATA[I wanted to lock certain mythtv frontends from updating my precious video metadata. Just to ensure my hours of hard work are not wasted. Yes I have database backups, but this is a better solution.]]></description>
			<content:encoded><![CDATA[<p>I wanted to lock other frontends out from making video metadata changes to my mythtv database. There does not seem to be a way to do this easily through mythtv. So with some research and expirimenting I have come up with this solution. This was used on mythtv v.21; MySQL v5.0.60; and Arch Linux 2008.06.</p>
<p>First thing first, backup up your database on the mythtv backend with:<br />
$ mysqldump -u &lt;myth_user&gt; -p &#8211;extended-insert &#8211;databases &lt;myth_db_name&gt; &gt; mythdatabase.bak<br />
Password: &lt;myth_password&gt;</p>
<p>I created a new database on seperate server just because I new I would screw this up plenty while figuring it out. So if you do it on your live database, MAKE SURE YOU HAVE A BACKUP. YOU HAVE BEEN WARNED! The following will create a new database from your backup (use this only if you want to create the database somewhere else):<br />
mysql -u &lt;root_user&gt; -p &lt;mythdatabase.bak<br />
Password: &lt;root_password&gt;</p>
<p>Now I have a database with all my real world settings and information in it. The next step will be to add a user to it. I will call this new user &#8216;unpriv&#8217; and want to make their permissions so that they WILL be able to do anything in the mythconverg db they want EXCEPT make changes to video metadata. Basically the default &#8216;mythuser&#8217; minus the update permissions for the videometadata tables.</p>
<p>Login to mysql as root:<br />
mysql -u root -p</p>
<p>Give the following a read: <a href="http://http://www.devshed.com/c/a/MySQL/The-MySQL-Grant-Tables">http://www.devshed.com/c/a/MySQL/The-MySQL-Grant-Tables</a><br />
According to the information at devshed, we will want to give the &#8216;unpriv&#8217; user no privileges at the user or database level, but set the privileges at the table level (in the tables_priv table of the mysql database).</p>
<p><em><strong>STEP 1 -</strong></em></p>
<p>Create an unprivileged user with the CREATE USER statement (MySQL 5.0.2+) with the following syntax:<br />
CREATE USER user [IDENTIFIED BY [PASSWORD] &#8216;password&#8217;]</p>
<p>Here is mine as an examle:<br />
CREATE USER &#8216;unpriv&#8217;@&#8217;192.168.1.102&#8242; IDENTIFIED BY &#8216;easy2guess&#8217;;</p>
<p><em><strong>STEP 2 -</strong></em></p>
<p>Grant minimum permissions at the database level to user &#8216;unpriv&#8217; with the following:<br />
GRANT ALL ON mythconverg.* TO &#8216;unpriv&#8217;@&#8217;192.168.1.102&#8242; IDENTIFIED BY &#8216;easy2guess&#8217;;<br />
REVOKE DROP, ALTER, DELETE, UPDATE, INSERT ON mythconverg.* FROM &#8216;unpriv&#8217;@&#8217;192.168.1.102&#8242;;</p>
<p>That grants all privileges then revokes the ones that we want to keep the &#8216;unpriv&#8217; user from having (right now anyways), &#8216;unpriv&#8217; will need more permissions set up at the table level to make personal settings changes. I tried this a couple different ways and found the above GRANT ALL / REVOKE to be the easiest way. The user has to have a few permissions to even start the mythtv frontend. So I left those turned on at the database level, because you will never want to turn those off.</p>
<p><em><strong>STEP 2a -</strong></em></p>
<p>Try connecting to the database from mythtv with user &#8216;unpriv&#8217;. I had to manually change the ~/.mythtv/mysql.txt and ~/.mythtv/config.xml files with the new info, mythtv wouldn&#8217;t keep it otherwise.</p>
<p>Mythtv seems to quietly accept that it cannot write to the database. If you start it up and try to change themes or edit video metadata, it will look like you made a change, but if you leave that screen and go back to it you will see that the change did not take effect. Perfect. Now we are getting somewhere.</p>
<p><em><strong>STEP 3 -</strong></em></p>
<p>Now we need to grant DROP, ALTER, DELETE, UPDATE, INSERT privileges on a table by table basis for user &#8216;unpriv&#8217; in the &#8216;mythconverg&#8217; database. This would be an extremely daunting task to manually grant privileges on 88 tables. But thanks to <a href="http://archives.neohapsis.com/archives/mysql/2006-q4/0372.html">http://archives.neohapsis.com/archives/mysql/2006-q4/0372.html</a> this can be accomplished much easier with a little script.</p>
<p>SELECT CONCAT(&#8216;GRANT DROP, ALTER, DELETE, UPDATE, INSERT ON mythconverg.&#8217;, TABLE_NAME, &#8216; TO &#8221;unpriv&#8221;@&#8221;192.168.1.102&#8221;;&#8217;)<br />
FROM INFORMATION_SCHEMA.TABLES<br />
WHERE TABLE_SCHEMA = &#8216;mythconverg&#8217;;</p>
<p>*note that in the above command those are ALL single quotes ( &#8216; ).</p>
<p>This will print out the commands to grant DROP, ALTER, DELETE, UPDATE, INSERT privileges to &#8216;unpriv&#8217; on all 88 tables in &#8216;mythconverg&#8217;. Or you can use the script <a href="http://www.schlunix.org/content/SCRIPT_grant_tables_priv" target="blank">here</a> and just change the &lt;user&gt;, &lt;host&gt;, and &lt;password&gt; to fit your needs.</p>
<p>Now we want to revoke UPDATE and INSERT privileges from user &#8216;unpriv&#8217; for the video metadata tables. Find them with:<br />
mysql&gt; SELECT TABLE_NAME FROM information_schema.tables WHERE TABLE_NAME LIKE &#8216;videometa%&#8217;;</p>
<p>And revoke the privileges with:<br />
REVOKE UPDATE, INSERT ON mythconverg.videometadata FROM &#8216;unpriv&#8217;@&#8217;192.168.1.102&#8242;;<br />
REVOKE UPDATE, INSERT ON mythconverg.videometadatacast FROM &#8216;unpriv&#8217;@&#8217;192.168.1.102&#8242;;<br />
REVOKE UPDATE, INSERT ON mythconverg.videometadatacountry FROM &#8216;unpriv&#8217;@&#8217;192.168.1.102&#8242;;<br />
REVOKE UPDATE, INSERT ON mythconverg.videometadatagenre FROM &#8216;unpriv&#8217;@&#8217;192.168.1.102&#8242;;</p>
<p><em><strong>STEP 4 -</strong></em></p>
<p>Start mythtv. Now you cannot edit any of the video metadata through Setup -&gt; Video Manager. When you try to it will look like it accepts the change, but if you exit the Video Manager and return to it, you will see that the change was not saved to the database.</p>
<p>Perfect! Now if you have a frontend that you do not want to allow to change your video metadata, just setup their mythtv with user &#8216;unpriv&#8217; instead of your normal mythtv user (typically &#8216;mythtv&#8217;).</p>
<p>By having most of the privileges set at the table level instead of user or database level, you will be able to easily control access to other parts of the database as you see fit. i.e. restricting access to music metadata.</p>
<p>Thanks to help from:<br />
<a href="http://archives.neohapsis.com/archives/mysql/2006-q4/0372.html">http://archives.neohapsis.com/archives/mysql/2006-q4/0372.html</a><br />
<a href="http://www.devshed.com/c/a/MySQL/The-MySQL-Grant-Tables">http://www.devshed.com/c/a/MySQL/The-MySQL-Grant-Tables</a><br />
<a href="http://www.mythtv.org/wiki/index.php/Backup_your_database">http://www.mythtv.org/wiki/index.php/Backup_your_database</a></p>
]]></content:encoded>
			<wfw:commentRss>http://schlunix.org/archives/12/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arch Linux Package Mirror</title>
		<link>http://schlunix.org/archives/10</link>
		<comments>http://schlunix.org/archives/10#comments</comments>
		<pubDate>Sat, 28 Jun 2008 00:46:24 +0000</pubDate>
		<dc:creator>Lyle</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[arch linux]]></category>
		<category><![CDATA[package mirror]]></category>
		<category><![CDATA[pacman]]></category>

		<guid isPermaLink="false">http://schlunix.org/2008/06/arch-linux-package-mirror/</guid>
		<description><![CDATA[I finally get a chance to give something back to the Linux community that has been so good to me over the past few years. I started a package mirror for Arch Linux, sure there are plenty of other ones to chose from. But this is a way I can at least do a little [...]]]></description>
			<content:encoded><![CDATA[<p>I finally get a chance to give something back to the Linux community that has been so good to me over the past few years.</p>
<p>I started a package mirror for Arch Linux, sure there are plenty of other ones to chose from. But this is a way I can at least do a little something to give back. Plus, there is one more thing that will hopefully help people out from time to time. I am going to try to never delete any old packages. That way if you ever need to roll back a package but don&#8217;t have it locally, there will be a good chance you will be able to find it here.</p>
<p>Just add the following to your /etc/pacman.d/mirrorlist</p>
<p>for i686:<br />
Server = http://www.schlunix.org/archlinux/$repo/os/i686</p>
<p>or if using x86_64:<br />
Server = http://www.schlunix.org/archlinux/$repo/os/x86_64</p>
<p>Some older i686 packages are still located at <a href="http://schlunix.org/arch-linux/i686" target="_blank">http://schlunix.org/arch-linux/i686</a></p>
]]></content:encoded>
			<wfw:commentRss>http://schlunix.org/archives/10/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
		<item>
		<title>More on redirects with apache</title>
		<link>http://schlunix.org/archives/4</link>
		<comments>http://schlunix.org/archives/4#comments</comments>
		<pubDate>Sun, 25 May 2008 09:56:22 +0000</pubDate>
		<dc:creator>Lyle</dc:creator>
				<category><![CDATA[Apache 2]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[redirects]]></category>
		<category><![CDATA[virtualhost]]></category>
		<category><![CDATA[wildcard]]></category>

		<guid isPermaLink="false">http://schlunix.org/?p=4</guid>
		<description><![CDATA[Okay I got the redirects working finally (correctly), to redirect domain.com to www.domain.com. I tried a simple RedirectMatch but that was directing everything with &#8220;sunfire.mydomain.home&#8221; to &#8220;www.sunfire.mydomain.home&#8221;. So &#8220;blog.sunfire.mydomain.home&#8221; was redirecting to &#8220;www.sunfire.mydomain.home&#8221;. Just had to put this in my .htaccess: RewriteEngine On #Options +FollowSymlinks RewriteCond %{HTTP_HOST} ^sunfire\.mydomain\.home RewriteRule ^(.*)$ http://www.sunfire.mydomain.home [R=permanent,L] Notice I don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Okay I got the redirects working finally (correctly), to redirect domain.com to www.domain.com. I tried a simple RedirectMatch but that was directing everything with &#8220;sunfire.mydomain.home&#8221; to &#8220;www.sunfire.mydomain.home&#8221;. So &#8220;blog.sunfire.mydomain.home&#8221; was redirecting to &#8220;www.sunfire.mydomain.home&#8221;.</p>
<p>Just had to put this in my .htaccess:</p>
<p>RewriteEngine On<br />
#Options +FollowSymlinks<br />
RewriteCond %{HTTP_HOST} ^sunfire\.mydomain\.home<br />
RewriteRule ^(.*)$ http://www.sunfire.mydomain.home [R=permanent,L]</p>
<p>Notice I don&#8217;t need the +FollowSymlinks in .htaccess because I put that in my httpd.conf</p>
]]></content:encoded>
			<wfw:commentRss>http://schlunix.org/archives/4/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting redirects working in apache</title>
		<link>http://schlunix.org/archives/3</link>
		<comments>http://schlunix.org/archives/3#comments</comments>
		<pubDate>Sun, 25 May 2008 09:54:57 +0000</pubDate>
		<dc:creator>Lyle</dc:creator>
				<category><![CDATA[Apache 2]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[redirects]]></category>
		<category><![CDATA[virtualhost]]></category>
		<category><![CDATA[wildcard]]></category>

		<guid isPermaLink="false">http://schlunix.org/?p=3</guid>
		<description><![CDATA[Been down for a while, reconfiguring apache. I got the automatic domain thing working now so I can make all the subdomains I want and apache will automatically redirect to them. Of course I managed to screw it up somehow and had some sort of redirect loop going on. I just redid everything and it [...]]]></description>
			<content:encoded><![CDATA[<p>Been down for a while, reconfiguring apache. I got the automatic domain thing working now so I can make all the subdomains I want and apache will automatically redirect to them.</p>
<p>Of course I managed to screw it up somehow and had some sort of redirect loop going on. I just redid everything and it seems to be working now. I had been playing around with RedirectMatch and different configurations in httpd.conf and think I had some conflicting info somewhere, so resorted to a backup and stepped back through setting up the virtual servers. Used this site <a href="http://www.megalinux.net/archives/649.html" target="_blank">http://www.megalinux.net/archives/649.html</a> as my guide.</p>
<p>To make the virtual servers work really nicely and not have to set multiple ones up in apache do it like that site says:<br />
These are the steps from the site but subsituted with what I needed to use.<br />
Step 1: Configure wild-card DNS, so that *.sunfire.mydomain.home is a CNAME to sunfire.mydomain.home</p>
<p>Step 2: Configure apache. Create a new virtualhost section for *.sunfire.mydomain.home, like:</p>
<p>VirtualHost *<br />
ServerAlias *.sunfire.mydomain.home<br />
CustomLog /www/logs/subdomains.sunfire.mydomain.home-access_log combined<br />
ErrorLog /www/logs/subdomains.sunfire.mydomain.home-error_log<br />
VirtualDocumentRoot /www/%0<br />
VirtualScriptAlias  /www/%0/cgi-bin/<br />
/VirtualHost</p>
<p>Step 3: Restart apache to activate the new configuration</p>
<p>Step 4: Now, say you need blog.sunfire.mydomain.home, all that is required is to create these two directories<br />
/www/blog.sunfire.mydomain.home/<br />
/www/blog.sunfire.mydomain.home/cgi-bin/</p>
<p>Put the pertinent files in them and you can access them without having to restart apache</p>
<p>To do: Setup a redirect from domain.com to www.subdomain.com.</p>
]]></content:encoded>
			<wfw:commentRss>http://schlunix.org/archives/3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
