<?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>EntBlog &#187; Linux</title>
	<atom:link href="http://entland.homelinux.com/blog/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://entland.homelinux.com/blog</link>
	<description>Code, 3D, Games, Linux and much more...</description>
	<lastBuildDate>Tue, 28 Jul 2009 19:58:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Building a NAS</title>
		<link>http://entland.homelinux.com/blog/2007/07/09/building-a-nas/</link>
		<comments>http://entland.homelinux.com/blog/2007/07/09/building-a-nas/#comments</comments>
		<pubDate>Mon, 09 Jul 2007 01:22:55 +0000</pubDate>
		<dc:creator>ent</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://entland.homelinux.com/blog/2007/07/09/building-a-nas/</guid>
		<description><![CDATA[I have been building a NAS in my spare time for the last months. I wanted this machine for backing up my other machines, storing movies and TV series for my media center, storing recordings from the TV, etc etc. I could have bought a specific machine for this purpose, but I found more interesting [...]]]></description>
			<content:encoded><![CDATA[<p>I have been building a <a href="http://en.wikipedia.org/wiki/Network-attached_storage">NAS</a> in my spare time for the last months. I wanted this machine for backing up my other machines, storing movies and TV series for my media center, storing recordings from the TV, etc etc. I could have bought a specific machine for this purpose, but I found more interesting and funny building it on my own. These were the objectives I had in mind when designing the machine:</p>
<ul>
<li>A 24/7 machine (running all the day)</li>
<li>Small</li>
<li>Quiet</li>
<li>Low power consumption</li>
<li>Easily expandable with new disks without losing data</li>
<li><a href="http://en.wikipedia.org/wiki/RAID">RAID 5</a></li>
<li>Break the TB barrier</li>
<li>Being able to transfer saturating the Gigabit ethernet port</li>
<li>With a customized Linux OS</li>
</ul>
<p>And well, I think that I have been able to get all my objectives. This is my first modding, so I encountered lot of problems. Sure the next time I will do it better.</p>
<p>The following sections are a worklog of how I made this machine. Enjoy it.</p>
<p><span id="more-98"></span></p>
<h4>The Hardware</h4>
<p>This is the list of the hardware components I finally chose for the machine.</p>
<div class="informaltable">
<table border="0">
<thead>
<tr>
<th>Component</th>
<th>price / €</th>
</tr>
</thead>
<tbody>
<tr>
<td>Motherboard <a href="http://www.mini-itx.com/store/?c=32">Mini-ITX AOPEN I945GTT 479</a></td>
<td>257,50</td>
</tr>
<tr>
<td>CPU Intel Celeron-M 420 1.60GHZ</td>
<td>54,00</td>
</tr>
<tr>
<td>Memory DDR2 SODIMM 512MB</td>
<td>39,00</td>
</tr>
<tr>
<td>Hard Disk Controller<a href="http://www.highpoint-tech.com/USA/rr2310.htm">HighPoint-RocketRAID 2310 RAID PCIe SATA2</a></td>
<td>129,00</td>
</tr>
<tr>
<td>Case <a href="http://www.mini-itx.com/store/?c=3#venus">Morex Venus 669 Case</a></td>
<td>105,33</td>
</tr>
<tr>
<td><a href="http://www.icydock.com/product/mb455spf.html">Rack 5 HD ICY Dock Black Plane SATA</a></td>
<td>158,50</td>
</tr>
<tr>
</tr>
<tr>
<td>Sharkoon SE Fan 1000 &#8211; 8.9 dB</td>
<td>9,00</td>
</tr>
<tr>
<td>CompactFlash IDE Adapter</td>
<td>25,00</td>
</tr>
<tr>
<td>CompactFlash 64Mb</td>
<td>5,00</td>
</tr>
<tr>
<td>4 x Samsung 500GB Sata2</td>
<td>416,00</td>
</tr>
<thead>
<tr>
<th>Total</th>
<th>1198,33€</th>
</tr>
</thead>
</tbody>
</table>
</div>
<p>&nbsp;</p>
<p>For the modding of this machine I have been highly inspired in one of the <a href="http://www.mashie.org/casemods/udat1.html">Mashie Designs</a>. Credits for him and its useful web page. There is lot of information in the forums. I spent several nights reading them.</p>
<p>The motherboard, Mini-ITX, is really small as you can see in this photo. The power supply is external and the unique fan I needed was the one for the CPU. The Celeron-M processor consumption is very low (it is a mobile cpu) and so is the dissipated heat. I could have unmount the fan but it was so quiet that I decided to keep it and reduce the temperature a bit.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas00.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>For the controller, I went with the HighPoint 2310. It supports 4xHDD SataII and RAID 5. It is not a pure hardware SATAII controller (it is CPU assisted) but in this machine, the Celeron will be exclusively helping the controller, so the final performance was very good and I didn&#8217;t need to buy an expensive hardware SATAII controller.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas01.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>I didn&#8217;t find a smaller case for the NAS. Next time, probably, I will made my own case. Anyway, I had to do lot of modifications to the Venus case. Mainly, I used the <a href="http://www.dremel.com/">dremel</a> to cut the metal so the RACK fit in.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas02.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas03.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>The RACK in its final position. This model fits five drives within a three (5.25”) bay fitting. It&#8217;s equipped with a hot swappable fan that may be detached. The fan was too noisy to me so I tried the machine without the fan but the temp of the HDDs reached 55º. So, finally, I decided to buy a new fan that was almost inaudible (a 8.9 dB Sharkoon fan). This fan and the CPU fan are the unique fans in the machine. </p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas04.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas06.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>As you can see in this photo, the controller is really small and there is enough space for the sata cables.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas05.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>I needed a new front panel for the case. I made it with two layers. The first one was cut from a Styroglass sheet (7,5mm)</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas07.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>For the second layer I used a 1mm aluminium sheet. Both layers were glued with epoxy.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas08.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>This is a photo of the front panel before being painted.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas09.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>The front panel was sanded, primed and painted in black 3 times. I made a hole for inserting a keylock and another one for a power led.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas11.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>And&#8230; the final look of the machine, the monster. <img src='http://entland.homelinux.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas12.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>The hard disks are hot-swappables. I inserted the four hard disks in the rack and the machine was ready for installing the operating system.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas10.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>I used this power meter to determine an approximation of what it costs to have this machine running 24h per day. When the disks are not being used the meter reports 60w. This is 43Kwh in a month = 4.07 €/month. Something my electricity bill can afford without too much worries.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas13.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>&nbsp;<br />
&nbsp;</p>
<h4>The Software</h4>
<p>For the operating system, I used a customized <a href="http://www.gentoo.org">Gentoo</a> distribution. I followed <a href="http://forums.gentoo.org/viewtopic-t-327295.html">this</a> guide to create the image. The operating system was installed in a 64Mb Compact Flash card. That way all the RAID is exclusively for data storage.</p>
<p>The image I generated is about 45Mb with the following packages:</p>
<ul>
<li><a href="http://metalog.sourceforge.net/">Metalog</a> for logging</li>
<li><a href="http://www.openssh.com/">Openssh</a> for remote access</li>
<li><a href="http://smartmontools.sourceforge.net/">Smartmontools</a> for <a href="http://en.wikipedia.org/wiki/Self-Monitoring%2C_Analysis%2C_and_Reporting_Technology">S.M.A.R.T</a> monitoring of the hard disks</li>
<li><a href="http://www.phystech.com/download/dhcpcd.html">Dhcpcd</a>, a DHCP client</li>
<li><a href="http://www.lm-sensors.org/">Lm_sensors</a> to control system temperatures</li>
<li><a href="http://net-snmp.sourceforge.net/">Net-snmp</a>, a SNMP server to allow my main <a href="http://entland.homelinux.com/blog/2006/05/15/running-your-own-server-home/">server</a> gather information and generate graphs for this machine</li>
<li><a href="http://www.ntp.org/">Ntp</a> for time synchronization with my server</li>
<li><a href="http://www.ntp.org/">Samba</a> for sharing the folders.</li>
</ul>
<p>The kernel I chose was the 2.6.19. The <a href="http://www.highpoint-tech.com/USA/bios_rr2310.htm#mac">drivers</a> distributed by HightPoint were perfectly compatible with this kernel. I can&#8217;t say the same about the tools. They are distributed as rpm (only binaries) and lot of problems appeared. This really sucks. Sources and tar.gz should be distributed to be compatible with all the linux distros.</p>
<p>If you want the image I am using, email me and I will send it to you (with all the sources if you want).</p>
<p>And that is all for my new RAID5 1&#8242;5TB machine. It has been a hard work but I have learned a lot. Don&#8217;t hesitate to write here if you want more information, discuss details, give your opinion, etc.</p>
<p>Thanks for reading, see you in the next article. </p>
]]></content:encoded>
			<wfw:commentRss>http://entland.homelinux.com/blog/2007/07/09/building-a-nas/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Fon Community</title>
		<link>http://entland.homelinux.com/blog/2006/10/03/fon-community/</link>
		<comments>http://entland.homelinux.com/blog/2006/10/03/fon-community/#comments</comments>
		<pubDate>Tue, 03 Oct 2006 00:07:31 +0000</pubDate>
		<dc:creator>ent</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://entland.homelinux.com/blog/2006/10/03/fon-community/</guid>
		<description><![CDATA[
My host is joining the Fon Movement, a free WiFi community oriented towards sharing home internet connections to the world. Sharing your connection allows you to use any Fon node in the world for free.
There are already lots of nodes around the globe. You can check your neighborhood here.
What really impressed me is that they [...]]]></description>
			<content:encoded><![CDATA[<div class="img-shadow"><img src="http://entland.homelinux.com/images/fon.jpg" /></div>
<p>My host is joining the <a href="http://en.fon.com/">Fon Movement</a>, a free WiFi community oriented towards sharing home internet connections to the world. Sharing your connection allows you to use any Fon node in the world for free.</p>
<p>There are already lots of nodes around the globe. You can check your neighborhood <a href="http://maps.fon.com/">here</a>.</p>
<p>What really impressed me is that they are selling is FON Social Router (<a href="https://shop.fon.com/FonShop/shop/ShopController?view=product&#038;product=PRD-001">La Fonera</a>) for just <b>5 €/$</b>. A 802.11g router with a linux 2.4.0 inside! I couldn&#8217;t resist such a bargain.</p>
<p>If you live in Spain, like me, <a href="http://www.pc-actual.com/">Pc Actual</a> is offering the router, 400 <a href="http://www.skype.com/products/skypeout/">skypeout</a> minutes, skype starter kit and a guide of Pc Tricks in this <a href="http://www.pc-actual.com/FON">page</a>.</p>
<p>And now, waiting for it&#8230;</p>
<div class="clearer"></div>
]]></content:encoded>
			<wfw:commentRss>http://entland.homelinux.com/blog/2006/10/03/fon-community/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>UPS for Linux</title>
		<link>http://entland.homelinux.com/blog/2006/09/05/ups-for-linux/</link>
		<comments>http://entland.homelinux.com/blog/2006/09/05/ups-for-linux/#comments</comments>
		<pubDate>Tue, 05 Sep 2006 00:37:27 +0000</pubDate>
		<dc:creator>ent</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://entland.homelinux.com/blog/2006/09/05/ups-for-linux/</guid>
		<description><![CDATA[I&#8217;m tired of the electric shortages I am suffering these days at home (where this blog an other services I use frequently are hosted) so I decided to buy an Uninterruptible Power Supply (UPS) for my server. Without doing too much investigation I bought a unit from Belkin: FH6350efUNV.
I&#8217;m really surprised with the Quality-Price ratio [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m tired of the electric shortages I am suffering these days at home (where this blog an other services I use frequently are <a href="http://entland.homelinux.com/blog/2006/05/15/running-your-own-server-home/">hosted</a>) so I decided to buy an Uninterruptible Power Supply (<a href="http://en.wikipedia.org/wiki/Uninterruptible_power_supply">UPS</a>) for my server. Without doing too much investigation I bought a unit from Belkin: FH6350efUNV.</p>
<p>I&#8217;m really surprised with the Quality-Price ratio offered by this product. For less than 60€ I have an unit that properly notifies events (on battery event, on line power event, on low battery event, etc), mails me when each of this events get fired and monitors UPS status in real time. And all of this compatible with my Gentoo Linux.</p>
<p>Programs for Linux that come with the product are binaries without source code. I found troubles with some of them (I was unable to send customized mails) so I started looking for a open source solution. And here I faced <a href="http://eu1.networkupstools.org/doc/">NUT</a>.</p>
<p>Network UPS Tools is a collection of programs for monitoring and administering UPS hardware under Linux using a client/server architecture. After hours investigating (Belkin FH6350efUNV unit is not officially supported by the last version 2.0.1) I discovered the driver that worked perfectly with my hardware: <strong>Powermust Driver</strong>. Powermust reports all the information (with the exception of the temperature variable) I had with the propietary software distributed by Belkin. All the notification system works perfectly with this driver.</p>
<p>So, if you are looking for a cheap and effective UPS unit for your linux, I really recommend buying one of the Belkin F6H series.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/UPSSensors.png"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
]]></content:encoded>
			<wfw:commentRss>http://entland.homelinux.com/blog/2006/09/05/ups-for-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 Security Guidelines to protect your server box in Internet</title>
		<link>http://entland.homelinux.com/blog/2006/06/09/10-security-guidelines-to-protect-your-server-box-in-internet/</link>
		<comments>http://entland.homelinux.com/blog/2006/06/09/10-security-guidelines-to-protect-your-server-box-in-internet/#comments</comments>
		<pubDate>Fri, 09 Jun 2006 00:47:06 +0000</pubDate>
		<dc:creator>ent</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://entland.homelinux.com/blog/2006/06/09/10-security-guidelines-to-protect-your-server-box-in-internet/</guid>
		<description><![CDATA[I&#8217;m not an expert system administrator, but it is one of my hobbies. I describe here a checklist of things I have learned playing with my linux box (the one I use for my blog) in the last years. Although the guidelines are generic to any Operating System the examples given are specific for Gentoo [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not an expert system administrator, but it is one of my hobbies. I describe here a checklist of things I have learned playing with my linux box (the one I <a href="http://entland.homelinux.com/blog/2006/05/15/running-your-own-server-home/">use</a> for my blog) in the last years. Although the guidelines are generic to any Operating System the examples given are specific for <a href="http://www.gentoo.org">Gentoo Linux</a>. I expect to help anyone configuring a secure server.</p>
<p><span id="more-83"></span></p>
<h4>1. Master the Operating System you use</h4>
<p>Stay away from the Windows vs Linux wars. Choose the OS you like and learn about it. Most of the security breaks are due to administration errors: not staying up to date, running services not needed, bad password policies&#8230;</p>
<p>Using Linux is itself <a href="http://www.theregister.co.uk/2005/02/16/linux_security/">no guarantee of security</a>. You have to manage it properly.</p>
<p>Personally I am in love with <a href="http://www.gentoo.org">Gentoo Linux</a>: a Linux distribution from programmers to programers.</p>
<h4>2. Have your system updated (automatically if possible)</h4>
<p>Security bugs are discovered every day (<a href="http://msgs.securepoint.com/bugtraq/">Bugtraq List</a>). So you should be updating your system everyday and doing it as automatically as possible. In Windows you have Windows Update for updating the operating system. Software not part of the operating system should be updated independently.</p>
<p>For Gentoo, you can have all your system updated easily:</p>
<div class="example">
<div class="code">
emerge &minus;&minus;sync<br />
emerge &minus;&minus;update &minus;&minus;newuse &minus;&minus;deep world &minus;&minus;pretend
</div>
</div>
<p>These two lines will only synchronize with the latest packages and show you the info. The integration process should be done manually to detect potential issues.</p>
<p>You can check for known security vulnerabilities in Gentoo Linux using the Gentoo Linux Security Announcements (<a href="http://www.gentoo.org/security/en/index.xml">GLSA</a>) (currently a service in beta)</p>
<div class="example">
<div class="code">
glsa-check -l
</div>
</div>
<p>At the moment glsa-check is an experimental tool.</p>
<h4>3. Run the minimum number of services</h4>
<p>Do not have services you do not need. Every installed service may be a new security hole on your computer. Some linux distributions come with a generic configuration with a lot of default services you won&#8217;t need. Disable all the services and start activating the ones you need. That is exactly what you get when you start installing Gentoo from scratch.</p>
<h4>4. Firewall your system</h4>
<p>Have a robust (highly configurable and with a decent support for logging and alerts) firewall installed on your server and configure it properly. </p>
<p>Linux firewalls are based on <a href="http://www.netfilter.org/">Iptables</a>. <a href="http://iptables-tutorial.frozentux.net/iptables-tutorial.html">This</a> is a great tutorial on Iptables. <a href="http://www.netfilter.org/projects/ulogd/index.html">Ulogd</a> is a daemon for iptables very useful to have an independent log file for your firewall.</p>
<h4>5. Use encryption when connecting with your server</h4>
<p>Do not use telnet, rlogin or ftp. Those protocols go across the Internet unencrypted. In Windows, if you use Terminal Services enable encryption. In linux, <a href="http://www.openssh.com/">OpenSSH</a> is the right tool.</p>
<p>OpenSSH allows you to encrypt all traffic and provides tunnelling for the rest of the ports. Use OpenSSH with the <a href="http://www.gentoo.org/doc/en/articles/openssh-key-management-p1.xml">RSA/DSA  authentication</a>. I always have with me the private key in my USB removable device. If you examine your logs you will see dozens of attempts per day trying to log into your machine. If you have your server connected 24h/day you should have this port well secured. Disable direct root login and try to use a high level port. OpenSSH offers you sftp, the encrypted version of ftp.</p>
<h4>6. Detect changes to important system files</h4>
<p>You want to know every change that is made to your system files, at least to the critical ones. <a href="http://www.cs.tut.fi/~rammer/aide.html">AIDE</a> is your friend here. It works by making cryptographic hashes for the files to be checked. Those hashes should be stored in a safe device: a read-only one, for example.</p>
<h4>7. Check against rootkits</h4>
<p>You don&#8217;t want <a href="http://en.wikipedia.org/wiki/Rootkit">rootkits</a> in your computer. So, you should be doing continuous checkings against this. I recommend to run both <a href="http://www.rootkit.nl/projects/rootkit_hunter.html">Rootkit Hunter</a> and <a href="http://www.chkrootkit.org/">chkrootkit</a> every day.</p>
<h4>8. Scan all your logs to detect suspicious activity</h4>
<p>You should watch all your logs everyday. Doing this automatically is prone to errors, so you should have a daemon doing this for your and emailing you when it finds something suspicious. <a href="http://www2.logwatch.org:8080/">Logwatch</a> is an useful tool for this. It will send you emails every day with automatically generated reports.</p>
<h4>9. Continuously monitor your system</h4>
<p>It is vitally important that you continuously monitor the health of your system to detect anomalies: cpu usage, network traffic, memory usage, system temperature, hdd status, etc. <a href="http://www.cacti.net/">Cacti</a> (a back-end for <a href="http://oss.oetiker.ch/rrdtool/">RRDtool</a>) is ideal for this. </p>
<table align="center">
<tr>
<td><a href="http://entland.homelinux.com/images/cacti.jpg">
<div class="img-shadow"><img src="http://entland.homelinux.com/images/cactiSM.jpg"/></div>
<p></a></td>
</tr>
<div class="clearer"></div>
</table>
<p>&nbsp;</p>
<h4>10. Automatize as much as possible</h4>
<p>Minimize the things you manually do. You have <strong>Task Scheduler</strong> in Windows and <strong>Cron Jobs</strong> in Linux. For example, these are the some tasks I have automatized in my server:</p>
<p>Synchronize to the latest stable packages.</p>
<div class="example">
<div class="code">
#!/bin/sh</p>
<p>emerge &minus;&minus;sync &#038;> /dev/null<br />
emerge &minus;&minus;update &minus;&minus;newuse &minus;&minus;deep &minus;&minus;nocolor world &minus;&minus;pretend</p>
</div>
</div>
<p>Check for known vulnerabilities in the system.</p>
<div class="example">
<div class="code">
#!/bin/sh</p>
<p>/usr/bin/glsa-check -l -n 2> /dev/null | grep &#8216;[[:digit:]]\{6\}.*\[N\]&#8216; </p>
</div>
</div>
<p>Run AIDE to detect changes in system files.</p>
<div class="example">
<div class="code">
#!/bin/sh</p>
<p>/usr/bin/aide -u -V1 > /root/safestatus/aide.last &#038;&#038; diff /root/safestatus/aide{,.last}
</p></div>
</div>
<p>Look for rootkits with chkrootkit.</p>
<div class="example">
<div class="code">
#!/bin/sh</p>
<p>/usr/sbin/chkrootkit -q > /root/safestatus/chkrootkit.last &#038;&#038; diff /root/safestatus/chkrootkit{,.last}
</p></div>
</div>
<p>Look for rootkits with rkhunter.</p>
<div class="example">
<div class="code">
#!/bin/sh</p>
<p>/usr/bin/rkhunter &minus;&minus;update &#038;> /dev/null &#038;&#038; /usr/bin/rkhunter -c &minus;&minus;cronjob &minus;&minus;skip-keypress &minus;&minus;report-mode | grep -v &#8220;Scanning took&#8221;  > /root/safestatus/rkhunter.last &#038;&#038; diff /root/safestatus/rkhunter{,.last}
</p></div>
</div>
<p>Generate reports from system logs.</p>
<div class="example">
<div class="code">
#!/bin/sh</p>
<p>if [ -x /usr/sbin/logwatch.pl ] ; then<br />
	exec /usr/sbin/logwatch.pl 2>&#038;1 > /dev/null<br />
fi
</p></div>
</div>
<p>Check for new network ports opened.</p>
<div class="example">
<div class="code">
#!/bin/sh</p>
<p>/bin/netstat -tlpn > /root/safestatus/netstat.last &#038;&#038; diff /root/safestatus/netstat{,.last}
</p></div>
</div>
<p>And that makes ten guidelines. I know I leave lot of topics (<a href="http://www.nessus.org/">nessus</a>, <a href="http://www.snort.org/">snort</a>, etc) but they will have to wait for other posts. I hope you have enjoyed this recommendations. Do not hesitate to give comments here.</p>
]]></content:encoded>
			<wfw:commentRss>http://entland.homelinux.com/blog/2006/06/09/10-security-guidelines-to-protect-your-server-box-in-internet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running your own server (@home)</title>
		<link>http://entland.homelinux.com/blog/2006/05/15/running-your-own-server-home/</link>
		<comments>http://entland.homelinux.com/blog/2006/05/15/running-your-own-server-home/#comments</comments>
		<pubDate>Mon, 15 May 2006 15:44:43 +0000</pubDate>
		<dc:creator>ent</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://entland.homelinux.com/blog/2006/05/15/running-your-own-server-home/</guid>
		<description><![CDATA[
I wanted to start a topic (the first on Linux, I promise more on this) about the hardware machine where this blog is hosted: a machine installed in one corner of my living room. I bought the box to be the server for all my machines at home (personal computer, media center, videogame consoles, ip [...]]]></description>
			<content:encoded><![CDATA[<div class="img-shadow"><img src="http://entland.homelinux.com/images/zen.jpg" alt="http://entland.homelinux.com/images/zen.jpg"/></div>
<p>I wanted to start a topic (the first on Linux, I promise more on this) about the hardware machine where this blog is hosted: a machine installed in one corner of my living room. I bought the box to be the server for all my machines at home (personal computer, media center, videogame consoles, ip camera, fileserver&#8230;). Being network security one of my hobbies I am always playing with security tools. That is one of the reasons why I decided to host this blog in my home server: to play with a new toy. <img src='http://entland.homelinux.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>In the past, whenever I installed a linux distribution (<a href="http://www.suse.com/">SUSE</a> most of the times) I always finished mutating it to my own distribution due to the fact that these clasic distributions evolve too slow. This was frustrating and time consuming for me because I had to mantain lot of packages and some big changes (gcc, glibc) could break the system. When I was starting to build my own personal distribution (based on <a href="http://www.linuxfromscratch.org/">Linux From Scratch</a>) I discovered <a href="http://www.gentoo.org/">Gentoo</a>. Gentoo Linux is the perfect distribution to me. It is based on source (every package you install must be compiled) and it is continuously evolving like an organic system.</p>
<p>This is the current hardware configuration for my Linux Box:</p>
<ul>
<li><a href="http://global.shuttle.com/Product/barebone/brb_OverView.asp?B_id=29">Shuttle Barebone ST62k</a></li>
<li>Pentum IV Celeron 2.4Ghz 1Gb Ram</li>
<li><a href="http://www.crystalfontz.com/products/631/index.html">Crystalfontz CFA-631 LCD Module</a> </li>
</ul>
<p>I have an internet connection with a dynamic IP. To be always accessible I&#8217;m using the services from <a href="http://www.dyndns.com/">DynDNS</a>.</p>
<p>And that is enough for today, my next article on this topic will be about <strong>tips &#038; tricks on security</strong> to avoid to be owned. <img src='http://entland.homelinux.com/blog/wp-includes/images/smilies/icon_surprised.gif' alt=':-o' class='wp-smiley' /> </p>
<div class="clearer"></div>
]]></content:encoded>
			<wfw:commentRss>http://entland.homelinux.com/blog/2006/05/15/running-your-own-server-home/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Linux in NintendoDS</title>
		<link>http://entland.homelinux.com/blog/2006/03/08/linux-in-nintendods/</link>
		<comments>http://entland.homelinux.com/blog/2006/03/08/linux-in-nintendods/#comments</comments>
		<pubDate>Tue, 07 Mar 2006 23:28:29 +0000</pubDate>
		<dc:creator>ent</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Videogames]]></category>

		<guid isPermaLink="false">http://entland.homelinux.com/blog/2006/03/08/linux-in-nintendods/</guid>
		<description><![CDATA[I bought a SuperCard for my NintendoDS. I will be playing with the free SDK for the next weeks. Investigating the DS Scene I discovered DSLinux: a linux distribution for Nintento DS. You can&#8217;t do great things at the moment (I have been unable to mount the SD card nor connect to my router using [...]]]></description>
			<content:encoded><![CDATA[<p>I bought a <a href="http://eng.supercard.cn/">SuperCard</a> for my NintendoDS. I will be playing with the <a href="http://www.devkitpro.org/">free SDK</a> for the next weeks. Investigating the DS Scene I discovered <a href="http://www.dslinux.org/">DSLinux</a>: a linux distribution for Nintento DS. You can&#8217;t do great things at the moment (I have been unable to mount the SD card nor connect to my router using then WiFi connection) but the project is friki enough to be commented. <img src='http://entland.homelinux.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/DSLinux.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
]]></content:encoded>
			<wfw:commentRss>http://entland.homelinux.com/blog/2006/03/08/linux-in-nintendods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
