<?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>homecomputerlab</title>
	<atom:link href="http://www.homecomputerlab.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.homecomputerlab.com</link>
	<description>If you aren&#039;t ahead you&#039;re falling behind</description>
	<lastBuildDate>Sat, 17 Mar 2012 01:09:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Cisco 2511-RJ remote access terminal server</title>
		<link>http://www.homecomputerlab.com/cisco-251rj-remote-access-terminal-server</link>
		<comments>http://www.homecomputerlab.com/cisco-251rj-remote-access-terminal-server#comments</comments>
		<pubDate>Sat, 17 Mar 2012 00:55:23 +0000</pubDate>
		<dc:creator>Tyrell Beveridge</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://www.homecomputerlab.com/?p=673</guid>
		<description><![CDATA[I recently purchased a new piece of kit for the homecomputerlab, specifically a Cisco 2511-RJ router. Although these routers are now discontinued, they do however still come up on ebay from time to time and are the perfect router to setup and configure as a remote access terminal server due to having 16 asynchronous serial ports [...]]]></description>
			<content:encoded><![CDATA[<p>I recently purchased a new piece of kit for the homecomputerlab, specifically a Cisco 2511-RJ router. Although these routers are now discontinued, they do however still come up on ebay from time to time and are the perfect router to setup and configure as a remote access terminal server due to having 16 asynchronous serial ports on board.</p>
<p><a href="http://www.homecomputerlab.com/wp-content/media/Cisco_2511-RJ_Terminal_Server/Cisco-2511-RJ.jpg"><img title="Cisco 2511RJ Access Server" src="http://www.homecomputerlab.com/wp-content/media/Cisco_2511-RJ_Terminal_Server/Cisco-2511-RJ-300x200.jpg" alt="" width="300" height="200" /></a><a href="http://www.homecomputerlab.com/wp-content/media/Cisco_2511-RJ_Terminal_Server/Cisco2511-RJ-no-lid.jpg"><img class="alignright" src="http://www.homecomputerlab.com/wp-content/media/Cisco_2511-RJ_Terminal_Server/Cisco2511-RJ-no-lid-300x200.jpg" alt="" width="300" height="200" /></a></p>
<p>What this essentially means is that you can manage up to 16 Cisco devices from a single access server. The only difference is that the &#8216;serial cable&#8217; in this case has ethernet RJ45 plugs at both ends and one end goes into the console port of the router/switch/firewall you&#8217;d like to manage as always, and the other end instead of terminating into a serial port on your pc, goes into an asynchronous port on the access server.</p>
<p>The &#8216;serial cables&#8217; that are used with Cisco access servers are called rollover cables and they are just standard ethernet cables but with a reversed pin out arrangement. I made my own from some standard Cisco console patch cables as I had plenty of these lying around with just a crimping tool and some RJ45 connectors as you can see in the picture below.</p>
<p><a href="http://www.homecomputerlab.com/wp-content/media/Cisco_2511-RJ_Terminal_Server//Rollover-Cable.jpg"><img class="alignnone" title="Rollover Cable" src="http://www.homecomputerlab.com/wp-content/media/Cisco_2511-RJ_Terminal_Server//Rollover-Cable-300x200.jpg" alt="" width="300" height="200" /></a></p>
<p>Once you have everything plugged in and connected, from here it is just a simple case of setting up the correct config using the reverse telnet principle.</p>
<p><code>Current configuration:<br />
!<br />
version 11.2<br />
no service password-encryption<br />
no service udp-small-servers<br />
no service tcp-small-servers<br />
!<br />
hostname Cisco2511-RJ<br />
!<br />
enable secret iddkd<br />
!<br />
username cisco privilege 0 password 0 cisco<br />
ip host Cisco2950T1 2001 10.10.10.10<br />
ip host Cisco2950T2 2002 10.10.10.10<br />
ip host Cisco1760 2003 10.10.10.10<br />
ip host Cisco2621 2004 10.10.10.10<br />
ip host Cisco3550 2005 10.10.10.10<br />
ip host CiscoPIX-515E 2006 10.10.10.10<br />
ip host Cisco877W 2007 10.10.10.10<br />
!<br />
interface Loopback0<br />
ip address 10.10.10.10 255.255.255.255<br />
!<br />
interface Ethernet0<br />
description *** LINK TO HOMECOMPUTERLAB SWITCH #2 - 3COM 2924 (PORT 24) ***<br />
ip address 192.168.1.200 255.255.255.0<br />
!<br />
interface Serial0<br />
no ip address<br />
shutdown<br />
!<br />
ip default-gateway 192.168.1.254<br />
no ip classless<br />
ip route 0.0.0.0 0.0.0.0 192.168.1.254<br />
!<br />
!<br />
line con 0<br />
line 1 16<br />
no exec<br />
transport input all<br />
line aux 0<br />
line vty 0 4<br />
logging synchronous<br />
login local<br />
transport input telnet<br />
line vty 5 15<br />
logging synchronous<br />
login local<br />
transport input telnet<br />
!<br />
end</code></p>
<p>Once that is done you can connect and manage your &#8216;remote&#8217; switches/routers/firewalls by using the following commands:</p>
<p><code>telnet 10.10.10.10 2001</code></p>
<p>Once connected to the device, you can switch between active sessions by using  the following command to bring you back to terminal server:</p>
<p><code>ctrl-shift-6-x</code></p>
<p>To manage active sessions you can use the following commands:</p>
<p><code>show line</code></p>
<p>If one of your lines is stuck in an Active state (*) or you want to log someone else off:</p>
<p><code>clear line [line_number]</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.homecomputerlab.com/cisco-251rj-remote-access-terminal-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minicom break command</title>
		<link>http://www.homecomputerlab.com/minicom-break-command</link>
		<comments>http://www.homecomputerlab.com/minicom-break-command#comments</comments>
		<pubDate>Fri, 16 Mar 2012 23:31:12 +0000</pubDate>
		<dc:creator>Tyrell Beveridge</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.homecomputerlab.com/?p=670</guid>
		<description><![CDATA[Ctrl+a f]]></description>
			<content:encoded><![CDATA[<p><code>Ctrl+a f</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.homecomputerlab.com/minicom-break-command/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Encoding videos into DIVX format</title>
		<link>http://www.homecomputerlab.com/encoding_videos_into_divx_format</link>
		<comments>http://www.homecomputerlab.com/encoding_videos_into_divx_format#comments</comments>
		<pubDate>Fri, 16 Mar 2012 23:26:10 +0000</pubDate>
		<dc:creator>Tyrell Beveridge</dc:creator>
				<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://www.homecomputerlab.com/?p=656</guid>
		<description><![CDATA[I recently shot some video with my new Panasonic HX-DC01 video camera which was a leaving gift from the last company I worked for after 6.5years of loyal service. I was really impressed by the quality of the video, and shot a 15min test clip in 1080p hi definition with all the settings turned up [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="Panasonic HX-DC01" src="http://www.homecomputerlab.com/wp-content/media/Panasonic_HX-DC01/PAN52302A-02-211x300.jpg" alt="" width="211" height="300" />I recently shot some video with my new Panasonic HX-DC01 video camera which was a leaving gift from the last company I worked for after 6.5years of loyal service. I was really impressed by the quality of the video, and shot a 15min test clip in 1080p hi definition with all the settings turned up to maximum. Unfortunately when it came time to playback the video on my ancient laptop, my machine was unable to do so smoothly without jumping and skipping in 2 second intervals, the video playback was more like a slide slow.</p>
<p>I decided to play around with some codecs to see if I could get the video to playback smoothly on my aging machine and by encoding the video into divx format. The result was that I was able to get my video to playback flawlessly whilst maintaining the 1080p hi definition and at the same time also reducing my filesize from 1.7GB for a 15min clip down to 432MB, a ~75% file size reduction!</p>
<p>Below is the command I used to do the encoding and also a for loop command in case you&#8217;d like to bulk encode an entire directory in one go.</p>
<p><code>ffmpeg -i /home/user/filename.MP4 -s hd1080 -b 4000k -ab 160k -vtag DIVX /home/user/output_in_divx_format.avi"</code></p>
<p><code>for i in *.MP4; do ffmpeg -i "$i" -s 640x360 -b 4000k -ab 160k -vtag DIVX "/home/user/Videos/${i%.MP4}.avi"; done</code></p>
<p><a title="PANASONIC HX-DC01 MANUAL" href="http://www.homecomputerlab.com/wp-content/media/Panasonic_HX-DC01/Panasonic-HX-DC01.pdf" target="_blank">PANASONIC HX-DC01 MANUAL</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.homecomputerlab.com/encoding_videos_into_divx_format/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ripping and mounting ISO&#8217;s in Linux</title>
		<link>http://www.homecomputerlab.com/ripping-and-mounting-isos-in-linux</link>
		<comments>http://www.homecomputerlab.com/ripping-and-mounting-isos-in-linux#comments</comments>
		<pubDate>Fri, 16 Mar 2012 22:14:23 +0000</pubDate>
		<dc:creator>Tyrell Beveridge</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.homecomputerlab.com/?p=646</guid>
		<description><![CDATA[RIPsudo dd if=/dev/cdrom of=/home/user/cd.iso MOUNTsudo mount -o loop /home/user/cd.iso /mnt/]]></description>
			<content:encoded><![CDATA[<p>RIP<code>sudo dd if=/dev/cdrom of=/home/user/cd.iso</code><br />
MOUNT<code>sudo mount -o loop /home/user/cd.iso /mnt/</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.homecomputerlab.com/ripping-and-mounting-isos-in-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Watch for file changes in realtime</title>
		<link>http://www.homecomputerlab.com/watch-for-file-changes-in-realtime</link>
		<comments>http://www.homecomputerlab.com/watch-for-file-changes-in-realtime#comments</comments>
		<pubDate>Fri, 30 Dec 2011 23:40:08 +0000</pubDate>
		<dc:creator>Tyrell Beveridge</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.homecomputerlab.com/?p=635</guid>
		<description><![CDATA[watch --differences --interval 3 'df; ls -FlAt;']]></description>
			<content:encoded><![CDATA[<p><code>watch --differences --interval 3 'df; ls -FlAt;'</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.homecomputerlab.com/watch-for-file-changes-in-realtime/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a Bootable Windows 2008 USB Install Disk</title>
		<link>http://www.homecomputerlab.com/create-a-bootable-windows-2008-usb-install-disk</link>
		<comments>http://www.homecomputerlab.com/create-a-bootable-windows-2008-usb-install-disk#comments</comments>
		<pubDate>Sun, 18 Dec 2011 16:16:37 +0000</pubDate>
		<dc:creator>Tyrell Beveridge</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.homecomputerlab.com/?p=607</guid>
		<description><![CDATA[LINUX Create a new NTFS (type 7 in linux) partition and set it as bootable. Then simply copy the contents of your Windows 2008 iso to the drive and create a Windows compatible MBR on the USB boot drive. # cfdisk /dev/sdx # mkfs.ntfs -f /dev/sdx1 # mount -o loop win2008.iso /mnt/iso # mount /dev/sdx1 [...]]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;"><strong>LINUX</strong></span><br />
Create a new NTFS (type 7 in linux) partition and set it as bootable. Then simply copy the contents of your Windows 2008 iso to the drive and create a Windows compatible MBR on the USB boot drive.</p>
<p><code># cfdisk /dev/sdx<br />
# mkfs.ntfs -f /dev/sdx1<br />
# mount -o loop win2008.iso /mnt/iso<br />
# mount /dev/sdx1 /mnt/usb<br />
# cp -r /mnt/iso/* /mnt/usb/<br />
# lilo -M  /dev/sdx mbr</code></p>
<p><span style="text-decoration: underline;"><strong>WINDOWS</strong></span><br />
The windows instructions I copied from the following website <a title="http://bramp.net/blog/create-bootable-windows-server-2008-usb-stick" href="http://bramp.net/blog/create-bootable-windows-server-2008-usb-stick">http://bramp.net/blog/create-bootable-windows-server-2008-usb-stick</a> I had a look at these instructions first before I was able to replicate the process under linux and produce the instructions above. I have included the windows instructions here for completeness.</p>
<p>Select the USB device from the list and substitute the disk number below when necessary. In this example Y:\ is my mounted image or physical DVD and X:\ is my USB device</p>
<p><code>C:\&gt; diskpart<br />
DISKPART&gt; list disk<br />
DISKPART&gt; select disk x<br />
DISKPART&gt; clean<br />
DISKPART&gt; create partition primary<br />
DISKPART&gt; select partition x<br />
DISKPART&gt; active<br />
DISKPART&gt; format fs=fat32<br />
DISKPART&gt; assign<br />
DISKPART&gt; exit<br />
C:\&gt; xcopy Y:\*.* /s/e/f X:\</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.homecomputerlab.com/create-a-bootable-windows-2008-usb-install-disk/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco &#8211; Forwarding Broadcast packets</title>
		<link>http://www.homecomputerlab.com/cisco-forwarding-broadcast-packets</link>
		<comments>http://www.homecomputerlab.com/cisco-forwarding-broadcast-packets#comments</comments>
		<pubDate>Sat, 17 Dec 2011 16:43:56 +0000</pubDate>
		<dc:creator>Tyrell Beveridge</dc:creator>
				<category><![CDATA[Cisco]]></category>

		<guid isPermaLink="false">http://www.homecomputerlab.com/?p=596</guid>
		<description><![CDATA[By design routers do not forward broadcast packets for a number of reasons but instead create seperate broadcast domains, but what if you do want to forward certain broadcast packets between different vlans or physical networks? I rely on a lot of different remote management tools to administer the servers in my loft remotely. One [...]]]></description>
			<content:encoded><![CDATA[<p>By design routers do not forward broadcast packets for a number of reasons but instead create seperate broadcast domains, but what if you do want to forward certain broadcast packets between different vlans or physical networks?</p>
<p>I rely on a lot of different remote management tools to administer the servers in my loft remotely. One of these tools is remote Wake-on-LAN. In order to forward WoL packets between networks you can use the <em>ip-helper address</em> command on Cisco routers.</p>
<p>On the Router where the Wol packets will originate from, we tell the router to allow forwarding of udp packets on port 9. (This is the discard port that WoL packets use.) Then under the interface where the WoL packets will originate from, we tell the router where to forward the packets to.</p>
<p><code>R1(config)# ip forward-protocol udp 9<br />
R1(config-if)# ip helper-address 192.168.1.255</code></p>
<p>Now all we need to do is create an access list on the other router to allow the forwarded broadcast messages, otherwise you could open yourself up to a possible <a title="Smurf DOS Attack" href="http://en.wikipedia.org/wiki/Smurf_attack">Smurf DOS attack.</a> Then we tell the router on which interfaces we will allow the forwaded broadcast messages to be received on.</p>
<p><code>R2(config)# access-list 101 permit udp 192.168.0.0 0.0.0.255 192.168.1.0 0.0.0.255 eq 9<br />
R2(config-if)# ip directed-broadcast 101</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.homecomputerlab.com/cisco-forwarding-broadcast-packets/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opensource Firewall, Proxy, Content Filter &amp; Console Server</title>
		<link>http://www.homecomputerlab.com/opensource-firewall-proxy-content-filter-console-server</link>
		<comments>http://www.homecomputerlab.com/opensource-firewall-proxy-content-filter-console-server#comments</comments>
		<pubDate>Sat, 17 Dec 2011 13:00:39 +0000</pubDate>
		<dc:creator>Tyrell Beveridge</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.homecomputerlab.com/?p=584</guid>
		<description><![CDATA[Well, this year Christmas has come early for me, I recently bought a new server from ebay which I have just gotten around to racking up in the homecomputerlab today. It&#8217;s another ITX form factor server based on the VIA-EPIA chipset which I am now well familiar with. This particular model however, is the VIA-EPIA [...]]]></description>
			<content:encoded><![CDATA[<p>Well, this year Christmas has come early for me, I recently bought a new server from ebay which I have just gotten around to racking up in the homecomputerlab today.</p>
<p>It&#8217;s another ITX form factor server based on the VIA-EPIA chipset which I am now well familiar with. This particular model however, is the <a title="VIA-EPIA PD Series" href="http://www.via.com.tw/en/products/embedded/ProductDetail.jsp?id=241">VIA-EPIA PD Series</a> which comes with 2x FastEthernet NIC&#8217;s and 4x Serial COM ports which when combined with its low noise and low power consumtion, makes it the perfect platform to deploy as an opensource firewall/proxy/content filter server as well as a console server for my Cisco Lab.</p>
<p>I have played with both <a title="pfSense" href="http://www.pfsense.org/">pfSense</a> and <a title="Untangle" href="http://www.untangle.com/">Untangle</a> as virtual machines in a sandbox environment in the past, but I am looking forward to seeing how they perform on the VIA-EPIA baremetal hardware and also in a real world environment. Something else that I&#8217;ve had a look into and would be interested in playing with is a Dual Firewall DMZ, but that will have to come later, much later, baby steps first :)</p>
<p><a href="http://www.homecomputerlab.com/wp-content/media/Opensource_Firewall/VIA-EPIA-PD_Top.jpg"><img class="alignnone" title="VIA EPIA PD" src="http://www.homecomputerlab.com/wp-content/media/Opensource_Firewall/VIA-EPIA-PD_Top-300x200.jpg" alt="" width="300" height="200" /></a> <a href="http://www.homecomputerlab.com/wp-content/media/Opensource_Firewall/VIA-EPIA-PD_Profile.jpg"><img class="alignnone" title="VIA EPIA PD" src="http://www.homecomputerlab.com/wp-content/media/Opensource_Firewall/VIA-EPIA-PD_Profile-300x200.jpg" alt="" width="300" height="200" /></a></p>
<p><a title="VIA-EPIA PD Series Manual" href="http://www.homecomputerlab.com/wp-content/media/Opensource_Firewall/VIA_EPIA-PD.pdf">VIA EPIA PD Manual</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.homecomputerlab.com/opensource-firewall-proxy-content-filter-console-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Schedule Server Reboot</title>
		<link>http://www.homecomputerlab.com/schedule-server-reboot</link>
		<comments>http://www.homecomputerlab.com/schedule-server-reboot#comments</comments>
		<pubDate>Thu, 08 Dec 2011 01:14:23 +0000</pubDate>
		<dc:creator>Tyrell Beveridge</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.homecomputerlab.com/?p=576</guid>
		<description><![CDATA[Windows: schtasks /create /tn "Reboot" /tr "shutdown /r /t 1" /sc once /st HH:MM:ss /sd dd/mm/yyyy /ru "System" Linux: sudo shutdown -r HH:MM]]></description>
			<content:encoded><![CDATA[<p>Windows:<br />
<code>schtasks /create /tn "Reboot" /tr "shutdown /r /t 1" /sc once /st HH:MM:ss /sd dd/mm/yyyy /ru "System"</code></p>
<p>Linux:<br />
<code>sudo shutdown -r HH:MM</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.homecomputerlab.com/schedule-server-reboot/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replace a text string in multiple documents</title>
		<link>http://www.homecomputerlab.com/replace-a-text-string-in-multiple-documents</link>
		<comments>http://www.homecomputerlab.com/replace-a-text-string-in-multiple-documents#comments</comments>
		<pubDate>Thu, 08 Dec 2011 01:08:59 +0000</pubDate>
		<dc:creator>Tyrell Beveridge</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.homecomputerlab.com/?p=562</guid>
		<description><![CDATA[sed -i 's/old-word/new-word/g' /home/user/docs/*]]></description>
			<content:encoded><![CDATA[<p><code>sed -i 's/old-word/new-word/g' /home/user/docs/*</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.homecomputerlab.com/replace-a-text-string-in-multiple-documents/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

