<?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>Norse Technologies Knowledge Base&#187; Linux</title>
	<atom:link href="http://kb.norsetech.net/category/operating-system/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://kb.norsetech.net</link>
	<description>Free Knowledge Articles</description>
	<lastBuildDate>Wed, 11 Jan 2012 00:53:34 +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>How to Find Large Files in Ubuntu Linux</title>
		<link>http://kb.norsetech.net/how-to-find-large-files-in-ubuntu-linux/</link>
		<comments>http://kb.norsetech.net/how-to-find-large-files-in-ubuntu-linux/#comments</comments>
		<pubDate>Wed, 25 May 2011 19:59:01 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[Files]]></category>
		<category><![CDATA[size]]></category>
		<category><![CDATA[size 100k]]></category>
		<category><![CDATA[Source]]></category>
		<category><![CDATA[switches]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://kb.norsetech.net/?p=197</guid>
		<description><![CDATA[If you want to find files above a certain size, or find files between certain sizes, then you may use the +size x and -size x switches to the find command. For example: find /etc -size +100k -size -150k This command will find all files inside the /etc directory that are between 100k and 150k [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to find files above a certain size, or find files between certain sizes, then you may use the <strong>+size <em>x</em></strong> and <strong>-size <em>x</em></strong> switches to the <strong>find</strong> command.</p>
<p>For example:</p>
<pre><strong>find /etc -size +100k -size -150k</strong></pre>
<p>This command will find all files inside the /etc directory that are between 100k and 150k in size.</p>
<p>Source: <a href="http://www.unixtutorial.org/2008/03/find-large-files-and-directories/" target="_blank">http://www.unixtutorial.org/2008/03/find-large-files-and-directories/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/how-to-find-large-files-in-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Install Picasa on Ubuntu or Debian</title>
		<link>http://kb.norsetech.net/how-to-install-picasa-on-ubuntu-or-debian/</link>
		<comments>http://kb.norsetech.net/how-to-install-picasa-on-ubuntu-or-debian/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 19:30:21 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Freeware]]></category>
		<category><![CDATA[Graphic]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[casual users]]></category>
		<category><![CDATA[debian version]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[GPG]]></category>
		<category><![CDATA[image collections]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[linux deb]]></category>
		<category><![CDATA[neat program]]></category>
		<category><![CDATA[need]]></category>
		<category><![CDATA[photo management software]]></category>
		<category><![CDATA[Picasa]]></category>
		<category><![CDATA[reputable sources]]></category>
		<category><![CDATA[software makers]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[travesty]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Update]]></category>

		<guid isPermaLink="false">http://kb.norsetech.net/?p=195</guid>
		<description><![CDATA[Google makes the really neat program Picasa 3 for managing and editing photo/image collections. Since Microsoft Windows it a travesty and I therefore use Linux as much as possible, I was in need of a better and more stable photo management software to replace the buggy unstable F-Spot program. To my glee I found that [...]]]></description>
			<content:encoded><![CDATA[<p>Google makes the really neat program Picasa 3 for managing and editing photo/image collections. Since Microsoft Windows it a travesty and I therefore use Linux as much as possible, I was in need of a better and more stable photo management software to replace the buggy unstable F-Spot program. To my glee I found that Google releases a Debian version suitable for using under Ubuntu&#8217;s flavor of Debian Linux. I love you Google. Anyway, it was still a 2-step process, which would frighten most Windows users, but this bit of work in the beginning assures that I am using reputable sources for software that can be installed without visiting a website or downloading anything from a web server, as I would have to do if using Windows. Not to mention that by being forced to the wild web in order to download all applications and software just opens up a computer to problems because the user must decide which software makers to trust, not a good situation for casual users who aren&#8217;t in touch enough with the current &#8220;scene&#8221; to be able to make an educated decision about which company&#8217;s software is trustworthy and which are not. Alas, I digress&#8230;</p>
<p>To install Picasa on Ubuntu:</p>
<ol>
<li>Create a backup copy of your file: /etc/apt/sources.list</li>
<li>Edit /etc/apt/sources.list using &#8220;sudo&#8221; and the editor of your choice e.g. vi, vim, gedit.</li>
<li>Add the following line:<br />
deb http://dl.google.com/linux/deb/ testing non-free</li>
<li>Save the file.</li>
<li>Update apt-get&#8217;s repository list using: sudo apt-get update</li>
<li>Try to install Picasa now: sudo apt-get install picasa</li>
<li>If it installs, then Hooray! You&#8217;re done! However, if you get an error like the following, then proceed to the next steps:<br />
W: GPG error: The following signatures couldn&#8217;t be verified because the public key is not available: NO_PUBKEY 1234567890123456<br />
W: There is no public key available for the following key IDs:  1234567890123456</li>
<li>The long number will be different for you, and you&#8217;ll need it for the next step.</li>
<li>Run the following commands, substituting 1234567890123456 with the number from your error messages:<br />
gpg &#8211;keyserver pgpkeys.mit.edu &#8211;recv-key  1234567890123456<br />
gpg -a &#8211;export 1234567890123456 | sudo apt-key add -</li>
<li>Assuming that you get success, and you should as long as there&#8217;s no typos, try again to install Picasa directly with Ubuntu apt-get:<br />
sudo apt-get install picasa</li>
<li>Picasa will download and install, you may be required to verify that process before it proceeds, though.</li>
</ol>
<p>Check put these for a bit more info, and the source of the steps needed for this process:<br />
<a title="Permanent link to Howto Install Picasa 3.5 in ubuntu" href="http://www.ubuntugeek.com/howto-install-picasa-3-5-in-ubuntu.html" rel="bookmark" target="_blank">[Debian] Apt-get : NO_PUBKEY / GPG error<br />
Howto Install Picasa 3.5 in ubuntu</a></p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 261px; width: 1px; height: 1px; overflow: hidden;">Google makes the really neat program Picasa 3 for managing and editing photo/image collections. Since Microsoft Windows it a travesty and I therefore use Linux as much as possible, I was in need of a better and more stable photo management software to replace the buggy unstable F-Spot program. To by glee I found that Google releases a Debian version suitable for using under Ubuntu&#8217;s flavor of Debian *nix. I love you Google. Anyway, it was still a 2-step process, which would frighten most Windows users, but this bit of work in the beginning assures that I am using reputable sources for software that can be installed without visiting a website or downloading anything from a web server, as I would have to do if using Windows. Not to mention that by being forced to the wild web in order to download all applications and software just opens up a computer to problems because the user must decide which software makers to trust, not a good situation for casual users who aren&#8217;t in touch enough with the current &#8220;scene&#8221; to be able to make an educated decision about which company&#8217;s software is trustworthy and which are not. Alas, I digress&#8230;  To install Picasa on Ubuntu:     1. Create a backup copy of your file: /etc/apt/sources.list    2. Edit /etc/apt/sources.list using &#8220;sudo&#8221; and the editor of your choice e.g. vi, vim, gedit.    3. Add the following line:       deb http://dl.google.com/linux/deb/ testing non-free    4. Save the file.    5. Update apt-get&#8217;s repository list using: sudo apt-get update    6. Try to install Picasa now: sudo apt-get install picasa    7.        If it installs, then Hooray! You&#8217;re done! However, if you get an error like the following, then proceed to the next steps:   The following signatures couldn&#8217;t be verified because the public key is not available: NO_PUBKEY 010908312D230C5F</div>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/how-to-install-picasa-on-ubuntu-or-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Make a Backup Script for Shell in Linux</title>
		<link>http://kb.norsetech.net/how-to-make-a-backup-script-for-shell-in-linux/</link>
		<comments>http://kb.norsetech.net/how-to-make-a-backup-script-for-shell-in-linux/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 02:47:18 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backing up files]]></category>
		<category><![CDATA[backup copy]]></category>
		<category><![CDATA[backup script]]></category>
		<category><![CDATA[code comments]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[command line argument]]></category>
		<category><![CDATA[command line interface]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[config files]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[DATECODE]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[good habit]]></category>
		<category><![CDATA[habit]]></category>
		<category><![CDATA[IMHO]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[myfile]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[TIMECODE]]></category>

		<guid isPermaLink="false">http://kb.norsetech.net/?p=182</guid>
		<description><![CDATA[For those who hack a lot of Linux at the command line interface, backing up files such as config files before editing is a good habit to have. IMHO anyway. So to save time, a little script can be written, chmod +x, and placed into /usr/local/bin or some other that users have in their executable [...]]]></description>
			<content:encoded><![CDATA[<p>For those who hack a lot of Linux at the command line interface, backing up files such as config files before editing is a good habit to have. IMHO anyway. So to save time, a little script can be written, chmod +x, and placed into /usr/local/bin or some other that users have in their executable shell PATH. I name mine &#8220;bu&#8221; to make it easy, and it takes one command line argument which is the filename of the file you want to make a backup copy of. It is called by running something like <strong>$ bu <em>myfile </em></strong></p>
<p><strong><em></em></strong>Here&#8217;s the code. Comments welcome ;) The code creates a timecode based on today&#8217;s date and the current time to the second, and appends that to the original filename. The a copy is saved with this new &#8220;timestamped&#8221; backup filename, right in the same directory. Easy-peasy! <strong><em></em></strong></p>
<pre>#!/bin/bash
OLDFILENAME=$1
DATECODE=$(date +%Y%m%d)
TIMECODE=$(date +%H%M%S)
NEWFILENAME="${OLDFILENAME}_backup${DATECODE}-$TIMECODE"
cp $OLDFILENAME $NEWFILENAME
SUCCESS=$?
if [ $SUCCESS -eq 0 ];then
 echo "OK! Copied \"$OLDFILENAME\" to \"$NEWFILENAME\""
else
 echo "FAIL! You'll need to try again!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
fi</pre>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/how-to-make-a-backup-script-for-shell-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Make puTTY Automatically Load a Session</title>
		<link>http://kb.norsetech.net/how-to-make-putty-automatically-load-a-session/</link>
		<comments>http://kb.norsetech.net/how-to-make-putty-automatically-load-a-session/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 18:43:03 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Freeware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[WebDev]]></category>
		<category><![CDATA[ZyXel]]></category>
		<category><![CDATA[click properties]]></category>
		<category><![CDATA[folder c]]></category>
		<category><![CDATA[how to make putty]]></category>
		<category><![CDATA[linux host]]></category>
		<category><![CDATA[popup menu]]></category>
		<category><![CDATA[quicklaunch]]></category>
		<category><![CDATA[session name]]></category>
		<category><![CDATA[ssh session]]></category>
		<category><![CDATA[target]]></category>
		<category><![CDATA[unix host]]></category>

		<guid isPermaLink="false">http://kb.norsetech.net/?p=141</guid>
		<description><![CDATA[The most awesome emulator of all time, puTTY.exe, just got even easier to use. Along with loggiong automatically into a SSH session add the Windows shortcut that loads a saved session and launches it, now you have one click shell access to your Linux host from your Windows PC. Here&#8217;s how: Download puTTY.exe Save it [...]]]></description>
			<content:encoded><![CDATA[<p>The most awesome emulator of all time, puTTY.exe, just got even easier to use. Along with <a href="http://kb.norsetech.net/use-putty-to-automatically-login-a-ssh-session/" target="_blank">loggiong automatically into a SSH session</a> add the Windows shortcut that loads a saved session and launches it, now you have one click shell access to your Linux host from your Windows PC.</p>
<p>Here&#8217;s how:</p>
<ol>
<li><a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">Download <strong>puTTY.exe</strong></a></li>
<li>Save it to the folder <strong> C:\puTTY\</strong></li>
<li>Open a Windows Explorer window in <strong>C:\puTTY\</strong></li>
<li>Run puTTY.exe once, and <strong>create a &#8220;saved session&#8221;</strong>, making note of what you name it. My example below uses the name <em>my neatly named Saved Session</em></li>
<li><strong>Right-click-drag puTTY.exe and drop it next to itself</strong>, this creates a shortcut to the .exe file.</li>
<li><strong>Right-click the shortcut</strong> you just created, on the popup menu click <strong>Properties</strong>.</li>
<li>In the Target box, add <strong>-load &#8220;your-saved-session-name&#8221;</strong> after <em>C:\putty\putty.exe</em></li>
<li>The final content in the target box should look like:
<pre>C:\putty\putty.exe -load "my neatly named Saved Session"</pre>
</li>
<li><strong>Save</strong> the shortcut. Viola! Move or copy this shortcut anywhere you like (e.g. your Desktop, your QuickLaunch toolbar, your custom explorer toolbar, etc.) and you have 1-click access to a command prompt on your Linux / Unix host.</li>
</ol>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/how-to-make-putty-automatically-load-a-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use puTTY to automatically login a SSH session</title>
		<link>http://kb.norsetech.net/use-putty-to-automatically-login-a-ssh-session/</link>
		<comments>http://kb.norsetech.net/use-putty-to-automatically-login-a-ssh-session/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 23:57:13 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[click]]></category>
		<category><![CDATA[common day]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[computer copy]]></category>
		<category><![CDATA[day tasks]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[Jon Lee]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[man]]></category>
		<category><![CDATA[mind]]></category>
		<category><![CDATA[puTTY]]></category>
		<category><![CDATA[puttygen]]></category>
		<category><![CDATA[secure shell]]></category>
		<category><![CDATA[secure tunnel]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ssh server]]></category>
		<category><![CDATA[ssh session]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[web developers]]></category>

		<guid isPermaLink="false">http://kb.norsetech.net/?p=133</guid>
		<description><![CDATA[Many thanks to Jon Lee at jonlee.ca for this excellent procedure allowing for the automtic login of a session using SSH and puTTY.exe terminal emulator. You da man! &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- From his site: As many web developers can attest to, logging into your server through SSH (Secure Shell) is one of the more common day-to-day tasks [...]]]></description>
			<content:encoded><![CDATA[<p>Many thanks to Jon Lee <a title="automatic login SSH Windows TCP" href="http://www.jonlee.ca/how-to-automate-your-ssh-login-with-putty/" target="_blank">at jonlee.ca for this excellent procedure</a> allowing for the automtic login of a session using SSH and puTTY.exe terminal emulator. You da man!</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>From his site:</p>
<p>As many web developers can attest to, logging into your server through SSH (Secure Shell) is one of the more common day-to-day tasks (you can even use it as a <a href="http://www.jonlee.ca/how-to-secure-your-traffic-using-an-ssh-tunnel-with-putty/">secure tunnel for your traffic</a>).  It only makes sense to automate this process which in turn can save many many keystrokes.</p>
<p>This how-to is written with PuTTY and Windows in mind and requires several other tools that are available from <a href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/">PuTTY’s website</a>.  So from their <a href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/download.html">download page</a>, make sure you have these files:</p>
<ul>
<li>PuTTY (putty.exe)</li>
<li>PuTTYgen (puttygen.exe)</li>
</ul>
<p>Then to automate SSH login, do the following:</p>
<ol>
<li>Run PuTTYgen.</li>
<li>Select SSH-2 DSA as the <strong>Type of Key</strong> to generate.</li>
<li>Click generate and move your mouse around to generate randomness.</li>
<li>Click “<strong>Save Private Key</strong>” and save it somewhere on your computer.</li>
<li>Copy the entire content inside the box to your clipboard (this is your generated public key).</li>
<li>Login to your SSH server.</li>
<li>Create the file <strong>~/.ssh/authorized_keys</strong> containing the generated <em>public key</em> (from step 3) on a single line.</li>
<li>Make this file readable (chmod 755).</li>
<li>Then open up PuTTY and navigate to <strong>Connection-&gt;Data</strong> and fill in the <strong>auto-login username</strong>.</li>
<li>Navigate to <strong>Connection-&gt;SSH-&gt;Auth</strong> and under <strong>Private-key</strong>, browse to the file you had saved earlier on your computer.</li>
</ol>
<p>That’s it! Now you can try logging in to your SSH server and it shouldÃ‚ login automatically. If it works, make sure you save your session so you don’t have to repeat these steps every time!</p>
<p>Hopefully these steps work for everyone!  Let me know if there are any problems.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Had some problems with a CentOS5 server not accepting keys&#8230; found that this server was being finicky for some reason, and used this <a href="http://www.andremolnar.com/how_to_set_up_ssh_keys_with_putty_and_not_get_server_refused_our_key" target="_blank">article on how to generate the keys on the Linux server</a>, and then import the public key to the client Windows box. To make it automatically login simply do not enter any passphrase. This is probably a huge security risk or something like that, but if you&#8217;re using it on a secured LAN then perhaps it&#8217;s ok.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/use-putty-to-automatically-login-a-ssh-session/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Alternate Time Servers for Automatic Clock Set</title>
		<link>http://kb.norsetech.net/alternate-time-servers-for-automatic-clock-set/</link>
		<comments>http://kb.norsetech.net/alternate-time-servers-for-automatic-clock-set/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 01:09:55 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Freeware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[WebDev]]></category>
		<category><![CDATA[automatic clock]]></category>
		<category><![CDATA[Clock]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[computer clock]]></category>
		<category><![CDATA[generous folks]]></category>
		<category><![CDATA[local time zone]]></category>
		<category><![CDATA[microsoft windows operating systems]]></category>
		<category><![CDATA[network time protocol]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[org]]></category>
		<category><![CDATA[pool]]></category>
		<category><![CDATA[pool project]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[protocol server]]></category>
		<category><![CDATA[server pool]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Set]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[time servers]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://kb.norsetech.net/?p=113</guid>
		<description><![CDATA[In modern Microsoft Windows operating systems and all Unix / Linux systems the system clock time can be set automatically. The computer will connect to a special server on the Internet called a Network Time Protocol server, and get the current universal time, and then adjust it according to the local time zone on the [...]]]></description>
			<content:encoded><![CDATA[<p>In modern Microsoft Windows operating systems and all Unix / Linux systems the system clock time can be set automatically. The computer will connect to a special server on the Internet called a Network Time Protocol server, and get the current universal time, and then adjust it according to the local time zone on the computer. It keeps the computer clock very accurate and corrects drift before it can become much of a problem.</p>
<p>We recommend using a reliable server: <strong>pool.ntp.org</strong></p>
<p>A wonderful group of generous folks provide this extremely reliable cluster of computers for us all to use, free of charge. <a href="http://www.pool.ntp.org/en/" target="_blank">Thank you NTP Pool Project and all the participants!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/alternate-time-servers-for-automatic-clock-set/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Copy Directories and Subdirectories Recursively With FTP (scp)</title>
		<link>http://kb.norsetech.net/how-to-copy-directories-and-subdirectories-recursively-with-ftp-scp/</link>
		<comments>http://kb.norsetech.net/how-to-copy-directories-and-subdirectories-recursively-with-ftp-scp/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 20:54:44 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Freeware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[default port]]></category>
		<category><![CDATA[DESTINATION]]></category>
		<category><![CDATA[destination folder]]></category>
		<category><![CDATA[destination path]]></category>
		<category><![CDATA[directory structures]]></category>
		<category><![CDATA[essence]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[mget]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[port 22]]></category>
		<category><![CDATA[Recursively]]></category>
		<category><![CDATA[REMOTEUSERNAME]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[Sweetness]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[unix box]]></category>
		<category><![CDATA[unix path]]></category>
		<category><![CDATA[unix username]]></category>
		<category><![CDATA[usinf]]></category>

		<guid isPermaLink="false">http://kb.norsetech.net/?p=67</guid>
		<description><![CDATA[When transferring file directory structures between linux / Unix hosts, usinf FTP was what came to mind.  FTP has been used for many transfers in the past, but when forced (read:allowed) to use the command line to transfer files, the MGET and other FTP related commands were useless. So google to the rescue, and up [...]]]></description>
			<content:encoded><![CDATA[<p>When transferring file directory structures between linux / Unix hosts, usinf FTP was what came to mind.  FTP has been used for many transfers in the past, but when forced (read:allowed) to use the command line to transfer files, the MGET and other FTP related commands were useless. So google to the rescue, and up pops <a title="SCP - not - FTP for recursive directory copy in linux" href="http://www.go2linux.org/scp-linux-command-line-copy-files-over-ssh" target="_blank">this great simple writeup about how to copy host-to-host using the SCP command. Sweetness defined. </a></p>
<p>In essence:</p>
<p><code>scp -vr -P 2222 ./* REMOTEUSERNAME@REMOTEHOSTNAME.TLD:/FULL/UNIX/PATH/TO/DESTINATION/FOLDER/(OR/FILENAMES.ABC)</code></p>
<p>This command will Verbosely and Recirsively do it&#8217;s thang. It will contact the remote host on port 2222 instead of the default port 22 used for SSH. The remote username is the unix username, and the remote hostname is the full DNS name or IP address of the remote unix box. The destination path is reltive to the root of the system, NOT relative to the user&#8217;s home dirtectory.</p>
<p>Have fun, and leave FTP for transferring single files or batches of files inside a single directory container only.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/how-to-copy-directories-and-subdirectories-recursively-with-ftp-scp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to CHMOD on files but not directories (inodes)</title>
		<link>http://kb.norsetech.net/how-to-chmod-on-files-but-not-directories-inodes/</link>
		<comments>http://kb.norsetech.net/how-to-chmod-on-files-but-not-directories-inodes/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 09:32:32 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backslash]]></category>
		<category><![CDATA[chmod 755]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[directory tree]]></category>
		<category><![CDATA[directory type]]></category>
		<category><![CDATA[exec]]></category>
		<category><![CDATA[filelist]]></category>
		<category><![CDATA[ing]]></category>
		<category><![CDATA[Linuxquestions]]></category>
		<category><![CDATA[org]]></category>
		<category><![CDATA[pipe]]></category>
		<category><![CDATA[put]]></category>
		<category><![CDATA[semicolon]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Tool]]></category>
		<category><![CDATA[type]]></category>
		<category><![CDATA[way]]></category>

		<guid isPermaLink="false">http://kb.norsetech.net/?p=62</guid>
		<description><![CDATA[From Linuxquestions.org: &#8220;There are probably several methods, but one is to use find to produce a list of all files (not directories) and then execute chmod on each of them. For example Code: find /my/directory -type f -exec chmod 644 '{}' + Change the red parts to fit your needs. If you wonder what that [...]]]></description>
			<content:encoded><![CDATA[<p>From <a href="http://www.linuxquestions.org/questions/linux-enterprise-47/chmod-on-files-only-583543/?s=8b99c02b20d5170e270d1f15c19f3f3e" target="_blank">Linuxquestions.org</a>:</p>
<p>&#8220;There are probably several methods, but one is to use find to produce a list of all files (not directories) and then execute chmod on each of them. For example</p>
<div style="margin: 5px 20px 20px;">
<div style="margin-bottom: 2px;">Code:</div>
<pre style="border: 1px inset; margin: 0px -99999px 0px 0px; padding: 3px; overflow: auto; width: 98%; height: 34px; text-align: left;" dir="ltr">find <span style="color: red;">/my/directory</span> -type f -exec <span style="color: red;">chmod 644</span> '{}' +</pre>
</div>
<p>Change the red parts to fit your needs. If you wonder what that &#8216;{}&#8217; is..well, you may have guessed that it&#8217;s where the filelist is being put when exec&#8217;ing the given command on each file.</p>
<p>You can also first try the command without chmod&#8217;ing to see that it affects the right files:</p>
<div style="margin: 5px 20px 20px;">
<div style="margin-bottom: 2px;">Code:</div>
<pre style="border: 1px inset; margin: 0px -99999px 0px 0px; padding: 3px; overflow: auto; width: 98%; height: 34px; text-align: left;" dir="ltr">find /my/directory -type f</pre>
</div>
<p>The above would find all regular files (not directories, for example) from within /my/directory.</p>
<p>If the command happens to throw you an error about the exec part, chances are it&#8217;s because of the plus sign (+) that ends the exec part. In this case try replacing the plus (+) with an escaped semicolon (\;) so it becomes</p>
<div style="margin: 5px 20px 20px;">
<div style="margin-bottom: 2px;">Code:</div>
<pre style="border: 1px inset; margin: 0px -99999px 0px 0px; padding: 3px; overflow: auto; width: 98%; height: 34px; text-align: left;" dir="ltr">find /my/directory -type f -exec chmod 644 '{}' \;</pre>
</div>
<p>On some machines I remember that it worked with semicolon (which needs a backslash in front of it, to protect it from being interpreted by your shell), but on my current installation it&#8217;s the plus sign (without a backslash).</p>
<p>Another way would probably be to list all regular files on the directory (using either find or any tool that can just list all files without directories) and then pipe the output to xargs with which the chmod was run.&#8221;</p>
<p>and from http://movabletripe.com/archive/recursively-chmod-directories-only/</p>
<p>&#8221;</p>
<p><small>June 19th, 2006 <!-- by Adam --></small></p>
<p><code>find . -type d -exec chmod 755 {} \;</code></p>
<p>This will recursively search your directory tree (starting at dir ‘dot’) and chmod 755 all directories only.</p>
<p>Similarly, the following will chmod all files only (and ignore the directories):</p>
<p><code>find . -type f -exec chmod 644 {} \;</code></p>
<p>&#8220;</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/how-to-chmod-on-files-but-not-directories-inodes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora 9 connect: Network is unreachable error</title>
		<link>http://kb.norsetech.net/fedora-9-connect-network-is-unreachable-error/</link>
		<comments>http://kb.norsetech.net/fedora-9-connect-network-is-unreachable-error/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 00:11:40 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Freeware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[card]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[defult]]></category>
		<category><![CDATA[End]]></category>
		<category><![CDATA[fedora core]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[free linux distribution]]></category>
		<category><![CDATA[ip addres]]></category>
		<category><![CDATA[Looked]]></category>
		<category><![CDATA[netgear routers]]></category>
		<category><![CDATA[network interface card]]></category>
		<category><![CDATA[network interface card nic]]></category>
		<category><![CDATA[network scripts]]></category>
		<category><![CDATA[qwest dsl]]></category>
		<category><![CDATA[Red]]></category>
		<category><![CDATA[router ip address]]></category>
		<category><![CDATA[runlevel]]></category>
		<category><![CDATA[subnet]]></category>
		<category><![CDATA[Suplhur]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://norsetech.net/kb/?p=38</guid>
		<description><![CDATA[Ran across this installing Red Hat&#8217;s free Linux distribution Fedora Core 9 code named Suplhur. Installed totally vanilla install with the GUI anaconda front end. The box sees the NIC, and can ping within the local subnet of the LAN network, but can&#8217;t ping out. BTW, it holds a static IP on the network interface [...]]]></description>
			<content:encoded><![CDATA[<p>Ran across this installing Red Hat&#8217;s free Linux distribution Fedora Core 9 code named Suplhur. Installed totally vanilla install with the GUI anaconda front end. The box sees the NIC, and can ping within the local subnet of the LAN network, but can&#8217;t ping out. BTW, it holds a static IP on the network interface card (NIC). Gets the error:</p>
<pre>connect: Network is unreachable error</pre>
<p>We need to set a default route. Here&#8217;s how:</p>
<p>Looked in <strong>/etc/sysconfig/network-scripts</strong> for the file <strong>route-eth0</strong> but it wasn&#8217;t there.</p>
<p>Using vi (you can use whichever text editor you prefer) I created that file <strong>route-eth0</strong>, and put in this one line:</p>
<pre>defult via 192.168.0.1</pre>
<p>(<strong><em>note:</em></strong> 192.168.0.1 is the LAN IP address of my router. Your router IP address may differ. So you should put in whatever the IP addres of <em>your router</em> is, instead. Most Netgear routers and Qwest DSL boradband modems use 192.168.0.1 and Linksys uses 192.168.1.1 and Belkin uses 192.168.2.1 just to name some common ones.)</p>
<p>Then a simple task of restarting the network and testing:</p>
<pre># service network restart</pre>
<pre># ping yahoo.com</pre>
<p>Success!</p>
<p>Also, I found that the ethernet adapters weren&#8217;t starting automatically. Using the GUI taskbar/ Start Menu, I went into System Administration, then into Services, and enabled the &#8220;network&#8221; service.  Then change runlevel to 3. Ping works so eth0 is up, and that happened at the runlevel change. Change to runlevel 5, test, and&#8230; yeppers, it works.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/fedora-9-connect-network-is-unreachable-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OTRS login</title>
		<link>http://kb.norsetech.net/otrs-login/</link>
		<comments>http://kb.norsetech.net/otrs-login/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 05:06:57 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Freeware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[OTRS]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[username]]></category>

		<guid isPermaLink="false">http://norsetech.net/kb/?p=33</guid>
		<description><![CDATA[By default, to login to a fresh OTRS install, the username is root@localhost and the password is root]]></description>
			<content:encoded><![CDATA[<p>By default, to login to a fresh OTRS install, the username is <strong>root@localhost </strong>and the password is <strong>root</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/otrs-login/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

