<?xml version="1.0" encoding="ISO-8859-1"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xml:lang="en-US">
	<title>Ubuntu tips and trials</title>
	<link rel="alternate" type="text/html" href="http://mellowd.co.uk/test2/index.php" />
	<modified>2010-07-29T18:50:12Z</modified>
	<author>
		<name>mellowd</name>
	</author>
	<copyright>Copyright 2010, mellowd</copyright>
	<generator url="http://www.sourceforge.net/projects/sphpblog" version="0.5.1">SPHPBLOG</generator>
	<entry>
		<title>New Blog!</title>
		<link rel="alternate" type="text/html" href="http://mellowd.co.uk/test2/index.php?entry=entry091105-084747" />
		<content type="text/html" mode="escaped"><![CDATA[I haven&#039;t had a lot of stuff to put on this new blog for some time. My time has been spent on my new blog over here: <a href="http://mellowd.co.uk/ccie/" target="_blank" ><b>http://mellowd.co.uk/ccie/</b></a><br /><br />Comments now work!  Feel free to pop by to take a look.<br /><br />D]]></content>
		<id>http://mellowd.co.uk/test2/index.php?entry=entry091105-084747</id>
		<issued>2009-11-05T00:00:00Z</issued>
		<modified>2009-11-05T00:00:00Z</modified>
	</entry>
	<entry>
		<title>TACACS+ mini HOWTO</title>
		<link rel="alternate" type="text/html" href="http://mellowd.co.uk/test2/index.php?entry=entry090804-233316" />
		<content type="text/html" mode="escaped"><![CDATA[Why a mini HOWTO?  Well I&#039;m going to explain how I set up a simple TACACS+ server on a Linux box. If you want any sort of AD integration you&#039;ll need to look elsewhere.<br /><br />I recently got given the project of installing a new linux box with a number of services. One of them was to replace the old TACACS+ server that has been claiming it&#039;s pension already for a number of years.<br /><br /> <b>Server Configuration</b> <br /><br />The server I have running in a virtual machine is running RedHat Enterprise 5. However the instructions should work for any rpm-based distro.<br /><br />Debian/Ubuntu distro&#039;s will be slightly different to install, but I would assume the config is identical. I&#039;ll expand this another time when I get the chance.<br /><br />I&#039;m using Cisco&#039;s free tac_plus server. You can find it here: <a href="ftp://ftpeng.cisco.com/pub/tacacs/" target="_blank" >ftp://ftpeng.cisco.com/pub/tacacs/</a><br /><br />As you can see, Cisco provides only the source code. No binaries to be found. I attempted to compile the code but they&#039;ve really made it difficult as you need to configure the makefile yourself :(<br /><br />You can make your life a LOT easier by just downloading a compiled rpm. If you enjoy pain then knock yourself out installing from source.<br /><br />By habit I do everything in /tmp/ so cd to that folder.<br /><br />Download the rpm:<br /><code>wget <a href="ftp://ftp.muug.mb.ca/mirror/redhat/contrib/libc6/i386/tac_plus-4.0.3-2.i386.rpm" target="_blank" >ftp://ftp.muug.mb.ca/mirror/redhat/contrib/libc6/i386/tac_plus-4.0.3-2.i386.rpm</a></code><br /><br />Of course if you&#039;re using a Debian/Ubuntu based distro, you&#039;ll be looking for a .deb file or at least a repository that has tac_plus on it.<br /><br />Install the rpm now:<br /><code>rpm -i tac_plus-4.0.3-2.i386.rpm</code><br /><br />TACACS+ is now installed and should be working fine. You can check this by running:<br /><code>ps -ef | grep tac_plus</code><br /><br />You should see something like the following:<br /><br /><code>root      6134     1  0 Aug02 ?        00:00:00 /usr/local/sbin/tac_plus -C /etc/tacacs/tac_plus.cfg<br />root     18325 18283  0 21:30 pts/0    00:00:00 grep tac_plus</code><br /><br /><br />The output also gives us a clue as to where the config file is. Go ahead and run this:<br /><code>vi /etc/tacacs/tac_plus.cfg</code><br /><br />I personally cleared this file out and started it from scratch. I believe this makes it easier for me and all the fluff is out. tac_plus gives us the option <br /><br />of loading any file as a test. This is pretty handy. If you&#039;re still in /tmp/ create a new file called new_test<br /><br />This is my initial config. Paste this into this new file and save (I&#039;ll go through what everything means later)<br /><br /><code># Put your NAS key below<br />key = bl@hbl@hwh@t3v3r<br /><br /># Accounting File<br />accounting file = /var/log/tac_accounting.log<br /><br /># * * * * * * * * * * * * * * * * * * * * * * * * * * * * *<br /># *                     USERS                             *<br /># * * * * * * * * * * * * * * * * * * * * * * * * * * * * *<br /><br /><br />user = mellowd {<br />        login = cleartext southafrica<br />     #mellowd is a member of group NOC<br />        member = NOC<br />}<br /><br />user = foo {<br />        login = cleartext bar<br />     #foo is a member of group NOC<br />        member = NOC<br />}<br /><br />user = elvis {<br />     #elvis is a member of group F_OPS<br />        member = F_OPS<br />}<br /><br /><br /><br /># * * * * * * * * * * * * * * * * * * * * * * * * * * * * *<br /># *                       GROUPS                          *<br /># * * * * * * * * * * * * * * * * * * * * * * * * * * * * *<br /><br />group = NOC {<br />      #NOC is a member of group ALL_STAFF<br />        member = ALL_STAFF<br />}<br /><br />group = F_OPS {<br />      #F_OPS is a member of group ALL_STAFF<br />        member = ALL_STAFF<br />}<br /><br />group = ALL_STAFF {<br />}<br /><br /># End config file<br /></code><br /><br />A pretty simple config right? I have defined 3 users: mellowd; foo and elvis. mellowd and foo are both part of the NOC group. elvis is a member of the F_OPS group. The groups themselves are part of a group called ALL_STAFF. A user will get all the benefits of their group. Groups also pick up all attributes of groups they belong to. Currently there is no config here, but this will change later. <br /><br />Note that user level settings will override group settings. i.e. if I put a setting both under group and the user, the users setting will override the group setting.<br /><br />Right at the top you have a key currently set as bl@hbl@hwh@t3v3r. This isn&#039;t needed but I would recommend having it. This same key would need to be on your routers and switches (We&#039;ll get to that config later)<br /><br />There is also an accounting file set up. We&#039;ll get more into this later.<br /><br /><br />Now remember this file is currently saved as /tmp/new_test. How do we actually run this and test it out? First of all tac_plus allows us to check the syntax of the file which I recommend doing. You can do it like so:<br /><code>tac_plus -P -C /tmp/new_test</code><br /><br />If you have any errors it&#039;ll tell you on what line it is. (Real world tip. Open the file in vi and type :set number - This will show you line numbers)<br /><br />If it passes without error it&#039;ll just show you your config and you&#039;ll be back at the prompt. This means all is okay so far.<br /><br />In order to test out this file you&#039;ll need to stop the daemon from running:<br /><code>[root@Log2 ~]# /etc/init.d/tacacs stop<br />Shutting down tacacs+:                                     [  OK  ]</code><br /><br />Now run the daemon forcing it to both use your new file and to send out debug output as well:<br /><code>[root@Log2 tmp]# tac_plus -C /tmp/new_test -d 16</code><br /><br />I&#039;d now tail the log file to ensure all is okay when logging on via a router:<br /><code>[root@Log2 tmp]# tail -f /var/tmp/tac_plus.log<br />Tue Aug  4 22:54:13 2009 [18632]: Reading config<br />Tue Aug  4 22:54:13 2009 [18632]: Version F4.0.3.alpha Initialized 1<br />Tue Aug  4 22:54:13 2009 [18632]: tac_plus server F4.0.3.alpha starting<br />Tue Aug  4 22:54:13 2009 [18633]: Backgrounded<br />Tue Aug  4 22:54:13 2009 [18634]: uid=0 euid=0 gid=0 egid=0 s=0 </code><br /><br /><br /> <b>Router configuration</b> <br /><br />Now for the router itself. I&#039;ve got here a standard 2612XM. The config has been wiped. The only initial config I&#039;ve done is to configure one of the interfaces so it&#039;s on the same network as my TACACS+ server.<br /><br />You&#039;ll need to tell the router that it needs to use TACACS+ as authentication:<br /><br /><code>Router#conf t<br />Router(config)#aaa new-model<br />Router(config)#aaa authentication login default group tacacs+ local<br />Router(config)#tacacs-server host x.x.x.x<br />Router(config)#tacacs-server key 0 bl@hbl@hwh@t3v3r</code><br />Here we have told the router the IP address of our TACACS+ server as well as the server key that we configured on the server earlier. We have also told the router that it needs to login via TACACS+ first. I recommend allowing authentication locally after that, as if your server is down you still want to have access to your network. It’ll only check the local database if the TACACS+ server is unreachable. If authentication fails via TACACS+ the router will NOT allow you to log in.<br /><br />Telnet to your router and test:<br /><code>User Access Verification<br />Username: mellowd<br />Password:<br />Router&gt;</code><br /><br />If you’re still tailing on the server you should see this:<br /><code>Tue Aug  4 22:55:05 2009 [18637]: login query for &#039;mellowd&#039; tty66 from x.x.x.x accepted</code><br /><br />If you’re not seeing this then there is some sort of non-connectivity between the router and the server. Make sure port 49 incoming is open on the server (check iptables)<br /><br />You can also console into the router at the same time and run this and then telnet in:<br /><code>Router#debug tacacs</code><br /><br />That should give you all the information you need to figure out the problem.<br /><br /> <b>Server config again</b> <br />If everything is okay you need to copy your TACACS+ config file on the server over to the actual live daemon config:<br /><code> [root@Log2 tmp]# cp /tmp/new_test /etc/tacacs/tac_plus.cfg</code><br /><br />This will require a restart of the daemon itself:<br /><code> [root@Log2 tmp]# # /etc/init.d/tacacs restart</code><br /><br /><br /><br />That’s pretty much it done. I’d like to add a few things later. For example I’ll show the configuration on a Foundry switch/router to use TACACS+. I’ll also show you how to encrypt the passwords in the configuration file. <br /><br /> <script type="text/javascript"><!--
google_ad_client = "pub-4587614934275411";
/* 468x60, created 15/10/09 */
google_ad_slot = "9844872039";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br /><br /><br />]]></content>
		<id>http://mellowd.co.uk/test2/index.php?entry=entry090804-233316</id>
		<issued>2009-08-04T00:00:00Z</issued>
		<modified>2009-08-04T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Showing line numbers in vi or vim</title>
		<link rel="alternate" type="text/html" href="http://mellowd.co.uk/test2/index.php?entry=entry090522-145806" />
		<content type="text/html" mode="escaped"><![CDATA[Ever changed a line of config only for the application to spit out:<br /><br /><i><b><blockquote>FATAL: Bungled squid.conf line 716: icp_access allow localnet</blockquote></b></i><br /><br />How to quickly find line 716?  Open your file in vi or vim and type:<br /><br /><i><b><blockquote>:set number</blockquote></b></i><br /><br />This setting is not saved when you exit so the next time you open a file it&#039;ll be gone. If you need the line numbers to dissapear while still in the file type:<br /><br /><i><b><blockquote>:set nonumber</blockquote></b></i><br /> <script type="text/javascript"><!--
google_ad_client = "pub-4587614934275411";
/* 468x60, created 15/10/09 */
google_ad_slot = "9844872039";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>]]></content>
		<id>http://mellowd.co.uk/test2/index.php?entry=entry090522-145806</id>
		<issued>2009-05-22T00:00:00Z</issued>
		<modified>2009-05-22T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Converting .mdf files to .iso</title>
		<link rel="alternate" type="text/html" href="http://mellowd.co.uk/test2/index.php?entry=entry090126-180642" />
		<content type="text/html" mode="escaped"><![CDATA[So you&#039;ve got a .mdf file and you need to convert it to iso? No problem!<br /><br />There is a handy utility called mdf2iso that will do it for you. To install it first type the following:<br /><br /><i><b><blockquote>sudo aptitude update<br />sudo aptitude install mdf2iso</blockquote></b></i><br /><br />Now all you need to do is the following:<br /><br /><i><b><blockquote>mdf2iso /folder/file.mdf /folder/file.iso</blockquote></b></i><br /><br />Substitute folder and file for whichever folder and file you need. <br /><br />Easy!<br /> <script type="text/javascript"><!--
google_ad_client = "pub-4587614934275411";
/* 468x60, created 15/10/09 */
google_ad_slot = "9844872039";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>]]></content>
		<id>http://mellowd.co.uk/test2/index.php?entry=entry090126-180642</id>
		<issued>2009-01-26T00:00:00Z</issued>
		<modified>2009-01-26T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Upgrading Ubuntu server 8.04 to 8.10</title>
		<link rel="alternate" type="text/html" href="http://mellowd.co.uk/test2/index.php?entry=entry081031-075805" />
		<content type="text/html" mode="escaped"><![CDATA[So you need to upgrade your 8.04 server version to 8.10? Easy!<br /><br />First of all, I wouldn&#039;t suggest you try any upgrade unless your server is fully backed up, BACK IT UP!<br /><br />You&#039;ll need to first install the update manager (it might already be installed)<br /><i><b><blockquote>sudo aptitude install update-manager-core</blockquote></b></i><br /><br />As 8.04 is a LTS version, we need to let ubuntu know that we want to move out of lts and into the regular branch. Do that by editing this file:<br /><i><b><blockquote>sudo vi /etc/update-manager/release-upgrades</blockquote></b></i><br /><br />Look for the line the says, prompt=lts. Change it to this:<br /><i><b><blockquote>Prompt=normal</blockquote></b></i><br />Save the file (:wq!)<br /> <script type="text/javascript"><!--
google_ad_client = "pub-4587614934275411";
/* 468x60, created 15/10/09 */
google_ad_slot = "9844872039";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />Now finally, type this:<br /><i><b><blockquote>sudo do-release-upgrade</blockquote></b></i>]]></content>
		<id>http://mellowd.co.uk/test2/index.php?entry=entry081031-075805</id>
		<issued>2008-10-31T00:00:00Z</issued>
		<modified>2008-10-31T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Converting .FLAC files to high quiality .MP3 files with only one command</title>
		<link rel="alternate" type="text/html" href="http://mellowd.co.uk/test2/index.php?entry=entry080818-171921" />
		<content type="text/html" mode="escaped"><![CDATA[So you have your nice lossless audio all compressed into FLAC. How do you quickly convert them to high quality mp3&#039;s to stick on your ipod or some other mp3 player? I&#039;ve written a script below that will do it for you in one easy step. It takes a few steps to set it up first, but once it&#039;s done you&#039;ll only ever need to type one command.<br /><br />First, you&#039;ll need to install FLAC and lame 3.97<br /><br /><i><b><blockquote>sudo aptitude install flac</blockquote></b></i><br /><i><b><blockquote>sudo aptitude install lame</blockquote></b></i><br /><br />As of this writing the Ubuntu repositories still has lame 3.97 as the current. I&#039;ve configured my script to take advantage of the new vbr algorithm with the --vbr-new switch. When the repositories are updated or you compile lame 3.98 yourself, edit the script to comment in the v3.98 line and comment out the v3.97 line<br /><br />Now you&#039;ll need to get my script. Change to the /bin folder like so:<br /><br /><i><b><blockquote>cd /bin</blockquote></b></i><br /><br />now type this:<br /><br /><i><b><blockquote>wget <a href="http://www.mellowd.co.uk/scripts/encode" target="_blank" >www.mellowd.co.uk/scripts/encode</a></blockquote></b></i><br /><br />Now you&#039;ll need to make that file an excecutable like so:<br /><br /><i><b><blockquote>chmod +x encode</blockquote></b></i><br /><br /><br />Now all you need to do is go into the folder that has your flac files and type:<br /><br /><i><b><blockquote>encode</blockquote></b></i><br /><br />The script will decode all the .flac files to .wav in a new subfolder, stripping the .wav suffix. It will then run lame to create mp3&#039;s in a new folder in the original folder using the -q0 setting which is the nest VBR setting available with lame. It will then delete all the .wav files and subfolder and finally it will add the .mp3 suffix to all your new mp3&#039;s.<br /><br />When it&#039;s complete you&#039;ll have an mp3 folder in your original folder, full of high quality mp3&#039;s<br /><br /><br />This is the contents of the current script itself as of today:<br /><br /><code># Encode<br /># v0.2 18.08.08 - Second draft, changed the default to lame 3.97 as this is what&#039;s in the Ubuntu repositories<br /># v0.1 17.08.08 - First created<br /># Darren O&#039;Connor &lt;mellow.drifter@gmail.com&gt;<br /><br /># This script, when run in a folder full of FLAC files, will create high quality VBR mp3&#039;s for use in mp3 players.<br /># This version uses lame 3.98 and 3.97. Please edit out the appropriate line below (Don&#039;t leave them both in!)<br /><br />#!/bin/bash<br />mkdir wav/<br />flac -d *.flac<br />mv *.wav wav/<br />cd wav/<br />for f in *.wav; do mv &quot;$f&quot; &quot;${f%.wav}&quot;;done<br />mkdir ../mp3/<br /><br /># If you use lame 3.98 then comment IN the next line and comment out the following line<br /># find -maxdepth 1 -type f -name &#039;*&#039; -exec lame -V0 -q0 &#039;{}&#039; -o &#039;../mp3/{}&#039; \;<br /><br /># If you use lame 3.97 then comment IN the next line and comment OUT the previous line<br />find -maxdepth 1 -type f -name &#039;*&#039; -exec lame --vbr-new -V0 -q0 &#039;{}&#039; -o &#039;../mp3/{}&#039; \;<br /><br />cd ../mp3/<br />for FILE in *; do mv &quot;$FILE&quot; &quot;$FILE.mp3&quot;; done<br />cd ../<br />rm -r wav/</code><br /> <script type="text/javascript"><!--
google_ad_client = "pub-4587614934275411";
/* 468x60, created 15/10/09 */
google_ad_slot = "9844872039";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>]]></content>
		<id>http://mellowd.co.uk/test2/index.php?entry=entry080818-171921</id>
		<issued>2008-08-18T00:00:00Z</issued>
		<modified>2008-08-18T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Setting up a terminal server on a cisco device</title>
		<link rel="alternate" type="text/html" href="http://mellowd.co.uk/test2/index.php?entry=entry080615-194659" />
		<content type="text/html" mode="escaped"><![CDATA[I&#039;ve been practising a lot of various BGP/OSPF/EIGRP and IS-IS things at work. I&#039;ve set up a lab there which will allow me from home to access all of these devices through their console ports without actually sitting in front of them. <br /><br />In order to do that I&#039;ve used an old 2600 with a 32 port async serial card. It&#039;s a very simple config and I&#039;ve pasted it here:<br /><br /><b><code><br />!<br />version 12.2<br />service timestamps debug uptime<br />service timestamps log uptime<br />service password-encryption<br />!<br />hostname TerminalServer<br />!<br />enable secret 5 &lt;removed&gt;<br />!<br />ip subnet-zero<br />!<br />!<br />no ip domain-lookup<br />ip host R7 2048 192.168.1.1<br />ip host R5 2037 192.168.1.1<br />ip host R1 2033 192.168.1.1<br />ip host R2 2034 192.168.1.1<br />ip host R3 2035 192.168.1.1<br />ip host R4 2036 192.168.1.1<br />ip host R6 2038 192.168.1.1<br />ip host S1 2039 192.168.1.1<br />ip host S2 2040 192.168.1.1<br />!<br />call rsvp-sync<br />!<br />!<br />!<br />!<br />!<br />!<br />!<br />!<br />interface Loopback0<br /> ip address 192.168.1.1 255.255.255.0<br />!<br />interface FastEthernet0/0<br /> ip address &lt;removed&gt;<br /> duplex auto<br /> speed auto<br />!<br />ip default-gateway &lt;removed&gt;<br />ip classless<br />ip route 0.0.0.0 0.0.0.0 &lt;removed&gt;<br />no ip http server<br />!<br />!<br />dial-peer cor custom<br />!<br />!<br />!<br />!<br />line con 0<br />line 33 64<br /> no exec<br /> transport input all<br />line aux 0<br />line vty 0 4<br /> exec-timeout 60 0<br /> password 7 &lt;removed&gt;<br /> login<br />line vty 5 15<br /> exec-timeout 60 0<br /> password 7 &lt;removed&gt;<br /> login<br />!<br />end<br /></code></b><br /><br /><br />There are a few important things to note here. You need to set up an IP address on a loopback interface. I&#039;ve used 192.168.1.1 on this example.<br /><br />You then set up IP hosts in this format: <br /><code><b>ip host R1 2033 192.168.1.1</b></code><br /><br /><b>R1</b> = The name I want to refer to the device, this case beig the first router.<br /><b>2033</b> = The serial port. The serial port will be 2000 + the serial port number. 33 being my first serial port. (It could be different on yours, I&#039;ll add how to check at the end)<br /><b>192.168.1.1</b> = The loopback interface. It doesn&#039;t matter which address you use, but I&#039;d put on a private address.<br /><br />The second important part is this:<br /><b><code>line 33 64<br /> transport input all</code></b><br /><br /><b>line 33 - 64</b>= The available port on the async card I&#039;ve used.<br /><b>transport input all</b> = Allow all protocols (including telnet) through these lines.<br /><br />You need to check which ports are available on your router. Check to see if those ports are recognised in the first hand by doing a simple <b><code>show ver</code></b><br /><br /><b>1 FastEthernet/IEEE 802.3 interface(s)<br /><strong>32 terminal line(s)</strong><br />32K bytes of non-volatile configuration memory.<br />16384K bytes of processor board System flash (Read/Write)</b><br /><br />This particular device has 32 terminal lines, through the add on card. If the router has these ports built in it will be slightly different. Cisco reserves the first 32 lines for built-in ports, whether the router has it or not. As this router has an add-on card, I can&#039;t use the first 32 lines. If I try I&#039;ll get this:<br /><b><br /><code>#line 1<br />No physical hardware support for line 1</code></b><br /><br /><br />A quick way to check which lines are available is to type this:<br /><br /><b><code>show line</code></b><br /><code><br />TerminalServer#sh line<br />   Tty Typ     Tx/Rx    A Modem  Roty AccO AccI   Uses   Noise  Overruns   Int<br />     0 CTY              -    -      -    -    -      0       0     0/0       -<br />    33 TTY   9600/9600  -    -      -    -    -      1      15  2828/8487    -<br />    34 TTY   9600/9600  -    -      -    -    -      1      21  2846/8541    -<br />*   35 TTY   9600/9600  -    -      -    -    -      0      18  3112/9338    -<br />*   36 TTY   9600/9600  -    -      -    -    -      0      44  3363/10099   -<br />*   37 TTY   9600/9600  -    -      -    -    -      0      11  3085/9254    -<br />*   38 TTY   9600/9600  -    -      -    -    -      0      11  3149/9446    -<br />*   39 TTY   9600/9600  -    -      -    -    -      0       0  3303/9905    -<br />*   40 TTY   9600/9600  -    -      -    -    -      0       0  3266/9800    -<br />    41 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    42 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    43 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    44 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    45 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    46 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    47 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />*   48 TTY   9600/9600  -    -      -    -    -      0       0  3319/9957    -<br />    49 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    50 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    51 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    52 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    53 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    54 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    55 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    56 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    57 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    58 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    59 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    60 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    61 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    62 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    63 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    64 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -<br />    65 AUX   9600/9600  -    -      -    -    -      0       0     0/0       -<br />*   66 VTY              -    -      -    -    -      6       0     0/0       -<br />    67 VTY              -    -      -    -    -      1       0     0/0       -<br />    68 VTY              -    -      -    -    -      0       0     0/0       -<br />    69 VTY              -    -      -    -    -      0       0     0/0       -<br />    70 VTY              -    -      -    -    -      0       0     0/0       -<br />    71 VTY              -    -      -    -    -      0       0     0/0       -<br />    72 VTY              -    -      -    -    -      0       0     0/0       -<br />    73 VTY              -    -      -    -    -      0       0     0/0       -<br />    74 VTY              -    -      -    -    -      0       0     0/0       -<br />    75 VTY              -    -      -    -    -      0       0     0/0       -<br />    76 VTY              -    -      -    -    -      0       0     0/0       -<br />    77 VTY              -    -      -    -    -      0       0     0/0       -<br />    78 VTY              -    -      -    -    -      0       0     0/0       -<br />    79 VTY              -    -      -    -    -      0       0     0/0       -<br />    80 VTY              -    -      -    -    -      0       0     0/0       -<br />    81 VTY              -    -      -    -    -      0       0     0/0       -<br /><br />Line(s) not in async mode -or- with no hardware support:<br />1-32</code><br /><br />That output will straight away tell me which lines I can and cannot use<br /> <script type="text/javascript"><!--
google_ad_client = "pub-4587614934275411";
/* 468x60, created 15/10/09 */
google_ad_slot = "9844872039";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br /><br />]]></content>
		<id>http://mellowd.co.uk/test2/index.php?entry=entry080615-194659</id>
		<issued>2008-06-15T00:00:00Z</issued>
		<modified>2008-06-15T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Converting .daa files to .iso files</title>
		<link rel="alternate" type="text/html" href="http://mellowd.co.uk/test2/index.php?entry=entry080120-194700" />
		<content type="text/html" mode="escaped"><![CDATA[so you&#039;ve just downloaded a .daa file and want a quick easy way to convert it to a .iso image?<br /><br />First you need the freeware poweriso application:<br /><br /><i><b><blockquote>sudo wget <a href="http://poweriso.com/poweriso-1.1.tar.gz" target="_blank" >http://poweriso.com/poweriso-1.1.tar.gz</a></blockquote>  </b> </i><br />Extract it like so:<br /><br />  <i><b><blockquote>sudo tar -zxvf poweriso-1.1.tar.gz</blockquote>  </b> </i>   <br />Then convert like so:<br /><br /><i><b><blockquote>./poweriso convert /folder/file.daa -o file.iso -ot iso</blockquote>  </b> </i><br /><br />Substitute your file and folder names for the above.<br /><br />Job done!<br /> <script type="text/javascript"><!--
google_ad_client = "pub-4587614934275411";
/* 468x60, created 15/10/09 */
google_ad_slot = "9844872039";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>]]></content>
		<id>http://mellowd.co.uk/test2/index.php?entry=entry080120-194700</id>
		<issued>2008-01-20T00:00:00Z</issued>
		<modified>2008-01-20T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Finding which hardware you&#039;ve got</title>
		<link rel="alternate" type="text/html" href="http://mellowd.co.uk/test2/index.php?entry=entry071228-162713" />
		<content type="text/html" mode="escaped"><![CDATA[Let&#039;s say you need to list all your current hardware, or maybe you just need to know what type of network card you got? Easy!<br /><br /><strong><i><blockquote>sudo lshw</blockquote></i></strong><br /><br />this will simply list all your hardware. If there is way too much to take in and it scrolls off you can do one of two things, either this:<br /><i><strong><blockquote>sudo lshw &gt;&gt; /home/yourname/hardware.log<br />vim /home/yourname/hardware.log</blockquote></strong></i><br />This will shove the output into a file called hardware.log in your home directory which you can then view with vim or your favourite text editor.<br />On the other land, let&#039;s say you only need to know what network card you have. You can do it like so:<br /><i><strong><blockquote>sudo lshw -C Network</blockquote></strong></i><br />This command will simply only display the network part of the output. Change network to whatever you need to see.<br /><br /> <script type="text/javascript"><!--
google_ad_client = "pub-4587614934275411";
/* 468x60, created 15/10/09 */
google_ad_slot = "9844872039";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>]]></content>
		<id>http://mellowd.co.uk/test2/index.php?entry=entry071228-162713</id>
		<issued>2007-12-28T00:00:00Z</issued>
		<modified>2007-12-28T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Check folder size</title>
		<link rel="alternate" type="text/html" href="http://mellowd.co.uk/test2/index.php?entry=entry071213-151225" />
		<content type="text/html" mode="escaped"><![CDATA[Need a quick way to check the size of any folder from the terminal?<br /><br /> <i> <strong> <blockquote>du -hs /folder/</blockquote> </strong>  </i>  <br /><br />-h will show it in human readable format as opposed to block size, and -s will give you a summary. <br /><script type="text/javascript"><!--
google_ad_client = "pub-4587614934275411";
/* 468x60, created 15/10/09 */
google_ad_slot = "9844872039";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>]]></content>
		<id>http://mellowd.co.uk/test2/index.php?entry=entry071213-151225</id>
		<issued>2007-12-13T00:00:00Z</issued>
		<modified>2007-12-13T00:00:00Z</modified>
	</entry>
</feed>
