<?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>Codedrop™ Weblog &#187; DNS-323</title>
	<atom:link href="http://www.codedrop.ca/blog/archives/tag/dns-323/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codedrop.ca/blog</link>
	<description>Drop'n some code and other tech tidbits...</description>
	<lastBuildDate>Sun, 01 Jan 2012 07:48:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Enable ssh on your D-LINK DNS-323</title>
		<link>http://www.codedrop.ca/blog/archives/236</link>
		<comments>http://www.codedrop.ca/blog/archives/236#comments</comments>
		<pubDate>Tue, 30 Nov 2010 05:22:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[DNS-323]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/archives/236</guid>
		<description><![CDATA[Found this great article on how to enable ssh a DNS-323. The D-LINK DNS-323 runs Linux, which makes it hackable&#8230; this means good things&#8230; First Step – Installing fun_plug Installing fun_plug is simple. Download the fun_plug tar.gz file here and copy it to “volume_1” root (IE: dns-323/Volume_1/). Also download the “fun_plug” file (non tar-gz) and copy it to [...]]]></description>
			<content:encoded><![CDATA[<p>Found this great article on how to enable ssh a DNS-323. The D-LINK DNS-323 runs Linux, which makes it hackable&#8230; this means good things&#8230;</p>
<h3 style="border: 1px solid #dedbd1; margin: 0px 0px 15px; padding: 10px 18px 5px; color: #363636; font-size: 14px; font-weight: bold; background-color: #f5f4f0; text-align: left; height: 20px;">First Step – Installing fun_plug</h3>
<p style="border-width: 0px; margin: 0px; padding: 0px 0px 10px; line-height: 20px ! important; text-align: left; font-size: 12px;">Installing fun_plug is simple. Download the fun_plug <strong style="border-width: 0px; margin: 0px; padding: 0px;">tar.gz</strong> file <strong style="border-width: 0px; margin: 0px; padding: 0px;"><a style="border-width: 0px; margin: 0px; padding: 0px; color: #0095d3; text-decoration: none;" href="http://www.inreto.de/dns323/fun-plug/" target="_blank">here</a></strong> and copy it to “<em style="border-width: 0px; margin: 0px; padding: 0px;">volume_1</em>” root (IE: dns-323/Volume_1/). Also download the “<em style="border-width: 0px; margin: 0px; padding: 0px;">fun_plug</em>” file (non tar-gz) and copy it to the same location.</p>
<p style="border-width: 0px; margin: 0px; padding: 0px 0px 10px; line-height: 20px ! important; text-align: left; font-size: 12px;"><strong style="border-width: 0px; margin: 0px; padding: 0px;">Reboot</strong> (From admin click on “tools” and then “system”) the DNS-323 and  on reboot  this file should expand and create a new directory: ffp. It also <strong style="border-width: 0px; margin: 0px; padding: 0px;">starts</strong> a telnet server (there is that out of the way).  In addition, the tarball contains these other packages:</p>
<ul style="border-width: 0px; margin: 0px 0px 15px; padding: 0px; font-size: 12px; line-height: 20px;">
<li style="border-width: 0px; margin: 0px 0px 0px 15px; padding: 3px 0px; list-style-type: circle ! important; list-style-position: inside ! important;">Lighttpd Web Server</li>
<li style="border-width: 0px; margin: 0px 0px 0px 15px; padding: 3px 0px; list-style-type: circle ! important; list-style-position: inside ! important;">OpenSSH Secure Shell</li>
<li style="border-width: 0px; margin: 0px 0px 0px 15px; padding: 3px 0px; list-style-type: circle ! important; list-style-position: inside ! important;">Mediatomb UPnP Media Server</li>
<li style="border-width: 0px; margin: 0px 0px 0px 15px; padding: 3px 0px; list-style-type: circle ! important; list-style-position: inside ! important;">NTP Network Time Daemon</li>
<li style="border-width: 0px; margin: 0px 0px 0px 15px; padding: 3px 0px; list-style-type: circle ! important; list-style-position: inside ! important;">UNFS3 User-Space NFS Server</li>
<li style="border-width: 0px; margin: 0px 0px 0px 15px; padding: 3px 0px; list-style-type: circle ! important; list-style-position: inside ! important;">NFS-Utils NFS Server (requires kernel support)</li>
<li style="border-width: 0px; margin: 0px 0px 0px 15px; padding: 3px 0px; list-style-type: circle ! important; list-style-position: inside ! important;">RSync File Transfer Utility</li>
</ul>
<h3 style="border: 1px solid #dedbd1; margin: 0px 0px 15px; padding: 10px 18px 5px; color: #363636; font-size: 14px; font-weight: bold; background-color: #f5f4f0; text-align: left; height: 20px;"><strong style="border-width: 0px; margin: 0px; padding: 0px;">Second Step – Enable SSH</strong></h3>
<p style="border-width: 0px; margin: 0px; padding: 0px 0px 10px; line-height: 20px ! important; text-align: left; font-size: 12px;">If all goes well you should be able to telnet into your d-link:</p>
<p style="border-width: 0px; margin: 5px 0px; padding: 5px 0px; line-height: 20px; text-align: left; font-size: 12px;">Last login: Sat Feb 28 19:32:18 on console<br style="border-width: 0px; margin: 0px; padding: 0px;" /> localhost:~ jordan$ telnet 192.168.0.198<br style="border-width: 0px; margin: 0px; padding: 0px;" /> Trying 192.168.0.198…<br style="border-width: 0px; margin: 0px; padding: 0px;" /> Connected to 192.168.0.198.<br style="border-width: 0px; margin: 0px; padding: 0px;" /> Escape character is ‘^]’.<br style="border-width: 0px; margin: 0px; padding: 0px;" /> / #</p>
<p style="border-width: 0px; margin: 0px; padding: 0px 0px 10px; line-height: 20px ! important; text-align: left; font-size: 12px;">Notice it asks for no username or password? No good. This is a big security  hole and we need to disable this and enable SSH. Since it is part of the tarball package fun_plug we only need to enable it.</p>
<p style="border-width: 0px; margin: 0px; padding: 0px 0px 10px; line-height: 20px ! important; text-align: left; font-size: 12px;">At the telnet prompt type:</p>
<ol style="border-width: 0px; margin: 0px 0px 15px; padding: 0px; font-size: 12px; line-height: 20px;">
<li style="border-width: 0px; margin: 0px; padding: 3px 0px; list-style-type: decimal ! important; list-style-position: inside ! important; font-size: 12px;"><strong style="border-width: 0px; margin: 0px; padding: 0px;">pwconv </strong><strong style="border-width: 0px; margin: 0px; padding: 0px;"><br style="border-width: 0px; margin: 0px; padding: 0px;" /> </strong></li>
<li style="border-width: 0px; margin: 0px; padding: 3px 0px; list-style-type: decimal ! important; list-style-position: inside ! important; font-size: 12px;"><strong style="border-width: 0px; margin: 0px; padding: 0px;">passwd </strong>- (this changes root password, enter twice)</li>
<li style="border-width: 0px; margin: 0px; padding: 3px 0px; list-style-type: decimal ! important; list-style-position: inside ! important; font-size: 12px;"><strong style="border-width: 0px; margin: 0px; padding: 0px;">usermod -s /ffp/bin/sh root</strong> – (this will change the default shell of the user. Current shell for root is ASH)</li>
<li style="border-width: 0px; margin: 0px; padding: 3px 0px; list-style-type: decimal ! important; list-style-position: inside ! important; font-size: 12px;"><strong style="border-width: 0px; margin: 0px; padding: 0px;">login </strong>- (test to make sure you can login)</li>
<li style="border-width: 0px; margin: 0px; padding: 3px 0px; list-style-type: decimal ! important; list-style-position: inside ! important; font-size: 12px;"><strong style="border-width: 0px; margin: 0px; padding: 0px;">store-passwd.sh</strong></li>
<li style="border-width: 0px; margin: 0px; padding: 3px 0px; list-style-type: decimal ! important; list-style-position: inside ! important; font-size: 12px;"><strong style="border-width: 0px; margin: 0px; padding: 0px;">chmod 766 /ffp/start/sshd.sh</strong> – (this allows everyone to read/execute the SSH startup script. It will also allow it to startup on boot).</li>
<li style="border-width: 0px; margin: 0px; padding: 3px 0px; list-style-type: decimal ! important; list-style-position: inside ! important; font-size: 12px;"><strong style="border-width: 0px; margin: 0px; padding: 0px;"> sh /ffp/start/sshd.sh start</strong> – (start the SSH service)</li>
</ol>
<p style="border-width: 0px; margin: 0px; padding: 0px 0px 10px; line-height: 20px ! important; text-align: left; font-size: 12px;">You should be able to SSH in. Try it now:</p>
<p style="border-width: 0px; margin: 5px 0px; padding: 5px 0px; line-height: 20px; text-align: left; font-size: 12px;">localhost:~ jordan$ ssh root@192.168.0.198<br style="border-width: 0px; margin: 0px; padding: 0px;" /> root@192.168.0.198’s password:<br style="border-width: 0px; margin: 0px; padding: 0px;" /> root@dlink-583ECB:~#</p>
<p style="border-width: 0px; margin: 0px; padding: 0px 0px 10px; line-height: 20px ! important; text-align: left; font-size: 12px;">If you can, disable telnet by executing:</p>
<ol style="border-width: 0px; margin: 0px 0px 15px; padding: 0px; font-size: 12px; line-height: 20px;">
<li style="border-width: 0px; margin: 0px; padding: 3px 0px; list-style-type: decimal ! important; list-style-position: inside ! important; font-size: 12px;"><strong style="border-width: 0px; margin: 0px; padding: 0px;">/ffp/start/telnetd.sh stop<br style="border-width: 0px; margin: 0px; padding: 0px;" /> </strong></li>
<li style="border-width: 0px; margin: 0px; padding: 3px 0px; list-style-type: decimal ! important; list-style-position: inside ! important; font-size: 12px;"><strong style="border-width: 0px; margin: 0px; padding: 0px;">chmod 644 /ffp/start/telnetd.sh</strong></li>
</ol>
<p><strong>Installing Transmission</strong></p>
<ol><em></em></p>
<li>ssh as root</li>
<li>Type the command “cd /mnt/HD_a2” and hit &lt;Enter&gt;<br />
<em>The prompt should change to “/mnt/HD_a2 #”</em></li>
<li>Type the command “wget http://kylek.is-a-geek.org:31337/files/curl-7.18.1.tgz” and hit &lt;Enter&gt;</li>
<li>Type the command “wget http://kylek.is-a-geek.org:31337/files/Transmission-2.04-1.tgz” and hit &lt;Enter&gt;</li>
<li>Type the command “funpkg -i curl-7.18.1.tgz” and hit &lt;Enter&gt;</li>
<li>Type the command “funpkg -i Transmission-2.04-1.tgz” and hit &lt;Enter&gt;</li>
<li>Type the command “chmod a+x /ffp/start/transmission.sh;sh /ffp/start/transmission.sh start”<br />
<em>There would be a message like starting transmission</em></li>
<li>Type the command “sh /ffp/start/transmission.sh stop” and hit &lt;Enter&gt;<br />
<em>There would be a message like stopping transmission</em></li>
<li>Do not close the command prompt.</li>
</ol>
<p><strong>Updating the whitelist</strong></p>
<p>In this section we would be adding your local lan IP range (A.B.C.*)  to the whitelist. Assuming your NAS’s IP is 192.168.1.101, A.B.C.* would  simply mean 192.168.1.* where the last group of number becomes asterix  (*).</p>
<ol>
<li>Go back to the command prompt</li>
<li>Type the command “vi /mnt/HD_a2/.transmission-daemon/settings.json” and hit &lt;Enter&gt;</li>
<li>Edit the line with “rpc-whitelist”</li>
<li>Type the following “,A.B.C.*”<br />
<em>The entire line would read something like<br />
“rpc-whitelist”: “127.0.0.1,192.168.1.*”,<br />
</em></li>
</ol>
<p><strong>Starting Transmission</strong></p>
<ol>
<li>Type the command “sh /ffp/start/transmission.sh start”<br />
<em>There would be a message like starting transmission</em></li>
</ol>
<p>Give it sometime for transmission to startup before proceeding to the next section.</p>
<p><strong>Setting the download directory</strong></p>
<ol>
<li>Type the command “su nobody -c “mkdir -p /mnt/HD_a2/transmission-downloads”“</li>
<li>Type the command “transmission-remote 127.0.0.1 -w /mnt/HD_a2/transmission-downloads”<br />
<em>There would be a message like success</em></li>
</ol>
<p>It’s done! Direct your Internet browser to <strong>http://A.B.C.D:9091</strong> for the transmission web user interface.</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=55f62387-b7d3-8cb1-9b96-79454f732b1e" alt="" /></div>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Enable+ssh+on+your+D-LINK+DNS-323+http%3A%2F%2Ftinyurl.com%2F5r5zung" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Enable+ssh+on+your+D-LINK+DNS-323+http%3A%2F%2Ftinyurl.com%2F5r5zung" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/236/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use your DNS-323 for Time Machine backups.</title>
		<link>http://www.codedrop.ca/blog/archives/212</link>
		<comments>http://www.codedrop.ca/blog/archives/212#comments</comments>
		<pubDate>Wed, 13 Jan 2010 06:14:22 +0000</pubDate>
		<dc:creator>groll</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[DNS-323]]></category>
		<category><![CDATA[Time Machine]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/?p=212</guid>
		<description><![CDATA[If you don&#8217;t want to have to fork over the $$ to buy a time capsule want to make use of your existing DNS-323 hardware for backing up your Mac, here&#8217;s the steps to take. 1) Modify system preferences by executing this line in a terminal. defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 This will allow you [...]]]></description>
			<content:encoded><![CDATA[<p>If you don&#8217;t want to have to fork over the $$ to buy a time capsule want to make use of your existing DNS-323 hardware for backing up your Mac, here&#8217;s the steps to take.</p>
<p>1) Modify system preferences by executing this line in a terminal.<br />
<code><br />
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1<br />
</code></p>
<p>This will allow you to select the DNS as a backup device when you configure Time Machine.</p>
<p>2) You need to manually create a disk image that Time Machine can understand.  The naming convention of this image is key.  The name consists of the computers name and mac address of the local eno device without colons.  (<computer’s name>_<string>.sparsebundle).  Easiest way to find out the proper name is to attempt a backup after completing step 1 above.  While this is attempting to run, use finder to browse the Volume (Volume_1 in my case) and write down the name of the file its trying to create.  The filename will contain .tmp before the .sparebundle.  Drop this from the filename and you have the complete name you need to use.</p>
<p>ie:  gataca_0021413a0cce.tmp.sparsebundle -> gataca_0021413a0cce.sparsebundle</p>
<p>Open disk utility and create a new disk image on your local drive (you cannot create the image directly on the NFS drive) with the following options:</p>
<p>Format: Spare Bundle Disk Image<br />
Partiions: No Partition Map<br />
Encryption: None<br />
Format: Mac OSX Extended Partition (Journaled)<br />
Size &#8211; Maximum Size.. I choose Custom 250GB</p>
<p>After the image is created&#8230; manually copy it over to the root of your NFS volume.</p>
<p>3) Kick off the time machine backup and voila!</p>
<p>Now.. be prepared for the caveats of this solution mentioned <a href="http://www.flokru.org/2008/03/15/time-machine-backups-on-network-shares-2-possible-problems/">here</a>.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Use+your+DNS-323+for+Time+Machine+backups.+http%3A%2F%2Ftinyurl.com%2F63mn4r7" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Use+your+DNS-323+for+Time+Machine+backups.+http%3A%2F%2Ftinyurl.com%2F63mn4r7" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/212/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

