<?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>Linux Neophyte &#187; Hardware</title>
	<atom:link href="http://linuxneophyte.com/tag/hardware/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxneophyte.com</link>
	<description>Trials of a Linux Newb.</description>
	<lastBuildDate>Mon, 20 Oct 2008 12:42:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Migration Project: Part III &#8211; Building My VMs</title>
		<link>http://linuxneophyte.com/migration-project-part-iii-building-my-vms/</link>
		<comments>http://linuxneophyte.com/migration-project-part-iii-building-my-vms/#comments</comments>
		<pubDate>Mon, 15 Oct 2007 14:27:56 +0000</pubDate>
		<dc:creator>M@</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apt]]></category>
		<category><![CDATA[CenterIM]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Gutsy Gibbon]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[IM]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[IRSSI]]></category>
		<category><![CDATA[Migration Project]]></category>
		<category><![CDATA[Mutt]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Twiki]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Wiki]]></category>

		<guid isPermaLink="false">http://linuxneophyte.com/migration-project-part-iii-building-my-vms/</guid>
		<description><![CDATA[Now that I&#8217;ve got my physical machine up and running, I can get started with my virtuals.  I&#8217;m going to go into some detail on the Linux one and not so much on the Windows one.
The Linux VM (referred to from here out as Ka) is going to be running my fully configured postfix [...]]]></description>
			<content:encoded><![CDATA[<p>Now that I&#8217;ve got my <a href="http://linuxneophyte.com/migration-project-part-ii-building-the-physical-host/" target="_blank">physical machine</a> up and running, I can get started with my virtuals.  I&#8217;m going to go into some detail on the Linux one and not so much on the Windows one.</p>
<p>The Linux VM (referred to from here out as <a href="http://en.wikipedia.org/wiki/Ka_%28Dark_Tower%29" target="_blank"><strong>Ka</strong></a>) is going to be running my fully configured postfix server (acting as a relay for other machines on my lan), my wiki, my email (I use mutt) and the config files that go along with it, my IRC client and my IM client.  This is where I want to keep my <em>always on</em> services.  My Windows VM is named <a href="http://en.wikipedia.org/wiki/Peeves#Peeves" target="_blank"><strong>Peeves</strong></a>.  It&#8217;ll be managing my online address book and my FTP server, not much else.</p>
<ul>
<li><em>You may be wondering why my Samba server is running on the physical machine and not this one.  It comes down to this; if I store all my media on the VM it becomes much harder to move it to a new machine and get it running if something ugly happens to the physical server.  So, </em><em>if something goes awry,</em><em> I&#8217;ll be without my media for a while but I won&#8217;t be without mail and communications. </em></li>
</ul>
<p>I performed the same installation/configuration I covered on the physical host with some changes when it came to installing my packages.</p>
<blockquote><p><code>apt-get install ssh vim build-essential linux-headers-2.6-686 bzip2 p7zip-full less lsof lshw psmisc w3m lynx nload telnet host dnsutils ftp lftp vnstat file screen irssi unrar cksfv rsync smbfs samba postfix wakeonlan apache2 php5 libapache2-mod-php5 rcs libcgi-session-perl libdigest-sha1-perl libarchive-tar-perl libsasl2-modules mailx mutt procmail fetchmail urlview abook libgpgme11-dev libgpgme11 automake libgnutls-dev libgnutls13 autoconf libncurses5 libncurses5-dev gettext cogito liblzo1 liblzo-dev libcurl3-openssl-dev</code></p></blockquote>
<ul>
<li><em>Some of the applications (samba and postfix for example) will require that you provide some setup information. You’ll want to configure them for yourself.</em></li>
<li><em>If you don’t know what these packages are, you can do an <code>apt-cache show &lt;package&gt;</code> on Debian or Ubuntu.</em></li>
<li><em>It&#8217;s not obvious why I need all of these packages, many of them are required by <a href="http://twiki.org" target="_blank">Twiki</a> and other applications I plan on compiling/running.</em></li>
</ul>
<p>I also installed VMWare tools, I want the host to be able to start and stop the VMs in an orderly fashion and the tools allow that.</p>
<p>Now that everything is installed, I download and install <a href="http://twiki.org" target="_blank">Twiki</a> (this will be the subject of another post).  I use it for <em>everything</em> I need to document. That includes records of upgrades/changes to the house, complete and incomplete projects, info on TV shows we watch, side work I&#8217;ve done, fishing stuff (knots, laws, etc), gardening tips and schedules, and just about everything else I ever write down.  Now that I have a wiki, I can&#8217;t imagine NOT having one&#8230;  End rant on wiki, moving on.</p>
<p>Next I download and compile <a href="http://www.centerim.org" target="_blank">centerim</a>.  They have a list of <a href="http://www.centerim.org/index.php/Requirements" target="_blank">dependencies</a> and <a href="http://www.centerim.org/index.php/Frequently_Asked_Questions" target="_blank">fixes for gotchas</a> on the site.  It was simple to do.  It was between this and <a href="http://pidgin.im" target="_blank">Pidgin</a>, when it comes to console IM, I just prefer the look and feel of centerim.</p>
<p>Now I take a few minutes to configure Samba, I&#8217;m only sharing home directories.  This makes it easy for me to save attachments from my email and have them quickly available to GUI desktops and Windows machines.</p>
<p>The next step was to configure postfix.  I&#8217;ll be honest.  I&#8217;m NOT a pro at ALL.  I&#8217;ve been able to get postfix to act as a relay server for my LAN (and only my LAN) and to use SSL to authenticate with my ISP&#8217;s SMTP server for mail relay.  I hand outgoing mail off to my ISP&#8217;s server to help prevent mail from me being marked as spam by pretty much every mail server in the world.  It works and now that I have it that way, I&#8217;m just not touching it.  I have a book on postfix that I hope to read (eventually).  Maybe I&#8217;ll be a little more confident following the read and I can elaborate on this.</p>
<p>With that complete, I move on to building the Windows VM and shutting down my older hardware.  This is the best part.  I&#8217;ve shut down the two machines in the basement (albus &amp; voldemort) and moved cerberus (formerly nix) to the dungeon.  I can now keep darktower in standby as it&#8217;s no longer acting as a server and all of my documents and pictures live on the Samba server.  Come the end of this month I&#8217;m going to (attempt to) use the Gparted Live CD to re-partition darktower and install Gutsy Gibbon, converting the machine to a dual boot.</p>
<p>My next step is to develop a backup routine and some scripts to automate it.  I&#8217;ll be keeping my data on a remote Debian machine that I manage and I&#8217;ll be using SSH to transfer my data to it.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxneophyte.com/migration-project-part-iii-building-my-vms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migration Project: Part II &#8211; Building the Physical Host</title>
		<link>http://linuxneophyte.com/migration-project-part-ii-building-the-physical-host/</link>
		<comments>http://linuxneophyte.com/migration-project-part-ii-building-the-physical-host/#comments</comments>
		<pubDate>Tue, 09 Oct 2007 19:25:33 +0000</pubDate>
		<dc:creator>M@</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apt]]></category>
		<category><![CDATA[ClamAV]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Debian Volatile]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Migration Project]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Vnstat]]></category>

		<guid isPermaLink="false">http://linuxneophyte.com/migration-project-part-ii-building-the-physical-host/</guid>
		<description><![CDATA[Before getting into the virtual machines, I should probably address the physical machine that&#8217;s going to run them.  For hardware info, check out this page under the heading Nix/Cerberus.  I&#8217;m going to be installing Debian Etch (stable) as the OS, and I&#8217;ll be doing it in the most minimal way.  Read on&#8230;
During [...]]]></description>
			<content:encoded><![CDATA[<p>Before getting into the virtual machines, I should probably address the physical machine that&#8217;s going to run them.  For hardware info, check out <a href="http://linuxneophyte.com/migration-project-part-i-hardware-physical-and-virtual/" target="_blank">this page</a> under the heading <strong>Nix/Cerberus</strong>.  I&#8217;m going to be installing <a href="http://www.us.debian.org/" target="_blank">Debian</a> Etch (stable) as the OS, and I&#8217;ll be doing it in the most minimal way.  Read on&#8230;</p>
<p>During the installation of Debian, you&#8217;re asked several questions, for the most part you need to answer them for yourself.  The important question, the one that gets you a basic install, is package selection.  By default the installer wants to include &#8220;Desktop Environment&#8221; and &#8220;Standard System&#8221;, I chose to omit both.  This leaves you with just enough to get the machine running (which IMO is a very good thing).</p>
<p>After the installer does all it needs to do, it&#8217;ll reboot the machine and leave you at the login prompt.  If you&#8217;ve never sat in front of a GUI-less  machine, then you&#8217;re in for a treat.  Unplug your mouse, chuck it in the bin and get used to virtual terminals, screen sessions and tired fingers <img src='http://linuxneophyte.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>First things first, I need to get this machine going and I don&#8217;t have enough software to do all I need.  I log in as <em>root</em> and make a few changes.</p>
<p>Remove the Debian CDROM as a source from <code>/etc/apt/sources.list</code> and Add <code>contrib</code> and <code>non-free</code> to the same file; it should look like:<code><br />
</code></p>
<blockquote><p><code> deb http://ftp.us.debian.org/debian/ etch main contrib non-free</code><br />
<code> deb-src http://ftp.us.debian.org/debian/ etch main contrib non-free</code><br />
<code> deb http://security.debian.org/ etch/updates main contrib non-free</code><br />
<code> deb-src http://security.debian.org/ etch/updates main contrib non-free</code><br />
<code></code></p></blockquote>
<p><code> </code>Then update the Apt cache (<code>apt-get update</code>) and install my applications&#8230;</p>
<blockquote><p><code>apt-get install ssh vim build-essential linux-headers-2.6-686 bzip2 p7zip-full less lsof lshw psmisc w3m lynx nload telnet host dnsutils ntp ftp lftp vnstat file screen unrar cksfv rsync hellanzb samba smbfs wakeonlan </code><code>postfix mailx</code></p></blockquote>
<ul>
<li><em>Some of the applications (samba and postfix for example) will require that you provide some setup information.  You&#8217;ll want to configure them for yourself.</em></li>
<li><em>I actually installed hellanzb from Debian testing as it&#8217;s a more current version of the app.  </em></li>
<li><em>If you don&#8217;t know what these packages are, you can do an <code>apt-cache show &lt;package name&gt;</code> on Debian or Ubuntu.</em></li>
</ul>
<p>This machine is not only going to host some virtual machines, but it&#8217;s going to act as a samba server, a shell server and the machine I use for various Usenet tasks and some other goodies.  Given that, and the fact that I like to know what&#8217;s going on, I&#8217;ll be keeping an eye on my bandwidth usage.  To do that, I&#8217;ll be using <code>vnstat</code>.  Since it&#8217;s installed already, I need to create a database for my Ethernet adapter.</p>
<p><code>vnstat -u -i eth0<br />
</code></p>
<p>After that and some time, I can issue the <code>vnstat [-&lt;flag&gt;]<flag></flag></code> command to get some really handy network traffic statistics.</p>
<p>Because there are so many ways to configure a shell server and a samba server, I&#8217;m not going to get into the editing of the conf files.   Basically, authentication with the shell server will be done via public/private keys only and I&#8217;ll be running it on an alternate port.  Samba will be configured as a stand alone server and I will be required to enter a valid user/pass to view the shares.</p>
<p>Once all of those applications are installed and configured, one needs only to download the latest version of VMware Server and install that.   I responded with all of the default answers while installing VMWare and was up and running in almost no time.</p>
<p>After a few other tweaks, preventing users from entering <code>/root</code> and other user&#8217;s homes, adjusting umask for my account and installing ClamAV from the <a href="http://www.debian.org/volatile/" target="_blank">Debian Volatile repos</a> (to scan samba shares), I&#8217;m up and running.</p>
<p>There you have it, the quick setup for the physical server that&#8217;s taking over @ the flat.  Next I&#8217;ll start working up the VMs.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxneophyte.com/migration-project-part-ii-building-the-physical-host/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Migration Project: Part I &#8211; Hardware (physical and virtual)</title>
		<link>http://linuxneophyte.com/migration-project-part-i-hardware-physical-and-virtual/</link>
		<comments>http://linuxneophyte.com/migration-project-part-i-hardware-physical-and-virtual/#comments</comments>
		<pubDate>Sun, 23 Sep 2007 11:43:06 +0000</pubDate>
		<dc:creator>M@</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apt]]></category>
		<category><![CDATA[ClamAV]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Debian Volatile]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Migration Project]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Vnstat]]></category>

		<guid isPermaLink="false">http://linuxneophyte.com/migration-project-part-i-hardware-physical-and-virtual/</guid>
		<description><![CDATA[Last time I wrote, I gave the overview of a project I&#8217;ve begun at the house.  Here&#8217;s the hardware I&#8217;m working with and the roles the machines will be performing (or not, as the case may be).
These first 2 guys are the older noisy machines that I need to replace.  They have loud [...]]]></description>
			<content:encoded><![CDATA[<p>Last time I wrote, I gave the <a href="http://linuxneophyte.com/migration-project/">overview</a> of a project I&#8217;ve begun at the house.  Here&#8217;s the hardware I&#8217;m working with and the roles the machines will be performing (or not, as the case may be).</p>
<p>These first 2 guys are the older noisy machines that I need to replace.  They have loud fans and louder hard disks.  I don&#8217;t notice the noise so much since I moved them to the basement, but I *know* they&#8217;re down there making noise&#8230;</p>
<p><strong>Voldemort:</strong></p>
<p>A Pentium III (Coppermine) 1GHz running on a SuperMicro P3TSSA motherboard.  This baby is maxed out with 512MB PC133 SDRAM.   This was a great machine 7+ years ago.  I had a lot of fun on it.  I built it to learn/play with Windows 2000, it had a whopping 256MB of RAM back then and was moderate to high tech when I built it.  This isn&#8217;t the original mobo, it had an Intel branded board that went kaput some time after I installed XP on it.  I&#8217;ve loved this machine for MANY years and while it won&#8217;t be running 24/7 anymore, it&#8217;ll still be there for me to play with.  It&#8217;s currently running Debian 4.0 and hasn&#8217;t had a real role other than for testing for a while.  Most recently, it&#8217;s been host to a VM or two that I&#8217;ve been playing with.</p>
<p><strong>  Albus:</strong></p>
<p>A Pentium III (Coppermine) 1GHz running on a Dell GX150 motherboard.  This one is maxed with 512 MB as well and used to be my work desktop many years ago.  We were able to pick up our machines before they were refreshed for a modest price so I opted to.  I don&#8217;t have any really fond memories with this machine.  It&#8217;s always been on and I&#8217;ve never once had a problem with it.  Not a bad little box.  Currently it&#8217;s running Debian 4.0 (<a href="http://linuxneophyte.com/upgrading-sarge-to-etch/" target="_blank">upgraded from Debian 3.1</a>) and its primary role is a backup server (I&#8217;m using an offsite backup server after this whole project is complete) and shell server.  it&#8217;s the single door into my home network.</p>
<p>This next machine is the physical box replacing both Albus and Voldemort.</p>
<p><strong>Nix/Cerberus:</strong></p>
<p><strong>Credit:</strong> Cerberus was given his name by none other than <em>Sarah Conti</em>.  Rock on with your mythology Miss Conti!</p>
<p>A Pentium 4, 3.00GHz (Hyperthreading) running on an Intel D945GTP motherboard.  It&#8217;s currently rocking 2GB of DDR2/667MHz memory.  This is a great machine for running a standard desktop.  I built it in March 2006 to be my Ubuntu desktop, and I&#8217;ve never had a problem with it.  Currently it&#8217;s name is <strong>Nix</strong> but will soon become <strong>Cerberus</strong>.  It will be running Debian 4.0, VMware server and will be providing shell access (replacing albus) and will act as a Samba server for my music and whatever else I need to share.</p>
<p>&#8230;and without further delay, the virtual machines!</p>
<p><strong>Ka:</strong></p>
<p>Ka is a Debian 4.0 Virtual Machine.  His role is to be an always on machine for my wiki, email, IRC &amp; IM clients.  He&#8217;s already alive and well and I&#8217;ve moved those services over to him.  For the moment he&#8217;s hosted on Voldemort and will be moved to Cerberus once he lives.</p>
<p><strong>Peeves:</strong></p>
<p>Peeves is Windows Server 2003 Enterprise.  Yep, I need to be able to virtualize Windows because I have a few apps that I need/want to have on at all times.  This includes my FTP server, Handy Address Book server and WhereIsIt which is a cataloging program that just rocks.  I decided to go with Windows 2k3 because I had a license for it and didn&#8217;t have one for another copy of XP.  It&#8217;s currently being hosted by Darktower (you&#8217;ll meet him below)</p>
<p>Finally, the desktop machine/VM to get me through this whole mess.</p>
<p><strong>Nix2/Darktower:</strong></p>
<p>Nix2 is just an Ubuntu VM so that I can continue to use my Linux apps while converting Nix to Cerberus.  Nix2 will be hosted on Darktower.  This is a physical machine similar in make-up to Nix (only diff is that it&#8217;s a full ATX board, not a Micro and it&#8217;s in a taller case).  Darktower runs XP at the moment but will eventually be a dual boot with Ubuntu and XP or Vista.  I plan on keeping all data off of this machine, it will be nothing but a client as all of my data will be accessible via the servers.  It&#8217;s final name will remain Darktower.  Once I&#8217;ve got my data off of Nix2 and onto the new Darktower, Nix2 will get the boot and all will be good in the world.</p>
<p>So to summarize, both Albus and Voldemort die (seems fitting), Cerberus, Ka and Peeves rule the roost and Darktower just hangs out getting poked and prodded when needed.  Since I won&#8217;t need it to be on at all times anymore (for IRC and what not) it&#8217;ll be spending the majority of it&#8217;s time in sleep mode.It&#8217;ll be nice to eliminate the 2 older machines and keep a third sleeping most of the time.  That will leave only 2 always on machines in the house, that&#8217;s Cerberus and HTPC (which is a Windows machine running some home theater software).</p>
<p>Once complete, I&#8217;ll not only have infrastructure that&#8217;s really easy to backup/re-create but I&#8217;ll have stopped wasting so much energy.</p>
<p>Next, I&#8217;ll start going over what&#8217;s involved in setting up the VMs, things from Debian installation options to installed applications.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxneophyte.com/migration-project-part-i-hardware-physical-and-virtual/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Feisty Wireless, It&#8217;s Good!</title>
		<link>http://linuxneophyte.com/feisty-wireless-its-good/</link>
		<comments>http://linuxneophyte.com/feisty-wireless-its-good/#comments</comments>
		<pubDate>Thu, 12 Apr 2007 22:29:42 +0000</pubDate>
		<dc:creator>M@</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Feisty]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://linuxneophyte.com/feisty-wireless-its-good/</guid>
		<description><![CDATA[Wow.  This is the first time I&#8217;ve actually said wow (in a positive way) when it comes to Linux wireless.  Basically, it almost just worked!
Here&#8217;s the thing.  I have a bcm4306 (rev 03) wireless card in this lappy, I have NEVER been able to maintain a wireless connection to my AP for [...]]]></description>
			<content:encoded><![CDATA[<p>Wow.  This is the first time I&#8217;ve actually said wow (in a positive way) when it comes to Linux wireless.  Basically, it almost just worked!</p>
<p>Here&#8217;s the thing.  I have a bcm4306 (rev 03) wireless card in this lappy, I have NEVER been able to maintain a wireless connection to my AP for long periods of time using the bcm43xx kernel driver and firmware (either found or extracted by myself).  I&#8217;ve always had good luck with ndiswrapper and this card, and that&#8217;s just how I&#8217;ve gotten things going.  Until now.</p>
<p>I wanted to leave my Feisty install as slick as possible which means leaving the NetworkManager (NM) integration as is.  I figured I would just install ndiswrapper, get my card recognized and then let NM take over.  I was just going to stick with ndiswrapper as it had never kicked me before.  Well, ndiswrapper decided to kick me.  grrr.  I found that I only connected to my AP about half of the time and had weak, weak, weak signal when using ndiswrapper.  I knew everything was working properly because when I booted to Edgy, things worked as expected.</p>
<p>I tried bringing the interface up and down, changing driver versions, using modprobe to remove/add the ndiswrapper module, all to no avail.  I eventually said, ok..   Let&#8217;s try something else.  I did a little googling and found that others were singing the praises of NM and the kernel driver.  I just wanted it to work, so I reversed everything I did to get ndiswrapper working and installed bcm43xx-fwcutter.  During the install I was asked if I wanted to download the firmware for the card (I forget how it was worded), I said yes.  Less for me to do, and who knows..  Maybe they (the bcm43xx-fwcutter ppl I presume) know better than I about what firmware versions work &#8220;best&#8221;.</p>
<p>Initially I was unable to associate with my AP (modprobing, wishing, hoping&#8230;  nothing worked) so I restarted the machine (the tried and true <strong>not</strong>-fix for everything) and found myself being prompted for my AP&#8217;s password (actually it was the password for my Gnome Keyring which feeds NM the pass for my AP).  Lordy, lordy!!  If I wasn&#8217;t connected right up to my AP with proper signal strength, I&#8217;ll eat this lappy!</p>
<p>Right now, I&#8217;m LOVING Feisty Fawn.  She is one helluva sexy young deer who is doing wonders with this notebook.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxneophyte.com/feisty-wireless-its-good/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Feisty Beta Laptop Fun</title>
		<link>http://linuxneophyte.com/feisty-beta-laptop-fun/</link>
		<comments>http://linuxneophyte.com/feisty-beta-laptop-fun/#comments</comments>
		<pubDate>Sun, 08 Apr 2007 13:36:17 +0000</pubDate>
		<dc:creator>M@</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Feisty]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://linuxneophyte.com/feisty-beta-laptop-fun/</guid>
		<description><![CDATA[I&#8217;ve just spent a few hours chilling out with Feisty on my notebook.  I&#8217;m using a Dell Latitude D600 machine.  So far I&#8217;m really digging some of the nicer touches in Gnome and I think I&#8217;m enjoying the NetworkManager integration (we&#8217;ll see, it&#8217;s been a problem for me before).
Firstly, as looks go, Feisty [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just spent a few hours chilling out with Feisty on my notebook.  I&#8217;m using a Dell Latitude D600 machine.  So far I&#8217;m really digging some of the nicer touches in Gnome and I think I&#8217;m enjoying the NetworkManager integration (we&#8217;ll see, it&#8217;s been a problem for me before).</p>
<p>Firstly, as looks go, Feisty isn&#8217;t that different from Edgy.  Similar bootsplash and Gnome theme.  I&#8217;ve been a fan of the bootsplash since I first saw it on Edgy, the text is a little thicker now and has a more pronounced light outline.  It looks a little softer too, I&#8217;m liking it.  I have no real opinion on the Human theme, I never use it long enough to notice when it changes.  It&#8217;s not that I don&#8217;t like it, I just like blues better,</p>
<p>I found that both the Universe and Multiverse repos are enabled by default. They should be, since (IMO) you need them to really get the full range of applications and use of your machine.  Still, there are some things worth having that aren&#8217;t available in the standard repos and you need to go a little further.  I found out about Medibuntu whilst doing a little research and added it.  You can find out how on this page <a href="https://help.ubuntu.com/community/Medibuntu" target="_blank">https://help.ubuntu.com/community/Medibuntu</a>.  This allowed me to install the <code>w32codecs</code> and a few other non-free/proprietary apps/whatevers.</p>
<p>I checked out the new Restricted Drivers Manager.  It was exactly what I expected, useless for me!  I don&#8217;t have any hardware in this machine that would require any restricted drivers.  Hopefully I&#8217;ll finally get the Nvidia card I&#8217;ve been talking myself into and out of for months and I&#8217;ll be able to test the utility out on my desktop.</p>
<p>I was able to test the new Codec manager.  This is a gem! It really simplifies getting mp3 and other proprietary codecs on your machine.  All you have to do is try to play a file (mp3 for instance).  It will just prompt you download/install the codec and you&#8217;ll be ready to roll.  NICE.</p>
<p>One of the nicer, user friendly features is hidden, I don&#8217;t know what the logic behind this is, but I have to assume there is some.  If you want to check out the gnome-control-center (without typing that whenever you want to use it), you&#8217;ll have to use the menu editor (System &gt; Preferences &gt; Main Menu) and enable it.  You&#8217;ll find it under the Preferences heading, just check the box next to Control Center.  The control center isn&#8217;t new, but it certainly looks a lot nicer than the version that shipped with Edgy.  Just another enhancement. <img src='http://linuxneophyte.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you&#8217;ve ever used session management in Gnome, check out the updated session manager. You should be pleased.  Nuff said.</p>
<p>I can&#8217;t say much about the desktop effects on this machine,  I&#8217;ve always had problems with Compiz and  Beryl on it.  It just has older hardware and compositing <strike>desktop</strike> window managers just don&#8217;t run well.  I look forward to playing with it on my desktop machine later.</p>
<p>All in all, the beta release is working VERY well on my lappy.  I&#8217;m monitoring a few things for problems and will address them in another post later on this week.  I&#8217;ve posted &#8220;too soon&#8221; in the past and I want to be sure things are working properly for me before I say they are.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxneophyte.com/feisty-beta-laptop-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Happy G3 B-day to Me!</title>
		<link>http://linuxneophyte.com/a-happy-g3-b-day-to-me/</link>
		<comments>http://linuxneophyte.com/a-happy-g3-b-day-to-me/#comments</comments>
		<pubDate>Sun, 11 Mar 2007 05:00:10 +0000</pubDate>
		<dc:creator>M@</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Musings]]></category>

		<guid isPermaLink="false">http://linuxneophyte.com/a-happy-g3-b-day-to-me/</guid>
		<description><![CDATA[For my birthday, I&#8217;ve decided that I&#8217;m getting an audio player for myself (from Mrs. Neophyte and the dog).  I&#8217;ve pretty much become addicted to podcasts and listen to them almost exclusively (save for my forays into the off color radio of Opie, Anthony &#38; Lil&#8217; Jimmy Nort(d)on).   Since I&#8217;m loving my [...]]]></description>
			<content:encoded><![CDATA[<p>For my birthday, I&#8217;ve decided that I&#8217;m getting an audio player for myself (from Mrs. Neophyte and the dog).  I&#8217;ve pretty much become addicted to podcasts and listen to them almost exclusively (save for my forays into the off color radio of Opie, Anthony &amp; Lil&#8217; Jimmy Nort(d)on).   Since I&#8217;m loving my Linux and I want to be able to use my player with my OS of choice, I needed to do a little shopping around.</p>
<p>I&#8217;ve done research on and off over the last few months and I kept coming back to the Cowon product line.  Since that&#8217;s where I&#8217;ve been leaning, I decided to go with my gut and pull the trigger.  I just ordered myself the 2GB <a href="http://www.cowonamerica.com/products/iaudio/g3/" target="_blank">iAUDIO G3</a>.  It&#8217;s not the newest player on the market, and not the fanciest, here&#8217;s why it&#8217;s best for me.</p>
<ol>
<li>It cares not which OS I&#8217;m using (Linux, MAC, Windows..  pfft it&#8217;s too cool to care).  It mounts as a USB Mass Storage device and I can add or remove files and folders as I see fit.</li>
<li>Insane battery life.  It uses a single AA battery and boasts up to 50 hours of playback.  How can you beat that?  Even if it falls 10 hours short, it&#8217;s terrific!  I like that it uses plain old fashioned batteries as well.  Things that re-charge tend to have a short life when I own them *shrugs*.</li>
<li>It plays (almost) everything; OGG, MP3, WMA, ASF, &amp; WAV.  I doesn&#8217;t play FLAC.  meh, I&#8217;ll cope with that.  I have 3 albums in FLAC and I can just transcode them into OGG if I want to take them with me.  Never mind that those files are just a little too large and IMO, don&#8217;t belong on a 2GB player.</li>
</ol>
<p>Those are my main reasons.  There are a lot of other features that I&#8217;ll probably never use, voice recording being a prime example.  That said, they&#8217;re available and just increase the cool factor <img src='http://linuxneophyte.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I can&#8217;t wait to replace my ancient Sony MP3 Discman.  Yes.  That&#8217;s what I&#8217;ve been using.  I&#8217;m burning through at least 2 AA batteries a week (10 to 15 hours of listening) and at least one CD.  I&#8217;m just so lame, not only is this going to reduce the time it takes to prepare for my commute, it&#8217;s going to cut down on a fair amount of waste.  I should have picked this up ages ago.</p>
<p>There are plenty of reviews for this device out there on the web, so I don&#8217;t think I need to put up another.  If it turns out to be a lousy investment, I&#8217;ll be sure to complain about it here.  If you hear nothing more, then assume that I&#8217;m happily listening to (in no particular order and in OGG where available) <a href="http://www.linuxactionshow.com/" target="_blank">The Linux Action Show</a>, <a href="http://thejakattack.libsyn.com/" target="_blank">JaK Attack</a>, <a href="http://www.linuxreality.com/" target="_blank">Linux Reality</a>, <a href="http://lottalinuxlinks.com/podcast/" target="_blank">The LottaLinuxLinks Podcast</a>, <a href="http://www.grc.com/securitynow.htm" target="_blank">Security Now</a>, <a href="http://www.twit.tv/TWiT" target="_blank">TWiT</a>, <a href="http://thelip.net/" target="_blank">The LIP</a>, <a href="http://goinglinux.com/" target="_blank">Going Linux</a> and the <a href="http://www.tllts.org/" target="_blank">Linux Link Tech Show</a>.  Kinda makes you wonder how much driving I have to do in a week huh?</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxneophyte.com/a-happy-g3-b-day-to-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Knoppix Saves the Day AGAIN</title>
		<link>http://linuxneophyte.com/knoppix-saves-the-day-again/</link>
		<comments>http://linuxneophyte.com/knoppix-saves-the-day-again/#comments</comments>
		<pubDate>Fri, 26 Jan 2007 17:47:16 +0000</pubDate>
		<dc:creator>M@</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Knoppix]]></category>

		<guid isPermaLink="false">http://linuxneophyte.com/knoppix-saves-the-day-again/</guid>
		<description><![CDATA[A student here at work has a notebook which just up and died.  The story was that the fan died about a week before, she ignored it and just kept running the machine.  As many of us have learned, lappies can run hot.  This wasn&#8217;t a very good idea (to say the [...]]]></description>
			<content:encoded><![CDATA[<p>A student here at work has a notebook which just up and died.  The story was that the fan died about a week before, she ignored it and just kept running the machine.  As many of us have learned, lappies can run hot.  This wasn&#8217;t a very good idea (to say the least).  As computers will do when too much heat is applied, it choked and took everything with it.  My hope was to save the data she&#8217;s been collecting throughout her college career so I started poking around.</p>
<p>The notebook itself seems thrashed, holding the power button down will flash the power LED, then it just blinks out (kinda sad).  Obviously I&#8217;m not getting at the data on the disk if I have to use this machine.  I yank the disk, toss it into another lappy (same model) and insert a Knoppix 3.9 boot CD.  To my chagrin, the poor little disk is hurting too.  I got a horrid click/crunch noise during POST and the system couldn&#8217;t find the disk.  Dismayed, I pulled the drive, tapped it ever so slightly and tried again.  No joy.  OK, I have another idea, I grab a ziplock bag (thanks to the ladies in AP, they ALWAYS have &#8220;stuff&#8221; around, I always find the strangest things in their area), pop the drive into it and stick the whole thing into the freezer for an hour and a half (passing the time by drinking coffee and hoping this works).</p>
<p>Now that it&#8217;s frozen, I take the disk, slide it back into the lappy and start it up.  No hard disk noises at all, it&#8217;s just not spinning up.  Well, we&#8217;re getting to the point where I won&#8217;t have the tools to save the data.  So, I says to myself, &#8220;screw it&#8221; and whacked the disk off of the top of my desk a couple of times and try again.  JOY!  The drive spins up!</p>
<p>Note to self: violence is better than cold&#8230;</p>
<p>I boot from the CD into the Knoppix KDE desktop, mount <code>/dev/hda2</code> (which is where XP lives on this machine) and use <code>scp</code> to transfer the contents of her &#8220;My Documents&#8221; folder to my Fedora machine here at work.  The command looked like <code>scp -r /mnt/hda2/Documents\ and\ Settings/[username]/My\ Documents/ xxx.xxx.xxx.xxx:</code> (I removed her username and my IP from the example).</p>
<p>Dell will be in to replace the ever so toasted motherboard (and anything else that&#8217;s been trashed) and I can hand it all back to her with her data in place.</p>
<p>Just another illustration of the power of Linux, there was no way I could have added this drive to a desktop machine here at work without buying a laptop drive conversion kit.  Knoppix was the PERFECT solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxneophyte.com/knoppix-saves-the-day-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DD-WRT: Password Free Login to LAN Hosts from DD-WRT Shell</title>
		<link>http://linuxneophyte.com/dd-wrt-password-free-login-to-lan-hosts-from-dd-wrt-shell/</link>
		<comments>http://linuxneophyte.com/dd-wrt-password-free-login-to-lan-hosts-from-dd-wrt-shell/#comments</comments>
		<pubDate>Mon, 22 Jan 2007 05:27:11 +0000</pubDate>
		<dc:creator>M@</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Console]]></category>
		<category><![CDATA[DD-WRT]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://linuxneophyte.com/dd-wrt-password-free-login-to-lan-hosts-from-dd-wrt-shell/</guid>
		<description><![CDATA[The Dropbear SSH client included on the DD-WRT firmware can make it trivial for you to access computers on your network without exposing them to the Internet.  For example, let&#8217;s say I have remote SSH management enabled on my router, and I have a computer named ubuntu running an SSHd on my LAN.  [...]]]></description>
			<content:encoded><![CDATA[<p>The Dropbear SSH client included on the DD-WRT firmware can make it trivial for you to access computers on your network without exposing them to the Internet.  For example, let&#8217;s say I have remote SSH management enabled on my router, and I have a computer named <em>ubuntu</em> running an SSHd on my LAN.  I want to log into <em>ubuntu</em> from anywhere but don&#8217;t want to forward ports from the WAN side of the router to that machine.  All I need to do is SSH into my router, and from the DD-WRT shell prompt enter <code>ssh <em>[username]</em>@ubuntu</code> and provide my password.  All very easy to do and keeps my machines away from the world on the ugly side of the router/firewall.</p>
<p>Now, <em>ubuntu</em> is only accessible from the LAN, so to make my life a little easier, I want to allow password-less logins, this is how it&#8217;s done.</p>
<p><em>This builds off of <a target="_blank" href="http://linuxneophyte.com/dd-wrt-ssh-remote-management-with-public-key-authentication/">DD-WRT: SSH Remote Management with Public Key Authentication</a> and <a target="_blank" href="http://linuxneophyte.com/dd-wrt-samba-startup-script-reconfigure-dropbear-sshd/">DD-WRT: Samba Startup Script / Reconfigure Dropbear SSHd</a>.</em>  Just to keep things fresh, the router only allows logins via public-key authentication, the machine <strong>ubuntu</strong> hosts the script that the router launches at startup on a Samba share (<code>smb://ubuntu/ddwrt</code>).  The local path to that share on <strong>ubuntu</strong> is <code>~/ddwrt</code>.  The router will map that share to <code>/tmp/smbshare</code> during startup and will execute the <code>dd-wrt-startup.sh</code> script located there.</p>
<p><strong>Configure public-key authenication on the Linux machine:</strong></p>
<p>Since I used this machine to create a keypair earlier, I&#8217;m just going to recycle.  Up until now, I&#8217;ve only configured this machine to <em>make</em> connections to other hosts using public-key authentication.  Now I need to <em>accept</em> public-key auth connections from other hosts.</p>
<p>To do this, I need to create an <code>authorized_keys</code> file in <code>~/.ssh/</code>.  The command below will write my <code>~/.ssh/id_rsa.pub</code> file to the bottom of a pre-existing <code>authorized_keys</code> file or create a new one if it doesn&#8217;t exist.  This file allows me to authenticate with my private key on the computer <em>ubuntu</em>.</p>
<blockquote><p>cat ~/.ssh/id_rsa.pub >>~/.ssh/authorized_keys</p></blockquote>
<p><strong>Copy private key to router and convert it:</strong></p>
<p>Next, I need to get my private key someplace accessible to the router, I&#8217;m just copying it to the Samba share that auto-mounts when the router starts up.</p>
<blockquote><p>cp -v ~/.ssh/id_rsa ~/ddwrt/</p></blockquote>
<p>Now, I remove the password from the copy of the private key, this <strong>is</strong> mandatory.  DD-WRT&#8217;s Dropbear client has its own format for private keys and cannot convert encrypted (password protected) OpenSSH keys.  Not to mention that I actually WANT password-less logins <img src='http://linuxneophyte.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .  Just follow the prompts provided after executing the next command.</p>
<blockquote><p>ssh-keygen -p -f ~/ddwrt/id_rsa</p></blockquote>
<p><strong>Note:</strong> This key will NEVER leave my personal network so I&#8217;m not worried about it getting into the hands of anyone I don&#8217;t trust.</p>
<p>Next I SSH into the router.</p>
<blockquote><p>ssh root@192.168.1.1 -i ~/.ssh/id_rsa</p></blockquote>
<p>Using <code>dropbearkonvert</code> I convert the OpenSSH key to a Dropbear key.</p>
<blockquote><p>dropbearkonvert openssh dropbear /tmp/smbshare/id_rsa /tmp/smbshare/id_dropbear</p></blockquote>
<p><strong>Install private key to home dir at router startup:</strong></p>
<p>The last step is to have the key installed to the <code>/tmp/root/.ssh/</code> directory on the router whenever the router starts up.  I could opt to leave the key on the Samba mount, but I decided to put it on the router because I actually have more than one machine I want to get to.  If for some reason the machine running the Samba server is off-line, I wouldn&#8217;t have access to the private key.</p>
<p>To automagically install the key, I need to add the lines below to the router&#8217;s startup script, this can be done from the router, <code>vi /tmp/smbshare/dd-wrt-startup.sh</code> or from my desktop using my editor of choice <code>nano ~/ddwrt/dd-wrt-startup.sh</code>.</p>
<blockquote><p>## install dropbear private key for passwordless login to other machines<br />
cp /tmp/smbshare/id_dropbear /tmp/root/.ssh/<br />
chmod 600 /tmp/root/.ssh/id_dropbear</p></blockquote>
<p>You can reboot the router to test the script or you can manually enter <code>cp /tmp/smbshare/id_dropbear /tmp/root/.ssh/</code> on the router and test it by entering <code>ssh <em>[username]@[hostname]</em> -i ~/.ssh/id_dropbear</code>.  This should bring up a prompt similar to the one below:</p>
<blockquote><p>Host &#8216;ubuntu&#8217; is not in the trusted hosts file.<br />
(fingerprint md5 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx)<br />
Do you want to continue connecting? (y/n)</p></blockquote>
<p>Answering &#8220;y&#8221; will add the host to <code>~/.ssh/known_hosts</code> and I won&#8217;t be prompted about it again until I reboot the router.  If I want to permanently add all of my machines to <code>known_hosts</code>, I can connect to each one of them and answer &#8220;<code>y</code>&#8221; at the <code> Do you want to continue connecting?</code> Prompt.  After all of my hosts are known, I copy the file from the router to my Samba share (<code>cp ~/.ssh/known_hosts /tmp/smbshare</code>).  Lastly, I go back to my startup script and add the line below.</p>
<blockquote><p>cp /tmp/smbshare/known_hosts /tmp/root/.ssh/</p></blockquote>
<p>that&#8217;s all folks, the router will install the files I need whenever it reboots and I have access to all of my machines through ONE tightly locked door.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxneophyte.com/dd-wrt-password-free-login-to-lan-hosts-from-dd-wrt-shell/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fedora ATA Problems (finally) Resolved</title>
		<link>http://linuxneophyte.com/fedora-ata-problems-finally-resolved/</link>
		<comments>http://linuxneophyte.com/fedora-ata-problems-finally-resolved/#comments</comments>
		<pubDate>Fri, 19 Jan 2007 13:41:41 +0000</pubDate>
		<dc:creator>M@</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[FC6]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[RPM]]></category>

		<guid isPermaLink="false">http://linuxneophyte.com/fedora-ata-problems-finally-resolved/</guid>
		<description><![CDATA[Well, they&#8217;ve finally done it!  Fedora fixed the kernel problem that was simply driving me mad.  Back in November, I posted about Fedora Core 6 &#8211; SATA &#038; CIFS Problems  which led to painfully slow boot times on my office OptiPlex system.
If you&#8217;re suffering from this garbage at startup:
 ata1: port is [...]]]></description>
			<content:encoded><![CDATA[<p>Well, they&#8217;ve finally done it!  Fedora fixed the kernel problem that was simply driving me mad.  Back in November, I posted about <a target="_blank" href="http://linuxneophyte.com/fedora-core-6-sata-cifs-problems/">Fedora Core 6 &#8211; SATA &#038; CIFS Problems</a>  which led to painfully slow boot times on my office OptiPlex system.</p>
<p>If you&#8217;re suffering from this garbage at startup:</p>
<blockquote><p><code> ata1: port is slow to respond, please be patient<br />
ata1: port failed to respond (30 secs)<br />
ata1: SRST failed (status 0xFF)<br />
ata1: SRST failed (err_mask=0x100)<br />
ata1: softreset failed, retrying in 5 secs</code></p></blockquote>
<p>Then all you need to do is perform a standard update (<code>su -c 'yum update'</code>) and restart the machine.  The <em>2.6.19-1.2895.fc6</em> kernel will fix it.</p>
<p>Now that the issue is resolved, Fedora doesn&#8217;t feel broken to me anymore.  JOY!</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxneophyte.com/fedora-ata-problems-finally-resolved/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DD-WRT: Samba Startup Script / Reconfigure Dropbear SSHd</title>
		<link>http://linuxneophyte.com/dd-wrt-samba-startup-script-reconfigure-dropbear-sshd/</link>
		<comments>http://linuxneophyte.com/dd-wrt-samba-startup-script-reconfigure-dropbear-sshd/#comments</comments>
		<pubDate>Mon, 15 Jan 2007 05:06:48 +0000</pubDate>
		<dc:creator>M@</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Console]]></category>
		<category><![CDATA[DD-WRT]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://linuxneophyte.com/dd-wrt-samba-startup-script-reconfigure-dropbear-sshd/</guid>
		<description><![CDATA[Yep, still working with DD-WRT  ..  I wanted to make some changes to the router config but these changes aren&#8217;t available in DD-WRT&#8217;s control panel.  Since we&#8217;re working with Linux here, I figured there had to be SOME way to hack it up..  Well, I was correct!  The firmware has [...]]]></description>
			<content:encoded><![CDATA[<p>Yep, still working with <a target="_blank" href="http://en.wikipedia.org/wiki/DD-WRT">DD-WRT</a> <img src='http://linuxneophyte.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ..  I wanted to make some changes to the router config but these changes aren&#8217;t available in DD-WRT&#8217;s control panel.  Since we&#8217;re working with Linux here, I figured there had to be SOME way to hack it up..  Well, I was correct!  The firmware has some features that make it pretty simple to execute a script at startup.  You have some options, one is to enable <a target="_blank" href="http://en.wikipedia.org/wiki/JFFS">JFFS</a> and physically store a script on the router.  Another is to mount a <a target="_blank" href="http://en.wikipedia.org/wiki/Samba_software">Samba</a> share on startup and keep your script there.  I opted for the Samba share because it can store your script as well as allow you to upload files (via scp for instance) directly to a computer on your network through your SSHd.</p>
<p>The script I&#8217;m creating is only useful if you have your router configured for remote SSH management (see <a target="_blank" href="http://linuxneophyte.com/dd-wrt-ssh-remote-management-with-public-key-authentication/">DD-WRT: SSH Remote Management with Public Key Authentication</a> for my how-to).  The configuration process applies to setting up any startup script on a Samba share.</p>
<p>The script I want to execute on startup is going to change the configuration of the <a target="_blank" href="http://matt.ucc.asn.au/dropbear/dropbear.html">Dropbear SSHd</a>.  By default, when you connect to the router via SSH, you&#8217;re presented with a pre-login prompt advertising the firmware&#8217;s version.  I prefer not sharing that info with anyone (not in such a blatant fashion at any rate), so I need to kill off the dropbear process and restart it without the banner flag.  You might be wondering why I don&#8217;t just edit dropbear&#8217;s config file on the router&#8230;  The simple answer is that there isn&#8217;t one. <img src='http://linuxneophyte.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;m going to be using a Samba share I&#8217;ve created just for DD-WRT on the machine named <strong>ubuntu</strong> (also my desktop).  The local path is <code>~/ddwrt</code> and the network path is <code>smb://ubuntu/ddwrt</code></p>
<p><strong>Create the script:</strong></p>
<p>Create a script on your Samba share named <code>dd-wrt-startup.sh</code>.  One way to create the file is to enter the commands below in a terminal.</p>
<blockquote><p>cd ~/ddwrt<br />
touch dd-wrt-startup.sh</p></blockquote>
<p>Open <code>~/ddwrt/dd-wrt-startup.sh</code> with your editor of choice and add the text below (each command should be on its own line):</p>
<blockquote><p><code>#!/bin/sh<br />
## kill/restart dropbear; remove pre-logon message<br />
killall dropbear<br />
dropbear -r /tmp/root/.ssh/ssh_host_rsa_key -d /tmp/root/.ssh/ssh_host_dss_key -p 22 -s</code></p></blockquote>
<p>Be sure that when you specify the port (<code>-p 22</code>), you use the same port that you have configured in the DD-WRT control panel.</p>
<p>The difference between the command to launch dropbear that I wrote, and the command the router defaults to, is that I&#8217;ve removed the banner file flag (<code>-b [path to loginprompt]</code>).  If you want to see what the exact command line is on your router before you make the change, SSH in and enter a <code>ps</code>, someplace in the process list you&#8217;ll see the dropbear command line.</p>
<p><strong>Configure Samba FS Automount:</strong></p>
<p>Before going on, be sure that the Samba server has a static IP or (better yet) a static DHCP address.  If you don&#8217;t use static DHCP, you may want to use the machine&#8217;s IP address instead of its name when configuring the share below.  Check out the <a target="_blank" href="http://www.dd-wrt.com/wiki/index.php/DNSMasq_as_DHCP_server">DD-WRT DNSMasq wiki page</a> for more info.</p>
<p>Log into the DD-WRT Control Panel, Click <em>Administration</em> then select the <em>Management</em> tab.  Scroll down to the <em>Samba FS Automount</em> section and configure as follows:</p>
<blockquote>
<ul>
<li><strong>SMB Filesystem:</strong> Enable</li>
<li><strong>Share:</strong> //ubuntu/ddwrt</li>
<li><strong>User Name:</strong> [valid smb user]</li>
<li><strong>Password:</strong> [smb user's password]</li>
<li><strong>Startscript:</strong> dd-wrt-startup.sh</li>
</ul>
</blockquote>
<p>Now all you need to do is click <em>Save Settings</em> and <em>Reboot Router</em>.  The next time you SSH in, you&#8217;ll notice that no information about the router is given until you&#8217;ve provided your credentials and successfully authenticated.  You will also notice that entering the <code>mount</code> command will show you that your Samba share is mounted to <code>/tmp/smbshare</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxneophyte.com/dd-wrt-samba-startup-script-reconfigure-dropbear-sshd/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
