<?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>no sense news &#187; How-to</title>
	<atom:link href="http://www.nosensenews.com/category/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nosensenews.com</link>
	<description>NO SENSE NEWS FROM THE WEB</description>
	<lastBuildDate>Mon, 01 Aug 2011 03:04:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Howto &#8211; Avoid MySQL swapping on multi core CPUs</title>
		<link>http://www.nosensenews.com/2011/07/howto-avoid-mysql-swapping-on-multi-core-cpus/</link>
		<comments>http://www.nosensenews.com/2011/07/howto-avoid-mysql-swapping-on-multi-core-cpus/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 02:47:24 +0000</pubDate>
		<dc:creator>subzero</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql performance]]></category>
		<category><![CDATA[mysql swapping]]></category>
		<category><![CDATA[mysql tweaks]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[swapping]]></category>

		<guid isPermaLink="false">http://www.nosensenews.com/?p=248</guid>
		<description><![CDATA[What is swap? Swap space is the area on a hard disk which is part of the Virtual Memory of your machine, which is a combination of accessible physical memory (RAM) and the swap space. Swap space temporarily holds memory pages that are inactive. Swap space is used when your system decides that it needs]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://c2848.r48.cf1.rackcdn.com/2011/07/mysql.png"><img class="alignnone size-medium wp-image-253" title="MySQL swapping" src="http://c2848.r48.cf1.rackcdn.com/2011/07/mysql-296x300.png" alt="MySQL swapping tricks" width="296" height="300" /></a></strong></p>
<p><strong>What is swap?</strong></p>
<p>Swap space is the area on a hard disk which is part of the Virtual Memory of your machine, which is a combination of accessible physical memory (RAM) and the swap space. Swap space temporarily holds memory pages that are inactive. Swap space is used when your system decides that it needs physical memory for active processes and there is insufficient unused physical memory available. If the system happens to need more memory resources or space, inactive pages in physical memory are then moved to the swap space therefore freeing up that physical memory for other uses. Note that the access time for swap is slower therefore do not consider it to be a complete replacement for the physical memory. Swap space can be a dedicated swap partition (recommended), a swap file, or a combination of swap partitions and swap<br />
files.</p>
<p><strong>Why do I need swap?</strong></p>
<p>Memory consuming programs Sometimes, a large program (like MySQL) make the entire system need extra memory. A significant number of the pages used by these large programs during its startup may only be used for initialization and then never used again. The system can swap out those pages and free the memory for other programs or even for the disk cache. In these cases, swap will be used to help the system handle any extra load.</p>
<p>Hibernation (suspend-to-disk) The hibernation feature (suspend-to-disk) writes out the contents of RAM to the swap partition before turning off the machine. Therefore, your swap partition should be at least as big as your RAM size. The hibernation implementation currently used in Ubuntu, swsusp, needs a swap or suspend partition. It cannot use a swap file on an active file system.</p>
<p>Unforeseeable Circumstances Unforeseeable events can and will happen (a program going crazy, some action needing much more space than you thought, or any other unpredictable combination of events). In these cases, swap can give you an extra delay to figure out what happened, or to finish what you are working on.</p>
<p><strong>Symptoms</strong></p>
<p>MySQL is being slow and when we run programs like &#8216;top&#8217; we can see that our process (or server) is using a large quantity of swap.</p>
<p><strong>What is this affecting the MySQL performance ?</strong></p>
<p>MySQL will change the way works since it will replace the internal algorithms to be optimized for Disk I/O due the navy use of swap. This will make the system slower.<br />
<strong><br />
What we can do ?</strong></p>
<p>First we need to figure out how much swap is the system using and how much free memory does it have.</p>
<p>1) The first trick we can do is to drop disk caches, this will free some more memory:</p>
<p><em><strong>echo 3 &gt; /proc/sys/vm/drop_caches </strong></em></p>
<p>2) If we can move the swap into real memory (swap usage &lt; free memory) we can run:</p>
<p><em><strong>swapoff -a</strong></em> (to disable the swap usage, this will force to move data to memory)<br />
<em><strong>swapon -a</strong></em> (will re-enable use of swap)</p>
<p>3) Check to see how aggressive is the system setup to use swap by using:</p>
<p><em><strong>cat /proc/sys/vm/swappiness</strong></em></p>
<p>I personally prefer to have this value around 10 (0 no not use swap  &#8211; 100 use swap)</p>
<p>to change this</p>
<p><strong><em>edit /etc/sysctl.conf </em></strong>and add a new line &#8220;<em><strong>vm.swappiness=10</strong></em>&#8220;. Save the file and run</p>
<p><strong><em>sysctl -f /etc/sysctl.conf</em></strong></p>
<p>4) Make sure that mysql is allocating memory close to equal for each physical CPU (not core), you may check this by typing</p>
<p><em><strong>numactl &#8211;hardware</strong></em></p>
<p>due the NUMA architecture this may be one of the main issue why mysql is swapping in the first place.</p>
<p><span id="more-248"></span></p>
<p>Now, find the <em><strong>mysqld_safe</strong></em> file and open it with your editor, add the following line <strong>(after cmd=&#8221;$NOHUP_NICENESS&#8221;)</strong></p>
<p><em><strong>cmd=&#8221;/usr/bin/numactl &#8211;interleave all $cmd&#8221;</strong></em></p>
<p>Now, when MySQL needs memory it will allocate it interleaved across all nodes, effectively balancing the amount of memory allocated in each node. This will leave some free memory in each node, allowing the Linux kernel to cache data on both nodes, thus allowing memory to be easily freed on either node just by freeing caches (as it’s supposed to work) rather than paging.</p>
<p>5) Edit my.cnf (or your mysql config file) to be a good match with the system (memory, buffers, threads) you&#8217;re running MySQL.</p>
<p>Hope that was helpful:</p>
<p>More resources:<br />
<a href="http://jcole.us/blog/archives/2010/09/28/mysql-swap-insanity-and-the-numa-architecture/" target="_blank">The MySQL “swap insanity” problem and the effects of the NUMA architecture</a><br />
<a href="https://help.ubuntu.com/community/SwapFaq?highlight=%28%28SwapFaq%29%29" target="_blank">Ubuntu SwapFAQ</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosensenews.com/2011/07/howto-avoid-mysql-swapping-on-multi-core-cpus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto &#8211; Compile Debian/Ubuntu kernel</title>
		<link>http://www.nosensenews.com/2011/03/howto-compile-debianubuntu-kernel/</link>
		<comments>http://www.nosensenews.com/2011/03/howto-compile-debianubuntu-kernel/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 02:49:56 +0000</pubDate>
		<dc:creator>subzero</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.nosensenews.com/?p=243</guid>
		<description><![CDATA[Compile Ubuntu kernel get the tools for building the kernel apt-get -y install build-essential libncurses5-dev fakeroot kernel-package  linux-source the kernel source code will be in /usr/src/ go to /usr/src and decompress the kernel tar -xjf linux-source-2.6.28.tar.bz2 and make a symlink ln -s /usr/src/linux-source-2.6.28 linux now go the the kernel menu and select what options do you want to]]></description>
			<content:encoded><![CDATA[<p><a href="http://c2848.r48.cf1.rackcdn.com/2011/03/kernel1.png"><img src="http://c2848.r48.cf1.rackcdn.com/2011/03/kernel1.png" alt="Compile Debian Linux kernel" title="Compile Ubuntu Linux kernel" width="319" height="350" class="alignnone size-full wp-image-246" /></a></p>
<h3 id="sites-page-title-header">Compile Ubuntu kernel</h3>
<p>get the tools for building the kernel</p>
<blockquote>
<div><code>apt-get -y install build-essential libncurses5-dev fakeroot kernel-package  linux-source</code></div>
</blockquote>
<p>the kernel source code will be in /usr/src/</p>
<p>go to /usr/src and decompress the kernel</p>
<blockquote>
<div><code>tar -xjf linux-source-2.6.28.tar.bz2</code></div>
</blockquote>
<p>and make a symlink</p>
<blockquote>
<div><code>ln -s /usr/src/linux-source-2.6.28 linux</code></div>
</blockquote>
<p>now go the the kernel menu and select what options do you want to compile in your kernel</p>
<blockquote>
<div><code>make menuconfig</code></div>
</blockquote>
<p>next,  rebuild the kernel</p>
<blockquote>
<div><code>cd /usr/src/linux<br />
fakeroot make-kpkg --initrd --revision=subzero.1.0 kernel_image</code></div>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.nosensenews.com/2011/03/howto-compile-debianubuntu-kernel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto &#8211; Cleanup mac ports</title>
		<link>http://www.nosensenews.com/2011/03/howto-cleanup-mac-ports/</link>
		<comments>http://www.nosensenews.com/2011/03/howto-cleanup-mac-ports/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 02:28:33 +0000</pubDate>
		<dc:creator>subzero</dc:creator>
				<category><![CDATA[How-to]]></category>

		<guid isPermaLink="false">http://www.nosensenews.com/?p=239</guid>
		<description><![CDATA[Did you use mac ports, and after each update your ports are getting bigger and bigger ? Do you want to cleanup a few hundred of MB ? This is how you do it! In order to see what is installed on your machine port installed to checkout the last version of the ports from]]></description>
			<content:encoded><![CDATA[<p><a href="http://c2848.r48.cf1.rackcdn.com/2011/03/macports.png"><img class="alignnone size-medium wp-image-240" title="Mac Ports Installer" src="http://c2848.r48.cf1.rackcdn.com/2011/03/macports-300x203.png" alt="Houto cleanup mac ports" width="300" height="203" /></a></p>
<p>Did you use mac ports, and after each update your ports are getting bigger and bigger ? Do you want to cleanup a few hundred of MB ? This is how you do it!</p>
<p>In order to see what is installed on your machine</p>
<blockquote>
<div><code>port installed</code></div>
</blockquote>
<p>to checkout the last version of the ports from the repository</p>
<blockquote>
<div><code>sudo port -v selfupdate</code></div>
</blockquote>
<p>howto update the ports</p>
<blockquote>
<div><code>sudo port upgrade outdated</code></div>
</blockquote>
<p>now to clean all the old version</p>
<blockquote>
<div><code>sudo port clean --all installed</code></div>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.nosensenews.com/2011/03/howto-cleanup-mac-ports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto Mount Remote Filesystem using SSH</title>
		<link>http://www.nosensenews.com/2011/03/howto-mount-remote-filesystem-using-ssh/</link>
		<comments>http://www.nosensenews.com/2011/03/howto-mount-remote-filesystem-using-ssh/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 01:55:32 +0000</pubDate>
		<dc:creator>subzero</dc:creator>
				<category><![CDATA[How-to]]></category>

		<guid isPermaLink="false">http://www.nosensenews.com/?p=234</guid>
		<description><![CDATA[You can access a remote file system securely using sshfs and fuse which is a command to mount a remote filesystem encrypted through ssh. This way you will be able to access remote files as if they were on you machine, just remember that if the connection between the computers is slow, the access will]]></description>
			<content:encoded><![CDATA[<p><a href="http://c2848.r48.cf1.rackcdn.com/2011/03/sshfs.png"><img class="alignnone size-full wp-image-236" title="Mount SSH Remote Drive" src="http://c2848.r48.cf1.rackcdn.com/2011/03/sshfs.png" alt="SSH Drive" width="128" height="128" /></a></p>
<p>You can access a remote file system securely using sshfs and fuse which  is a command to mount a remote filesystem encrypted through ssh.<br />
This  way you will be able to access remote files as if they were on you  machine, just remember that if the connection between the computers is  slow, the access will also be pretty slow</p>
<p>Package needed</p>
<blockquote>
<div><code>sshfs<br />
fuse-utils</code></div>
</blockquote>
<p>Installation</p>
<p>Get the packages</p>
<blockquote>
<div><code>For Debian: apt-get install fuse-utils sshfs<br />
For Ubuntu: sudo apt-get install fuse-utils sshfs<br />
For Fedora and Centos: yum install fuse-utils sshfs<br />
For Mandriva: urpmi: urpmi fuse-utils sshfs<br />
</code></div>
</blockquote>
<p>Next step is to mount the fuse module</p>
<blockquote>
<div><code>modprobe fuse</code></div>
</blockquote>
<p>Next create the mount point</p>
<blockquote>
<div><code>mkdir /mnt/remote-fs<br />
chown [your-user]:[your-group] /mnt/remote-fs/</code></div>
</blockquote>
<p>Add yourself to the fuse group</p>
<blockquote>
<div><code>adduser [your-user] fuse<br />
</code></div>
</blockquote>
<p>Untill here all the command should be issued as root, now switch to your users and mount the remote filesystem.</p>
<blockquote>
<div><code>sshfs remote-user@remote.server:/remote/directory /mnt/remote-fs/</code></div>
</blockquote>
<p>It  will now ask you accept the key if this is the first time you connect  to that PC using ssh, and then the password, or only the password if  this is not the first time you use ssh to connect to the remote server .  That should be all.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosensenews.com/2011/03/howto-mount-remote-filesystem-using-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find all local IP addresses in python</title>
		<link>http://www.nosensenews.com/2010/07/how-to-find-all-local-ip-addresses-in-python/</link>
		<comments>http://www.nosensenews.com/2010/07/how-to-find-all-local-ip-addresses-in-python/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 14:28:53 +0000</pubDate>
		<dc:creator>subzero</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[pyhton]]></category>

		<guid isPermaLink="false">http://www.nosensenews.com/?p=188</guid>
		<description><![CDATA[I was trying to get all the local IP addresses (public and private) in python , and the standard socket library seems to provide only information about the IP that resolve your hostname. Here is a quick way how to list all your ip from all interfaces in python. First you need to install the]]></description>
			<content:encoded><![CDATA[<p>I was trying to get all the local IP addresses (public and private) in python , and the standard socket library seems to provide only information about the IP that resolve your hostname. Here is a quick way how to list all your ip from all interfaces in python.</p>
<p>First you need to install the python netifaces module:</p>
<p>On a debian system you can install the module like this:</p>
<blockquote><p>sudo apt-get install python-netifaces</p></blockquote>
<p>You&#8217;re done, now you can write the code:</p>
<blockquote><p>from netifaces import interfaces, ifaddresses, AF_INET</p>
<p>for ifaceName in interfaces():<br />
    addresses = [i['addr'] for i in ifaddresses(ifaceName)[AF_INET]]<br />
    print &#8216;%s: %s&#8217; % (ifaceName, &#8216;, &#8216;.join(addresses))</p></blockquote>
<p>on my computer I have an output like this:</p>
<blockquote><p>lo: 127.0.0.1<br />
eth0: 1.1.1.1<br />
eth1: 192.168.0.1
</p></blockquote>
<p>No Sense ?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosensenews.com/2010/07/how-to-find-all-local-ip-addresses-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to setup a serial connection on MacBook Pro</title>
		<link>http://www.nosensenews.com/2010/07/how-to-setup-a-serial-connection-on-macbook-pro/</link>
		<comments>http://www.nosensenews.com/2010/07/how-to-setup-a-serial-connection-on-macbook-pro/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 23:51:10 +0000</pubDate>
		<dc:creator>subzero</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mac serial usb driver]]></category>
		<category><![CDATA[minicom]]></category>

		<guid isPermaLink="false">http://www.nosensenews.com/?p=135</guid>
		<description><![CDATA[and configure the serial port and data parity to look like this Save the data (as default). and start the connection. Now you should be able to see the device on the other end of you serial connection, probably a Cisco.]]></description>
			<content:encoded><![CDATA[<h2Prerequisites</h2>
<p>An DB9/RJ45 adapter, free USB port, mac ports installed.</p>
<h2>Installing</h2>
<p>After the serial port is plugged in you USB port you would be able to see the adapter on Apple&gt;About This Mac&gt;More Info</p>
<p><a href="http://c2848.r48.cf1.rackcdn.com/2010/07/about_this_mac.png"><img src="http://c2848.r48.cf1.rackcdn.com/2010/07/about_this_mac.png" alt="" title="About this mac dialog - serial interface" width="600" height="341" /></a></p>
<p>Next we need some drivers for the adapter.<br />
<span id="more-135"></span><br />
I found the <a href="http://c0020438.cdn1.cloudfiles.rackspacecloud.com/FTDIUSBSerialDriver_v2_2_10.dmg">serial mac driver on Future Technology Website</a> under Virtual Serial Ports Section.</p>
<p>After I install the driver a new device is visible<br />
<a href="http://c2848.r48.cf1.rackcdn.com/2010/07/driver_working.png"><img src="http://c2848.r48.cf1.rackcdn.com/2010/07/driver_working.png" alt="" title="USB Serial Driver working" width="466" height="59"  /></a></p>
<p>Now the driver is ready and working.</p>
<h2>Installing minicom (from ports)</h2>
<blockquote><p>sudo port install minicom</p></blockquote>
<h2>Howto setup minicom in order to connect to a serial port</h2>
<blockquote><p>sudo minicom &#8211;color=on -s</p></blockquote>
<p>go to Serial port setup> and configure the serial port and data parity to look like this</p>
<p><a href="http://c2848.r48.cf1.rackcdn.com/2010/07/MinicomSetup.png"><img src="http://c2848.r48.cf1.rackcdn.com/2010/07/MinicomSetup.png" alt="" title="Minicom setup" width="441" height="158"  /></a></p>
<p>Save the data (as default). and start the connection. Now you should be able to see the device on the other end of you serial connection, probably a Cisco.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosensenews.com/2010/07/how-to-setup-a-serial-connection-on-macbook-pro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a cisco console cable</title>
		<link>http://www.nosensenews.com/2010/07/how-to-create-a-cisco-console-cable/</link>
		<comments>http://www.nosensenews.com/2010/07/how-to-create-a-cisco-console-cable/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 23:00:44 +0000</pubDate>
		<dc:creator>subzero</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.nosensenews.com/?p=88</guid>
		<description><![CDATA[For this operation you need an RJ45 cable and a DB9 adapter. RJ45 cable This adapter works with the RJ45 serial port found on most Cisco routers. It also works on some Sun servers. This is pretty much just like the crossover cable but with a different pinout: 1 &#8211; 6 2 &#8211; 5 3]]></description>
			<content:encoded><![CDATA[<p>For this operation you need an RJ45 cable and a DB9 adapter.</p>
<h2>RJ45 cable</h2>
<p>This adapter works with the RJ45 serial port found on most Cisco routers. It also works on some Sun servers.<br />
This is pretty much just like the crossover cable but with a different pinout:</p>
<blockquote><p>1 &#8211; 6<br />
2 &#8211; 5<br />
3 &#8211; 3<br />
4 &#8211; 8<br />
5 &#8211; 7<br />
6 &#8211; 4<br />
7 &#8211; 1<br />
8 &#8211; 2</p></blockquote>
<p>- one side<br />
<a href="http://c2848.r48.cf1.rackcdn.com/2010/07/568B.gif"><img title="Wiring on one side" src="http://c2848.r48.cf1.rackcdn.com/2010/07/568B.gif" alt="Cisco console cable RJ45 one end" width="107" height="148" /></a></p>
<p>- the other side</p>
<p><a href="http://c2848.r48.cf1.rackcdn.com/2010/07/ciscoend.gif"><img title="Wiring on the other side" src="http://c2848.r48.cf1.rackcdn.com/2010/07/ciscoend.gif" alt="Cisco console cable RJ45 the other end" width="107" height="148" /></a></p>
<h2>DB9 adapter</h2>
<p>This is the trickiest part. In order to make your cable compatible with the largest number of serial devices possible, you need to combine a couple pins and split another one. Here is the pinout:<br />
<span id="more-88"></span></p>
<blockquote><p>DB9 pin signal RJ45 pin color *<br />
&#8212;&#8212;- &#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8211;<br />
1 DCD 8 white<br />
2 RxD 3 black<br />
3 TxD 1 blue<br />
4 DTR 5 green<br />
5 SG 2 and 6 orange and yellow<br />
6 DSR 8 white<br />
7 RTS 4 red<br />
8 CTS 7 brown<br />
9 RI none</p></blockquote>
<p>So our ethernet turned serial cable will be pinned:</p>
<blockquote><p>1 TxD pair one<br />
2 SG pair one<br />
3 RxD pair two<br />
4 RTS pair three<br />
5 DTR pair three<br />
6 SG pair two<br />
7 CTS pair four<br />
8 DSR/DCD pair four</p></blockquote>
<p><a href="http://c2848.r48.cf1.rackcdn.com/2010/07/wiredetail.jpeg"><img title="Cisco Serial Cable Wire Soldering - part one" src="http://c2848.r48.cf1.rackcdn.com/2010/07/wiredetail.jpeg" alt="Cisco Serial Cable Wire Soldering" width="308" height="230" /></a></p>
<p><a href="http://c2848.r48.cf1.rackcdn.com/2010/07/modwires.jpeg"><img title="Cisco Serial Cable Wire Soldering - part two" src="http://c2848.r48.cf1.rackcdn.com/2010/07/modwires.jpeg" alt="Cisco Serial Cable Wire Soldering" width="284" height="198" /></a></p>
<p style="text-align: justify;">* My DB9F/RJ45F modular adapters are colored blue, orange, black, red, green, yellow, brown, white (RJ45 1-8), but yours may not be. If yours are different, ignore the colors in the above pinout.</p>
<p style="text-align: justify;">DB9 pins 2, 3, 4, 7, and 8 are easy. Just push the appropriate pin in the back of the DB9 connector until it snaps. Be careful not to get any of the pins mixed up because errors are a bit difficult to fix. I seem to remember having a skinny little tool to pop the pins back out again some years back, but I can&#8217;t find it anymore.</p>
<p style="text-align: justify;">DB9 pin 5 needs two wires connected to it. Snip the pins off of the wires coming from RJ45 pins 2 and 6 (orange and yellow on mine), strip about 3 mm off the end of each, and crimp them together onto one of your spare pins.<br />
wiring detail photo</p>
<p style="text-align: justify;">RJ45 pin 8 has to connect to both 1 and 6 on the DB9 connector. Snip the pin off of the white wire, strip the end, cut about an inch of scrap CAT5 and pull out two of the white wires, strip both ends off of them, crimp a pin on each one, and splice all three loose ends together. You can break the end off of a spare pin and use it to crimp the three wires together. You can use the other two white wires from the inch of CAT5 for the second adapter.</p>
<p>Both of the DB9/RJ45 adapters should be wired exactly the same way, regardless of whether they will be used for DTE or DCE devices</p>
<blockquote><p>The final product</p></blockquote>
<p>That&#8217;s how our final custom cisco console cable should look:</p>
<p><a href="http://c2848.r48.cf1.rackcdn.com/2010/07/cisco.jpeg"><img title="Custom cisco console cable" src="http://c2848.r48.cf1.rackcdn.com/2010/07/cisco.jpeg" alt="Home made cisco console cable" width="357" height="193" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosensenews.com/2010/07/how-to-create-a-cisco-console-cable/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

