<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>debian nas on random thoughts</title><link>https://awesomeprogrammer.com/categories/debian-nas/</link><description>Recent content in debian nas on random thoughts</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Mon, 23 Jul 2012 00:00:00 +0000</lastBuildDate><atom:link href="https://awesomeprogrammer.com/categories/debian-nas/index.xml" rel="self" type="application/rss+xml"/><item><title>Installing Debian Squeeze on Buffalo Linkstation Mini (LS-WSXL)</title><link>https://awesomeprogrammer.com/blog/2012/07/23/installing-debian-squeeze-on-buffalo-linkstation-mini-ls-wsxl/</link><pubDate>Mon, 23 Jul 2012 00:00:00 +0000</pubDate><guid>https://awesomeprogrammer.com/blog/2012/07/23/installing-debian-squeeze-on-buffalo-linkstation-mini-ls-wsxl/</guid><description><![CDATA[<p>I own a little pretty Buffalo Linkstation Mini that - I bought it over a year ago and I decided it&rsquo;s about time to get this puppy for a spin, so to say. Tempted with idea of installing Debian on it I armed myself with a bunch of tutorials and just went for it.</p>
<p>Bricket my NAS twice during this operation. Took about half a day to fully restore it, try again, fail again and finally succeed.</p>
<p>So here are few tips for all of you, so you can learn from my mistakes :P</p>
<ul>
<li>
<p><a href="http://buffalo.nas-central.org">buffalo.nas-central.org</a> has a huge amount of information, don&rsquo;t over look the forum for some more additional solutions</p>
</li>
<li>
<p>for the love of god <strong>don&rsquo;t use</strong> <a href="http://buffalo.nas-central.org/wiki/Install_Debian_6.0_%28Squeeze%29_On_Buffalo_Linkstation_Mini">this</a> instruction if you own a LS-WSXL version of linkstation, <a href="http://buffalo.nas-central.org/wiki/Debian_Squeeze_on_LS-WXL">instead use this one!</a></p>
</li>
<li>
<p>if you don&rsquo;t want to cook your own firmware to gain ssh/telnet on newer firmware access you can try:</p>
</li>
</ul>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>java -jar acp_commander.jar -t <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -ip <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -pw password -c <span style="color:#e6db74">&#34;sed -i &#39;/PermitRootLogin/s/no/yes/&#39; /etc/sshd_config&#34;</span>
</span></span><span style="display:flex;"><span>java -jar acp_commander.jar -t <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -ip <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -pw password -c <span style="color:#e6db74">&#34;sed -i &#39;/PermitEmptyPasswords/s/^#//&#39; /etc/sshd_config&#34;</span>
</span></span><span style="display:flex;"><span>java -jar acp_commander.jar -t <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -ip <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -pw password -c <span style="color:#e6db74">&#34;sed -i &#39;/PermitEmptyPasswords/s/no/yes/&#39; /etc/sshd_config&#34;</span>
</span></span><span style="display:flex;"><span>java -jar acp_commander.jar -t <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -ip <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -pw password -c <span style="color:#e6db74">&#34;usermod -p \&#34;\&#34; root&#34;</span>
</span></span><span style="display:flex;"><span>java -jar acp_commander.jar -t <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -ip <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -pw password -c <span style="color:#e6db74">&#34;/etc/init.d/sshd.sh restart&#34;</span>
</span></span></code></pre></div><p>Worked great for me</p>
<ul>
<li>
<p>current version of deboostrap is 1.0.42 (<a href="http://ftp.us.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.42_all.deb">get it here</a>)</p>
</li>
<li>
<p>if you will encounter problems with <em>volatile.debian.org/debian-volatile</em> in your <code>/etc/apt/sources.list</code> file - just comment it out</p>
</li>
<li>
<p>if your NAS won&rsquo;t boot after first restart - <a href="http://forum.buffalo.nas-central.org/viewtopic.php?f=61&amp;t=21954&amp;p=141663#p141663">check out this solution</a></p>
</li>
<li>
<p>if you would like to install newer packaged you can try adding: <code>deb http://ftp.us.debian.org/debian wheezy main</code> to your source list. Installing fresh transmission demon goes then like that (as root): <code>apt-get -t wheezy install transmission-daemon</code></p>
</li>
</ul>
<h3 id="2012-07-26---where-to-go-from-there">2012-07-26 - Where to go from there?</h3>
<p>After messing for a while with my brand new NAS I&rsquo;ve successfully updated old packaged using <em>wheezy</em> source lists (almost broke dependencies while doing that), didn&rsquo;t had much luck compiling kernel tho. I&rsquo;ve setup account I needed, configured samba shares and installed latest <a href="http://webmin.com">webmin</a>. So far - very happy with old-new Buffalo Mini :-).</p>
<h3 id="2012-07-28---some-screens">2012-07-28 - Some screens</h3>
<p>Some screens of my working unit.</p>
<p><img src="/images/buffalo/buffalo_mini.jpg" alt="Buffalo Mini" title="Working dissambled LS-WSXL"></p>
<p>Dissambled working unit with two Samsung 640GB drives.</p>
<p><img src="/images/buffalo/webmin.png" alt="Webmin" title="Up-to-date webmin"></p>
<p>Up-to-date system with webmin installed.</p>]]></description><content:encoded><![CDATA[<p>I own a little pretty Buffalo Linkstation Mini that - I bought it over a year ago and I decided it&rsquo;s about time to get this puppy for a spin, so to say. Tempted with idea of installing Debian on it I armed myself with a bunch of tutorials and just went for it.</p>
<p>Bricket my NAS twice during this operation. Took about half a day to fully restore it, try again, fail again and finally succeed.</p>
<p>So here are few tips for all of you, so you can learn from my mistakes :P</p>
<ul>
<li>
<p><a href="http://buffalo.nas-central.org">buffalo.nas-central.org</a> has a huge amount of information, don&rsquo;t over look the forum for some more additional solutions</p>
</li>
<li>
<p>for the love of god <strong>don&rsquo;t use</strong> <a href="http://buffalo.nas-central.org/wiki/Install_Debian_6.0_%28Squeeze%29_On_Buffalo_Linkstation_Mini">this</a> instruction if you own a LS-WSXL version of linkstation, <a href="http://buffalo.nas-central.org/wiki/Debian_Squeeze_on_LS-WXL">instead use this one!</a></p>
</li>
<li>
<p>if you don&rsquo;t want to cook your own firmware to gain ssh/telnet on newer firmware access you can try:</p>
</li>
</ul>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>java -jar acp_commander.jar -t <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -ip <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -pw password -c <span style="color:#e6db74">&#34;sed -i &#39;/PermitRootLogin/s/no/yes/&#39; /etc/sshd_config&#34;</span>
</span></span><span style="display:flex;"><span>java -jar acp_commander.jar -t <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -ip <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -pw password -c <span style="color:#e6db74">&#34;sed -i &#39;/PermitEmptyPasswords/s/^#//&#39; /etc/sshd_config&#34;</span>
</span></span><span style="display:flex;"><span>java -jar acp_commander.jar -t <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -ip <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -pw password -c <span style="color:#e6db74">&#34;sed -i &#39;/PermitEmptyPasswords/s/no/yes/&#39; /etc/sshd_config&#34;</span>
</span></span><span style="display:flex;"><span>java -jar acp_commander.jar -t <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -ip <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -pw password -c <span style="color:#e6db74">&#34;usermod -p \&#34;\&#34; root&#34;</span>
</span></span><span style="display:flex;"><span>java -jar acp_commander.jar -t <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -ip <span style="color:#f92672">{</span>NAS_IP<span style="color:#f92672">}</span> -pw password -c <span style="color:#e6db74">&#34;/etc/init.d/sshd.sh restart&#34;</span>
</span></span></code></pre></div><p>Worked great for me</p>
<ul>
<li>
<p>current version of deboostrap is 1.0.42 (<a href="http://ftp.us.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.42_all.deb">get it here</a>)</p>
</li>
<li>
<p>if you will encounter problems with <em>volatile.debian.org/debian-volatile</em> in your <code>/etc/apt/sources.list</code> file - just comment it out</p>
</li>
<li>
<p>if your NAS won&rsquo;t boot after first restart - <a href="http://forum.buffalo.nas-central.org/viewtopic.php?f=61&amp;t=21954&amp;p=141663#p141663">check out this solution</a></p>
</li>
<li>
<p>if you would like to install newer packaged you can try adding: <code>deb http://ftp.us.debian.org/debian wheezy main</code> to your source list. Installing fresh transmission demon goes then like that (as root): <code>apt-get -t wheezy install transmission-daemon</code></p>
</li>
</ul>
<h3 id="2012-07-26---where-to-go-from-there">2012-07-26 - Where to go from there?</h3>
<p>After messing for a while with my brand new NAS I&rsquo;ve successfully updated old packaged using <em>wheezy</em> source lists (almost broke dependencies while doing that), didn&rsquo;t had much luck compiling kernel tho. I&rsquo;ve setup account I needed, configured samba shares and installed latest <a href="http://webmin.com">webmin</a>. So far - very happy with old-new Buffalo Mini :-).</p>
<h3 id="2012-07-28---some-screens">2012-07-28 - Some screens</h3>
<p>Some screens of my working unit.</p>
<p><img src="/images/buffalo/buffalo_mini.jpg" alt="Buffalo Mini" title="Working dissambled LS-WSXL"></p>
<p>Dissambled working unit with two Samsung 640GB drives.</p>
<p><img src="/images/buffalo/webmin.png" alt="Webmin" title="Up-to-date webmin"></p>
<p>Up-to-date system with webmin installed.</p>]]></content:encoded></item></channel></rss>