<?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>i shine light &#187; Linux/Unix</title>
	<atom:link href="http://www.ishinelight.com/category/operating-systems/linuxunix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ishinelight.com</link>
	<description>in a digital world</description>
	<lastBuildDate>Mon, 21 Sep 2009 03:29:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Unix-ish Commands I use Often</title>
		<link>http://www.ishinelight.com/2009/04/unix-ish-commands-i-use-often/</link>
		<comments>http://www.ishinelight.com/2009/04/unix-ish-commands-i-use-often/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 17:41:24 +0000</pubDate>
		<dc:creator>Aaron Reimann</dc:creator>
				<category><![CDATA[Editing]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.ishinelight.com/?p=116</guid>
		<description><![CDATA[Are you a web designer that sometimes need to SSH into a web site and make some changes but don&#8217;t know a Unix text editor?  Here are some basic commands that you might need.
Navigating in and out of directores:
To change directories:
pwd (shows you what directory you are in)
ls (lists all files)
cd www (gets you into [...]]]></description>
			<content:encoded><![CDATA[<p>Are you a web designer that sometimes need to SSH into a web site and make some changes but don&#8217;t know a Unix text editor?  Here are some basic commands that you might need.</p>
<p>Navigating in and out of directores:</p>
<p style="padding-left: 30px;">To change directories:</p>
<p style="padding-left: 30px;">pwd (shows you what directory you are in)</p>
<p style="padding-left: 30px;">ls (lists all files)</p>
<p style="padding-left: 30px;">cd www (gets you into the directory called www)</p>
<p style="padding-left: 30px;">cd .. (gets you down one directory)</p>
<p>Editing files.  I like editing files in Vi.  It is confusing if you don&#8217;t know it.  I am by no means a Vi expert like some of my friends, but I can do a lot.  Here are the basics:</p>
<p>use the arrow keys to navigate (you can use letters to move around, but if you don&#8217;t want to learn Vi, don&#8217;t waste your time)</p>
<p style="padding-left: 30px;">vi filename.php (opens a file called filename.php)</p>
<p style="padding-left: 30px;">i (gets you in the insert mode)</p>
<p style="padding-left: 30px;">the escape key gets you out of the insert mode</p>
<p style="padding-left: 30px;">x (deletes the character your cursor is on)</p>
<p style="padding-left: 30px;">dd (deletes the whole line you are on)</p>
<p style="padding-left: 30px;">:w (writes the file)</p>
<p style="padding-left: 30px;">:q (quits Vi)</p>
<p style="padding-left: 30px;">:wq (writes the file and exists)</p>
<p style="padding-left: 30px;">:%s:bob:john:g (replaces bob with john in the whole file, i recently used that to replace text on a 42 meg text file, it came in handy.  it took seconds to do)</p>
<p>Enjoy!</p>
&nbsp; ]]></content:encoded>
			<wfw:commentRss>http://www.ishinelight.com/2009/04/unix-ish-commands-i-use-often/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating a users and files to a new Linux Box</title>
		<link>http://www.ishinelight.com/2009/03/migrating-a-users-and-files-to-a-new-linux-box/</link>
		<comments>http://www.ishinelight.com/2009/03/migrating-a-users-and-files-to-a-new-linux-box/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 16:14:07 +0000</pubDate>
		<dc:creator>Aaron Reimann</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Operating Systems]]></category>

		<guid isPermaLink="false">http://www.ishinelight.com/?p=102</guid>
		<description><![CDATA[The purpose of this article is to show you how simple it is to migrate your system to a new server in case you have a need to upgrade.  This is not for the people that are not familiar with Linux.  You need to know, for example, that if it is a web [...]]]></description>
			<content:encoded><![CDATA[<p>The purpose of this article is to show you how simple it is to migrate your system to a new server in case you have a need to upgrade.  This is not for the people that are not familiar with Linux.  You need to know, for example, that if it is a web server, make sure you get the Apache configs.  I wanted to move users, passwords, samba users, samba passwords and home directories to the new box.  Here is what I did.</p>
<p>This tutorial should work for any version of Fedora, and really, should work for Linux boxes in general.  This should teach you the concept more than anything.</p>
<p>Box 1: This is the original box that I setup a long time ago.  It is running Fedora Core 6, with the latest updates.  The IP of the box is 192.168.0.11.  I transferred users, passwords, groups, Samba configs and users&#8217; home directories from this box</p>
<p>Box 2: Fresh (very simple) installation of Fedora Core 6 with the latest updates.  I installed Samba, if you need Apache, go ahead and install that on the new box.  Make sure you have the latest updates on both!  Give it whatever IP address, I used DHCP and it got 192.168.0.115.</p>
<p>DO NOT CREATE A USER (besides root) ON THE NEW BOX and once your new box has installed Fedora, do not login (might be overkill, but I would take the chance.</p>
<p>Let&#8217;s start:</p>
<p>Move users/passwords/groups/shadow/Samba configs to the new box:</p>
<p>tar -cf &#8211; /etc/passwd | ssh 192.168.0.115 tar -xf &#8211; -C /</p>
<p>tar -cf &#8211; /etc/passwd- | ssh 192.168.0.115 tar -xf &#8211; -C /</p>
<p>tar -cf &#8211; /etc/shadow | ssh 192.168.0.115 tar -xf &#8211; -C /</p>
<p>tar -cf &#8211; /etc/shadow- | ssh 192.168.0.115 tar -xf &#8211; -C /</p>
<p>tar -cf &#8211; /etc/group | ssh 192.168.0.115 tar -xf &#8211; -C /</p>
<p>tar -cf &#8211; /etc/group- | ssh 192.168.0.115 tar -xf &#8211; -C /</p>
<p>tar -cf &#8211; /etc/sudoers | ssh 192.168.0.115 tar -xf &#8211; -C /</p>
<p>tar -cf &#8211; /etc/samba | ssh 192.168.0.115 tar -xf &#8211; -C /</p>
<p>Now copy over users home dirs (It can take hours depending on amount of data):<br />
tar -cf &#8211; /home | ssh 192.168.0.115 tar -xf &#8211; -C /</p>
<p>Now copy over root&#8217;s home dir if you want:<br />
tar -cf &#8211; /root | ssh 192.168.0.115 tar -xf &#8211; -C /</p>
<p>That&#8217;s it.  You don&#8217;t even need to reboot.</p>
<p>Now grab whatever configs you think you will need.  Do not toss that old box&#8230;.keep it around for a while.  You want to make sure that you have all of the files off that you need.  You might need your Apache configs, php.ini, and /etc/hosts.</p>
<p>Now change your IP address of your new box to what your old box was.  In *theory* no one will tell the difference, except file transfers will be faster.
<p>Feel free to contact me if you want</p>
&nbsp; ]]></content:encoded>
			<wfw:commentRss>http://www.ishinelight.com/2009/03/migrating-a-users-and-files-to-a-new-linux-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why do people still use FTP?</title>
		<link>http://www.ishinelight.com/2009/02/why-do-people-still-use-ftp/</link>
		<comments>http://www.ishinelight.com/2009/02/why-do-people-still-use-ftp/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 22:22:56 +0000</pubDate>
		<dc:creator>Aaron Reimann</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://dev4.aaronreimann.com/?p=7</guid>
		<description><![CDATA[FTP is a security nightmare, and no one should ever use it if the server is on the internet.
Why isn&#8217;t it secure you ask?  When people go to Facebook, Amazon, eBay, etc., they are safe because the data that is transferred is encrypted.  So if someone is snooping on the network (like at a coffee [...]]]></description>
			<content:encoded><![CDATA[<p>FTP is a security nightmare, and no one should ever use it if the server is on the internet.</p>
<p>Why isn&#8217;t it secure you ask?  When people go to Facebook, Amazon, eBay, etc., they are safe because the data that is transferred is encrypted.  So if someone is snooping on the network (like at a coffee shop) they won&#8217;t see every letter you are typing being transferred.</p>
<p>FTP on the other hand has no encryption.  So if I am at a coffee shop and snooping on the network, I would get the password of someone if they login using FTP.  When you are on the internet though, everything is snoop-able (sp?).  So if you are at home, and I FTP into my web server, the username/password transfers through at least 10 networks before it finally hits the server.  Someone could be spooping at any point.</p>
<p>There are great options like FTPS (s = secure) and SSH.  I just setup &#8220;vsFTPd&#8221; on my Linux server and it is using SSL (secure socket layer).  It took less than 5 minutes.</p>
<p>If you are a web designer and have the option to use SSH, SFTP, FTPS, SSL, etc, use it.  Most clients now give you the option.</p>
&nbsp; ]]></content:encoded>
			<wfw:commentRss>http://www.ishinelight.com/2009/02/why-do-people-still-use-ftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
