<?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>Kyle BrandtTag: Ubuntu | Kyle Brandt</title>
	<atom:link href="http://www.kbrandt.com/tag/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kbrandt.com</link>
	<description>Original computing articles by a systems administrator</description>
	<lastBuildDate>Mon, 19 Dec 2011 21:41:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How-to: Setup up an Emulated Cisco Lab Using GNS3 in Ubuntu, Part1</title>
		<link>http://www.kbrandt.com/2009/01/how-to-setup-up-an-emulated-cisco-lab-using-gns3-in-ubuntu-part1.html</link>
		<comments>http://www.kbrandt.com/2009/01/how-to-setup-up-an-emulated-cisco-lab-using-gns3-in-ubuntu-part1.html#comments</comments>
		<pubDate>Wed, 14 Jan 2009 16:58:30 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Dynamips]]></category>
		<category><![CDATA[GNS3]]></category>
		<category><![CDATA[Intrepid Ibex]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.kbrandt.com/?p=62</guid>
		<description><![CDATA[Introduction: GNS3 is a graphical network simulator that is integrated with the Cisco router emulator Dynamips.  In this tutorial I will explain how to connect your Linux host to an emulated 7200 series router, then that router to another 7200 router, and finally that second router will be connected to a Linux VM running in [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction:</strong><br />
<a href="http://www.gns3.net/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.gns3.net/');">GNS3</a> is a graphical network simulator that is integrated with the Cisco router emulator <a href="http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator');">Dynamips</a>.  In this tutorial I will explain how to connect your Linux host to an emulated 7200 series router, then that router to another 7200 router, and finally that second router will be connected to a Linux VM running in <a href="http://www.vmware.com/products/server/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.vmware.com/products/server/');">VMware Server</a>.  In this lab environment we will also configure access control lists ( ACLs ), Network Address Translation ( NAT ), and a site-to-site Internet Security Protocol Virtual Private Network ( IPsec VPN ) tunnel between the two routers in Part 2.</p>
<p><strong>Pre-Requists:</strong><br />
• VMware Server<br />
• A Cisco 7200 router firmware image ( You will have to get this on your own, I don&#8217;t want to step on Cisco&#8217;s copyright )<br />
• This tutorial assumes the Linux host and the virtual machine are running Ubuntu 8.10</p>
<p><strong>Getting Started:</strong><br />
1. Install GNS3: <code>sudo apt-get install gns3 dynamips</code><br />
2. Start GNS3 and follow the setup wizard, you will want to load the 7200 .bin files<br />
3. Install VMware server: You will need to patch it see here ( http://ubuntu-tutorials.com/2008/11/01/vmware-server-107-on-ubuntu-810-intrepid-2627-7-generic/ ) before installing.  Make sure to allow host-only networking ( You can chose to install all the different networking options ).<br />
4. Create a Ubuntu 8.10 VM with host only networking in VMware server.</p>
<p><strong>Setting up our layout in GNS3:</strong><br />
1. Start gns3 as root: <code>gksudo gns3</code><br />
2. Create two Cisco 7200 by dragging the icon over from the left.<br />
3. Right click each router, click on the slots tab, and change slot0 to C7200-IO-2FE and slot1 to PA-2FETX ( this will give each router 4 Fast Ethernet interfaces ).<br />
4. Right click each router and change the host names to lab1 and lab2.</p>
<div id="attachment_71" class="wp-caption alignnone" style="width: 555px"><img class="size-full wp-image-71" title="GNS3 Network Diagram" src="http://www.kbrandt.com/wp-content/uploads/2009/01/tunnel.jpg" alt="GNS3 Network Diagram" width="545" height="333" /><p class="wp-caption-text">GNS3 Network Diagram</p></div>
<p><strong>Basic configuration for each router:</strong><br />
1. Right click lab1 and chose start.<br />
2. Right click lab1 and chose console.<br />
3. You should see &#8216;Self Decompressing the Image&#8217;, we are now in the emulated IOS terminal connection.</p>
<p style="padding-left: 30px;">a. Chose yes for &#8216;initial configuration dialog&#8217;.<br />
b. Chose yes for &#8216;basic management setup&#8217;.<br />
c. Call the router lab1.<br />
d. Enter passwords when asked.<br />
e. chose no to SNMP management.<br />
f. Chose FastEthernet0/0 for &#8216;management network from the above interface summary&#8217;.<br />
g. Chose Use the 100 Base-TX (RJ-45) connection.<br />
h. Select no for full duplex.<br />
i. Chose yes to Configure IP on that interface.<br />
j. For the interface IP, chose a s /24 subnet that is <span style="text-decoration: underline;">not</span> being used in your network or by VMWare ( run ifconfig on your host machine and look at what the vmnet interfaces are to see what VMWare is using ). For my example it is going to be 192.168.1.1<br />
k. Accept the 255.255.255.0 subnet mask.<br />
l.  Press 2 to save.<br />
m. Then go into enable mode by typing &#8216;<code>enable</code>&#8216; and then type &#8216;<code>copy run start</code>&#8216;.<br />
n. Save your work so far in GNS3 by choosing &#8216;Save as&#8217; and also extract all your configurations by pressing the yellow arrow.</p>
<p>4. Repeat steps 1-3 above for the lab2 router but for step j:</p>
<p style="padding-left: 30px;">i. Start your VMware Linux VM that was set up with host only networking.<br />
ii. Look at what IP you have  been given, for my example it is was 192.168.21.128<br />
iii. Configure the F0/0 on this router to match that network, in my case it would be 192.168.21.1 with a subnet mask of 255.255.255.0</p>
<p><strong>Getting the Routers to talk to each Other:</strong><br />
1. On lab1:</p>
<p style="padding-left: 30px;">a. Open up the console for lab1.<br />
b. Run the following commands in the lab1 console:<br />
<code>enable<br />
conf t<br />
int F1/0<br />
ip address 12.12.12.1 255.255.255.252<br />
&lt; ctrl-z &gt;<br />
copy run start</code></p>
<p>2. On Lab2:</p>
<p style="padding-left: 30px;">a. Do the same as above but with: <code>ip address 12.12.12.2 255.255.255.252</code></p>
<p>3. In GNS3 click the icon that looks like an Ethernet cable, chose fast ethernet and connect f1/0 of lab1 to f1/0 of lab2 by clicking on a router and then clicking the other router. Expand the &#8216;Topology Summary&#8217; for each router so you can verify that the correct interfaces are connected to each other. Do verify that you got the interfaces specified, I found this to be a bit buggy to get the interfaces I wanted.<br />
4. Log into the console of each router and ping the other to make sure the connection is working.</p>
<p><strong>Connect your Host Machine to the Virtual Network:</strong><br />
1. In GNS3 Create a cloud by dragging it from the left.<br />
2. Right click the cloud and chose configure.<br />
3. Click on the NIO TAP tab, type in &#8216;tap0&#8242; to the field and click &#8216;Add&#8217; and then &#8216;Apply&#8217;.<br />
4. From your Linux host open up a terminal:</p>
<p style="padding-left: 30px;">a. Install the utilities that let you create tap interfaces: <code>sudo apt-get install uml-utilities</code><br />
b. Become Root: <code>sudo su -</code><br />
c. Load the tun module: <code>modprobe tun</code><br />
d. Create the tunnel interface: <code>tunctl</code><br />
c. Give the tap interface an IP that matches your network for lab1&#8242;s f0/0, i.e. : <code>ifconfig tap0 192.168.1.100 netmask 255.255.255.0 up</code><br />
d. If using iptables you may need to add some rules like: <code>iptables -I INPUT 1 -i tap0 -j ACCEPT</code></p>
<p>5. In GNS3 click the Ethernet icon and select fast ethernet.  Then click Lab1 first and the cloud and select the tap0 interface.<br />
6. Verify you can reach the IP of Lab1&#8242;s FastEthernet 0/0 ip by pinging it from you Linux Host.</p>
<p><strong>Connect your Virtual Machine to the Virtual Network:</strong><br />
1. In GNS3 create a cloud by dragging it from the left.<br />
2. Right click the cloud and chose configure.<br />
3. Click on the NIO ETHERNET tab and then &#8216;Linux Ethernet NIO&#8217;, select the vmnet interface that corresponds to the host only networking and click &#8216;Add&#8217; and then &#8216;Apply&#8217;.  In my example it is vmnet1.<br />
4. In a terminal on your Linux host note the IP of the vmnet interface of the previous step and then remove the ip by  entering: <code> sudo ifconfig vmnet1 0.0.0.0</code> #if vmnet1 was the interface from step 3.  The IP is removed because that is the IP we gave the FastEthernet interface on Lab2.<br />
5. In GNS3 connect the cloud to the cloud by clicking the Ethernet icon, selecting fast ethernet, clicking lab2, and then selecting the nio_linux_eth:vmnet1 interface of the cloud.<br />
6. Verify that you can reach the IP of Lab2&#8242;s FastEthernet 0/0 by pinging it from the Linux VM.<br />
7. To be able to reach the VM from the Linux host throught the virtual network add the following route to the Linux host: <code> sudo route add -net 192.168.21.0 netmask 255.255.255.0 gw 192.168.1.1</code></p>
<p><strong>Conclusion:</strong><br />
You should now have a basic network with two routers that you can practice with.  In the second article we will configure NAT, IPsec, and ACLs on the routers.  Please do comment on any confusing steps in this tutorial, I wrote it after doing this myself and not as I did it, so something might be missing.</p>
<p><strong>Reference:</strong><br />
<a href="http://www.blindhog.net/tutorials/linux-loopback-tap0.htm" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.blindhog.net/tutorials/linux-loopback-tap0.htm');">http://www.blindhog.net/tutorials/linux-loopback-tap0.htm</a><br />
<a href="http://www.kbrandt.com/lab1-router-configuration" >Lab1 Router Configuration</a><br />
<a href="http://www.kbrandt.com/lab2-router-configuration" >Lab2 Router Configuration</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kbrandt.com/2009/01/how-to-setup-up-an-emulated-cisco-lab-using-gns3-in-ubuntu-part1.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>1080p HDTV H.264 Playback in Linux</title>
		<link>http://www.kbrandt.com/2008/12/1080p-hdtv-h264-playback-in-linux.html</link>
		<comments>http://www.kbrandt.com/2008/12/1080p-hdtv-h264-playback-in-linux.html#comments</comments>
		<pubDate>Fri, 05 Dec 2008 15:35:00 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Multimedia]]></category>
		<category><![CDATA[1080p]]></category>
		<category><![CDATA[CoreAVC]]></category>
		<category><![CDATA[h.264]]></category>
		<category><![CDATA[HDTV]]></category>
		<category><![CDATA[Intrepid Ibex]]></category>
		<category><![CDATA[mkv]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[x264]]></category>

		<guid isPermaLink="false">http://www.kbrandt.com/?p=36</guid>
		<description><![CDATA[I recently picked up a 40 inch 1080p TV on Black Friday for my media computer (standard Ubuntu Intrepid Ibex install). Since this machine is a $450 dollar Dell Vostro (Intel Core 2 Duo E4500 CPU) it isn&#8217;t the fastest machine out there, but I have still been able to get generally smooth playback of [...]]]></description>
			<content:encoded><![CDATA[<p>I recently picked up a 40 inch 1080p TV on Black Friday for my media computer (standard Ubuntu Intrepid Ibex install).  Since this machine is a $450 dollar Dell Vostro (Intel Core 2 Duo E4500 CPU) it isn&#8217;t the fastest machine out there, but I have still been able to get generally smooth playback of H.264 1080p video.</p>
<p><span style="font-weight: bold;">Vocabulary</span><br />
My understanding of the relevant codec vocabulary is as follows (Please comment on any inaccuracies).  You get can get a lot of detail from <a href="http://forum.doom9.org/showthread.php?t=96059" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://forum.doom9.org/showthread.php?t=96059');">this</a> thread.</p>
<ul>
<li>H.264 is the format of the encoded video.</li>
<li>x264 is a common <span style="font-style: italic;">en</span>coder for creating H.264 video.</li>
<li>ffmpeg <span style="font-style: italic;">an </span>open source <span style="font-style: italic;">de</span>coder of H.264 video. It is the packaged standard in Linux for vlc and MPlayer.</li>
<li><a href="http://www.coreavc.com/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.coreavc.com/');">CoreAVC</a> is a commercial <span style="font-style: italic;">de</span>coder that is built for windows, but can be used in Linux.</li>
<li><a href="http://en.wikipedia.org/wiki/Matroska" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://en.wikipedia.org/wiki/Matroska');">mkv</a> (Mastroka) is a container that packages the video, audio, subtitles, etc. into one file.  There is often H.264 in these files, but .mkv does <span style="font-style: italic;">not</span> always mean H.264 or even HD.</li>
</ul>
<p><span style="font-weight: bold;">Abstract</span><br />
To successfully get good playback of 1080p H.264 video I had to purchase the CoreAVC codec, use the <a href="http://code.google.com/p/coreavc-for-linux/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://code.google.com/p/coreavc-for-linux/');">coreavc-for-linux</a> project and wine to enable CoreAVC in Linux, and then recompile <a href="http://www.mplayerhq.hu/design7/news.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.mplayerhq.hu/design7/news.html');">MPlayer</a> with support for CoreAVC.</p>
<p><span style="font-weight: bold;">CoreAVC</span><br />
The reason <a href="http://www.coreavc.com/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.coreavc.com/');">CoreAVC</a> performs so much better than ffmpeg on my system is because CoreAVC is <span style="font-style: italic;">multi-threaded</span>.  This means that on a dual core system both CPU cores will be used to decode the video, instead of just one.  If you run top and press &#8217;1&#8242; you can see the utilization of each core, you will probably just see 1 core being utilized when you play video.  The other core will probably show some usage, but it will be another process using it.</p>
<p>Since decoding H.264 is very resource intensive, multi-threading really helps. Currently there is no GPU (video card based) decoding for Linux except for a very beta NVidia driver.</p>
<p>CoreAVC costs a very reasonable 15 dollars, so it is definitely worth supporting the development of it.</p>
<p><span style="font-weight: bold;">CoreAVC For Linux</span><br />
<a href="http://code.google.com/p/coreavc-for-linux/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://code.google.com/p/coreavc-for-linux/');">CoreAVC for Linux</a> allows you to use the windows CoreAVC codec with Linux.   The wiki on the project page will guide you through the installation.  You must first run the CoreAVC install using wine (&#8216;<span style="font-family:courier new;">apt-get install wine</span>&#8216; if you don&#8217;t have it already).  Then follow the steps in registering the codec.  Lastly, you will need to apply a patch to MPlayer and then compile it from source. Alternativly, you can get pre-built binaries (.deb ) from <a href="http://www.google.com/url?sa=t&amp;source=web&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fblog.mymediasystem.net%2F%3Fp%3D727&amp;ei=o1w5SdO8HIeKeZm3gd4G&amp;usg=AFQjCNECt_MH9fP-DStPu_uuBOBTLjJVdw&amp;sig2=smAnc5Y_cwIWCwCukjdqfQ" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.google.com/url?sa=t&amp;source=web&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fblog.mymediasystem.net%2F%3Fp%3D727&amp;ei=o1w5SdO8HIeKeZm3gd4G&amp;usg=AFQjCNECt_MH9fP-DStPu_uuBOBTLjJVdw&amp;sig2=smAnc5Y_cwIWCwCukjdqfQ');">here</a> of MPlayer and coreavc-for linux, but you will still need to install and register CoreAVC.</p>
<p><span style="font-weight: bold;">Mplayer</span></p>
<p style="text-align: left;">Mplayer is a very flexible player with a great depth of configuration.  After applying the patch as instructed to in the CoreAVC wiki I configured it to install into /opt/mplayer before compiling (with &#8216;<span style="font-family:courier new;">./configure PREFIX=/opt/mplayer</span>&#8216;) so I would have both the Ubuntu packed MPlayer and my own compiled version. I then run my version by typing the absolute path to it ( /opt/mplayer/bin/mplayer ).</p>
<p style="text-align: left;">I also had to update my x264 libraries for the latest subversion snapshot of MPlayer to compile successfully in Ubuntu Inrepid Ibex:<br />
<code><br />
sudo apt-get install git-core<br />
git clone git://git.videolan.org/x264.git<br />
cd x264<br />
make<br />
sudo make install<br />
</code></p>
<p>The one problem I am still trying to resolve with MPlayer is to stop screen tearing.  Screen tearing is when part of the image is no longer vertically aligned with the rest of the image for a brief moment.  It is most noticeable in shots when the camera is panning.  It is caused by the refresh rate of the monitor not being synced with the refresh rate of the video. There is only one way to fix this that I have found in Linux and that is to enable VSync to Blank and use the OpenGL output buffer. (sync to vblank can be enabled with the driconf package).  Unfortunetly, for me when I select OpenGL with MPlayer the screen flickers.  To try OpenGL pass &#8216;-vo gl&#8217; to MPlayer.</p>
<p>The MPlayer options I use are: &#8216;-vc coreserve -cache 20000 -fs&#8217;.  &#8216;-vc coresevre&#8217; selects CoreAVC,the cache switch creates a cache of 20MB that will help if other applications are accessing the disk, and finally &#8216;-fs&#8217; makes the playback fullscreen.  I also increase the disk io and the cpu priority of MPlayer and dshowserver to max with the following commands:<br />
<code><br />
ps aux | grep mplayer #Note the PID of the process (second column)<br />
ps aux | grep dshow #Again, note the PID<br />
#The following for both PIDs:<br />
renice -1 -p$PID<br />
ionice -c 1 -p$PID<br />
</code><br />
<span style="font-weight: bold;">Conclusion</span><br />
With this setup I get much better 1080p HD playback than I did with the default Ubuntu Intrepid Ibex setup. I only occasionally get a hickup in playback but only in the most demanding scenes (lots of water) from something like BBC&#8217;s Planet Earth.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kbrandt.com/2008/12/1080p-hdtv-h264-playback-in-linux.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Upgrade Ubuntu Remotely</title>
		<link>http://www.kbrandt.com/2008/11/upgrade-ubuntu-remotely.html</link>
		<comments>http://www.kbrandt.com/2008/11/upgrade-ubuntu-remotely.html#comments</comments>
		<pubDate>Fri, 07 Nov 2008 19:11:00 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Intrepid Ibex]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.kbrandt.com/?p=33</guid>
		<description><![CDATA[Update: I do not recommend the following the method. It left me with a partial install (which fortunately I have seem to recovered from). Also when trying to install a restricted driver, I had to delete the cdrom source from apt. This was because the restricted drivers GUI would hang when trying to mount the [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-style: italic; font-weight: bold;">Update</span><span style="font-weight: bold;">:</span> I do<span style="font-style: italic;"> not</span> recommend the following the method.  It left me with a partial install (which fortunately I have seem to recovered from).  Also when trying to install a restricted driver, I had to delete the cdrom source from apt. This was because the restricted drivers GUI would hang when trying to mount the cdrom.</p>
<p>Since I have several computers with Ubuntu that I wanted to upgrade the most efficient way for me to do this was to upgrade using the cdrom.  In order to do this you must use the <a href="http://www.ubuntu.com/getubuntu/downloadmirrors#alternate" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.ubuntu.com/getubuntu/downloadmirrors#alternate');"><span style="font-style: italic;">alternate </span>install cd</a>. If you scroll to the bottom of the previous link you can grab the alternate cd from one of the mirrors.</p>
<p>When I did the following upgrade process it was from Hardy Heron to Intrepid Ibex.  The following instructions are <span style="font-style: italic;">at your own risk</span>, upgrades can often lead to bad situations.</p>
<ol>
<li>Get the alternate install cd (see above).</li>
<li>Mount the .iso image or burn it and put it in the cdrom drive: To mount the iso image, first create the /mnt/iso directory with <span style="font-family:courier new;">mkdir /mnt/iso</span> and then:  <span style="font-family:courier new;">sudo mount ubuntu-8.10-alternate-i386.iso /mnt/iso/ -t iso9660 -o ro,loop=/dev/loop0</span></li>
<li>ssh into your remote machine you wish to upgrade: <span style="font-family:courier new;">ssh remote-machine</span></li>
<li>(Optional, but highly recommended): Start a screen session so if you get disconnected it won&#8217;t interrupt the upgrade (read how to use screen <a href="http://jmcpherson.org/screen.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://jmcpherson.org/screen.html');">here</a>): <span style="font-family:courier new;">screen</span></li>
<li>Within the screen session, start a <span style="font-style: italic;">text-based</span> cdrom upgrade with the following command: <span style="font-family:courier new;">sudo /mnt/iso/cdromupgrade &#8211;frontend=DistUpgradeViewText</span></li>
<li>The upgrade will periodically ask you yes/no questions throughout the upgrade, so it is not unattended.  If you really wanted it to you could try using the yes command and a pipe to force yes to all, but I wouldn&#8217;t recommend it and am not sure if it would work:-) One odd thing is if you type &#8216;d&#8217; for details it opens the information in the program &#8216;less&#8217;, so if you chose this just press &#8216;q&#8217; to quit after you are done reading the information.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.kbrandt.com/2008/11/upgrade-ubuntu-remotely.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-To: Connecting to a CISCO Router Console Port with USB and Linux</title>
		<link>http://www.kbrandt.com/2008/08/how-to-connecting-to-cisco-router.html</link>
		<comments>http://www.kbrandt.com/2008/08/how-to-connecting-to-cisco-router.html#comments</comments>
		<pubDate>Mon, 11 Aug 2008 23:29:00 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.kbrandt.com/?p=31</guid>
		<description><![CDATA[I was lucky enough to be loaned a couple of CISCO 1720 routers by my office today. Connecting to them was pretty straight forward. What you will need: 1. A roll-over cable (aka Cisco Console Cable). These are usually RJ-45 on the router side and serial on the PC side. 2. If your computer doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I was lucky enough to be loaned a couple of CISCO 1720 routers by my office today.  Connecting to them was pretty straight forward.</p>
<p>What you will need:<a href="http://3.bp.blogspot.com/_7RzhMDDw5iY/SKDNkI3gTcI/AAAAAAAAADs/PgRLXsCYgWQ/s1600-h/rollover_cable.gif" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://3.bp.blogspot.com/_7RzhMDDw5iY/SKDNkI3gTcI/AAAAAAAAADs/PgRLXsCYgWQ/s1600-h/rollover_cable.gif');" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5233408787743788482" style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 177px; height: 147px;" src="http://3.bp.blogspot.com/_7RzhMDDw5iY/SKDNkI3gTcI/AAAAAAAAADs/PgRLXsCYgWQ/s400/rollover_cable.gif" border="0" alt="" /></a></p>
<p>1. A roll-over cable (aka Cisco Console Cable).  These are usually RJ-45 on the router side and serial on the PC side.</p>
<p>2. If your computer doesn&#8217;t have a serial port (like mine) you can get a 9-pin D-sub serial to USB cable.  I got the Gigaware cable from RadioShack for thirty dollars.</p>
<p><a href="http://2.bp.blogspot.com/_7RzhMDDw5iY/SKDOZQ9iVhI/AAAAAAAAAD0/KrMoblc6z1c/s1600-h/pRS1C-4793194w345.jpg" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://2.bp.blogspot.com/_7RzhMDDw5iY/SKDOZQ9iVhI/AAAAAAAAAD0/KrMoblc6z1c/s1600-h/pRS1C-4793194w345.jpg');" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5233409700449637906" style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 252px; height: 171px;" src="http://2.bp.blogspot.com/_7RzhMDDw5iY/SKDOZQ9iVhI/AAAAAAAAAD0/KrMoblc6z1c/s400/pRS1C-4793194w345.jpg" border="0" alt="" /></a>Get Connected:</p>
<p>The following worked for me with Hardy Heron installed on my MSI Wind.</p>
<p>1. Connect all the cables: USB &#8212; &gt; Serial &#8211;&gt; Crossover &#8211;&gt; Console Port<br />
2. Download and install Minicom: <span style="font-style: italic;">sudo apt-get install minicom</span><br />
3. Make sure that the USB to serial cable is recognized.  <span style="font-style: italic;">lsusb </span>should list something like<span style="font-style: italic;"> Bus 001 Device 002: ID 05ad:0fba Y.C. Cable U.S.A., Inc.</span><br />
4. Type <span style="font-style: italic;">ls /dev/tty* </span>to make sure /dev/ttyUSB0 or something similar is listed.</p>
<p><span style="font-weight: bold;">Update</span>: In my search to reset the password to the router, I needed to send a break to the console.  I was finally able to do this using GNU screen. Screen is easier than minicom, all you need to do is type <span style="font-style: italic;">screen /dev/ttyUSB0 </span>instead of the remaining steps five through eight. I was then able to send my break using [meta-command]-B or [meta-command]-b (Not sure which it was).</p>
<p>5. Start minicom with <span style="font-style: italic;">minicom</span> and hit CTRL-A and then O to open the options. (All commands in minicom start with CTRL-A, like GNU Screen).<br />
6. Enter A to change the serial device setting to /dev/ttyUSB0 or whatever you found in step 4.<br />
7. Select &#8220;Save setup as dfl&#8221;<br />
8. Hit CTRL-A X to exit and then restart minicom, the port should be displayed as /dev/ttyUSB0<br />
9. When it restarted all I had to do was hit enter to get the prompt of my CISCO 1720</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kbrandt.com/2008/08/how-to-connecting-to-cisco-router.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

