<?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>ShiNNinG.net</title>
	<atom:link href="http://www.shinning.net/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.shinning.net</link>
	<description>saving the world, one post at a time</description>
	<lastBuildDate>Thu, 26 Aug 2010 21:23:34 +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>Apache and Ubuntu Server 9.10</title>
		<link>http://www.shinning.net/?p=27</link>
		<comments>http://www.shinning.net/?p=27#comments</comments>
		<pubDate>Thu, 26 Aug 2010 21:23:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.shinning.net/?p=27</guid>
		<description><![CDATA[https://help.ubuntu.com/9.10/serverguide/C/httpd.html]]></description>
			<content:encoded><![CDATA[<p><a title="https://help.ubuntu.com/9.10/serverguide/C/httpd.html" href="https://help.ubuntu.com/9.10/serverguide/C/httpd.html" target="_blank">https://help.ubuntu.com/9.10/serverguide/C/httpd.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shinning.net/?feed=rss2&amp;p=27</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virtual Email Domains in Postfix</title>
		<link>http://www.shinning.net/?p=16</link>
		<comments>http://www.shinning.net/?p=16#comments</comments>
		<pubDate>Mon, 26 Nov 2007 20:43:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat]]></category>

		<guid isPermaLink="false">http://www.shinning.net/?p=16</guid>
		<description><![CDATA[http://www.postfix.org/VIRTUAL_README.html]]></description>
			<content:encoded><![CDATA[<p>There are several ways to implement virtual email hosting with Postfix. I will only be covering on of them, using the VIRTUAL_ALIAS configuration directive to dump incoming mail to local user accounts and/or forwarding. Set is pretty straight forward. First, edit the Postfix configuration file, on Linux systems it&#8217;s usually /etc/postfix/main.cf. Add the following lines to the configuration file replacing example.com with the domain you wish to receive mail for:<code><br />
virtual_alias_domains = example.com<br />
virtual_alias_maps = hash:/etc/postfix/virtual<br />
</code>This specifies we wish to receive mail for example.com and to look in the /etc/postfix/virtual file for a list of users we accept mail for.</p>
<p>Next we need to create our virtual user list, edit the file /etc/postfix/virtual. Now by default you may find a bunch of help text in the file, you can ignore this and put you edits in there anyway, delete the content, or my favorite, move the file and create a fresh one:<code><br />
mv /etc/postfix/virtual /etc/postfix/virtual.orig<br />
touch /etc/postfix/virtual<br />
</code></p>
<p>Now we can add out entries to the file, let&#8217;s start with these:<code><br />
jeff@example.com           jeff<br />
chris@example.com         chris<br />
ed@example.com            ed<br />
sales@example.com         jeff<br />
support@example.com     chris<br />
@example.com               bob<br />
</code>In this example, the first three lines except mail for those users and deliver it directly to their local mailboxes. Lines 4 and 5 have a different address deliver mail to Jeff and Chris. And finally the last line is a &#8220;catch-all&#8221; address, this is usually very bad to have configured and WILL overwhelm the account it is pointed to, the catch-all will pick up any addresses not specified and will be a boon for spammers everywhere. But in this case we don&#8217;t really like Bob so he gets all the nasty mail.</p>
<p>Finally all we need to do is hash out the virtual file and restart Postfix:<code><br />
postmap /etc/postfix/virtual<br />
service postfix restart<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shinning.net/?feed=rss2&amp;p=16</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SSH Tips and Tricks</title>
		<link>http://www.shinning.net/?p=5</link>
		<comments>http://www.shinning.net/?p=5#comments</comments>
		<pubDate>Wed, 15 Aug 2007 20:40:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.shinning.net/?p=5</guid>
		<description><![CDATA[Here you are, you SSH to connect to and manage remote machines. I already covered how to make it easy for you to connect to servers without needing a login. But what about some more advanced things SSH can do? Well here is a list of common things I do using SSH. 1. Open remote [...]]]></description>
			<content:encoded><![CDATA[<p>Here you are, you SSH to connect to and manage remote machines. I already covered how to make it easy for you to connect to servers without needing a login. But what about some more advanced things SSH can do? Well here is a list of common things I do using SSH.</p>
<p>1. Open remote GUI applications on my local desktop. What you say? You can do that? Yes you can, say open the network manager on your server to add an IP, or open the services manager to enable and start MySQL. You can do all of that through the comfort of your own desktop. Just connect via SSH with the -X command and run a GUI command.</p>
<p><code>ssh -X server1</code><br />
<code>firefox</code></p>
<p>This will open an instance of firefox on the remote server and bring the window onto your desktop. Simply close the window and your prompt returns to you. But be careful, if you run something that is resource intensive it will take up CPU cycles on the remote server and not your computer. Try it with configuration tools, in RedHat and CentOS system-config-network or system-config-services.</p>
<p>2. You can tunnel any protocol over SSH using <code>-D port#</code> option. So let&#8217;s say you are at one of those hacker conferences and you are on a shared wireless connection with everyone else and you need to check your email. Of course your running secure IMAP right? Well if you are still POPing your mail other people could sniff your traffic to see the XOXOXO&#8217;s your significant other has sent you. This is where SSH comes into play. Establish an SSH session to your server specifying the -D option and port 25 like so.</p>
<p><code>ssh server1 -D 110</code></p>
<p>Now as long as the IP for server1 is the same as the server configured in your POP client then traffic to the server will go over your SSH tunnel. Cool huh? You could do the same thing with webmail running on the standard web port 80. Or you could even setup Squid (part of Apache) and use it as a proxy for your web browser that is completely encrypted.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shinning.net/?feed=rss2&amp;p=5</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Site Update!!</title>
		<link>http://www.shinning.net/?p=13</link>
		<comments>http://www.shinning.net/?p=13#comments</comments>
		<pubDate>Wed, 15 Aug 2007 20:40:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Info]]></category>

		<guid isPermaLink="false">http://www.shinning.net/?p=13</guid>
		<description><![CDATA[I have finally managed to find some time to update my website. It has been moved to a new server, not that stability was a problem before. As you can see I have refreshed the overall theme as well. Thanks again for stopping by, I hope you can find something you like.]]></description>
			<content:encoded><![CDATA[<p>I have finally managed to find some time to update my website. It has been moved to a new server, not that stability was a problem before. As you can see I have refreshed the overall theme as well. Thanks again for stopping by, I hope you can find something you like.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shinning.net/?feed=rss2&amp;p=13</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH Made Easy</title>
		<link>http://www.shinning.net/?p=12</link>
		<comments>http://www.shinning.net/?p=12#comments</comments>
		<pubDate>Fri, 06 Apr 2007 16:40:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.shinning.net/?p=12</guid>
		<description><![CDATA[So this may be a relatively basic topic for some. But for others who don&#8217;t know already, this could plenty of time and headaches. Here is the situation, you are responsible for managing and maintaining several linux servers. Or you have several servers on your home network (don&#8217;t we all . Each one has your [...]]]></description>
			<content:encoded><![CDATA[<p>So this may be a relatively basic topic for some. But for others who don&#8217;t know already, this could plenty of time and headaches. Here is the situation, you are responsible for managing and maintaining several linux servers. Or you have several servers on your home network (don&#8217;t we all <img src='http://www.shinning.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . Each one has your same user account so you can SSH into them. And each time you connect you have to enter a password. Now most of you have a really nasty obfuscated password right? Or because your a bit lazy the password is not quite what it should be, such as the name of your dog. Either way it&#8217;s a pain to get around or way too easy for someone else to do it without knowing it.</p>
<p>There is an easy way already built into SSH that allows you to connect to a <strong>known</strong> host without using a password, that is still secure and still encrypted. You can do this by using SSH keys. Basically on your workstation, you create a pair of keys for your user, a public and a private. The public key is for what it sounds like, it is the key that you can freely distribute to anyone, which can then be used to authenticate against your private key. The private key is, as you just guessed, is for private use and should never be given out to anyone. Now, you can create public keys from<br />
private ones, but you cannot create private keys from public ones. So no one can recreate your personal private key and pretend to be you. There are other places you can use this key system, such as signing and encrypting email, but that is for another post.</p>
<p>So how do we set this up. Well first you need to create the key pair. On your workstation, logged in as your standard user (I am using the user Joe for example), run:</p>
<p><code>ssh-keygen -t dsa</code></p>
<p>It will ask you where to save the key, press <code>Enter</code> to accept the default. It will then ask for a passphrase, leave this empty and press <code>Enter</code>, press <code>Enter</code> again to confirm.<br />
<em>** Now, I know this is not absolutely the most secure way of doing this, but we are going for ease of use for right now. We can follow up with some more secure solutions in the future. Again this is more for managing your home network that would be secured by firewall and not publicly available, meaning if someone gained access to your workstation, nothing would prevent them from connecting to and mucking with your servers, you have been warned. **</em></p>
<p>Back to it, you are informed that two keys were created and saved as <code>/home/joe/.ssh/id_dsa</code> (private key) and <code>/home/joe/.ssh/id_dsa.pub</code> (public key). We now need to copy the public key to the server we want to connect to;</p>
<p><code>scp .ssh/id_dsa.pub joe@server:</code></p>
<p>Now ssh to the server and append the key to the end of the authorized keys directory.</p>
<p><code>cat id_dsa.pub >> .ssh/authorized_keys</code></p>
<p>And remove the original file.</p>
<p><code>rm -f id_dsa.pub</code></p>
<p>Finally make sure that the folders and files have the proper permissions.</p>
<p><code>chmod 700 .ssh</code><br />
<code>chmod 644 .ssh/authorized_keys</code></p>
<p>Exit from the ssh session and try to reconnect, you should connect without it asking for a login. Now, let&#8217;s say one of your workstations is a Windows box, you can import your private key into your connection manager. See your manager help files on how to do this. As far as Windows connection managers you have many choices, the most popular free one is <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a>. I like to use SecureCRT by <a href="http://www.vandyke.com">VanDyke</a>, it&#8217;s a pay for product but it works extremely well and integrates into their other products such as SecureFX, which handles file transfers via ftp and ftp over ssh. Just google around and find one you like.</p>
<p>Stop back sometime as I will </a>be covering some more SSH tricks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shinning.net/?feed=rss2&amp;p=12</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora Core 6 MP3 Woes</title>
		<link>http://www.shinning.net/?p=11</link>
		<comments>http://www.shinning.net/?p=11#comments</comments>
		<pubDate>Fri, 23 Mar 2007 17:14:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.shinning.net/?p=11</guid>
		<description><![CDATA[Okay, first some background. About a year ago I decided to rip my entire CD collection to mp3. I had over 400 CD&#8217;s to do and the process took a couple months. I chose mp3 because it tends to be the most portable player compatible format out there. Plus I would be able to use [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, first some background. About a year ago I decided to rip my entire CD collection to mp3. I had over 400 CD&#8217;s to do and the process took a couple months. I chose mp3 because it tends to be the most portable player compatible format out there. Plus I would be able to use iTunes for organizing my collection and to make it easy for the wifey to update her iPod. So I went and built up a BSD based file server that had a 4-port 3ware SATA RAID card with 4 300GB SATA drives in a RIAD5 array. It worked flawlessly, I used <a href="http://www.exactaudiocopy.de/">Exact Audio Copy</a> to rip the CD&#8217;s and then ran them through <a href="http://lame.sourceforge.net/index.php">LAME</a> with VBR enabled to create the mp3 files all on my XP machine.</p>
<p>Fast forward to today. I needed to move my XP machine to a different place in my house but I still wanted to be able to play my audio files from the same spot. I decided to dump BSD and install Fedora, since I mainly only work with Linux. Picked up an el-cheapo sound card, copied off the data to a portable drive, and reinstalled with Fedora Core 6. The install btw went flawless. I copied the data back, then setup Samba and NFS to share it on my network. Everything went so smoothly, I was pleasantly surprised, these new Linux releases have come along way. So I plugged in my speakers and launched the included player, browsed to my file store and nothing&#8230;&#8230; Apparently the player only supports Ogg format out of the box, FC does not support any proprietary filetypes. WTF.</p>
<p>So after calming down I started to search around. I came across a site <a href="http://rpm.livna.org/">rpm.livna.org</a> that carried everything a Fedora user could ask for. From the site:</p>
<blockquote><p>&#8220;rpm.livna.org is a community maintained add-on repository for Fedora Core that provides many useful packages that can not be distributed in Fedora Core or Fedora Extras for one reason or another, including multimedia applications such as xine and VideoLanClient, video drivers for ATI and Nvidia cards and firmware for common wireless cards.&#8221;</p></blockquote>
<p>That basically says it all. So, first thing is first, let&#8217;s get yum configured to use them as an additional repository. For FC6 users:</p>
<p><code>rpm -ivh http://rpm.livna.org/livna-release-6.rpm</code></p>
<p>They also have releases for FC5 and FC4 users, for FC3, see their website for special instructions. So now you have a couple options as to what you want to run, whether it be MPlayer, GStreamer, Xine. Since i&#8217;m running KDE I chose to install Kplayer:</p>
<p><code>yum -y install kplayer</code></p>
<p>And off I went, playing my 33,000 songs. For those of you that are interested, rpm.livna.org also has the proprietary video drivers for both NVidia and ATI. You may also be interested in the products from <a href="http://www.fluendo.com">Fluendo</a>. They offer fully licensed (read legal) multimedia plug-ins for GStreamer. For a small fee you can be able to play and <strong>encode</strong> in Windows Media, MPEG2 and MPEG4. They will be adding support for even more codecs this year.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shinning.net/?feed=rss2&amp;p=11</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing CentOS 5 (Beta) &#8211; PART II</title>
		<link>http://www.shinning.net/?p=9</link>
		<comments>http://www.shinning.net/?p=9#comments</comments>
		<pubDate>Fri, 16 Mar 2007 23:07:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.shinning.net/?p=9</guid>
		<description><![CDATA[Back again, hope you made it through the install, and I hope it was better than I . So now onto Part II (more like Part 1.5). Go ahead and check your network connectivity, ping, traceroute, and so on. Connect to the server via SSH. And now to run some updates. First let&#8217;s su - [...]]]></description>
			<content:encoded><![CDATA[<p>Back again, hope you made it through the install, and I hope it was better than I <img src='http://www.shinning.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . So now onto Part II (more like Part 1.5). Go ahead and check your network connectivity, ping, traceroute, and so on. Connect to the server via SSH. And now to run some updates.</p>
<p>First let&#8217;s <code>su -</code>  to root (you didn&#8217;t log in as root did you? You are a bad admin!), and run:</p>
<p><code>yum update</code></p>
<p>Now the server will connect to the internet, and check the repositories for updates. It will probably come back and ask if you wish to download the updates, I would say yes, as well as importing the GPG keys (for checking the validity of the packages). This is a Beta release and so I do not think you will run into many packages to be updated. Let&#8217;s have a quick look at our system shall we. Do a:</p>
<p><code>uname -r</code><br />
<code>2.6.18-1.2747.el5</code></p>
<p>That&#8217;s our kernel version, 2.6.18, not bad, the current kernel release is 2.6.20. But wait a sec, i&#8217;ve got 2 Xeon processors in this box, i&#8217;m supposed to have an SMP kernel, NOW WHAT?&#8230;&#8230;..   Relax, with RedHat Enterprise 5, they decided to drop the standard kernel and make the SMP kernel the default, and now your only other kernel option is the HugeMem kernel. Don&#8217;t believe me? Take a look by running:</p>
<p><code>uname -v</code><br />
<code>#1 SMP Mon Dec 11 21:17:21 EST 2006</code></p>
<p>See, told you so <img src='http://www.shinning.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> . So now we have a blank slate to do whatever it is to the server. Stop back and see what I do to this box!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shinning.net/?feed=rss2&amp;p=9</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing CentOS 5 (Beta)</title>
		<link>http://www.shinning.net/?p=8</link>
		<comments>http://www.shinning.net/?p=8#comments</comments>
		<pubDate>Fri, 16 Mar 2007 21:46:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.shinning.net/?p=8</guid>
		<description><![CDATA[Okay, first technical post! Fresh on the heels of the official RedHat release of Enterprise 5, I decided to start my test platform on the newest CentOS release, which is still the RH beta (not knocking the CentOS guys, I thank them deeply for what they do). Download the iso&#8217;s and burn them, check. Grab [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, first technical post!</p>
<p>Fresh on the heels of the official RedHat release of Enterprise 5, I decided to start my test platform on the newest CentOS release, which is still the RH beta (not knocking the CentOS guys, I thank them deeply for what they do).</p>
<p>Download the iso&#8217;s and burn them, check.<br />
Grab some free hardware, check.<br />
Create hardware RAID, check.<br />
Run the installer, err&#8230; wait, what? no drives?</p>
<p>Okay, ran into this issue before with an I20 based RAID cards and CentOS. I can&#8217;t grab the drivers from Adaptec, they are way too old and the installer would just bitch about them. I know they must be included with the distro, but are not loaded, or another driver is loaded by default for that chipset.</p>
<p>So, I ran the installer with the <code>linux noprobe</code> command. Now I can select the I20_block driver, but nothing else was recognized, gotta find that that PS2 keyboard, now were is it&#8230;.. Okay got it,</p>
<p>I20_block driver, check.</p>
<p>Man it&#8217;s a real pain to setup custom partitions with just a keyboard in the GUI installer, next time I must remember to run in text mode, or at least see if I can load the USB drivers. So, pretty much nothing else hardware wise was found, hence the <code>noprobe</code> worked. Hopefully everything else will be discovered on the reboot.</p>
<p>It was, set the NIC parameters, set the firewall options to only allow SSH, configure SELinux to permissive (I am not running any services except for SSH at the moment, it&#8217;s okay). The Gnome interface is behaving a bit quirky and not opening certain system-config-x screens. Doesn&#8217;t matter, gonna be running from the command line anyway. Set inittab to boot to runlevel 3 and reboot.</p>
<p>As a side note. The install required 5 of the 6 cd&#8217;s!. To install the base, X w/ Gnome, Programming Tools, and the System Tools. And the CD that was skipped was number 4! I know this is not a CentOS issue but a RedHat one, and I know, I could do an NFS install and not have to swap CD&#8217;s, but I haven&#8217;t gotten to it yet. This has actually been talked about in the Fedora forums for a bit, FC is already 6 CD&#8217;s and the Extra&#8217;s alone come on a DVD. And I think there is talk of merging Extras into the main FC release. Oh, that should be fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shinning.net/?feed=rss2&amp;p=8</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>shinning.net now open</title>
		<link>http://www.shinning.net/?p=7</link>
		<comments>http://www.shinning.net/?p=7#comments</comments>
		<pubDate>Fri, 16 Mar 2007 18:00:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Info]]></category>

		<guid isPermaLink="false">http://www.shinning.net/?p=7</guid>
		<description><![CDATA[You made it, thanks for stopping by. But, oh wait, there is no content. Well just give me a little bit of time, the site will be hopping soon enough. Until then, hit my About page to get some info before moving along.]]></description>
			<content:encoded><![CDATA[<p>You made it, thanks for stopping by. But, oh wait, there is no content. Well just give me a little bit of time, the site will be hopping soon enough. Until then, hit my About page to get some info before moving along.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shinning.net/?feed=rss2&amp;p=7</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
