<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-28036198</id><updated>2012-02-16T09:50:29.344Z</updated><title type='text'>My notes.</title><subtitle type='html'>My personal notes about Asterisk, Linux, Java and other stuff.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>60</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-28036198.post-2343038888310310881</id><published>2010-01-14T17:49:00.014Z</published><updated>2010-01-14T18:43:44.557Z</updated><title type='text'>Elonex Webbook screen issue</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;I got hold of an used old (2008) Elonex Webbook during my holidays with windowz install and as it was free I didn't complained and was really happy for it.&lt;br /&gt;&lt;br /&gt;The specs are quite cool:&lt;br /&gt;&lt;p class="command"&gt;&lt;br /&gt;CPU type  VIA C7-M 1600 MhzDisplay Size  10.2" 1024 X 600&lt;br /&gt;RAM   512 MB&lt;br /&gt;Hard Disk  80 GB&lt;br /&gt;Wireless Interfaces 802.11b/g&lt;br /&gt;Ethernet  10/100&lt;br /&gt;Battery run time  2.5 hours&lt;br /&gt;Other   Webcam, 3-in-1 memory card reader. 3 USB Ports.&lt;br /&gt;Weight   1304gm&lt;br /&gt;Size (w/h/d mm)  252/183/33 mm&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Below a picture (sorry about the quality) of the webbook:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://1.bp.blogspot.com/_mPIx1MFtaGw/S09khlnRwNI/AAAAAAAAAOs/A3p7Kj4GGyI/s320/webb1.jpg" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5426666604200050898" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I never thought of having a netbook if I could get a laptop with all the toys but apart of getting used to the keyboard (full qwerty but rather small and keep pressing the wrong keys)   I quite like it.&lt;br /&gt;&lt;br /&gt;The first week as I was away I used it with Windowz and was impressed for the response time. Will not support loading all the Adobe Premier collection but to walk around, sit on a coffee shop, park bench and surf the web, respond that last email, check the doc/xls file or chat is quite good.&lt;br /&gt;&lt;br /&gt;Once back home the first thing I do was upgrade the RAM to 1GB with a spare DIMM I had. Checking the web I found people trying to use 2GB but only 1 seems to be recognized.&lt;br /&gt;&lt;br /&gt;Second thing was install Ubuntu. I downloaded Ubuntu Network Remix 9.10 (UNR from now on) and it after a long installation time, it came up with everything running.. or walking. UNR 9.10 make it really slow. I tried to remove packages but not luck. The webbook took ages to move around applications or moving the mouse around to launch something.&lt;br /&gt;&lt;br /&gt;As being so slow wouldn't be of any use for me, I decided to go for Ubuntu 8.04 as this was the release that I found the webbook was first offered. By the way it was sold in the UK by the carphone warehouse as free when subscribing to a 3G plan.&lt;br /&gt;&lt;br /&gt;Installing Ubuntu/Xubuntu 8.04/8.10/9.04 was simple but with a problem. The screen was dead. Completely blank. The only way to keep using it was connecting an external monitor to the VGA output.&lt;br /&gt;&lt;br /&gt;Surfing around I found some posts to change the xorg.conf config (will post it later) it didn't not bring life back to the screen. Neither was trying to download the video driver from VIA in Taiwan or upgrading the openchrome ubuntu package of the versions I installed using apt-get.&lt;br /&gt;&lt;br /&gt;The solution was to download the tar.gz of the latest openchrome driver, compile it and install it manually.&lt;br /&gt;&lt;br /&gt;The process was as follows:&lt;br /&gt;&lt;p class="command"&gt;&lt;br /&gt;a) download xf86-video-openchrome-latest.tar.gz from http://www.openchrome.org/trac/wiki/Installation.&lt;br /&gt;b) follow the steps to untar/compile/install&lt;br /&gt;c) tar xvzf xf86-video-openchrome-latest.tar.gz&lt;br /&gt;d) cd xf86-video-openchrome-0.2.904/&lt;br /&gt;e) ./configure --prefix=/usr&lt;br /&gt;f) make&lt;br /&gt;g) sudo -h make install&lt;br /&gt;h) sudo  make install&lt;br /&gt;i) close your windows. get out of x (Ctrl+Alt+BkSP) and start x again (startx). Or just simple reboot the laptop.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;After this you have lights on the webbook screen but nothing the rate is not ok and cannot see anything. You need now to change your xorg.conf as follows:&lt;br /&gt;&lt;br /&gt;&lt;p class="command"&gt;&lt;br /&gt;rb@rbwebbook:~$&lt;br /&gt;rb@rbwebbook:~$ cd /etc/X11/&lt;br /&gt;rb@rbwebbook:/etc/X11$ more xorg.conf&lt;br /&gt;&lt;br /&gt;Section "Device"&lt;br /&gt;     Identifier      "Configured Video Device"&lt;br /&gt;     Driver          "OpenChrome"&lt;br /&gt;     Option          "PanelSize" "1024x600"&lt;br /&gt;     Option          "ForcePanel"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Monitor"&lt;br /&gt;     Identifier      "Configured Monitor"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Section "Screen"&lt;br /&gt;     Identifier      "Default Screen"&lt;br /&gt;     Monitor         "Configured Monitor"&lt;br /&gt;     Device          "Configured Video Device"&lt;br /&gt;EndSection&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;The key settings here are PanelSize and ForcePanel to make it work.&lt;br /&gt;&lt;br /&gt;Below is an picture of the screen working!&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mPIx1MFtaGw/S09j5ocY9WI/AAAAAAAAAOk/mU6M6AyFR24/s1600-h/webb2.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://4.bp.blogspot.com/_mPIx1MFtaGw/S09j5ocY9WI/AAAAAAAAAOk/mU6M6AyFR24/s320/webb2.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5426665917764924770" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As always this post is more for me to remember how to fix this in the future.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-2343038888310310881?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/2343038888310310881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=2343038888310310881&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/2343038888310310881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/2343038888310310881'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2010/01/elonex-webbook-screen-issue.html' title='Elonex Webbook screen issue'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_mPIx1MFtaGw/S09khlnRwNI/AAAAAAAAAOs/A3p7Kj4GGyI/s72-c/webb1.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-989155673641561254</id><published>2009-10-06T17:58:00.002+01:00</published><updated>2009-10-06T18:04:57.962+01:00</updated><title type='text'>Mark Shuttleworth chat</title><content type='html'>Went to a Mark Shuttleworth talk in the London BT building near St. Paul's cathedral. The chat was about open source in the enterprise and was a good chance to hear someone who actually made his own company and is helping the Linux community.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/Sst34L8xGmI/AAAAAAAAAOc/1aZWKSHdJgQ/s1600-h/IMG00079-20091005-1405.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/Sst34L8xGmI/AAAAAAAAAOc/1aZWKSHdJgQ/s320/IMG00079-20091005-1405.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5389533186242976354" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-989155673641561254?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/989155673641561254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=989155673641561254&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/989155673641561254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/989155673641561254'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2009/10/mark-shuttleworth-chat.html' title='Mark Shuttleworth chat'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_mPIx1MFtaGw/Sst34L8xGmI/AAAAAAAAAOc/1aZWKSHdJgQ/s72-c/IMG00079-20091005-1405.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-4084853740068128347</id><published>2009-08-07T13:35:00.005+01:00</published><updated>2009-08-07T13:43:20.672+01:00</updated><title type='text'>Installing VirtualBox Guest Additions on Centos</title><content type='html'>Notes from:&lt;br /&gt;http://forums.virtualbox.org/viewtopic.php?t=4960&lt;br /&gt;&lt;br /&gt;Log in as root and type in terminal:&lt;br /&gt;&lt;br /&gt;&lt;p class="command"&gt;&lt;br /&gt;yum install gcc -y&lt;br /&gt;yum install kernel sources -y&lt;br /&gt;yum install kernel-devel -y&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Restart the system.&lt;br /&gt;Mount the VboxGuestAdditions.iso.&lt;br /&gt;Move to the following directory:&lt;br /&gt;&lt;br /&gt;&lt;p class="command"&gt;&lt;br /&gt;cd /media/VBOXADDTIONS_2.2.4_47978&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;As root execute:&lt;br /&gt;&lt;p class="command"&gt;&lt;br /&gt;sh ./VBoxLinuxAddtions-x86.run&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Restart the system again and good luck!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-4084853740068128347?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/4084853740068128347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=4084853740068128347&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/4084853740068128347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/4084853740068128347'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2009/08/installing-virtualbox-guest-additions.html' title='Installing VirtualBox Guest Additions on Centos'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-6377541749177374914</id><published>2009-02-19T18:15:00.007Z</published><updated>2009-02-19T18:43:03.910Z</updated><title type='text'>Home wirelss network with a Cisco Aironet 1130AG</title><content type='html'>The office drop a Cisco Aironet 1130ag as they upgraded to a newer release and I was able to get hold of it. I am still trying to learn more about Cisco and hope to have my CCNA in a few months and I tested this new toy with great success..&lt;br /&gt;&lt;br /&gt;To start, I flatshare and the broadband connection in my place is shared with other people. The access point from my ISP is on a comon room and I use wireless desktops and laptops. My test environement for the Aironet was the following:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_mPIx1MFtaGw/SZ2ix04ZDfI/AAAAAAAAAOU/Jn0ObnqT8aQ/s1600-h/Drawing1.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 258px;" src="http://4.bp.blogspot.com/_mPIx1MFtaGw/SZ2ix04ZDfI/AAAAAAAAAOU/Jn0ObnqT8aQ/s320/Drawing1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5304574913004768754" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This is read as follows:&lt;br /&gt;&lt;br /&gt;I use an Ubuntu box as my desktop connected to the "home" wireless network. This desktop has a nic connected to a small 100Mbits switch on a "private" network. To this switch I connected a small Cisco 805 (also discarded away by my company) that I use to play with "cisco" and as DHCP server. Also connected to the switch I have a Winblowz desktop to run those win32 applications I cannot get rid off and I connected the Cisco Aironet 1130AG to it. The Ubuntu desktop is my gateway to the "home wireless network".&lt;br /&gt;&lt;br /&gt;I know I could use the Ubuntu box also as DHCP but .... I wanted to play with Cisco and once that was working (quite easy by the way). I never removed it.&lt;br /&gt;&lt;br /&gt;Now.. the plan was to have my private wireless network away from my "flatmates" that I could use with my laptop. At the same time I wanted to surf the net so using the existing configuration would allowed me connect to the "private wireless network" by the Aironet, use the Ubuntu box as gateway (as I do from the windoze box) and jump to the "house wireless network" to get into the internet.&lt;br /&gt;&lt;br /&gt;All this was quite easy. Old post on this site shows &lt;a href="http://rblondon.blogspot.com/2008/06/private-network-with-ubuntu-and-cisco.html"&gt;how to configure the Ubuntu box as gateway and how to configure the Cisco 805 as DHCP server &lt;/a&gt;and now will write down the configuration of the Cisco Aironet 1130AG I used (that I got from &lt;a href="http://www.cisco.com/en/US/docs/wireless/access_point/12.3_7_JA/configuration/guide/s37frst.html#wp1036371"&gt;this&lt;/a&gt; site).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To start...&lt;br /&gt;&lt;br /&gt;a) connected a console cable to the Aironet and to your pc serial port. I used the ubuntu box and &lt;a href="http://rblondon.blogspot.com/2007/09/configuring-minicom-on-ubuntu-to.html"&gt;minicom&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;b) connected the aironet to the switch using a straight through cable.&lt;br /&gt;&lt;br /&gt;c) powered on the aironet and log in with privileged mode. It seems the default password is "Cisco".&lt;br /&gt;&lt;br /&gt;d) to have WEP enabled just configure the following:&lt;br /&gt;&lt;br /&gt;&lt;p class="command"&gt;&lt;br /&gt;dot11 ssid myssid&lt;br /&gt;   authentication open &lt;br /&gt;   guest-mode&lt;br /&gt;!&lt;br /&gt;dot11 network-map&lt;br /&gt;power inline negotiation prestandard source&lt;br /&gt;!&lt;br /&gt;!&lt;br /&gt;username Cisco password 7 1531021F0725&lt;br /&gt;!&lt;br /&gt;bridge irb&lt;br /&gt;!&lt;br /&gt;!&lt;br /&gt;interface Dot11Radio0&lt;br /&gt; no ip address&lt;br /&gt; no ip route-cache&lt;br /&gt; !&lt;br /&gt; ssid myssid&lt;br /&gt; !&lt;br /&gt; speed  basic-1.0 basic-2.0 basic-5.5 basic-11.0&lt;br /&gt; station-role root&lt;br /&gt; rts threshold 2312&lt;br /&gt; bridge-group 1&lt;br /&gt; bridge-group 1 subscriber-loop-control&lt;br /&gt; bridge-group 1 block-unknown-source&lt;br /&gt; no bridge-group 1 unicast-flooding&lt;br /&gt; bridge-group 1 spanning-disabled&lt;br /&gt;!&lt;br /&gt;interface Dot11Radio1&lt;br /&gt; no ip address&lt;br /&gt; no ip route-cache&lt;br /&gt; !&lt;br /&gt; ssid myssid&lt;br /&gt; !&lt;br /&gt; no dfs band block&lt;br /&gt; channel dfs&lt;br /&gt; station-role root&lt;br /&gt; rts threshold 2312&lt;br /&gt; bridge-group 1&lt;br /&gt; bridge-group 1 subscriber-loop-control&lt;br /&gt; bridge-group 1 block-unknown-source&lt;br /&gt; no bridge-group 1 source-learning&lt;br /&gt; no bridge-group 1 unicast-flooding&lt;br /&gt; bridge-group 1 spanning-disabled&lt;br /&gt;!&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;The aironet has 2 anthenas Dot11Radio1 and Dot11Radio0 for 802.11a/b/g and they are bridged to fastehternet0 therefore the ip given by the DHCP server is also the same for the wireless interfaces. &lt;br /&gt;&lt;br /&gt;As you can see that was it.. quite simple but I guess once I get on with my CCNA and start knowing more about Cisco config I will be able to do more interesting stuff... (radius authentification for example).&lt;br /&gt;&lt;br /&gt;This was as good thing to play with and I am sure I will be able to use the Aironet wireless in a best example in the future as right now is just to play around.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Links:&lt;br /&gt;http://www.cisco.com/en/US/docs/wireless/access_point/12.3_7_JA/configuration/guide/s37frst.html#wp1036371&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-6377541749177374914?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/6377541749177374914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=6377541749177374914&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/6377541749177374914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/6377541749177374914'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2009/02/home-wirelss-network-with-cisco-aironet.html' title='Home wirelss network with a Cisco Aironet 1130AG'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_mPIx1MFtaGw/SZ2ix04ZDfI/AAAAAAAAAOU/Jn0ObnqT8aQ/s72-c/Drawing1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-2037993430182909826</id><published>2009-01-10T11:12:00.006Z</published><updated>2009-01-10T17:46:57.047Z</updated><title type='text'>My notes on Virtualbox in Windows xp</title><content type='html'>I installed Virtualbox 2.1.0 on my Windowz laptop (new office laptop with +3GB the ram)  and I will install Debian etch images on it.&lt;br /&gt;&lt;br /&gt;The "host" software installation is quite simple and the "guest" installation is straight forward both on Windowz or Debian.&lt;br /&gt;&lt;br /&gt;One note, during setup try set the directory where to install the virtualbox images (.vdi files) on a c:\virt_images directory or similar. The reason is that the default is in your %HOMEDRIVE%HOMEPATH%\.VirtualBox\Hardrives directory that works fine but if you try to clone it using the vboxmanage clonehd the name will bring up some errors.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;&lt;p class="command"&gt;&lt;br /&gt;C:\Program Files\Sun\xVM VirtualBox&gt;vboxmanage clonehd C:\Documents/and/Settings\username\.VirtualBox\HardDisks\debian_1.vdi C:\Documents/and/Settings\username\.VirtualBox\HardDisks\debian_2.vdi&lt;br /&gt;VirtualBox Command Line Management Interface Version 2.1.0&lt;br /&gt;(C) 2005-2008 Sun Microsystems, Inc.&lt;br /&gt;All rights reserved.&lt;br /&gt;&lt;br /&gt;[!] FAILED calling virtualBox-&gt;OpenHardDisk2(src, srcDisk.asOutParam()) at line&lt;br /&gt;372!&lt;br /&gt;[!] Primary RC  = VBOX_E_IPRT_ERROR (0x80BB0005) - Runtime subsystem error&lt;br /&gt;[!] Full error info present: true , basic error info present: true&lt;br /&gt;[!] Result Code = VBOX_E_IPRT_ERROR (0x80BB0005) - Runtime subsystem error&lt;br /&gt;[!] Text        = Could not get the storage format of the hard disk 'C:\Documents\and\Settings\username\.VirtualBox\HardDisks\debian_1.vdi' (VERR_PATH_NOT_FOUND)&lt;br /&gt;[!] Component   = HardDisk2, Interface: IHardDisk2, {ed6e2525-c2fd-42a4-917a-7a9045ac9e15}&lt;br /&gt;[!] Callee      = IVirtualBox, {339abca2-f47a-4302-87f5-7bc324e6bbde}&lt;br /&gt;&lt;br /&gt;C:\Program Files\Sun\xVM VirtualBox&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;You can solve this by simple adding "" on the file paths&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p class="command"&gt;&lt;br /&gt;C:\Program Files\Sun\xVM VirtualBox&gt;vboxmanage clonehd "C:\Documents and Settings\username\.VirtualBox\HardDisks\debian_1.vdi" "C:\Documents and Settings\username\.VirtualBox\HardDisks\debian_2.vdi"&lt;br /&gt;VirtualBox Command Line Management Interface Version 2.1.0&lt;br /&gt;(C) 2005-2008 Sun Microsystems, Inc.&lt;br /&gt;All rights reserved.&lt;br /&gt;&lt;br /&gt;0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%&lt;br /&gt;Clone hard disk created in format 'VDI'. UUID: e78ab4e8-5666-4bea-a592-b277265c5b19&lt;br /&gt;&lt;br /&gt;C:\Program Files\Sun\xVM VirtualBox&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Moving forward, once Virtualbox is installed you can install Debian as normal on one of the images. It will ask for a name, type (linux, windows, etc), memory amount and hard disk image. As it is a new installation we create a new one.&lt;br /&gt;&lt;br /&gt;Debian installation is as normal and you shouldn't have any problem. Note I change the networking settings from "NAT" to "host interface" so I can have an IP from my dhcp server and be able to ssh to the "virtual disk".&lt;br /&gt;&lt;br /&gt;Once you have Debian installed you need to install "Virtualbox Guest Additions" on it. This was the tricky part for me, the host box would have an iso that can be mounted "dinamically" by going to the "Devices/Install Guest Addtions" guest window menu and it should mount the iso automatically on /media/cdrom but it my case it didn't work.  To solve this I install ssh - apt-get install ssh - and copy the iso image from my windows host to the debian guest.&lt;br /&gt;&lt;br /&gt;Next I did a:&lt;br /&gt;&lt;p class="command"&gt;&lt;br /&gt; apt-get install gcc&lt;br /&gt; apt-get install build-essential module-assistant&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Next step is buidling the kernel modules&lt;br /&gt;&lt;p class="command"&gt;&lt;br /&gt;  m-a prepare&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Next mount the iso file sftp before to you disk:&lt;br /&gt;&lt;br /&gt;&lt;p class="command"&gt;&lt;br /&gt;debvirt01:~# mount -o loop -t iso9660 /home/ricardo/VBoxGuestAdditions.iso /media/cdrom&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;And finally run the Virtualbox setup:&lt;br /&gt;&lt;br /&gt;&lt;p class="command"&gt;&lt;br /&gt;debvirt01:~# cd /media/cdrom&lt;br /&gt;debvirt01:/media/cdrom# ls&lt;br /&gt;32Bit         VBoxLinuxAdditions-amd64.run  VBoxWindowsAdditions-amd64.exe&lt;br /&gt;64Bit         VBoxLinuxAdditions-x86.run    VBoxWindowsAdditions.exe&lt;br /&gt;AUTORUN.INF  VBoxSolarisAdditions.pkg       VBoxWindowsAdditions-x86.exe&lt;br /&gt;debvirt01:/media/cdrom# sh /media/cdrom/VBoxLinuxAdditions-x86.run&lt;br /&gt;Verifying archive integrity... All good.&lt;br /&gt;Uncompressing VirtualBox 2.1.0 Guest Additions for Linux installation.......................................................................................................................................................................................................&lt;br /&gt;VirtualBox 2.1.0 Guest Additions installation&lt;br /&gt;Building the VirtualBox Guest Additions kernel module...&lt;br /&gt;Building the shared folder support kernel module...&lt;br /&gt;Installing the VirtualBox Guest Additions...&lt;br /&gt;&lt;br /&gt;Could not find X.org or XFree86 on the guest system.  The X Window drivers&lt;br /&gt;will not be installed.&lt;br /&gt;debvirt01:/media/cdrom#&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ok, that's it. It should fully work now (The x window drivers message is due the fact I didn't install anything else on my original debian install)&lt;br /&gt;&lt;br /&gt;To check the modules are running you can do the following:&lt;br /&gt;&lt;br /&gt;&lt;p class="command"&gt;&lt;br /&gt;debvirt01:~# dmesg | grep vbox&lt;br /&gt;vboxadd: Successfully loaded version 2.1.0 (interface 0x00010004)&lt;br /&gt;vboxvfs: Successfully loaded version 2.1.0 (interface 0x00010004)&lt;br /&gt;debvirt01:~#&lt;br /&gt;&lt;br /&gt;user@debvirt01:~$ lsmod&lt;br /&gt;Module                  Size  Used by&lt;br /&gt;vboxvfs                41504  0&lt;br /&gt;vboxadd                62816  2 vboxvfs&lt;br /&gt;user@debvirt01:~$&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Last thing, I couldn't boot the the image cloned from the original. Both grub and lilo fails to boot and I don't know who to restore fix it. I am trying to find out how to boot with a rescue disk on the "virtual" box and try to restore grub but couldn't find out how yet. Any notes let me know..  &lt;br /&gt;&lt;br /&gt;---- out of topic -----&lt;br /&gt;&lt;br /&gt;Debian Lenny has packages that helps on the process above but when addng the repository on source.lists and running an apt-get update we get the following error:&lt;br /&gt;&lt;br /&gt;&lt;p class="command"&gt;&lt;br /&gt;debvirt01:/etc/apt# apt-get update&lt;br /&gt;W: GPG error: http://download.virtualbox.org etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DCF9F87B6DFBCBAE&lt;br /&gt;W: You may want to run apt-get update to correct these problems&lt;br /&gt;debvirt01:/etc/apt#&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This error is the following: "Those are just letting you know the GPG keys arent saved to the disk. The mastering process for some reason deletes the additional keys.....The problem being the sites change gpg codes constantly.."&lt;br /&gt;&lt;br /&gt;To solve it just run the following command:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p class="command"&gt;&lt;br /&gt;debvirt01:/etc/apt#&lt;br /&gt;    wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc \&lt;br /&gt;         -O- | sudo apt-key add -&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;You will be able to run apt-get update normally and therefore retrieve the necessary virtualbox packages.&lt;br /&gt;&lt;br /&gt;Other link with details:&lt;br /&gt;&lt;a href=" http://johnbokma.com/mexit/2008/11/27/virtualbox-puel-ubuntu.html"&gt;&lt;br /&gt;http://johnbokma.com/mexit/2008/11/27/virtualbox-puel-ubuntu.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-2037993430182909826?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/2037993430182909826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=2037993430182909826&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/2037993430182909826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/2037993430182909826'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2009/01/my-notes-on-virtualbox-in-windows-xp.html' title='My notes on Virtualbox in Windows xp'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-8038420881858403606</id><published>2009-01-04T22:56:00.006Z</published><updated>2009-01-04T23:15:00.410Z</updated><title type='text'>Adding a css to my blog</title><content type='html'>I noticed that I don't find optimal to find what is commands entry from clear text on my blog so surfing around I found this css entry that I am will start applying whenever I enter a command or code to the page.&lt;br /&gt;&lt;br /&gt;On Blogger, on the Layout tab I selected "edit html" and added the following:&lt;br /&gt;&lt;br /&gt;/* Added by RB&lt;br /&gt;----------------------------------------------- */&lt;br /&gt;&lt;br /&gt;.command{ padding:1em;&lt;br /&gt;border:1px&lt;br /&gt;dashed #2f6fab;&lt;br /&gt;color:black;&lt;br /&gt;background-color:#f9f9f9;&lt;br /&gt;line-height:1.1em;&lt;br /&gt;font-family:Courier New,Courier,mono;&lt;br /&gt;font-size:12px;&lt;br /&gt;font-style:italic&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Example:&lt;p class="command"&gt;tar -xzvf speex-1.2rc1.tar.gz &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;:)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-8038420881858403606?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/8038420881858403606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=8038420881858403606&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/8038420881858403606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/8038420881858403606'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2009/01/teset.html' title='Adding a css to my blog'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-5607879158754821088</id><published>2008-12-28T19:15:00.001Z</published><updated>2008-12-28T19:18:01.113Z</updated><title type='text'>Adding Speex codec on Asterisk Installation</title><content type='html'>During the installation before compiling asterisk (this can be done after dadhi and libpri) download the souce of speex from http://speex.org/downloads/ into /usr/src/&lt;br /&gt;&lt;br /&gt;The installation is quite simple:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;tar -xzvf speex-1.2rc1.tar.gz &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cd speex-1.2rc1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;./configure --prefix=/usr&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ldconfig&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cd ..&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-5607879158754821088?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/5607879158754821088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=5607879158754821088&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/5607879158754821088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/5607879158754821088'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/12/adding-speex-codec-on-asterisk.html' title='Adding Speex codec on Asterisk Installation'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-8278635408323995698</id><published>2008-12-26T18:30:00.004Z</published><updated>2008-12-26T18:37:14.859Z</updated><title type='text'>Dadhi installation</title><content type='html'>New asterisk install, this time zaptel is replaced by dahdi. The installation is quite simple just download the files from asterisk.org on /usr/src, untar files and run the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;cd /usr/src/dahdi-linux-2.1.0.3#&lt;br /&gt;make clean&lt;br /&gt;make&lt;br /&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;cd /usr/src/dahdi-tools-2.1.0.2# &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;./configure&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;make config&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Two files to check &lt;span style="font-style: italic;"&gt;/etc/dahdi/system.conf&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;/etc/dahdi/init.conf&lt;/span&gt;. On the fist one change zone to UK.&lt;br /&gt;&lt;br /&gt;After this as I am not running any voice hardware you can run:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;modprobe dadhi&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;modprobe dadhi-dummy&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And a&lt;span style="font-style: italic;"&gt; lsmod | more&lt;/span&gt; will show the following output:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Module                  Size  Used by&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dahdi_dummy             5224  0 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;dahdi                 186280  1 dahdi_dummy&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dadhi README notes available at:&lt;br /&gt;&lt;a href="http://svn.digium.com/view/dahdi/tools/tags/2.0.0-rc2/UPGRADE.txt?view=co"&gt;http://svn.digium.com/view/dahdi/tools/tags/2.0.0-rc2/UPGRADE.txt?view=co&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-8278635408323995698?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/8278635408323995698/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=8278635408323995698&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/8278635408323995698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/8278635408323995698'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/12/dadhi-installation.html' title='Dadhi installation'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-7572851184054740161</id><published>2008-12-25T16:27:00.003Z</published><updated>2008-12-25T16:39:36.653Z</updated><title type='text'>Error on Cisco 805 boot (boot#..)</title><content type='html'>I use a small Cisco 805 as dhcp server in my house. After a power failure the system started with the following prompt:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;user@user-desktop:~$ minicom&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Welcome to minicom 2.3-rc1&lt;br /&gt;&lt;br /&gt;OPTIONS: I18n&lt;br /&gt;Compiled on Dec 10 2007, 10:36:19.&lt;br /&gt;Port /dev/ttyS0&lt;br /&gt;&lt;br /&gt;              Press CTRL-A Z for help on special keys&lt;br /&gt;&lt;br /&gt;TinyROM version 1.4(1)&lt;br /&gt;19:37 11/07/00&lt;br /&gt;Copyright (c) 1998-2000 by cisco Systems, Inc.&lt;br /&gt;All rights reserved.                                                          &lt;br /&gt;                                                                             &lt;br /&gt;POST .............. OK.  16MB DRAM, 12MB Flash.                               &lt;br /&gt;                                                                             &lt;br /&gt;boot#                                                                         &lt;br /&gt;boot#    &lt;/span&gt;                                                                     &lt;br /&gt;&lt;br /&gt;Honestly don't know what this is and the commands available were:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;boot# help                                                                    &lt;br /&gt;boot        Execute image or CLI command script.                              &lt;br /&gt;delete      Deletes file-name from flash (8th delete is permanent).           &lt;br /&gt;disable     Disable privileged commands.                                      &lt;br /&gt;echo        Display arguments (to test CLI behavior).                         &lt;br /&gt;enable      Enable privileged or debug commands.                              &lt;br /&gt;erase       Erase deleted and invalid files from flash.                       &lt;br /&gt;help        Display help for command (* for all).                             &lt;br /&gt;list        List files currently in ram and saved in flash.                   &lt;br /&gt;load        Load saved boot environment from flash.                           &lt;br /&gt;passwd      Set or change the ROM password.                                   &lt;br /&gt;reset       Reset console port to current parameters.                         &lt;br /&gt;set         Set boot environment values.                                      &lt;br /&gt;save        Save boot environment or loaded file to flash.                    &lt;br /&gt;show        Show current or saved boot environment.                           &lt;br /&gt;upload      Load image or configuration data into RAM.                        &lt;br /&gt;undelete    Undelete file-name (maximum of 8 deletes &amp;amp; undeletes).            &lt;br /&gt;boot#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Luckily googling around I found this page from cisco: &lt;a href="http://www.cisco.com/en/US/ts/fn/200/fn27475.html"&gt;http://www.cisco.com/en/US/ts/fn/200/fn27475.html&lt;/a&gt; that shows what to do to recover the system.&lt;br /&gt;&lt;br /&gt;The command "set" will show the device config and which file it will be use to boot. The output of the set command show that I didn't have any boot image.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;boot# set                                                                     &lt;br /&gt;set baud           =9600                                                      &lt;br /&gt;set data-bits      =8                                                         &lt;br /&gt;set parity         =none                                                      &lt;br /&gt;set stop-bits      =1                                                         &lt;br /&gt;set console-flags  =0                                                         &lt;br /&gt;set mac-address    =000B.BE48.D887                                            &lt;br /&gt;set unit-ip        =0.0.0.0                                                   &lt;br /&gt;set serv-ip        =0.0.0.0                                                   &lt;br /&gt;set netmask        =0.0.0.0                                                   &lt;br /&gt;set gate-ip        =0.0.0.0                                                   &lt;br /&gt;set pkt-timeout    =4                                                         &lt;br /&gt;set tftp-timeout   =16                                                        &lt;br /&gt;set boot-action    =none                                                      &lt;br /&gt;set file-name      =""                                                        &lt;br /&gt;set watchdog       =off                                                       &lt;br /&gt;set prompt         ="boot"                                                    &lt;br /&gt;set ios-conf       =0xA0                                                      &lt;br /&gt;boot#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The second command to use is "list" that shows what you have saved on the ROM. I could find the ios image preset to boot from. Using the "set" command you configure the router to boot using the cisco image like follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;boot# list                                                                    &lt;br /&gt;Status     Size     Dev    Name                                               &lt;br /&gt;------       48K  flash    TinyROM-1.4(1)                                     &lt;br /&gt;---r--      911   flash    full-config                                        &lt;br /&gt;---r-x     7529K  flash    c805-xxxx-5.bin                           &lt;br /&gt;          4480K  free     12288K total                                       &lt;br /&gt;boot#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The list showed the  c805-xxxx.bin being present, using set I change the boot-action and file-name settings:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;boot# set boot-action=flash                                                   &lt;br /&gt;boot# set file-name="c805-xxxx-5.bin&lt;/span&gt;"                                &lt;br /&gt;&lt;br /&gt;Once done just use the "save" command to (guess...) save the configuration and finally "boot" to load the ios into memory.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;boot# save                                                                    &lt;br /&gt;save: succeeded (0 seconds).                                                  &lt;br /&gt;boot# boot                                                                    &lt;br /&gt;Accessing flash:c805-xxxx-5.bin                                      &lt;br /&gt;                                                                             &lt;br /&gt;Booting "c805-xxxx-5.bin" ...,   &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After the "Booting c805......" message the system starts as normal.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-7572851184054740161?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/7572851184054740161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=7572851184054740161&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/7572851184054740161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/7572851184054740161'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/12/error-on-cisco-805-boot-boot.html' title='Error on Cisco 805 boot (boot#..)'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-8623195322459908072</id><published>2008-12-01T18:47:00.003Z</published><updated>2008-12-01T19:04:43.388Z</updated><title type='text'>H.323 delay in outbound dialling</title><content type='html'>Last week users reported a long delay when dialling out from their SIP extensions. My setup is quite simple.&lt;br /&gt;&lt;br /&gt;Avaya PBX connected to the outside world - H323 Trunk to Asterisk - Asterisk connected to SIP users using softphones from their macs/linux laptops (all this because Avaya don't have a decent softphone for macs/linux yet).&lt;br /&gt;&lt;br /&gt;The logs for a few test calls showed a 60+ seconds delay from the time the call was dialled to the time the call was placed over the H323 ip trunk between Avaya and Asterisk.&lt;br /&gt;&lt;br /&gt;After checking that it was not a sip problem, dialling problem, h323 trunk problem by checking logs, tcpdump, avaya trunk side, etc. I concluded the problem was on the h323 setup on Asterisk.&lt;br /&gt;&lt;br /&gt;Googling around I found only 1 case of a user asking on the asterisk user list about a similar problem and that he fixed the problem by "disable h323 srv lookups".&lt;br /&gt;&lt;br /&gt;I honestly didn't have about srv-enum-etc but helped me find out the problem. My DNS was not resolving any request because it was down. It didn't matter that on /etc/resolve.conf I had 4 dns entries, the first one was down and it was enough to stop this.&lt;br /&gt;&lt;br /&gt;It seems h323 does a srv lookup for enum information before dialing out and possible it can be disabled. I couldn't find how unfortunately so to fix this I had to point the box to another dns server on my network. Once this was done all starting working again.&lt;br /&gt;&lt;br /&gt;Just in case I am copying some logs of what I was seeing when the problem was present.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;[Nov 28 15:34:09] VERBOSE[10584] logger.c: -- Executing [myavayaextension@default:1] Dial("SIP/myasteriskextension-081b5bc8", "H323/myavayaextension@Avaya") in new stack&lt;br /&gt;[Nov 28 15:34:09] VERBOSE[10584] logger.c: -- Requested transfer capability: 0x00 - SPEECH&lt;br /&gt;------------------- 64 seconds delay -----------------&lt;br /&gt;[Nov 28 15:35:13] VERBOSE[10584] logger.c: -- Called myavayaextension@Avaya&lt;br /&gt;[Nov 28 15:35:13] VERBOSE[10584] logger.c: -- H323/Avaya-31 is making progress passing it to SIP/myasteriskextension-081b5bc8&lt;br /&gt;[Nov 28 15:35:13] VERBOSE[10584] logger.c: -- H323/Avaya-31 is ringing&lt;br /&gt;[Nov 28 15:35:17] VERBOSE[10584] logger.c: -- H323/Avaya-31 answered SIP/myasteriskextension-081b5bc8&lt;br /&gt;[Nov 28 15:35:18] VERBOSE[10584] logger.c: == Spawn extension (default, myavayaextension, 1) exited non-zero on 'SIP/myasteriskextension-081b5bc8'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[Nov 28 15:19:52] VERBOSE[10551] logger.c: -- Executing [myavayaextension@default:1] Dial("SIP/myasteriskextension-081b5bc8", "H323/myavayaextension@Avaya") in new stack&lt;br /&gt;[Nov 28 15:19:52] DEBUG[10551] chan_h323.c: type=H323, format=8, data=myavayaextension@Avaya.&lt;br /&gt;[Nov 28 15:19:52] DEBUG[10551] chan_h323.c: Extension: myavayaextensionHost: Avaya&lt;br /&gt;[Nov 28 15:19:52] DEBUG[10551] chan_h323.c: Calling to myavayaextension@Avaya on H323/Avaya-30&lt;br /&gt;[Nov 28 15:19:52] VERBOSE[10551] logger.c: -- Requested transfer capability: 0x00 - SPEECH&lt;br /&gt;[Nov 28 15:19:52] DEBUG[10551] chan_h323.c: Placing outgoing call to myavayaextension@192.168.58.216:1720, 101&lt;br /&gt;[Nov 28 15:19:52] VERBOSE[10551] logger.c: -- Making call to myavayaextension@192.168.58.216:1720 without gatekeeper.&lt;br /&gt;[Nov 28 15:19:52] VERBOSE[10551] logger.c: Using 192.168.58.227 for outbound call&lt;br /&gt;------------------- 64 seconds delay -----------------&lt;br /&gt;[Nov 28 15:20:56] VERBOSE[10551] logger.c: == New H.323 Connection created.&lt;br /&gt;[Nov 28 15:20:56] VERBOSE[10551] logger.c: -- root is calling host myavayaextension@192.168.58.216:1720&lt;br /&gt;[Nov 28 15:20:56] VERBOSE[10551] logger.c: -- Call token is ip$localhost/9446&lt;br /&gt;[Nov 28 15:20:56] VERBOSE[10551] logger.c: -- Call reference is 9446&lt;br /&gt;[Nov 28 15:20:56] VERBOSE[10551] logger.c: -- DTMF Payload is [pt=101]&lt;br /&gt;[Nov 28 15:20:56] VERBOSE[10551] logger.c: -- Called myavayaextension@Avaya&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Notes: &lt;/em&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;myasteriskextension&lt;br /&gt;myavayaextension = my 5 digit extension on the avaya pbx.&lt;/em&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-8623195322459908072?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/8623195322459908072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=8623195322459908072&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/8623195322459908072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/8623195322459908072'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/12/h323-delay-in-outbound-dialling.html' title='H.323 delay in outbound dialling'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-3585563766765946674</id><published>2008-06-15T20:06:00.002+01:00</published><updated>2008-06-15T20:39:42.535+01:00</updated><title type='text'>Start asterisk on boot</title><content type='html'>I always forget how to start asterisk manually. The steps after installation are:&lt;br /&gt;&lt;br /&gt;myserver:/etc/init.d# cp /usr/src/asterisk-1.4.21/contrib/init.d/rc.debian.asterisk /etc/init.d/asterisk&lt;br /&gt;&lt;br /&gt;myserver:/etc/init.d# cd /etc/init.d/&lt;br /&gt;&lt;br /&gt;myserver:/etc/init.d# ls asterisk&lt;br /&gt;asterisk&lt;br /&gt;&lt;br /&gt;myserver:/etc/init.d# chmod 755 asterisk&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;myserver:/etc/init.d# update-rc.d asterisk defaults&lt;br /&gt; Adding system startup for /etc/init.d/asterisk ...&lt;br /&gt;   /etc/rc0.d/K20asterisk -&gt; ../init.d/asterisk&lt;br /&gt;   /etc/rc1.d/K20asterisk -&gt; ../init.d/asterisk&lt;br /&gt;   /etc/rc6.d/K20asterisk -&gt; ../init.d/asterisk&lt;br /&gt;   /etc/rc2.d/S20asterisk -&gt; ../init.d/asterisk&lt;br /&gt;   /etc/rc3.d/S20asterisk -&gt; ../init.d/asterisk&lt;br /&gt;   /etc/rc4.d/S20asterisk -&gt; ../init.d/asterisk&lt;br /&gt;   /etc/rc5.d/S20asterisk -&gt; ../init.d/asterisk&lt;br /&gt;&lt;br /&gt;myserver:/etc/init.d#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-3585563766765946674?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/3585563766765946674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=3585563766765946674&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/3585563766765946674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/3585563766765946674'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/06/start-asterisk-on-boot.html' title='Start asterisk on boot'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-7361285261451683733</id><published>2008-06-15T07:50:00.004+01:00</published><updated>2009-01-06T21:31:27.155Z</updated><title type='text'>Private network with Ubuntu and Cisco router as dhcp server</title><content type='html'>I share my internet connection at my house and I wanted to set up my own network to connect my laptops with the desktops. Using the wireless was not the best option to transfer large files between systems therefore I set up a small network.&lt;br /&gt;&lt;br /&gt;The "house" network is on the 192.168.0.0/24 and connects to the internet, my private network is on the 192.168.1.0/24. The devices are connected through a 10/100 switch and except one PC the ip are set by a dhcp server (I don't have more than 5 pcs at the time).&lt;br /&gt;&lt;br /&gt;My main pc is an Ubuntu desktop with 2 network cards.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;wlan0&lt;/span&gt; - connects to the internet through a wireless router. Uses network 192.168.0.0/24&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;eth0&lt;/span&gt; - ethernet card to use on my private network. Uses network 192.168.1.0/24&lt;br /&gt;&lt;br /&gt;First check your iptables.. run the command iptables -L&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user@pc:~$ sudo iptables -L&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Chain INPUT (policy ACCEPT)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;target     prot opt source               destination         &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Chain FORWARD (policy ACCEPT)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;target     prot opt source               destination         &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Chain OUTPUT (policy ACCEPT)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;target     prot opt source               destination         &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user@pc:~$ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This shows the table is empty. Now to enable internet sharing on the Desktop PC I run the following rules:&lt;br /&gt;&lt;br /&gt;        &lt;span style="font-style: italic;"&gt; $sudo iptables -A FORWARD -i wlan0 -o eth0 -s 192.168.1.0/24 -m state --state NEW -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            $sudo iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            $sudo iptables -A POSTROUTING -t nat -j MASQUERADE &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;rule1 allows forwarded packets (initial ones)&lt;br /&gt;rule2 allows forwarding of established connection packets (and those related to ones that started)&lt;br /&gt;rule3 does the NAT&lt;br /&gt;&lt;br /&gt;Running iptables -L now shows the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user@pc:/home$ sudo iptables -L&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Chain INPUT (policy ACCEPT)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;target     prot opt source               destination         &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Chain FORWARD (policy ACCEPT)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;target     prot opt source               destination         &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ACCEPT     all  --  192.168.1.0/24       anywhere            state NEW &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Chain OUTPUT (policy ACCEPT)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;target     prot opt source               destination         &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user@pc:/home$ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This change is only valid until next reboot, therefore we need to make it permanent. Read the links at the of this post but what I did was the following.&lt;br /&gt;&lt;br /&gt;a. First save the current configuration on a local file by running:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="font-style: italic;"&gt;sudo sh -c "iptables-save &gt; /home/&lt;yourloginid&gt;/iptables.rules" &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;Many post I read suggest saving the file on /etc/iptables.rules but in my case the file was not being saved at all. Checking logs I found messages of "permission denied" when the system was trying to save the file therefore I used my own directory that I guess is not the best option regarding security.&lt;br /&gt;&lt;br /&gt;Another note found was that this process was done on every shutdown. I my case I did it once and will use the same file for every reboot. If I need to change something I will do it live and save the file again.&lt;br /&gt;&lt;br /&gt;b. Second set a small script to load the file save with the iptables configuration on boot. This can be done by creating a little shell on the /etc/network/if-pre-up.d directory named iptaload.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user@pc:/etc/network/if-pre-up.d$ ls -l&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-rwxr-xr-x 1 root root   65 2009-01-06 20:46 iptaload&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user@pc:/etc/network/if-pre-up.d$ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The file iptload reads as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user@pc:/etc/network/if-pre-up.d$ more iptaload &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#!/bin/sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iptables-restore &lt; /home/&lt;yourloginid&gt;/iptables.rules&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;exit 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user@pc:/etc/network/if-pre-up.d$ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now at this stage you changed your iptables and should work on every reboot.&lt;br /&gt;&lt;br /&gt;Next configure the gateway for routing between two interfaces by enabling IP forwarding. First check the current state using:&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-style: italic;"&gt;cat /proc/sys/net/ipv4/ip_forward&lt;/pre&gt;&lt;br /&gt;It will show either a 0 or a 1 where:&lt;br /&gt;&lt;p class="line867"&gt;&lt;span class="anchor" id="line-43"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-44"&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre style="font-style: italic;"&gt;0=disabled&lt;br /&gt;1=enabled&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;p class="line874"&gt;If the value is 0 to enable it run the following command:&lt;/p&gt;&lt;pre style="font-style: italic;"&gt;sudo sh -c "echo 1 &gt; /proc/sys/net/ipv4/ip_forward"&lt;/pre&gt;&lt;p class="line874"&gt;Many webpages mention that to make the above change permanent you need to edit /etc/sysctl.conf and add these lines: &lt;/p&gt;&lt;p class="line867"&gt;&lt;span class="anchor" id="line-49"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-50"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-51"&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre style="font-style: italic;"&gt;net.ipv4.conf.default.forwarding=1&lt;br /&gt;net.ipv4.conf.all.forwarding=1&lt;/pre&gt;&lt;br /&gt;And run the command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;sudo sysctl -p&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That gives the following output:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user@pc:~$ sudo sysctl -p&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;kernel.printk = 4 4 1 7&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;kernel.maps_protect = 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;fs.inotify.max_user_watches = 524288&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;vm.mmap_min_addr = 65536&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;net.ipv4.conf.default.rp_filter = 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;net.ipv4.conf.all.rp_filter = 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user@pc:~$ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You should now see new forward state using cat /proc/sys/net/ipv4/ip_forward and the change should persist after reboot but the sysctl -p didn't work on my case.&lt;br /&gt;&lt;br /&gt;Again another trick, I edited the /etc/rc.local file to execute the change of the ip_forward value on boot. Some people run this with cron every x minutes.. don't know why so often. The rc.local file looks as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user@pc:/etc$ more rc.local &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#!/bin/sh -e&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;sh -c "echo 1 &gt; /proc/sys/net/ipv4/ip_forward"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;exit 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;user@pc:/etc$ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;At this stage you should have a pc that can forward packets from your  eth0 that is the private network to your wlan0 that is the "public" network,  but remember that your pc does not do DHCP or DNS (at least mine, you can set that up too) so I  also set up a DHCP server on an old Cisco 805 router, set the IP of the router to 192.168.1.2 and added a dhcp server config as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ip dhcp excluded-address 192.168.1.1                                                                              &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ip dhcp excluded-address 192.168.1.2                                                                              &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;!                                                                                                                 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ip dhcp pool mynetwork                                                                                            &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;   network 192.168.1.0 255.255.255.0                                                                              &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;   default-router 192.168.1.1                                                                                     &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;   dns-server 192.168.0.1                                                                                         &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;!   &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Where 192.168.1.1 is the ip of my Ubuntu PC and 192.168.1.2 is the ip assigned to the Cisco router.&lt;br /&gt;&lt;br /&gt;Why use the Cisco switch? Is it really necessary? No it is not. I know that the ubuntu desktop could also be the dhcp server, and dns server or forward the dns setup of my isp but this gives me a reason to start playing with cisco routers. Next plan is to connect it to a 1700, a pc on that end access the internet from it.&lt;br /&gt;&lt;br /&gt;The following link - where I copied this from - shows the step mentioned above and gives more examples and a better explanation about it:&lt;br /&gt;&lt;a href="https://help.ubuntu.com/community/Internet/ConnectionSharing?action=show&amp;amp;redirect=InternetConnectionSharing"&gt;https://help.ubuntu.com/community/Internet/ConnectionSharing?action=show&amp;amp;redirect=InternetConnectionSharing&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and&lt;br /&gt;&lt;br /&gt;&lt;a href="https://help.ubuntu.com/community/IptablesHowTo"&gt;https://help.ubuntu.com/community/IptablesHowTo&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-7361285261451683733?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/7361285261451683733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=7361285261451683733&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/7361285261451683733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/7361285261451683733'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/06/private-network-with-ubuntu-and-cisco.html' title='Private network with Ubuntu and Cisco router as dhcp server'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-5676233889172327583</id><published>2008-05-06T11:15:00.004+01:00</published><updated>2008-05-06T11:23:21.746+01:00</updated><title type='text'>Cisco Switch 3500XL: password recovery</title><content type='html'>I found one Cisco Catalyst 3500 XL on the storage room, haven't been used for a while therefore we will play with it. After reboot I noticed it has a password (as it should) on it so the first step is to change it (&lt;span style="font-style: italic;"&gt;I am sure the networking guys would not mind :)&lt;/span&gt; )&lt;br /&gt;&lt;br /&gt;The process is as follows:&lt;br /&gt;Cisco official information:&lt;br /&gt;&lt;a href="http://www.cisco.com/warp/public/474/pswdrec_2900xl.html"&gt;http://www.cisco.com/warp/public/474/pswdrec_2900xl.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;My notes:&lt;br /&gt;Turn on the power of the Catalyst 3500XL while pressing the "MODE" button. Wait until the light on port 1 is off (and the rest still on). You should see the following information:&lt;br /&gt;&lt;br /&gt;C3500XL Boot Loader (C3500-HBOOT-M) Version 12.0(5.2)XU, MAINTENANCE INTERIM SOF                                                                             &lt;br /&gt;TWARE  &lt;br /&gt;Compiled Mon 17-Jul-00 18:42 by ayounes                                    &lt;br /&gt;starting...         &lt;br /&gt;Base ethernet MAC Address: 00:04:c1:c4:ed:10&lt;br /&gt;Xmodem file system is available.&lt;br /&gt;&lt;br /&gt;The system has been interrupted prior to initializing the&lt;br /&gt;flash filesystem.  The following commands will initialize&lt;br /&gt;the flash filesystem, and finish loading the operating&lt;br /&gt;system software:&lt;br /&gt;&lt;br /&gt;  flash_init&lt;br /&gt;  load_helper&lt;br /&gt;  boot&lt;br /&gt;&lt;br /&gt;switch: flash_init -&lt;span style="font-style: italic;"&gt;-------------&gt; run the "flash_init" command&lt;/span&gt;&lt;br /&gt;Initializing Flash...&lt;br /&gt;flashfs[0]: 112 files, 3 directories&lt;br /&gt;flashfs[0]: 0 orphaned files, 0 orphaned directories&lt;br /&gt;flashfs[0]: Total bytes: 3612672&lt;br /&gt;flashfs[0]: Bytes used: 2776576&lt;br /&gt;flashfs[0]: Bytes available: 836096&lt;br /&gt;flashfs[0]: flashfs fsck took 3 seconds.&lt;br /&gt;...done Initializing Flash.&lt;br /&gt;Boot Sector Filesystem (bs:) installed, fsid: 3&lt;br /&gt;Parameter Block Filesystem (pb:) installed, fsid: 4&lt;br /&gt;switch: load_helper &lt;span style="font-style: italic;"&gt;--------------&gt; run the "load_helper" command&lt;/span&gt;&lt;br /&gt;switch: dir flash: &lt;span style="font-style: italic;"&gt;--------------&gt; run the "dir flash:" command (colon included)&lt;/span&gt;&lt;br /&gt;Directory of flash:/&lt;br /&gt;&lt;br /&gt;2    -rwx  1645807   &lt;date&gt;               c3500XL-c3h2s-mz-120.5.2-XU.bin &lt;span style="font-style: italic;"&gt;----&gt; current image loaded&lt;/span&gt;&lt;br /&gt;3    -rwx  94680     &lt;date&gt;               c3500XL-diag-mz-120.5.2-XU&lt;br /&gt;4    drwx  6784      &lt;date&gt;               html&lt;br /&gt;111  -rwx  272       &lt;date&gt;               env_vars&lt;br /&gt;112  -rwx  1020      &lt;date&gt;               vlan.dat&lt;br /&gt;114  -rwx  25        &lt;date&gt;               snmpengineid&lt;br /&gt;115  -rwx  5606      &lt;date&gt;               config.txt&lt;br /&gt;116  -rwx  3436      &lt;date&gt;               config.text &lt;span style="font-style: italic;"&gt;----&gt; configuration file loaded&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;836096 bytes available (2776576 bytes used)&lt;br /&gt;switch:&lt;br /&gt;switch: rename flash:config.text flash:config.old  &lt;span style="font-style: italic;"&gt;-----------&gt; backup the current configuration file&lt;/span&gt;&lt;br /&gt;switch: dir flash:&lt;br /&gt;Directory of flash:/&lt;br /&gt;&lt;br /&gt;2    -rwx  1645807   &lt;date&gt;               c3500XL-c3h2s-mz-120.5.2-XU.bin&lt;br /&gt;3    -rwx  94680     &lt;date&gt;               c3500XL-diag-mz-120.5.2-XU&lt;br /&gt;4    drwx  6784      &lt;date&gt;               html&lt;br /&gt;111  -rwx  272       &lt;date&gt;               env_vars&lt;br /&gt;112  -rwx  1020      &lt;date&gt;               vlan.dat&lt;br /&gt;114  -rwx  25        &lt;date&gt;               snmpengineid&lt;br /&gt;115  -rwx  5606      &lt;date&gt;               config.txt&lt;br /&gt;116  -rwx  3436      &lt;date&gt;               config.old&lt;br /&gt;&lt;br /&gt;836096 bytes available (2776576 bytes used)&lt;br /&gt;switch:&lt;br /&gt;&lt;br /&gt;switch: boot   &lt;span style="font-style: italic;"&gt;-----------&gt; run the "boot" to initialize the system. The image will be loaded but no configuration file will be found forcing the system to enter into setup mode.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Loading "flash:c3500XL-c3h2s-mz-120.5.2-XU.bin"...##############################                                                                             &lt;br /&gt;################################################################################                                                                             &lt;br /&gt;#############################################                                          &lt;br /&gt;&lt;br /&gt;File "flash:c3500XL-c3h2s-mz-120.5.2-XU.bin" uncompressed and installed, entry p                                                                             &lt;br /&gt;oint: 0x3000         &lt;br /&gt;executing...         &lt;br /&gt;&lt;br /&gt;            Restricted Rights Legend                                 &lt;br /&gt;&lt;br /&gt;Use, duplication, or disclosure by the Government is                                                 &lt;br /&gt;subject to restrictions as set forth in subparagraph                                                 &lt;br /&gt;(c) of the Commercial Computer Software - Restricted                                                 &lt;br /&gt;Rights clause at FAR sec. 52.227-19 and subparagraph                                                 &lt;br /&gt;(c) (1) (ii) of the Rights in Technical Data and Computer                                                      &lt;br /&gt;Software clause at DFARS sec. 252.227-7013.                                        &lt;br /&gt;&lt;br /&gt;         cisco Systems, Inc.                           &lt;br /&gt;         170 West Tasman Drive                             &lt;br /&gt;         San Jose, California 95134-1706                                       &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cisco Internetwork Operating System Software                                         &lt;br /&gt;IOS (tm) C3500XL Software (C3500XL-C3H2S-M), Vers                                            &lt;br /&gt;TERIM SOFTWARE           &lt;br /&gt;Copyright (c) 1986-2000 by cisco Systems, Inc.                                           &lt;br /&gt;Compiled Mon 17-Jul-00 18:29 by ayounes                                    &lt;br /&gt;Image text-base: 0x00003000, data-base: 0x00301F3C                                               &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Initializing C3500XL flash...                          &lt;br /&gt;flashfs[1]: 112 files, 3 directories                                 &lt;br /&gt;flashfs[1]: 0 orphaned files, 0 orphaned directories                                                 &lt;br /&gt;flashfs[1]: Total bytes: 3612672                             &lt;br /&gt;flashfs[1]: Bytes used: 2776576                            &lt;br /&gt;flashfs[1]: Bytes available: 836096                                &lt;br /&gt;flashfs[1]: flashfs fsck took 3 seconds.                                     &lt;br /&gt;flashfs[1]: Initialization complete.                                 &lt;br /&gt;...done Initializing C3500XL flash.                                &lt;br /&gt;C3500XL POST: System Board Tes                         &lt;br /&gt;C3500XL POST: Daughter Card Test: Passed                                     &lt;br /&gt;C3500XL POST: CPU Buffer Test: Passed                                  &lt;br /&gt;C3500XL POST: CPU Notify RAM Test: Passed                                      &lt;br /&gt;C3500XL POST: CPU Interface Test: Passed                                     &lt;br /&gt;C3500XL POST: Testing Switch Core: Passed                                      &lt;br /&gt;C3500XL POST: Testing Buffer Table: Passed                                       &lt;br /&gt;C3500XL POST: Data Buffer Test: Passed                                   &lt;br /&gt;C3500XL POST: Configuring Switch Parameters: Passed                                                &lt;br /&gt;C3500XL POST: Ethernet Controller Test: Passed                                           &lt;br /&gt;C3500XL POST: MII Test: Passed                           &lt;br /&gt;cisco WS-C3548-XL (PowerPC403) processor (revision 0x01) with 16384K/1024K bytes                                                                             &lt;br /&gt;of memory.        &lt;br /&gt;Processor board ID XXXHNNHHXXX, with hardware revision 0x00                                                        &lt;br /&gt;Last reset from power-on                     &lt;br /&gt;&lt;br /&gt;Processor is running Enterprise Edition Software                                             &lt;br /&gt;Cluster command switch capable                           &lt;br /&gt;Cluster member switch capable                          &lt;br /&gt;48 FastEthernet/IEEE 802.3 interface(s)                                    &lt;br /&gt;2 Gigabit Ethernet/IEEE 802.3 interface(s)                                       &lt;br /&gt;&lt;br /&gt;32K bytes of flash-simulated non-volatile configuration memory.                                                            &lt;br /&gt;Base ethernet MAC Address: 00:04:c1:c4:ed:10                                         &lt;br /&gt;Motherboard assembly number: 73-3903-07                                    &lt;br /&gt;Power supply part number: 34-0971-01                                 &lt;br /&gt;Motherboard serial number: XXXNNNNNXXX                                   &lt;br /&gt;Motherboard serial number: XXXNNNNNXXX                                   &lt;br /&gt;Model revision number: A0&lt;br /&gt;Motherboard revision number: B0&lt;br /&gt;Model number: WS-C3548-XL-EN&lt;br /&gt;System serial number: XXXHNNHHXXX&lt;br /&gt;C3500XL INIT: Complete&lt;br /&gt;&lt;br /&gt;00:00:34: %SYS-5-RESTART: System restarted --&lt;br /&gt;Cisco Internetwork Operating System Software&lt;br /&gt;IOS (tm) C3500XL Software (C3500XL-C3H2S-M), Version 12.0(5.2)XU, MAINTENANCE IN&lt;br /&gt;TERIM SOFTWARE&lt;br /&gt;Copyright (c) 1986-2000 by cisco Systems, Inc.&lt;br /&gt;Compiled Mon 17-Jul-00 18:29 by ayounes&lt;br /&gt;&lt;br /&gt;       --- System Configuration Dialog ---&lt;br /&gt;&lt;br /&gt;At any point you may enter a question mark '?' for help.&lt;br /&gt;Use ctrl-c to abort configuration dialog at any prompt.&lt;br /&gt;Default settings are in square brackets '[]'.&lt;br /&gt;&lt;br /&gt;Continue with configuration dialog? [yes/no]: n &lt;span style="font-style: italic;"&gt;-----------&gt; Enter "n" to not use the configuration dialog&lt;/span&gt;&lt;br /&gt;Press RETURN to get started. &lt;span style="font-style: italic;"&gt;-----------&gt; PRESS ENTER&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Switch&gt;&lt;br /&gt;Switch&gt;enable &lt;span style="font-style: italic;"&gt;-----------&gt; Run the "enable" command to go into Privileged mode.&lt;/span&gt;&lt;br /&gt;Switch#dir flash: &lt;span style="font-style: italic;"&gt;-----------&gt; Check the flash to see the "config.old" file is there.&lt;/span&gt;&lt;br /&gt;Directory of flash:/&lt;br /&gt;&lt;br /&gt;2  -rwx     1645807   Jul 18 2000 01:47:40  c3500XL-c3h2s-mz-120.5.2-XU.bin&lt;br /&gt;3  -rwx       94680   Jul 18 2000 01:47:40  c3500XL-diag-mz-120.5.2-XU&lt;br /&gt;4  drwx        6784   Jul 18 2000 01:47:41  html&lt;br /&gt;111  -rwx         272   Jan 01 1970 00:00:21  env_vars&lt;br /&gt;112  -rwx        1020   Mar 08 1993 04:11:03  vlan.dat&lt;br /&gt;114  -rwx          25   Mar 17 2005 13:29:07  snmpengineid&lt;br /&gt;115  -rwx        5606   Mar 01 1993 00:39:03  config.txt&lt;br /&gt;116  -rwx        3436   Mar 08 1993 02:48:59  config.old&lt;br /&gt;&lt;br /&gt;3612672 bytes total (836096 bytes free)&lt;br /&gt;Switch#rename flash:config.old flash:config.text &lt;span style="font-style: italic;"&gt;-----------&gt; Restore the config.old to config.text&lt;/span&gt;&lt;br /&gt;Destination filename [config.text]?&lt;span style="font-style: italic;"&gt; -----------&gt; PRESS ENTER&lt;/span&gt;&lt;br /&gt;Switch#&lt;br /&gt;&lt;br /&gt;Switch#rename flash:config.old flash:config.text                             &lt;br /&gt;Destination filename [config.text]?&lt;br /&gt;Switch#copy flash:config.text system:running-config &lt;span style="font-style: italic;"&gt;-----------&gt; Copy the configuration file into memory&lt;/span&gt;&lt;br /&gt;Destination filename [running-config]? -----------&gt; PRESS ENTER&lt;br /&gt;&lt;br /&gt;Switch#&lt;br /&gt;Switch#&lt;span style="font-style: italic;"&gt; -----------&gt; At this point you can run a "show running" command to check the configuration of the switch&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;witch#config t &lt;span style="font-style: italic;"&gt;-----------&gt; Enter the "config t" command to enter the configuration global mode.&lt;/span&gt;&lt;br /&gt;Enter configuration commands, one per line.  End with CNTL/Z.&lt;br /&gt;Switch(config)#enable secret secret -&lt;span style="font-style: italic;"&gt;----------&gt; change the enable password&lt;/span&gt;&lt;br /&gt;Switch(config)#enable password password  &lt;span style="font-style: italic;"&gt;-----------&gt; change the password password&lt;/span&gt;&lt;br /&gt;Switch(config)#line vty 0 15  &lt;span style="font-style: italic;"&gt;-----------&gt; change the telnet password&lt;/span&gt;&lt;br /&gt;Switch(config-line)#password telnet&lt;br /&gt;Switch(config-line)#login&lt;br /&gt;Switch(config-line)#^Z&lt;br /&gt;Switch#&lt;br /&gt;Switch#config t&lt;br /&gt;Enter configuration commands, one per line.  End with CNTL/Z.&lt;br /&gt;Switch(config)#line con 0&lt;br /&gt;Switch(config-line)#password console  &lt;span style="font-style: italic;"&gt;-----------&gt; change the console password&lt;/span&gt;&lt;br /&gt;Switch(config-line)#^Z&lt;br /&gt;Switch#&lt;br /&gt;Switch#write memory  &lt;span style="font-style: italic;"&gt;-----------&gt; Save configuration into memory&lt;/span&gt;&lt;br /&gt;Building configuration...&lt;br /&gt;Switch#&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Done, reboot the switch and now you have full access.&lt;br /&gt;&lt;/date&gt;&lt;/date&gt;&lt;/date&gt;&lt;/date&gt;&lt;/date&gt;&lt;/date&gt;&lt;/date&gt;&lt;/date&gt;&lt;/date&gt;&lt;/date&gt;&lt;/date&gt;&lt;/date&gt;&lt;/date&gt;&lt;/date&gt;&lt;/date&gt;&lt;/date&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-5676233889172327583?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/5676233889172327583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=5676233889172327583&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/5676233889172327583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/5676233889172327583'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/05/cisco-switch-3500xl-recover-password.html' title='Cisco Switch 3500XL: password recovery'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-536454244812083630</id><published>2008-05-06T08:46:00.003+01:00</published><updated>2008-05-06T08:52:41.877+01:00</updated><title type='text'>Cisco Routers - Basic notes</title><content type='html'>I am playing with Cisco routers now, this are  be my notes:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Internal Components:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;RAM&lt;/span&gt;. Random access memory. This is the working buffer memory.&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;ROM. &lt;/span&gt;Read only memory. contains bootstrap process and basic (most of times) IOS for basic functionality (as recover password)&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;FLASH MEMORY. &lt;/span&gt;Stores full image of IOS.--&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;NVRAN.&lt;/span&gt; non valitle RAM. Does not loose power when turn off. &lt;/li&gt;&lt;li&gt;    - start up configuration file&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Boot process:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;    a. Power on&lt;/li&gt;&lt;li&gt;    b. Power on Self Test (POST) (check memory, and cards).&lt;/li&gt;&lt;li&gt;    c. bootstrap from ROM&lt;/li&gt;&lt;li&gt;    d. looks in FLASH for IOS&lt;/li&gt;&lt;li&gt;    e. loads the IOS into RAM from FLASH&lt;/li&gt;&lt;li&gt;    f. IOS looks for configuration in NVRAM&lt;/li&gt;&lt;li&gt;        f.1 If found it load the IOS into FLASH Memory&lt;/li&gt;&lt;li&gt;        f.2 If not found executes teh auto setup mode (menu driven system).&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Contexts:&lt;/span&gt;&lt;br /&gt;   router&gt; &lt;span style="font-style: italic;"&gt;----&gt; user mode (show config, telnet, basic)&lt;/span&gt;&lt;br /&gt;   router# &lt;span style="font-style: italic;"&gt;----&gt; priviliged mode (show commands, pings, save config, backup)&lt;/span&gt;&lt;br /&gt;   router(config)#&lt;span style="font-style: italic;"&gt; ----&gt; global configuraiton mode (configuration interfaces, security, hostname)&lt;/span&gt;&lt;br /&gt;   Control - Z is to move from global configuration mode to priviliged mode.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Conectivity:&lt;/span&gt;&lt;br /&gt;   console port password &lt;span style="font-style: italic;"&gt;-----&gt; line con 0&lt;/span&gt;&lt;br /&gt;   auxiliary port password &lt;span style="font-style: italic;"&gt;---&gt; line aux 0&lt;/span&gt;&lt;br /&gt;   telnet password &lt;span style="font-style: italic;"&gt;-----------&gt; line vty 0 4 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Set up a passwords:&lt;/span&gt;&lt;br /&gt;On the glboal configuration mode run the following commands to set up a password for the enable command:&lt;br /&gt;&lt;br /&gt;   router(config)# enable password xxxxxxxxxxx (sets the password but it is shown on screen)&lt;br /&gt;   router(config)# enable secret xxxxxxxxxxxxx (sets an encrypted enable password, once secret is enabled password by itself don't work anymore)&lt;br /&gt;&lt;br /&gt;To set up password for different access:&lt;br /&gt;&lt;br /&gt;router#&lt;br /&gt;router(config)#line console 0 | line auxiliary 0 | line vty 0 4&lt;br /&gt;router(config-line)# login (to ask for prompt)&lt;br /&gt;router(config-line)# password xxxxxxxxxxxxx (to set up the passwod)&lt;br /&gt;control-Z&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;To encrypt all passwords runt the following command:&lt;/span&gt;&lt;br /&gt;router(config)service password-encryption&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;To set up a banner:&lt;/span&gt;&lt;br /&gt;router(config)#banner motd $ message message message $&lt;br /&gt;(Note $ is the delimeter and can be anything, just check to have spaces at the end and beginning)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Setting up an IP on an ehternet port:&lt;/span&gt;&lt;br /&gt;A show running-config shows that I have one fastethernet port not configured, set as:&lt;br /&gt;interface FastEthernet0                                                       &lt;br /&gt;no ip address                                                                &lt;br /&gt;shutdown                                                                     &lt;br /&gt;speed auto &lt;br /&gt;&lt;br /&gt;I will change it to:&lt;br /&gt;&lt;br /&gt;interface FastEthernet0                                                       &lt;br /&gt;no ip address                                                                &lt;br /&gt;shutdown                                                                     &lt;br /&gt;speed auto &lt;br /&gt;&lt;br /&gt;To do this run:&lt;br /&gt;&lt;br /&gt;1721-router#config t&lt;span style="font-style: italic;"&gt; ---------&gt; to enter global configuraiton mode                                                          &lt;/span&gt;&lt;br /&gt;Enter configuration commands, one per line.  End with CNTL/Z.                 &lt;br /&gt;1721-router(config)#interface f0&lt;span style="font-style: italic;"&gt;   ----&gt; to enter configuration of fastethernet 0                                            &lt;/span&gt;&lt;br /&gt;1721-router(config-if)#ip address 192.168.1.3 255.255.255.0                   &lt;br /&gt;1721-router(config-if)#no shutdown   &lt;span style="font-style: italic;"&gt;----&gt; to activate                                          &lt;/span&gt;&lt;br /&gt;1721-router(config-if)#                                                       &lt;br /&gt;*Mar  1 07:56:30.838: %LINK-3-UPDOWN: Interface FastEthernet0, changed state top -&lt;span style="font-style: italic;"&gt;---&gt; that means I have physical connectivity&lt;/span&gt;&lt;br /&gt;*Mar  1 07:56:31.838: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEther,change to up ------&gt; &lt;span style="font-style: italic;"&gt;shows I have encapsulation&lt;/span&gt;. Connections to another host.&lt;br /&gt;1721-router#ping 192.168.1.1 &lt;span style="font-style: italic;"&gt;----&gt; to test that is working I ping a pc on the network                                                  &lt;/span&gt;&lt;br /&gt;Type escape sequence to abort.                                                &lt;br /&gt;Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:          &lt;br /&gt;.!!!!                                                                         &lt;br /&gt;Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms           &lt;br /&gt;1721-router#&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;To save the configuration:&lt;/span&gt;&lt;br /&gt;router#copy running-config start-config  -&lt;span style="font-style: italic;"&gt;---&gt; for IOS version 12 and above&lt;/span&gt;&lt;br /&gt;router#write memmory &lt;span style="font-style: italic;"&gt; ---------&gt; before IOS version 12&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;1721-router#copy run star                                                     &lt;br /&gt;Destination filename [startup-config]?                                        &lt;br /&gt;Building configuration...                                                     &lt;br /&gt;[OK]                                                                          &lt;br /&gt;1721-router#&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;To backup config:&lt;/span&gt;&lt;br /&gt;router#copy run tftp &lt;span style="font-style: italic;"&gt;--&gt; this copy the running configuration &lt;span style="font-weight: bold;"&gt;TO&lt;/span&gt; the tftp server (will ask for details)&lt;/span&gt;&lt;br /&gt;router#copy tftp run/start -&lt;span style="font-style: italic;"&gt;-&gt; this copy the running configuration &lt;span style="font-weight: bold;"&gt;FROM&lt;/span&gt; the tftp server (will ask for details)&lt;/span&gt;&lt;br /&gt;(NOT TESTED YET)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;my passwords:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;enable password/secret&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;console console&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;aux aux&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;telnet1-4 telnet&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;telnet0 telnet0&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-536454244812083630?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/536454244812083630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=536454244812083630&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/536454244812083630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/536454244812083630'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/05/cisco-routers-basic-notes.html' title='Cisco Routers - Basic notes'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-1966529434472245330</id><published>2008-05-04T17:57:00.003+01:00</published><updated>2008-05-04T18:16:07.999+01:00</updated><title type='text'>Notes on my D-Link DWL-G520+ with Ubuntu 8.04</title><content type='html'>Don't recall how I install the board, I think that I just plug it in and Ubuntu did it's magic (long gone the days of having to install modules, recompile kernels, etc).&lt;br /&gt;&lt;br /&gt;So the board was recognized but when I tried to log into my wireless network my pc froze, halted, stop working, didn't answer, etc. . The process was quite simple, turn on the pc and on the nm-applet select the essid of my home network. Enter the key or passphrase and done.&lt;br /&gt;&lt;br /&gt;The problem starts at this moment, the pc is complete frozen. No mouse, ctrl-alt-backspace, ast-f1/f9, ssh to it, nothing.. no response at all. Therefore the next step was to unplug it and start again but after the 3rd attempt it was obvious that there was a problem somewhere.&lt;br /&gt;&lt;br /&gt;My guess is that the nm-applet is trying to execute itself without sudo therefore a pop up asking for the password should appear but that never happened and the pc goes into frozen mode waiting for somebody/something to enter the sudo password to continue. (at least that is my theory). To go around this what I did was to add the details manually on the configuration file. The steps are below:&lt;br /&gt;&lt;br /&gt;The &lt;span style="color: rgb(0, 0, 255); font-family: Arial; font-size: 85%;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; D-Link DWL-G520+ is recoganized as follows:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;richard:/etc/network$ lspci&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;05:09.0 Network controller: Texas Instruments ACX 111 54Mbps Wireless Interface&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;40:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express (rev 01)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;richard$ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;on /etc/network/interfaces you enter the following settings for your &lt;span style="font-style: italic; font-weight: bold;"&gt;wlan0&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;richard:/etc/network$ more interfaces&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;auto lo&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iface lo inet loopback&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;auto eth0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iface eth0 inet static&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;address 192.168.1.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;netmask 255.255.255.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;gateway 192.168.1.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;auto wlan0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iface wlan0 inet dhcp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;wireless-key &lt;ascii&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;wireless-essid    &lt;name_of_essid&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;richard:/etc/network$ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Finally you restart you network devices:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;sudo /etc/init.d/networking restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and done.. that connects you to your home wireless network. (forget about the eht0, that is for something else).&lt;br /&gt;&lt;br /&gt;If somebody reads this, follow it as last resource. Google quite a lot first and when you find the correct solution let me know.&lt;br /&gt;&lt;br /&gt;good luck.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-1966529434472245330?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/1966529434472245330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=1966529434472245330&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/1966529434472245330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/1966529434472245330'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/05/notes-on-my-d-link-dwl-g520-with-ubuntu.html' title='Notes on my D-Link DWL-G520+ with Ubuntu 8.04'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-5697629975374530751</id><published>2008-05-04T17:00:00.005+01:00</published><updated>2008-05-05T11:54:18.503+01:00</updated><title type='text'>Tips to register to freenode irc (ubuntu and asterisk)</title><content type='html'>Notes from http://www.wikihow.com/Register-a-User-Name-on-Freenode&lt;br /&gt;&lt;br /&gt;1. Join the Freenode network. Open your favorite IRC client and type:&lt;br /&gt;/server irc.freenode.net&lt;br /&gt;&lt;br /&gt;2. Idintfiy your nick.&lt;br /&gt;/msg NickServ IDENTIFY  &lt;password&gt;&lt;password&gt;&lt;br /&gt;&lt;br /&gt;3. Change your user name to the user name you have chosen. Suppose you chose the nick "rocketship". Type the following in the window titled Freenode:&lt;br /&gt;/nick rocketship&lt;br /&gt;&lt;br /&gt;4. Register your nick or user name. Type the following command and replace "your_password" with a password that will be easy to remember.&lt;br /&gt;/msg nickserv register your_password&lt;br /&gt;&lt;br /&gt;5. Associate a valid email address with your user name. This step is important because it will allow you to assign a new password in case you forget the current one. Type the following:&lt;br /&gt;/msg nickserv set email your-email&lt;br /&gt;&lt;br /&gt;If you want your email address to remain private, use the following command:&lt;br /&gt;/msg nickserv set hide email on&lt;br /&gt;&lt;br /&gt;6. Register an alternate nickname using the same password. If you would like to register an alternate nickname, repeat the same procedure, using steps 2 to 4.&lt;br /&gt;&lt;br /&gt;7. Link your two user names. This will make your two nicknames function as one in various ways. For example, you will not have to sign in each time you wish to change your nickname. Many people change their nicknames to a variant that indicates that they are absent. The linked nicknames will also share memos (messages sent through MemoServ), access to channels, etc. Type the following, when you are using your secondary nickname:&lt;br /&gt;/msg nickserv link your_primary_nick your_password&lt;br /&gt;&lt;br /&gt;8. Identify with Nickserv. Each time you connect, you should sign in, or "identify" yourself, using the following command:&lt;br /&gt;/msg nickserv identify your_password&lt;br /&gt;&lt;br /&gt;ragblogin+unitedkingdon+argentina&lt;/password&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-5697629975374530751?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/5697629975374530751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=5697629975374530751&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/5697629975374530751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/5697629975374530751'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/05/tips-to-register-to-freenode-irc-ubuntu.html' title='Tips to register to freenode irc (ubuntu and asterisk)'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-4328748174784343925</id><published>2008-04-27T14:18:00.002+01:00</published><updated>2008-04-27T14:20:46.994+01:00</updated><title type='text'>How to Play Encrypted DVDs in Hardy</title><content type='html'>In order to play DVDs you need to install the Medibuntu Repository and a couple of packages. &lt;p&gt;&lt;br /&gt;This will add the Medibuntu repository to your repository lists&lt;br /&gt;In a terminal type:&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then you have to add the GPG Key to authentic the packages&lt;br /&gt;In a terminal type:&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now update your system to load the Medibuntu repository into your apt-get sources&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;sudo apt-get update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Download the DVDs playback packages&lt;br /&gt;In a terminal type:&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;sudo apt-get install libdvdcss2  libdvdread3&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-size: 78%;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-4328748174784343925?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/4328748174784343925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=4328748174784343925&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/4328748174784343925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/4328748174784343925'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/04/how-to-play-encrypted-dvds-in-hardy.html' title='How to Play Encrypted DVDs in Hardy'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-367367335197916887</id><published>2008-04-25T16:35:00.002+01:00</published><updated>2008-04-25T16:40:58.384+01:00</updated><title type='text'>Read usb pen drive on ubuntu server</title><content type='html'>Insert pen drive and cehck the file below to see how the USB stick is being recognized:&lt;br /&gt;&lt;br /&gt;sudo vi /var/log/messages&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Apr 25 17:46:29 lmnuknet03 kernel: [19465.773928] usb 4-5: new high speed USB device using ehci_hcd and address 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Apr 25 17:46:29 lmnuknet03 kernel: [19465.927909] usb 4-5: configuration #1 chosen from 1 choice&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Apr 25 17:46:29 lmnuknet03 kernel: [19465.993713] usbcore: registered new interface driver libusual&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Apr 25 17:46:29 lmnuknet03 kernel: [19466.008173] Initializing USB Mass Storage driver...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Apr 25 17:46:29 lmnuknet03 kernel: [19466.010379] scsi4 : SCSI emulation for USB Mass Storage devices&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Apr 25 17:46:29 lmnuknet03 kernel: [19466.011834] usbcore: registered new interface driver usb-storage&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Apr 25 17:46:29 lmnuknet03 kernel: [19466.011843] USB Mass Storage support registered.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Apr 25 17:46:34 lmnuknet03 kernel: [19470.992039] scsi 4:0:0:0: Direct-Access     Kingston DataTraveler 2.0 PMAP PQ: 0 ANSI: 0 CCS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Apr 25 17:46:35 lmnuknet03 kernel: [19471.530326] sd 4:0:0:0: [sdb] 977664 512-byte hardware sectors (501 MB)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Apr 25 17:46:35 lmnuknet03 kernel: [19471.531203] sd 4:0:0:0: [sdb] Write Protect is off&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Apr 25 17:46:35 lmnuknet03 kernel: [19471.533813] sd 4:0:0:0: [sdb] 977664 512-byte hardware sectors (501 MB)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Apr 25 17:46:35 lmnuknet03 kernel: [19471.534442] sd 4:0:0:0: [sdb] Write Protect is off&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Apr 25 17:46:35 lmnuknet03 kernel: [19471.534473]  &lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;sdb: sdb1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Apr 25 17:46:35 lmnuknet03 kernel: [19471.535263] sd 4:0:0:0: [sdb] Attached SCSI removable disk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Apr 25 17:46:35 lmnuknet03 kernel: [19471.535315] sd 4:0:0:0: Attached scsi generic sg2 type 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Create a directory where to mount the drive.  Example is:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$mkdir /tmp/pen&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Mount the pen drive on the new directory:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$sudo mount /dev/sdb1 -t auto /tmp/pen&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Access the files:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;$cd /tmp/pen&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-367367335197916887?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/367367335197916887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=367367335197916887&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/367367335197916887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/367367335197916887'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/04/read-usb-pen-drive-on-ubuntu-server.html' title='Read usb pen drive on ubuntu server'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-7027958615378836442</id><published>2008-04-25T16:30:00.003+01:00</published><updated>2008-04-25T16:35:46.979+01:00</updated><title type='text'>Tftp server ubuntu</title><content type='html'>Install TFTT application:&lt;br /&gt;&lt;br /&gt;apt-get install tftpd-hpa&lt;br /&gt;&lt;br /&gt;Edit the following file as follows:&lt;br /&gt;&lt;br /&gt;$sudo vi /etc/default/tftpd-hpa&lt;br /&gt;# /etc/default/tftpd-hpa&lt;br /&gt;RUN_DAEMON="yes" -----&gt; CHANGED FROM "NO"&lt;br /&gt;OPTIONS="-l -s /home/pxetero/"&lt;br /&gt;&lt;br /&gt;Start the process:&lt;br /&gt;&lt;br /&gt;$sudo /etc/init.d/tftpd-hpa start&lt;br /&gt;&lt;br /&gt;Check the application is set up:&lt;br /&gt;&lt;br /&gt;$sudo /etc/inted.conf&lt;br /&gt;#:BOOT: TFTP Service is provided primarly for booting. Most sites&lt;br /&gt;# run this only on machines as "boot servers".&lt;br /&gt;tftp        dgram    udp    wait    root    /usr/sbin/in.tftpd    /usr/sbin/in.tftpd -s /var/lib/tftpboot&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-7027958615378836442?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/7027958615378836442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=7027958615378836442&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/7027958615378836442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/7027958615378836442'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/04/tftp-server-ubuntu.html' title='Tftp server ubuntu'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-38309940680990807</id><published>2008-04-17T23:53:00.008+01:00</published><updated>2008-04-23T19:24:57.054+01:00</updated><title type='text'>ntpadate/nagios</title><content type='html'>Just a couple of notes..&lt;br /&gt;&lt;br /&gt;Nagios --&gt; after changes run:&lt;br /&gt;&lt;br /&gt;582  /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg&lt;br /&gt;583  /etc/init.d/nagios restart&lt;br /&gt;&lt;br /&gt;Ntpdate --&gt; run&lt;br /&gt;&lt;br /&gt;595  ntpdate xxx.xxx.xxx.xxx&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Nagios --&gt; Configure Nagios to automatically start when the system boots.&lt;/p&gt; &lt;p&gt;#ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios&lt;/p&gt;&lt;br /&gt;Nagios --&gt; add users&lt;br /&gt;a) create the user&lt;br /&gt; htpasswd /usr/local/nagios/etc/htpasswd.users username&lt;username&gt;&lt;username&gt;&lt;username&gt;&lt;br /&gt;b) give rights to see hosts/services/etc.&lt;br /&gt; vi  /usr/local/nagios/etc/cfig.cfg&lt;/username&gt;&lt;/username&gt;&lt;/username&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-38309940680990807?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/38309940680990807/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=38309940680990807&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/38309940680990807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/38309940680990807'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/04/ntpadatenagios.html' title='ntpadate/nagios'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-1872522605492279888</id><published>2008-02-14T17:11:00.004Z</published><updated>2008-02-14T17:48:14.196Z</updated><title type='text'>Asterisk TTS example on 1.4</title><content type='html'>Following previous posts the following examples can be use to test the usage of TTS from the dialplan in Asterisk.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example 1:&lt;/span&gt;&lt;br /&gt;We set up small script that will be executed from the Asterisk dialplan. This script will take as parameter the text that will be transform to a wav file to later be played.&lt;br /&gt;&lt;br /&gt;On &lt;span style="font-style: italic;"&gt;extensions.conf&lt;/span&gt; configure the following extensions:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;exten =&gt; 1222,1,Answer()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;exten =&gt; 1222,n,Set(TEST="Welcome to TTS example")&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;exten =&gt; 1222,n,System(/tmp/test2.sh ${TEST})&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;exten =&gt; 1222,n,Playback(/tmp/test)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;exten =&gt; 1222,n,Hangup()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On /tmp/test2.sh (add necessary rights to the file) configure the following shell script:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#delete any previous file&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/bin/rm -rf /tmp/test.wav&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#Convert the text to a wav file&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/opt/swift/bin/swift -o /tmp/test.wav -p audio/sampling-rate=8000,audio/channels=1 "    $@"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#Don't run sox until swift is done&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;wait&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/usr/bin/sox /tmp/test.wav /tmp/newtest.wav trim 7.5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#copy the old file with the trimmed file&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/bin/cp /tmp/newtest.wav /tmp/test.wav&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Sox is an application that allows you manipulate/convert audio files from the command line. The page with information about it is http://sox.sourceforge.net/. The installation is quite simple on Debian "apt-get install sox".&lt;br /&gt;&lt;br /&gt;The content of the asterisk variable ${TEST} is send as parameters of the shell script. The script uses $1...$n as parameters but you can use $@ to use all the parameters sent. (there must be a better way!! to do this). The following line convert the text into a wav file and save it as /tmp/test.wav.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; /opt/swift/bin/swift -o /tmp/test.wav -p audio/sampling-rate=8000,audio/channels=1 "    $@"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Once we run it we use sox to trim the first 7.5 seconds of the file that we don't need for this test. This creates a new file named newtest.wav (original no?)&lt;br /&gt;&lt;br /&gt;Finally we rename the file to the original name and is later played by asterisk dialplan with the command "&lt;span style="font-style: italic;font-family:courier new;font-size:85%;"  &gt;exten =&gt; 1222,n,Playback(/tmp/test)&lt;/span&gt;"&lt;br /&gt;&lt;br /&gt;Note this is just a demo/test/proof of concept. For production you should buy some licenses and evaluate the usage of the app_swift from Asterisk to improve this.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example2:&lt;/span&gt;&lt;br /&gt;Using the example below we create a demo "time of the day" service.&lt;br /&gt;&lt;br /&gt;The configuration of the &lt;span style="font-weight: bold;"&gt;extensions.conf&lt;/span&gt; file is pretty much the same but we remove the commands to send a text to it.&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;exten =&gt; 1222,1,Answer()&lt;br /&gt;exten =&gt; 1222,n,System(/tmp/test2.sh)&lt;br /&gt;exten =&gt; 1222,n,Playback(/tmp/test)&lt;br /&gt;exten =&gt; 1222,n,Hangup()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The script only has the details to get the different elements of the date from the unix system and concatenate them on a single string to be converted to wav file later by swift. The shell looks like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;hour=`date +'%l'`&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;am=`date +'%p'`&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;minute=`date +'%M'`&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;day=`date +'%d'`&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;month=`date +'%B'`&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;year=`date '+20%y'`&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;texto="The current time is &lt;say-as as="\" format="\"&gt; $hour:$minute $am &lt;/say-as&gt;. Today is the &lt;say-as as="\" format="\"&gt;$month-$day-$year&lt;/say-as&gt; "&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#delete any previous file&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/bin/rm -rf /tmp/test.wav&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#Convert the text to a wav file&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/opt/swift/bin/swift -o /tmp/test.wav -p audio/sampling-rate=8000,audio/channels=1 "    $texto"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#Don't run sox until swift is done&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;wait&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/usr/bin/sox /tmp/test.wav /tmp/newtest.wav trim 7.5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#copy the old file with the trimmed file&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/bin/cp /tmp/newtest.wav /tmp/test.wav&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The played TTS can be improved to make it more user friendly.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-family:courier new;"&gt;Other date options:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;man strftime&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%A is replaced by the locale's full weekday name.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%a is replaced by the locale's abbreviated weekday name.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%B is replaced by the locale's full month name.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%b or %h is replaced by the locale's abbreviated month name.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%C is replaced by the century (a year divided by 100 and truncated to an integer) as a decimal number (00-99).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%c is replaced by the locale's appropriate date and time representation.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%D is replaced by the date in the format ``%m/%d/%y''.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%d is replaced by the day of the month as a decimal number (01-31).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%e is replaced by the day of month as a decimal number (1-31); single digits are preceded by a blank.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%H is replaced by the hour (24-hour clock) as a decimal number (00-23).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%I is replaced by the hour (12-hour clock) as a decimal number (01-12).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%j is replaced by the day of the year as a decimal number (001-366).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%k is replaced by the hour (24-hour clock) as a decimal number (0-23); single digits are preceded by a blank.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%l is replaced by the hour (12-hour clock) as a decimal number (1-12); single digits are preceded by a blank.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%M is replaced by the minute as a decimal number (00-59).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%m is replaced by the month as a decimal number (01-12).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%n is replaced by a newline.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%p is replaced by the locale's equivalent of either ``AM'' or ``PM''.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%R is replaced by the time in the format ``%H:%M''.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%r is replaced by the locale's representation of 12-hour clock time using AM/PM notation.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%T is replaced by the time in the format ``%H:%M:%S''.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%t is replaced by a tab.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%S is replaced by the second as a decimal number (00-60).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%s is replaced by the number of seconds since the Epoch, UCT (seemktime(3)).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%U is replaced by the week number of the year (Sunday as the first day of the week) as a decimal number (00-53).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%u is replaced by the weekday (Monday as the first day of the week) as a decimal number (1-7).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%V is replaced by the week number of the year (Monday as the first day of the week) as a decimal number (01-53). If the week containing January 1 has four or more days in the new year, then it is week 1; otherwise it is week 53 of the previous year, and the next week is week 1.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%W is replaced by the week number of the year (Monday as the first day of the week) as a decimal number (00-53).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%w is replaced by the weekday (Sunday as the first day of the week) as a decimal number (0-6).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%X is replaced by the locale's appropriate time representation.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%x is replaced by the locale's appropriate date representation.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%Y is replaced by the year with century as a decimal number.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%y is replaced by the year without century as a decimal number (00-99).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%Z is replaced by the time zone name.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;%% is replaced by `%'.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-1872522605492279888?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/1872522605492279888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=1872522605492279888&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/1872522605492279888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/1872522605492279888'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/02/asterisk-tts-example-on-14.html' title='Asterisk TTS example on 1.4'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-5147223375890849594</id><published>2008-02-14T15:54:00.004Z</published><updated>2008-02-14T16:15:33.135Z</updated><title type='text'>Cepstral Allison on Asterisk 1.4 Test</title><content type='html'>Download the Ceptrals voice of your preference and system. I like Allison particularly better than the UK one.&lt;br /&gt;&lt;br /&gt;Do the download on /usr/src.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;font-size:85%;" &gt;lmntel01:/usr/src# wget http://downloads.cepstral.com/cepstral/i386-linux/Cepstral_Allison_i386-linux_4.2.1.tar.gz&lt;br /&gt;--22:01:46--  http://downloads.cepstral.com/cepstral/i386-linux/Cepstral_Allison_i386-linux_4.2.1.tar.gz&lt;br /&gt;        =&gt; `Cepstral_Allison_i386-linux_4.2.1.tar.gz'&lt;br /&gt;Resolving downloads.cepstral.com... 216.92.127.89&lt;br /&gt;Connecting to downloads.cepstral.com|216.92.127.89|:80... connected.&lt;br /&gt;HTTP request sent, awaiting response... 200 OK&lt;br /&gt;Length: 107,474,833 (102M) [application/x-tar]&lt;br /&gt;&lt;br /&gt;100%[========================================&gt;] 107,474,833    1.15M/s    ETA 00:00&lt;br /&gt;&lt;br /&gt;22:03:26 (1.03 MB/s) - `Cepstral_Allison_i386-linux_4.2.1.tar.gz' saved [107474833/107474833]&lt;br /&gt;&lt;br /&gt;lmntel01:/usr/src#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Untar the file and enter the directory:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: arial;"&gt;lmntel01:/usr/src#tar -xzvf Cepstral_Allison_i386-linux_4.2.1.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;lmntel01:/usr/src#cd Cepstral_Allison_i386-linux_4.2.1&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Execute the installation script:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;lmntel01:/usr/src/Cepstral_Allison_i386-linux_4.2.1/#./install.sh&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The installation process goes like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;license&gt;&lt;/license&gt;&lt;/span&gt;&lt;license bla=""&gt;&lt;span style="font-family: arial;font-size:85%;" &gt;Do you agree to these terms?  Enter -yes- to continue: yes&lt;br /&gt;&lt;br /&gt;Install into what directory? [/opt/swift]&lt;br /&gt;&lt;br /&gt;Swift will be installed in the following directories:&lt;br /&gt;&lt;br /&gt;Voices in /opt/swift/voices&lt;br /&gt;Shared libraries in /opt/swift/lib&lt;br /&gt;Binaries in /opt/swift/bin&lt;br /&gt;Configuration file in /opt/swift/etc&lt;br /&gt;Header files in /opt/swift/include&lt;br /&gt;Examples in /opt/swift/examples&lt;br /&gt;Sound effects filters in /opt/swift/sfx&lt;br /&gt;Documentation in /opt/swift/doc&lt;br /&gt;&lt;br /&gt;Is this acceptable?  Enter 'yes' to continue: yes&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Installing libraries...&lt;br /&gt;&lt;br /&gt;***************************************************************************&lt;br /&gt;If you are installing Swift system-wide, you may need to add the following&lt;br /&gt;line to /etc/ld.so.conf and run ldconfig as root:&lt;br /&gt;&lt;br /&gt; /opt/swift/lib&lt;br /&gt;&lt;br /&gt;(Otherwise, you will need to add it to the LD_LIBRARY_PATH environment&lt;br /&gt;variable in order to run programs linked against the Swift libraries.)&lt;br /&gt;***************************************************************************&lt;br /&gt;&lt;br /&gt;Installing voice Allison...&lt;br /&gt;&lt;br /&gt;Creating configuration...&lt;br /&gt;&lt;br /&gt;Installing binaries...&lt;br /&gt;Installing symbolic link to swift...&lt;br /&gt;Installing man page...&lt;br /&gt;&lt;br /&gt;Setting permissions...&lt;br /&gt;&lt;br /&gt;Testing the installed swift binary...&lt;br /&gt;/opt/swift/bin/swift -o /dev/null 'hello world'&lt;br /&gt;&lt;br /&gt;***************************************************************************&lt;br /&gt;****************** Installation Completed Successfully! *******************&lt;br /&gt;***************************************************************************&lt;br /&gt;&lt;br /&gt;lmntel01:/usr/src/Cepstral_Allison_i386-linux_4.2.1/#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After this you &lt;span style="font-weight: bold;"&gt;must restart Asterisk&lt;/span&gt; and after the reboot to confirm the installation run the command below and check the outpu.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;lmntel01:/usr/src/Cepstral_Allison_i386-linux_4.2.1/#asterisk -rx "core show application swift"&lt;br /&gt;&lt;br /&gt;-= Info about application 'Swift' =-&lt;br /&gt;&lt;br /&gt;[Synopsis]&lt;br /&gt;Speak text through Swift text-to-speech engine.&lt;br /&gt;&lt;br /&gt;[Description]&lt;br /&gt;Swift(text) Speaks the given text through the Swift TTS engine.&lt;br /&gt;Returns -1 on hangup or 0 otherwise. User can exit by pressing any key.&lt;br /&gt;&lt;br /&gt; -- Remote UNIX connection&lt;br /&gt;rbast:~/Cepstral_Allison_i386-linux_4.2.1#&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Also you can generate a TTS wav file on the command line by running:&lt;br /&gt;&lt;br /&gt;To test the installation you can:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;/opt/swift/bin/swift -o /tmp/test.wav -p audio/sampling-rate=8000,audio/channels=1 "This is a test."&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And finally just create an extension on the context of your choice to play it:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;exten =&gt; 1234,1,Answer()&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;exten =&gt; 1234,2,Playback(/tmp/test)&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;exten =&gt; 1234,3,Hangup()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You will notice that as there is not a license for this package you will hear an introduction message asking you to buy a license on Cepstral web site.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/license&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-5147223375890849594?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/5147223375890849594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=5147223375890849594&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/5147223375890849594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/5147223375890849594'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/02/cepstral-allison-on-asterisk-14-test.html' title='Cepstral Allison on Asterisk 1.4 Test'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-3681209155641535741</id><published>2008-02-09T01:32:00.000Z</published><updated>2008-02-09T01:41:51.258Z</updated><title type='text'>Asterisk Voicemail - Quick Exim4 notes</title><content type='html'>After installing asterisk I set up the voicemail configuration. First un apt-get install exim4 and then run pkg-reconfigure exim4-config and follow the instructions. &lt;br /&gt;&lt;br /&gt;After the configuration exim4 should restart itself but if not use /etc/init.d/exim4 restart.&lt;br /&gt;&lt;br /&gt;Configure the voicemail.conf file as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;[general]&lt;br /&gt;format=wav&lt;br /&gt;serveremail=asterisk&lt;br /&gt;attach=yes&lt;br /&gt;skipms=3000&lt;br /&gt;maxsilence=10&lt;br /&gt;silencethreshold=128&lt;br /&gt;maxlogins=3&lt;br /&gt;pbxskip=yes&lt;br /&gt;fromstring=Voicemail&lt;br /&gt;emailbody=Dear ${VM_NAME}:\n\n\tjust wanted to let you know you were just left a ${VM_DUR} long message (number ${VM_MSGNUM})\nin mailbox ${VM_MAILBOX} from ${VM_CALLERID}, on ${VM_DATE}. The message is attached.  Thanks!\n\n\t\t\t\t\n&lt;br /&gt;emaildateformat=%A, %B %d, %Y at %r&lt;br /&gt;sendvoicemail=no&lt;br /&gt;delete=yes&lt;br /&gt;&lt;br /&gt;[zonemessages]&lt;br /&gt;eastern=America/New_York|'vm-received' Q 'digits/at' IMp&lt;br /&gt;central=America/Chicago|'vm-received' Q 'digits/at' IMp&lt;br /&gt;central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'&lt;br /&gt;military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'&lt;br /&gt;european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM&lt;br /&gt;&lt;br /&gt;[default]&lt;br /&gt;89300 =&gt; 89300,User1,user1@mailserver.com&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now on Sip.con add the mailbox line (mailbox account and context of voicemail.conf)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;[89300]&lt;br /&gt;type=friend&lt;br /&gt;regexten=89300&lt;br /&gt;context=default&lt;br /&gt;mailbox=89300@default&lt;br /&gt;secret=89300&lt;br /&gt;username=89300&lt;br /&gt;callerid="User1" &lt;89300&gt;&lt;br /&gt;host=dynamic&lt;br /&gt;nat=yes&lt;br /&gt;canreinvite=no&lt;br /&gt;disallow=all&lt;br /&gt;allow=alaw&lt;br /&gt;allow=ulaw&lt;br /&gt;dtmfmode=inband&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Finally on extensions.conf set each SIP extensions (will use macros later) to wait for 20 seconds and go to Voicemails as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;[default]&lt;br /&gt;exten =&gt; 89300,1,Dial(SIP/89300,20)&lt;br /&gt;exten =&gt; 89300,2,VoiceMail(89300@default)&lt;br /&gt;exten =&gt; 89300,3,PlayBack(vm-goodbye)&lt;br /&gt;exten =&gt; 89300,4,HangUp()&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-3681209155641535741?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/3681209155641535741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=3681209155641535741&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/3681209155641535741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/3681209155641535741'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/02/asterisk-voicemail-quick-exim4-notes.html' title='Asterisk Voicemail - Quick Exim4 notes'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-2296124581097639489</id><published>2008-02-08T19:42:00.000Z</published><updated>2008-02-08T21:59:43.952Z</updated><title type='text'>Set H323 trunk between Asterisk and Avaya</title><content type='html'>Once asterisk and H323 is installed (previous post)  follow the below configuration files to have the ip trunk up and running do the following configuration:&lt;br /&gt;&lt;br /&gt;Setup h323.conf, sip.conf and extensions.conf as the examples below:&lt;br /&gt;&lt;br /&gt;The h323.conf just defines the link between the Avaya and the Asterisk server.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/etc/asterisk/h323.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;; The NuFone Network's&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;;&lt;br /&gt;Open H.323 driver configuration&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;[general]&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;port = 1720&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;bindaddr = 192.168.58.227&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;disallow=all&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;allow=alaw             &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;dtmfmode=inband&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;gatekeeper = DISABLE&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;context=default&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;progress_setup = 8&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;progress_alert = 8&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;h245tunneling=yes&lt;/span&gt;&lt;span style="font-size:85%;"&gt;  &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;&lt;br /&gt;[Avaya]&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;type=friend&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;context=default&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;host&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;=192.168.58.216&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;port=1720&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;disallow=all&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;allow=alaw,g729,gsm,slinear&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On sip.conf I set two demo extensions 89301 and 89300. This are numbers similar to my Avaya extension range and they also match a DDI range.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/etc/asterisk/sip.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;[general]&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;context=default                 &lt;/span&gt; &lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;allowoverlap=no                 &lt;/span&gt; &lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;bindport=5060                   &lt;/span&gt; &lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;bindaddr=0.0.0.0                &lt;/span&gt; &lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;srvlookup=yes                   &lt;/span&gt;   &lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;&lt;br /&gt;[89300]&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;type=friend&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;regexten=89300&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;context=default&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;secret=89300&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;username=89300&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;callerid="User1" &lt;89300&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;host=dynamic&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;nat=yes&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;canreinvite=no&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;disallow=all&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;allow=alaw&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;allow=ulaw&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;dtmfmode=inband&lt;/span&gt;&lt;span style="font-size:85%;"&gt;  &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;&lt;br /&gt;[&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;89301]&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;type=friend&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;regexten=89301&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;context=default&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;secret=89301&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;username=89301&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;callerid="User2" &lt;89301&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;host=dynamic&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;nat=yes&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;canreinvite=no&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;disallow=all&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;allow=alaw&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;allow=ulaw&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;dtmfmode=inband&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;On extensions.con I set up a basic dial plan to send sip calls to each sip phone and calls from the sip phones to the Avaya system.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/etc/asterisk/extensions.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;; extensions.conf - the Asterisk dial plan&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;[general]&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;static=yes&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;writeprotect=no&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;autofallthrough=yes&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;clearglobalvars=no&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;[globals]&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;TRUNKMSD=1&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;[default]&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;;Simple direct to sip extensions&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;exten =&gt; 89300,1,Dial(SIP/89300)&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;exten =&gt; 89301,1,Dial(SIP/89301)&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;;Simple  rule to divert all calls from Sip extensions to Avaya extensions and External numbers on PSTN.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;exten =&gt; _8XXXX,1,Dial(H323/${EXTEN}@Avaya); Avaya Extension&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;exten =&gt; _90ZXXXXXXXXX,1,Dial(H323/${EXTEN}@Avaya); External National UK Number&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Configure the Avaya side:&lt;br /&gt;&lt;br /&gt;The first thing to check is to see if you have the following:&lt;br /&gt;    a.  On &lt;span style="font-weight: bold; font-style: italic;"&gt;system-parameters customer-options  &lt;/span&gt;in the second page you must have enough &lt;span style="font-weight: bold; font-style: italic;"&gt;Maximum Administered H.323 Trunks&lt;/span&gt; to use.&lt;br /&gt;    b.  A CLAN to use.&lt;br /&gt;    b. A MEDPRO to use.&lt;br /&gt;&lt;br /&gt;Note that my Avaya PBX is a CM version 3.1.2, there might be other requirements that I might be missing.&lt;br /&gt;&lt;br /&gt;1) Set up the names of the Avaya CLAN and the Asterisk server on node-names ip&lt;br /&gt;(in the image below lmntel01 would be my Asterisk ip address and 192.168.58.216 my clan address)&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_mPIx1MFtaGw/R6zB7fqqdOI/AAAAAAAAAHU/-SDDBpeFW2I/s1600-h/1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_mPIx1MFtaGw/R6zB7fqqdOI/AAAAAAAAAHU/-SDDBpeFW2I/s400/1.png" alt="" id="BLOGGER_PHOTO_ID_5164716100544001250" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2) Below are the details of my CLAN, note the network region defined. In this case 6.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6zDZvqqdUI/AAAAAAAAAIE/2-qFPd0Q50Q/s1600-h/7.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6zDZvqqdUI/AAAAAAAAAIE/2-qFPd0Q50Q/s400/7.png" alt="" id="BLOGGER_PHOTO_ID_5164717719746671938" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3) The configuration of the CLAN is shown below:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6zDZvqqdVI/AAAAAAAAAIM/TBb3i9Cdbag/s1600-h/8.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6zDZvqqdVI/AAAAAAAAAIM/TBb3i9Cdbag/s400/8.png" alt="" id="BLOGGER_PHOTO_ID_5164717719746671954" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;4) The network region 6 has the following configuration:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6zDovqqdWI/AAAAAAAAAIU/WGxoQQ9vy6w/s1600-h/9.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6zDovqqdWI/AAAAAAAAAIU/WGxoQQ9vy6w/s400/9.png" alt="" id="BLOGGER_PHOTO_ID_5164717977444709730" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_mPIx1MFtaGw/R6zDpfqqdXI/AAAAAAAAAIc/npfx3QOfPtk/s1600-h/10.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_mPIx1MFtaGw/R6zDpfqqdXI/AAAAAAAAAIc/npfx3QOfPtk/s400/10.png" alt="" id="BLOGGER_PHOTO_ID_5164717990329611634" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6zDpvqqdYI/AAAAAAAAAIk/MCK5RbVwx0w/s1600-h/11.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6zDpvqqdYI/AAAAAAAAAIk/MCK5RbVwx0w/s400/11.png" alt="" id="BLOGGER_PHOTO_ID_5164717994624578946" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;c) The network region 6 has defined ip-codec 6 taht has the following codecs &lt;span style="font-style: italic;"&gt;(&lt;span style="font-weight: bold;"&gt;NOTE:&lt;/span&gt; the use of this codecs is due system configuration/hardware limitiations. You should try to use something else than G729)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mPIx1MFtaGw/R6zDp_qqdZI/AAAAAAAAAIs/TvrfncqNVbE/s1600-h/12.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_mPIx1MFtaGw/R6zDp_qqdZI/AAAAAAAAAIs/TvrfncqNVbE/s400/12.png" alt="" id="BLOGGER_PHOTO_ID_5164717998919546258" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;d) Now you have to define the IP Trunk and IP Signaling group. You have to create both on sync, below just the final output.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mPIx1MFtaGw/R6zDCPqqdPI/AAAAAAAAAHc/9Q12McA7a6A/s1600-h/2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_mPIx1MFtaGw/R6zDCPqqdPI/AAAAAAAAAHc/9Q12McA7a6A/s400/2.png" alt="" id="BLOGGER_PHOTO_ID_5164717316019746034" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mPIx1MFtaGw/R6zDIPqqdQI/AAAAAAAAAHk/hGpIZhEXOeY/s1600-h/3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_mPIx1MFtaGw/R6zDIPqqdQI/AAAAAAAAAHk/hGpIZhEXOeY/s400/3.png" alt="" id="BLOGGER_PHOTO_ID_5164717419098961154" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Note that the Supplementary Service Protocol needs to be set to "a" to allow the passing of call info (extension number, name, etc) from and to the two systems. This will be shown at the end of this post in an Avaya to Asterisk extension call.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mPIx1MFtaGw/R6zDY_qqdRI/AAAAAAAAAHs/-TtfP3LJmk0/s1600-h/4.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_mPIx1MFtaGw/R6zDY_qqdRI/AAAAAAAAAHs/-TtfP3LJmk0/s400/4.png" alt="" id="BLOGGER_PHOTO_ID_5164717706861770002" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mPIx1MFtaGw/R6zDY_qqdSI/AAAAAAAAAH0/hKkyaLsit5A/s1600-h/5.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_mPIx1MFtaGw/R6zDY_qqdSI/AAAAAAAAAH0/hKkyaLsit5A/s400/5.png" alt="" id="BLOGGER_PHOTO_ID_5164717706861770018" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6zDZvqqdTI/AAAAAAAAAH8/UnEFPeYxtTk/s1600-h/6.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6zDZvqqdTI/AAAAAAAAAH8/UnEFPeYxtTk/s400/6.png" alt="" id="BLOGGER_PHOTO_ID_5164717719746671922" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;e) At this stage you should have the H323 IP trunk up and running between the two systems. You might require a busyout of signalig group/trunk to bring it up.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_mPIx1MFtaGw/R6zGhfqqddI/AAAAAAAAAJM/pR6RSLv5vu4/s1600-h/16.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_mPIx1MFtaGw/R6zGhfqqddI/AAAAAAAAAJM/pR6RSLv5vu4/s400/16.png" alt="" id="BLOGGER_PHOTO_ID_5164721151425541586" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6zGhvqqdeI/AAAAAAAAAJU/wZOmwITETEE/s1600-h/17.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6zGhvqqdeI/AAAAAAAAAJU/wZOmwITETEE/s400/17.png" alt="" id="BLOGGER_PHOTO_ID_5164721155720508898" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;f) The next step is to define the routing off calls from the Avaya to the Asterisk box using the new trunk created.&lt;br /&gt;&lt;br /&gt;First I set up on the uniform-dial-plan that all my extensions begining wiht 893xx and 5 digits should use the ARS table. My Avaya dial plan is of 5 digits, and I do an inc-call-handling-trmt to change external DDI to an internal extension. For example 02070189301 is set to the internal number 89301, note that 89301 is NOT an extension that is defined on the Avaya system.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mPIx1MFtaGw/R6zDqPqqdaI/AAAAAAAAAI0/kIpH2Cn4CzU/s1600-h/13.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_mPIx1MFtaGw/R6zDqPqqdaI/AAAAAAAAAI0/kIpH2Cn4CzU/s400/13.png" alt="" id="BLOGGER_PHOTO_ID_5164718003214513570" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Then on the ARS analysis table I defined that the 893xx range should use the route pattern 66. (not sure which call type I have to use, on my test the last one was natl therefore it was left like that).&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6zEAvqqdbI/AAAAAAAAAI8/3WuDCJjX-q8/s1600-h/14.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6zEAvqqdbI/AAAAAAAAAI8/3WuDCJjX-q8/s400/14.png" alt="" id="BLOGGER_PHOTO_ID_5164718389761570226" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Finally the route-pattern 66 is defined using the trunk 66 previously created and that would be all the configuration needed.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mPIx1MFtaGw/R6zEB_qqdcI/AAAAAAAAAJE/HqAEuOB9zn8/s1600-h/15.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_mPIx1MFtaGw/R6zEB_qqdcI/AAAAAAAAAJE/HqAEuOB9zn8/s400/15.png" alt="" id="BLOGGER_PHOTO_ID_5164718411236406722" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;One final step that I had to do was to complete my public-unknown-numbering table. I found on the test that while the extension name was sent to the asterisk server the extension name was not. External calls to the DDI worked fine and the caller number was passed but when calling from an internal extension there was a problem.&lt;br /&gt;&lt;br /&gt;After googling and checking this I found that by setting the first digits of my Avaya extensions and the trunk all the Avaya extensions sent the number to the Asterisk server and were display on the IPSoftphone being used for testing.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6zKLvqqdfI/AAAAAAAAAJc/dN1NJfsw05g/s1600-h/18.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6zKLvqqdfI/AAAAAAAAAJc/dN1NJfsw05g/s400/18.png" alt="" id="BLOGGER_PHOTO_ID_5164725175809897970" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;An example of a call using X-Lite sofphone is below. From extension 84562 on my Avaya PBX I placed a call to extension 89300 on the Asterisk server. The configuration of 84562 is below:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mPIx1MFtaGw/R6zNKPqqdgI/AAAAAAAAAJk/efjQqAiExOc/s1600-h/20.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_mPIx1MFtaGw/R6zNKPqqdgI/AAAAAAAAAJk/efjQqAiExOc/s400/20.png" alt="" id="BLOGGER_PHOTO_ID_5164728448574977538" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can see on the result that the name and the extension number is sent to Asterisk. This is due using Supplementary Service Protocol a on the second page of the trunk 66 definition as mentioned before.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mPIx1MFtaGw/R6zOy_qqdiI/AAAAAAAAAJ0/58j6MHUM--M/s1600-h/19.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_mPIx1MFtaGw/R6zOy_qqdiI/AAAAAAAAAJ0/58j6MHUM--M/s320/19.png" alt="" id="BLOGGER_PHOTO_ID_5164730248166274594" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-2296124581097639489?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/2296124581097639489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=2296124581097639489&amp;isPopup=true' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/2296124581097639489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/2296124581097639489'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/02/set-h323-trunk-between-asterisk-and.html' title='Set H323 trunk between Asterisk and Avaya'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_mPIx1MFtaGw/R6zB7fqqdOI/AAAAAAAAAHU/-SDDBpeFW2I/s72-c/1.png' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-663308149454265765</id><published>2008-02-08T18:08:00.001Z</published><updated>2008-02-16T18:02:20.821Z</updated><title type='text'>Installing Asterisk Again with H323 support</title><content type='html'>I never put live my old installation, then a few weeks later I lost the machine where it was and then I just simple forget. Now after playing a little here are the details for the installation (again).&lt;br /&gt;&lt;br /&gt;(this was compiled from a few sites and my notes)&lt;br /&gt;&lt;br /&gt;I located all my files on /usr/src&lt;br /&gt;&lt;br /&gt;asterisk-1.4.12.1.tar.gz&lt;br /&gt;asterisk-addons-1.4.3.tar.gz&lt;br /&gt;libpri-1.4.1.tar.gz&lt;br /&gt;zaptel-1.4.5.1.tar.gz&lt;br /&gt;openh323-v1_18_0-src-tar.gz&lt;br /&gt;pwlib-v1_10_3-src-tar.gz&lt;br /&gt;&lt;br /&gt;(you will need to untar the files --&lt;span style="font-style: italic;"&gt; tar -xzvf &lt;/span&gt; -- )&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;cd /usr/src&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Install Zaptel&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; cd zaptel-1.4.5.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; ./configure&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; make menuselect&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; make install&lt;/span&gt; ---&gt; as root&lt;br /&gt;&lt;span style="font-style: italic;"&gt; make config &lt;/span&gt;---&gt; as root&lt;br /&gt;&lt;span style="font-style: italic;"&gt; cd ..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;make config Note:&lt;br /&gt;If you have any zaptel hardware it is now recommended to edit /etc/default/zaptel or /etc/sysconfig/zaptel and set there an optimal value for the variable MODULES .&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Install Libpri&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; cd libpri-1.4.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; make instal&lt;/span&gt;l  ---&gt; as root&lt;br /&gt;&lt;span style="font-style: italic;"&gt; cd ..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Install pwlib&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; cd pwlib_v1_10_3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; ./configure --prefix=/usr&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; make opt&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; export PWLIBDIR=/usr/src/pwlib_v1_10_3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; cp $PWLIBDIR/lib/libpt_linux_x86_r.so.1.10.3 /usr/lib&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; cd ..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We copy the shared library manually into the system folder.&lt;br /&gt;&lt;br /&gt;It is very important that you set the PWLIBDIR to your path, othewise OpenH323 will not find it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Install openh323&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; cd openh323_v1_18_0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; ./configure --prefix=/usr./configure --prefix=/usr&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; make opt&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; make install&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; export OPENH323DIR=/usr/src/openh323_v1_18_0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; cp $OPENH323DIR/lib/libh323_linux_x86_r.so.1.18.0 /usr/lib&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; cd ..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Install Asterisk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; cd asterisk-1.4.12.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; ./configure --prefix=/usr&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; make menuselect&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;At this point use the menuselect utility to select which Zaptel hardware - if any - you have on board. Please remeber that if you want to exit         keeping the changes you made, you must press x, while q will quit without saving and the left arrow will get you back to the previous menu. Even if         you do not have Zaptel hardware, you should compile the ztdummy driver.&lt;br /&gt;&lt;br /&gt;On the channels menu you will be able to see the chan_h323 availabble for installation.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6ycovqqdLI/AAAAAAAAAG8/smtiD3Udxmc/s1600-h/im1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6ycovqqdLI/AAAAAAAAAG8/smtiD3Udxmc/s400/im1.png" alt="" id="BLOGGER_PHOTO_ID_5164675096491226290" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; make&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When you compile with make you will get the error shown on the image below therefore you will have to run the make command  again:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6yc7vqqdMI/AAAAAAAAAHE/fGOtvJNHJbo/s1600-h/im2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/R6yc7vqqdMI/AAAAAAAAAHE/fGOtvJNHJbo/s400/im2.png" alt="" id="BLOGGER_PHOTO_ID_5164675422908740802" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; make&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mPIx1MFtaGw/R6ydSPqqdNI/AAAAAAAAAHM/yHiSZ4Th1tE/s1600-h/im3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_mPIx1MFtaGw/R6ydSPqqdNI/AAAAAAAAAHM/yHiSZ4Th1tE/s400/im3.png" alt="" id="BLOGGER_PHOTO_ID_5164675809455797458" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; make samples&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; cd ..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This should be it. I checked that my /etc/zaptel.conf was missing. Not sure if this is because I didn't have any hardware installed. Just in case I copied&lt;br /&gt;cp /home/ricardo/asterisk_intall/zaptel-1.4.5.1/zaptel.conf.sample /etc/zaptel.conf&lt;br /&gt;&lt;br /&gt;Run the moprobe on zapte/ztdummy&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; modprobe zaptel&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; lsmod&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; modprobe ztdummy&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; lsmod&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Change the default zone on zaptel.conf to UK&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; vi /etc/zaptel.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;loadzone=uk&lt;br /&gt;&lt;br /&gt;After starting Asterisk and logging into the console type the command show channeltypes to check that H323 has been install and is running.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_mPIx1MFtaGw/R6zR0fqqdjI/AAAAAAAAAJ8/1A8aPRlwlus/s1600-h/im4.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_mPIx1MFtaGw/R6zR0fqqdjI/AAAAAAAAAJ8/1A8aPRlwlus/s400/im4.png" alt="" id="BLOGGER_PHOTO_ID_5164733572470961714" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Then you have to follow the next post with the details of the Avaya-Asterisk H323 ip trunk.&lt;br /&gt;&lt;br /&gt;Please check this website for more details on the h323 installation:&lt;br /&gt;http://astrecipes.net/index.php?q=astrecipes/compiling+asterisk+1.4+with+tdm400+and+h323&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-663308149454265765?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/663308149454265765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=663308149454265765&amp;isPopup=true' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/663308149454265765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/663308149454265765'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/02/installing-asterisk-again-with-h323.html' title='Installing Asterisk Again with H323 support'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_mPIx1MFtaGw/R6ycovqqdLI/AAAAAAAAAG8/smtiD3Udxmc/s72-c/im1.png' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-4605779714321372336</id><published>2008-02-08T13:45:00.000Z</published><updated>2008-02-08T14:00:40.574Z</updated><title type='text'>Solaris tips (for the CMS)</title><content type='html'>&lt;p&gt;&lt;span style="font-family:Arial,Helvetica,sans-serif;"&gt;I had to use the following tips time to time so I am posting them here to save me the time to look for them again (and avoid the possibility of the original sites going off-line).&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style="font-family:Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style="font-family:Arial,Helvetica,sans-serif;"&gt;1. Set up your &lt;span style="font-family:Courier,mono;"&gt;/etc/hosts&lt;/span&gt; file.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;It should look something like this:&lt;/p&gt; &lt;pre&gt;127.0.0.1       localhost&lt;br /&gt;192.168.0.150   solaris-box-1 solaris-box-1.yourdomain.com loghost&lt;/pre&gt; &lt;p&gt; Make sure the second line has the correct IP address, hostname, and FQDN. The first line is the loopback entry. Along with #5, Solaris will know its name and IP address. &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;b&gt;&lt;span style="font-family:Arial,Helvetica,sans-serif;"&gt;2. Create or edit &lt;span style="font-family:Courier,mono;"&gt;/etc/nodename&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;Contains the hostname of the computer (same as &lt;span style="font-family:Courier,mono;"&gt;hostname.hme0&lt;/span&gt;).&lt;/p&gt; &lt;pre&gt;# cat nodename&lt;br /&gt;solaris-box-1&lt;/pre&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;span style="font-family:Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;b&gt;3. Create or edit &lt;span style="font-family:Courier,mono;"&gt;/etc/defaultrouter&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt; Surprisingly enough, this file contains the IP address of your default router (or gateway). When you reboot and the network initialization scripts run, it will add a default route to the IP address in this file. &lt;/p&gt; &lt;pre&gt;# cat defaultrouter&lt;br /&gt;192.168.0.1&lt;/pre&gt; &lt;/blockquote&gt; &lt;p&gt;&lt;br /&gt;Now it knows about it's own network parameters and it's time to get it to use DNS. The next steps will tell it to use other nameservers. If you want to set up a nameserver on the local machine, see the man page for &lt;span style="font-family:Courier,mono;"&gt;named&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-family:Arial,Helvetica,sans-serif;"&gt;&lt;b&gt;4. Edit &lt;span style="font-family:Courier,mono;"&gt;/etc/nsswitch.conf&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;If you haven't edited this file before, it should look suspiciously like like this:&lt;/p&gt; &lt;pre&gt;passwd:     files&lt;br /&gt;group:      files&lt;br /&gt;hosts:      files&lt;br /&gt;networks:   files&lt;br /&gt;protocols:  files&lt;br /&gt;rpc:        files&lt;br /&gt;ethers:     files&lt;br /&gt;netmasks:   files&lt;br /&gt;bootparams: files&lt;br /&gt;publickey:  files&lt;br /&gt;# At present there isn't a 'files' backend for netgroup;  the system will&lt;br /&gt;#   figure it out pretty quickly, and won't use netgroups at all.&lt;br /&gt;netgroup:   files&lt;br /&gt;automount:  files&lt;br /&gt;aliases:    files&lt;br /&gt;services:   files&lt;br /&gt;sendmailvars:   files&lt;/pre&gt;   &lt;p&gt;Add the word 'dns' after 'files' on the 'hosts' line:&lt;/p&gt;   &lt;pre&gt;passwd:     files&lt;br /&gt;group:      files&lt;br /&gt;hosts:      files &lt;b&gt;dns&lt;/b&gt;&lt;br /&gt;networks:   files&lt;br /&gt;protocols:  files&lt;br /&gt;rpc:        files&lt;br /&gt;ethers:     files&lt;br /&gt;netmasks:   files&lt;br /&gt;bootparams: files&lt;br /&gt;publickey:  files&lt;br /&gt;# At present there isn't a 'files' backend for netgroup;  the system will&lt;br /&gt;#   figure it out pretty quickly, and won't use netgroups at all.&lt;br /&gt;netgroup:   files&lt;br /&gt;automount:  files&lt;br /&gt;aliases:    files&lt;br /&gt;services:   files&lt;br /&gt;sendmailvars:   files&lt;/pre&gt; &lt;p&gt;Now it knows to query a nameserver when looking up a name. Next we have to tell it what nameservers to use:&lt;/p&gt; &lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;&lt;span style="font-family:Arial,Helvetica,sans-serif;"&gt;5. Create or edit &lt;span style="font-family:Courier,mono;"&gt;/etc/resolv.conf&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;Here you tell it three things:&lt;/p&gt; &lt;ol&gt;&lt;li&gt;What domain we're in&lt;/li&gt;&lt;li&gt;Specify any additional search domains&lt;/li&gt;&lt;li&gt;What the nameservers are (it will use them in the order you put them in the file)&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;When you're done it should look something like this:&lt;br /&gt;&lt;/p&gt; &lt;pre&gt;# cat resolv.conf&lt;br /&gt;domain yourdomain.com&lt;br /&gt;search yourdomain.com&lt;br /&gt;search client1.com&lt;br /&gt;nameserver 192.168.0.9&lt;br /&gt;nameserver 192.168.0.11&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;For more information, see the &lt;span style="font-family:Courier,mono;"&gt;man&lt;/span&gt; page for &lt;span style="font-family:Courier,mono;"&gt;resolv.conf&lt;/span&gt;.&lt;/p&gt; &lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:Arial,Helvetica,sans-serif;"&gt;&lt;b&gt;6. Edit &lt;span style="font-family:Courier,mono;"&gt;/etc/hostname.hme0&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;This file should contain the hostname of your machine, without the domain     name. So, if the FQDN (Fully Qualified Domain Name = hostname + domain name)     is solaris-box-1.yourdomain.com, the file should look like this:&lt;/p&gt;   &lt;pre&gt;# cat hostname.hme0&lt;br /&gt;solaris-box-1&lt;/pre&gt;      &lt;p&gt;This assumes that your Ethernet adatper is hme0, the default device name     for the first Ethernet adapter.&lt;/p&gt; &lt;br /&gt; &lt;p&gt;&lt;br /&gt; &lt;/p&gt; &lt;/blockquote&gt;&lt;b&gt;&lt;span style="font-family:Arial,Helvetica,sans-serif;"&gt;7. Reboot&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;pre&gt;# sync;sync;sync&lt;br /&gt;# reboot&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt; &lt;b&gt;&lt;span style="font-family:Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;8. Change IPs&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;UNIX Shell:      All Primary shells (sh,ksh,csh)&lt;br /&gt;Function:    Use ifconfig to change your IP address immediately. Edit your /etc/hosts file to change it permanently.&lt;br /&gt;Syntax:    Immediate change: ifconfig interface new IPaddress subnet mask&lt;br /&gt;&lt;br /&gt;Permanent change: vi /etc/hosts&lt;br /&gt;  interface   Specifies the network interface, e.g. hme0 for 100 Mbps or le0 for 10 Mbps.&lt;br /&gt;  new IPaddress   Specifies the new IP address that you want to assign the computer.&lt;br /&gt;  subnet mask   Specifies the subnet mask for your local network.&lt;br /&gt;&lt;br /&gt;File Name:   hosts    Directory:    /etc    Type:   External&lt;br /&gt;  ifconfig hme0 192.168.1.250 255.255.255.0     Sets the IP address to 192.168.1.250 on interface hme0.&lt;br /&gt;  ifconfig le0 192.168.1.250 255.255.255.0     Sets the IP address to 192.168.1.250 on interface le0&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;&lt;b&gt;&lt;span style="font-family:Arial,Helvetica,sans-serif;"&gt;9. Recover ROOT password&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;You need to have physical access to the machine's console.&lt;br /&gt;&lt;br /&gt;Note the root partition;&lt;br /&gt;&lt;br /&gt;Solaris uses&lt;br /&gt;&lt;br /&gt;   * /dev/dsk/c0t0d0s0 on the Ultra5/10 and Blade 100&lt;br /&gt;   *  /dev/dsk/c0t1d0s0 for Blade 1000.&lt;br /&gt;&lt;br /&gt;Press the STOP and A keys simultaneously, or, on an ASCII terminal or emulator, send a &lt;break&gt;) to halt the operating system, if it's running.&lt;br /&gt;&lt;br /&gt;Boot single-user from CD-ROM (boot cdrom -s) or network install/jumpstart server (boot net -s). For CD media use the CD-ROM labeled "Installation". I prom pssword is set you need to know it&lt;br /&gt;&lt;br /&gt;Mount the root partition on "/a". "/a" is an empty mount point that exists at this stage of the installation procedure. For example:&lt;br /&gt;&lt;br /&gt;   #mount /dev/dsk/c0t0d0s0 /a&lt;br /&gt;&lt;br /&gt;If the mount command fails and since "/a" always exists, then you either typed in the wrong device, OR the system is seeing the root partition as something else.&lt;br /&gt;&lt;br /&gt;Do a "ls /tmp/dev/dsk" and see what is there. "c0t6" things are the CD-ROM, what is left is what one needs to try. On a Blade 1000/2000,  choose /dev/dsk/c1t1d0s0, and execute: #mount /dev/dsk/c1t1d0s0 /a&lt;br /&gt;&lt;br /&gt;Set your terminal type so you can use a full-screen editor, such as vi. You can skip this step if you know how to use "ex" or "vi" from open mode.&lt;br /&gt;&lt;br /&gt;   * If you're on a sun console, type "TERM=sun; export TERM";&lt;br /&gt;   * If you are using an ascii terminal or terminal emulator on a PC for your console, set TERM to the terminal type for example: TERM=vt100; export TERM.&lt;br /&gt;&lt;br /&gt;Edit the passwd file, /a/etc/shadow (or perhaps in older versions, /etc/passwd) and remove the encrypted password entry for root.&lt;br /&gt;&lt;br /&gt;Type: "cd /; then "umount /a"&lt;br /&gt;&lt;br /&gt;Reboot as normal in single-user mode ("boot -s"). The root account will not have a password. Give it a new one using the passwd command. PROM passwords: Naturally, you may not want anyone with physical access to the machine to be able to do the above to erase the root password. Suns have a security password mechanism in the PROM which can be set (this is turned off by default). The man page for the eeprom command describes this feature.&lt;br /&gt;&lt;br /&gt;If security-mode is set to "command", the machine only be booted without the prom password from the default device (i.e. booting from CD-ROM or install server will require the prom password). Changing the root password in this case requires moving the default device (e.g. the boot disk) to a different SCSI target (or equivalent), and replacing it with a similarly bootable device for which the root password is known. If security-mode is set to full, the machine cannot be booted without the prom password, even from the default device; defeating this requires replacing the NVRAM on the motherboard. "Full" security has its drawbacks -- if, during normal operations, the machine is power-cycled (e.g. by a power outage) or halted (e.g. by STOP-A), it cannot reboot without the intervention of someone who knows the prom password.&lt;br /&gt;&lt;br /&gt;&lt;/break&gt;&lt;b&gt;&lt;span style="font-family:Arial,Helvetica,sans-serif;"&gt;10. Others (and repeated)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;p&gt; &lt;b&gt;"I've almost just reinstalled Solaris to get the network settings fixed!"&lt;/b&gt; Ya, sometimes you can get alittle confused and irritated. Whether it's a new Linux distro, or diffrent UNIX OS, everyone puts their network configuration in diffrent places and learning each systems setup can be a pita. So, what if you don't even wanna bother learning all the network configuration stuff and what files does what... what if you could just re-run the networking configuration and have it all sorted out? You can! Solaris has a nifty command that can reset the base networking and configuration to a clean system: "sys-unconfig". If you buy a pre-installed system from Sun or a VAR, what they will generally do is install Solaris, customize the install as needbe and then run "sys-unconfig" before putting the system in the box and shipping it out. The command will scratch the networking configuration (most of it anyway), the root password, time zone, etc. Once sys-unconfig finished cleaning out the files it will immediately halt the system (shut it down). Next time you boot the system it will prompt you for all the networking information, time zone, locale and a new root password. This is the "quick-no-hassle" reconfiguration method. Generally we &lt;i&gt;do not&lt;/i&gt; recommend this as ideal, but it will do the trick. If you plan on selling a pre-installed system or you are moving your system to a new network where all the info is changing, this is the command to use. Just use it carefully. &lt;/p&gt; &lt;p&gt; &lt;b&gt;"I know root shouldn't login remotely, but I really want too!"&lt;/b&gt; Logging into a system via telnet, ftp, or ssh is just bad... very bad. However, some times people think they need to do this or they simply don't care about security. If you &lt;i&gt;really&lt;/i&gt; wanna drop your pants like this, edit: &lt;i&gt;/etc/default/login&lt;/i&gt;. In this file, you'll see a line for CONSOLE. To allow root to log in via telnet or ftp just comment out this line and your done. To allow root login via SSH you need to edit a diffrent file: &lt;i&gt;/etc/ssh/sshd_config&lt;/i&gt;.  Change the value of &lt;i&gt;PermitRootLogin&lt;/i&gt; from "no" to "yes" and restart SSH via "svcadm restart ssh". The SSH configuration file is just the same as Linux since Solaris uses OpenSSH. Please note, that allowing root to log in remotely is a massive security risk and needlessly stupid, don't do this unless you absolutely must. &lt;/p&gt; &lt;p&gt; &lt;b&gt;"How do I set and  make the default gateway persistant across reboots?"&lt;/b&gt;  The default gateway is easy to configure, just put the IP address of the default gateway in &lt;i&gt;/etc/defaultrouter&lt;/i&gt;. If this file doesn't exist just create it and add the IP. The IP address of the gateway should be the ONLY thing in this file, nothing else. Typically you should just use echo, like this: "echo 10.0.0.255 &gt; /etc/defaultrouter". Once you've changed the file you can restart the physical network interfaces to make the changes effective without a reboot ("svcadm restart physical"). &lt;/p&gt; &lt;p&gt; &lt;b&gt;How do I set or change my IP address?&lt;/b&gt; Setting and changing IP addresses on Solaris is a snap. Just add the IP and hostname that you wish to use to /etc/hosts. Then put the hostname (by itself) in teh /etc/hostname.(interface) file. Then just restart the physical networking via SMF ("svcadm restart phsyical") and your done! Example: "echo '10.0.0.25 solarisrox' &gt;&gt; /etc/hosts; echo 'solarisrox' &gt; /etc/hostname.hme0" assuming that hme0 was the interface you wanted to use. Don't worry about this changing the hostname for the whole workstation, the hostname for the system is kept in /etc/nodename. You can add the default gateway as we discussed just above. If you need to specify a non-standard subnet netmask you can add it to /etc/netmasks. You can have as many subnet masks in the /etc/netmasks file as you like, one per line, just follow the instructions at the top of the file. &lt;/p&gt; &lt;p&gt; &lt;b&gt;How do I configure DHCP?&lt;/b&gt; DHCP is pretty easy to configure, just create 2 empty files: /etc/hostname.(interface) and /etc/dhcp.(interface). If you are using HME0 you could do this: "echo "" &gt; /etc/hostname.hme0 &gt; /etc/dhcp.hme0". You might want to wipe out information that might conflict like the /etc/defaultrouter file if you created one. Once you've got these two empty files ready just restart the physical network to make the changes effective without a reboot ("svcadm restart physical"). If you want to customize the properties of the DHCP agent &lt;a href="http://docs.sun.com/app/docs/doc/816-4554/6maoq01qe"&gt;you can check out the " System Administration Guide: IP Services" manual&lt;/a&gt;. Remember that DHCP settings take acouple seconds to be retrieved from the server so if you reset the physical interfaces as mentioned above and you notice that nothing happened, just wait a couple seconds (30 secs is the default timeout). &lt;/p&gt; &lt;p&gt; &lt;b&gt;I can't figure out what the network interface is called!&lt;/b&gt; Linux sort of makes network interface naming easy because typically interfaces are named "eth0", "eth1", so on and so forth. In Solaris, however, the name of the interface is decided by the interface driver. For instance, the onboard ethernet of a Sun Ultra workstation uses the HME (Happy Meal Ethernet, also more boringly called Hundred Meg Ethernet) driver and so the first instance is "hme0". You can look at the device mappings to driver names using "prtconf -D". In general, Solaris will find your network device and try to configure it so generally just checking "ifconfig -a" is enough to find it. &lt;/p&gt;  &lt;p&gt; &lt;b&gt;My l337 workstations network device isn't frickin' support!?!&lt;/b&gt; Sadly there are lots of networking devices that aren't officially supported (right now anyway, OpenSolaris hopes to change this). Thankfully there are tons of really kool Solaris developers that have been creating open source drivers! &lt;a href="http://homepage2.nifty.com/mrym3/taiyodo/eng/"&gt;Check out these free NIC drivers by Masayuki Murayama!&lt;/a&gt; Grok google for drivers, you just might find your l337 gear really does have drivers avalible, they just aren't in Solaris right now. &lt;/p&gt;  &lt;p&gt;There ya go.. some quick Solaris networking tips.  As always, &lt;a href="http://docs.sun.com/app/docs/coll/47.16"&gt;check out docs.sun.com's Solaris10 manuals for help and details&lt;/a&gt;.&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-4605779714321372336?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/4605779714321372336/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=4605779714321372336&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/4605779714321372336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/4605779714321372336'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/02/solaris-tips-for-cms.html' title='Solaris tips (for the CMS)'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-6531868119097810468</id><published>2008-01-16T19:58:00.000Z</published><updated>2008-01-16T20:01:04.261Z</updated><title type='text'>Tar and Gzip</title><content type='html'>I always forget the tar and gzip process.. so here is my quick reference.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Creating a tape archive:&lt;/em&gt;&lt;br /&gt;tar -cf archive.tar myDirectories/&lt;br /&gt;Note - using the "v" flag prints out extra messages, as verbose mode, though it's not related to extracting files.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Listing the contents of an archive:&lt;/em&gt;&lt;br /&gt;tar -tf archive.tar&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Extracting all files from an archive:&lt;/em&gt;&lt;br /&gt;tar -xf archive.tar&lt;br /&gt;To extract just partial pieces from the archive, supply a file or directory name after the archive name. You can list as many as desiered here, separated by spaces.&lt;br /&gt;tar -xf archive.tar filename&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Compress:&lt;/em&gt;&lt;br /&gt;gzip archive.tar&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Decompress:&lt;/em&gt;&lt;br /&gt;gunzip archive.tar.gz&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Merged filenames:&lt;/em&gt;&lt;br /&gt;Sometimes, you will download files ending with the extension *.tgz - these are essentially identical to files ending with *.tar.gz files. You can gunzip them, and untar them just the same way. If you're working with a recent version of gnu tar, you may be able to take a shortcut, as described below.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-6531868119097810468?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/6531868119097810468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=6531868119097810468&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/6531868119097810468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/6531868119097810468'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/01/tar-and-gzip.html' title='Tar and Gzip'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-5738584827291077045</id><published>2008-01-16T18:57:00.000Z</published><updated>2008-02-12T19:05:12.285Z</updated><title type='text'>My  list</title><content type='html'>&lt;p&gt;No comments, just my list &lt;/p&gt;&lt;p&gt;Mini Anden - &lt;a href="http://en.wikipedia.org/wiki/Mini_Anden"&gt;http://en.wikipedia.org/wiki/Mini_Anden&lt;/a&gt; &lt;/p&gt;&lt;p&gt;Payton List - &lt;a href="http://en.wikipedia.org/wiki/Peyton_List"&gt;http://en.wikipedia.org/wiki/Peyton_List&lt;/a&gt; &lt;/p&gt;&lt;p&gt;Catherine Blanchet - &lt;a href="http://en.wikipedia.org/wiki/Cate_Blanchett"&gt;http://en.wikipedia.org/wiki/Cate_Blanchett&lt;/a&gt; &lt;/p&gt;&lt;p&gt;Audrey Hepburn - &lt;a href="http://en.wikipedia.org/wiki/Audrey_Hepburn"&gt;http://en.wikipedia.org/wiki/Audrey_Hepburn&lt;/a&gt; &lt;/p&gt;&lt;p&gt;Grace Kelly - &lt;a href="http://en.wikipedia.org/wiki/Grace_kelly"&gt;http://en.wikipedia.org/wiki/Grace_kelly&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-5738584827291077045?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/5738584827291077045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=5738584827291077045&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/5738584827291077045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/5738584827291077045'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2008/01/my-angels-list.html' title='My  list'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-8412571306084324030</id><published>2007-12-01T21:59:00.001Z</published><updated>2007-12-01T22:02:19.436Z</updated><title type='text'>My Rubik</title><content type='html'>Ok, first and second layer are easy. Below are the steps I follow to finish the third layer and last face.&lt;br /&gt;&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5139128041505246658" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_mPIx1MFtaGw/R1HZubkrTcI/AAAAAAAAAG0/96yzBnt0meY/s400/rubik.jpg" border="0" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-8412571306084324030?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/8412571306084324030/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=8412571306084324030&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/8412571306084324030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/8412571306084324030'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/12/my-rubik.html' title='My Rubik'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_mPIx1MFtaGw/R1HZubkrTcI/AAAAAAAAAG0/96yzBnt0meY/s72-c/rubik.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-5530302168949409551</id><published>2007-10-06T22:08:00.000+01:00</published><updated>2007-10-06T22:19:59.939+01:00</updated><title type='text'>Perl script to automatically dowload files from a web site.</title><content type='html'>I've been reading &lt;a href="http://www.amazon.co.uk/Learning-Perl-Randal-L-Schwartz/dp/0596101058"&gt;Learning Perl &lt;/a&gt;book from Randal L. Schwartz and just the introduction gave me the tip to automate a task that otherwise would have taken more time.&lt;br /&gt;&lt;br /&gt;Again I am installing Asterisk and a Debian box, I have a list of all the necessary files but now Asterisk put all the sounds files on separate files and not in one package as before.&lt;br /&gt;&lt;br /&gt;Instead of downloading 31 pages manually I got a the link to all of them, put them on a file (named filesd) one o each line and run the following Perl script:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-size:85%;"&gt;#!/usr/bin/perl&lt;br /&gt;open (FILESD, filesd);&lt;br /&gt;while ($pathf = &lt;filesd&gt;){&lt;br /&gt;open (WGET, "wget $pathf");&lt;br /&gt;close (WGET);&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;The filesd file is just a plain file like the one shown below:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;ricardo@lmntel01:~/test$ more filesd&lt;br /&gt;http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.12.1.tar.gz&lt;br /&gt;http://downloads.digium.com/pub/zaptel/releases/zaptel-1.4.5.1.tar.gz&lt;br /&gt;http://downloads.digium.com/pub/libpri/releases/libpri-1.4.1.tar.gz&lt;br /&gt;http://downloads.digium.com/pub/asterisk/releases/asterisk-addons-1.4.3.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I know this could have been done with WGET but I got tired of trying to find the correct flag to download them, and I also know there is no error check, report, fancy things and whistles but hey I just finish the introduction.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-5530302168949409551?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/5530302168949409551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=5530302168949409551&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/5530302168949409551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/5530302168949409551'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/10/perl-script-to-automatically-dowload.html' title='Perl script to automatically dowload files from a web site.'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-3429280250700300865</id><published>2007-09-30T11:02:00.000+01:00</published><updated>2007-09-30T11:10:25.858+01:00</updated><title type='text'>Eclipse + Perl = Epic</title><content type='html'>Googling around for a gui ide for Perl I found that there is a plugin for Eclipse. As I also use Eclipse for Java I decided to give it a try and knowing nothing else I found it quite useful. No more of those first vi days (no offense, vi is great but a gui is faster).&lt;br /&gt;&lt;br /&gt;You can find about EPIC on &lt;a href="http://e-p-i-c.sourceforge.net/"&gt;http://e-p-i-c.sourceforge.net/&lt;/a&gt;, and this time I will not going to explain the installation (as I already installed and didn't took notes) but if you follow their installation manual there is no miss:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://e-p-i-c.sourceforge.net/downloads/EPIC_User%27s_Guide.pdf"&gt;http://e-p-i-c.sourceforge.net/downloads/EPIC_User%27s_Guide.pdf&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Good luck and if there is a better option let me know and I will give it a try.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-3429280250700300865?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/3429280250700300865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=3429280250700300865&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/3429280250700300865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/3429280250700300865'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/09/eclipse-perl-epic.html' title='Eclipse + Perl = Epic'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-1908219800296284096</id><published>2007-09-30T10:47:00.000+01:00</published><updated>2007-09-30T10:58:08.306+01:00</updated><title type='text'>Eclipse and Java SDK 1.5 on Debian Etch</title><content type='html'>&lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;As I am still trying to learn java, linux, perl, asterisk and everything I can get distracted with I needed to run eclipse on a new box I set up at home with Debian Etch.&lt;br /&gt;&lt;br /&gt;I found the below page quite good on the details on how to achieve this. My steps are copied below:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.crazysquirrel.com/computing/debian/java.jspx" target="_blank"&gt;http://www.crazysquirrel.com/computing/debian/java.jspx&lt;/a&gt;&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt; &lt;/span&gt;&lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;br /&gt;&lt;a href="mailto:ricardo@r1:%7E/java_source$apt-get"&gt;$ apt-get&lt;/a&gt;  -u install java-package&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt; &lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;a href="mailto:ricardo@r1:%7E/java_source$"&gt;$&lt;/a&gt;  fakeroot make-jpkg java_ee_sdk-5_03-linux.bin&lt;br /&gt;&lt;br /&gt;You will see the follwing output:&lt;br /&gt;Creating temporary directory:  /tmp/make-jpkg.fktzTQ6486&lt;br /&gt;Loading plugins: blackdown-j2re.sh  blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk-doc.sh  j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk-doc.sh sun-j2sdk.sh&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt; &lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;Detected Debian build architecture: i386&lt;br /&gt;Detected Debian GNU type:  i486-linux-gnu&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt; &lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;No matching plugin was found.&lt;br /&gt;Removing temporary directory: done&lt;br /&gt;&lt;br /&gt;The above command didn't work with the package &lt;/span&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;java_ee_sdk-5_03-linux.bin so first I tried to make it work. First use the command below to see you have the latest java package installed. I have .28 that is current enough.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;br /&gt;&lt;a href="mailto:ricardo@r1:%7E/java_source$"&gt;$&lt;/a&gt; apt-cache  policy java-package | head -2&lt;br /&gt;java-package:&lt;br /&gt;  Installed: 0.28&lt;br /&gt;&lt;a href="mailto:ricardo@r1:%7E/java_source$"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;Second try to lie to the installer telling that the installation type if i386 (google arround the message of "plugin not found" and that was the advice). You do this step by entering the following line: &lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;br /&gt;&lt;a href="mailto:ricardo@r1:%7E/java_source$DEB_BUILD_GNU_TYPE=%5Bi386%5D-linux"&gt;$DEB_BUILD_GNU_TYPE=[i386]-linux&lt;/a&gt;  fakeroot make-jpkg java_ee_sdk-5_03-linux.bin&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt; &lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;The trick is on hte DEB_BUILD_GNU_TYPE that you pass to the process. But as I was still using the &lt;/span&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;java_ee_sdk-5_03-linux.bin from sun it didn't work because the problem was not the plugin but the USER (me) and instead of &lt;/span&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;java_ee_sdk-5_03-linux.bin I should have been using &lt;/span&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;jdk-1_5_0_12-linux-i586.bin. This is the JDK for what make-jpkg was done and after  downloading it I was able to make it work.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;br /&gt;&lt;a href="mailto:ricardo@r1:%7E/java_source$fakeroot"&gt;$fakeroot&lt;/a&gt;  make-jpkg jdk-1_5_0_12-linux-i586.bin&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt; &lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;br /&gt;dpkg-deb: building package `sun-j2sdk1.5' in  `/tmp/make-jpkg.trHEuC6948/sun-j2sdk1.5_1.5.0+update12_i386.deb'.&lt;br /&gt;     copy sun-j2sdk1.5_1.5.0+update12_i386.deb into directory  /home/ricardo/java_source/&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt; &lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;The Debian package has been created in the current directory. You  can&lt;br /&gt;install the package as root (e.g. dpkg -i  sun-j2sdk1.5_1.5.0+update12_i386.deb).&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt; &lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;br /&gt;Removing temporary directory: done&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt; &lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;After that the package is done and now you only need to run dpkg to install it: &lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt; &lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;$dpkg -i sun-j2sdk1.5_1.5.0+update12_i386.deb&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;Check your Java Version just in case you have 2 and you have to use alternatives (explained in another blog) to select the Sun one as default and not the GNU one (usually installed but not in this case).&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt; &lt;span style="font-family:Arial;font-size:85%;"&gt;# java -version&lt;br /&gt;java version  "1.5.0_12"&lt;br /&gt;Java(TM) 2 Runtime Environment, Standard Edition (build  1.5.0_12-b04)&lt;br /&gt;Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode,  sharing)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-1908219800296284096?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/1908219800296284096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=1908219800296284096&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/1908219800296284096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/1908219800296284096'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/09/eclipse-and-java-sdk-15-on-debian-etch.html' title='Eclipse and Java SDK 1.5 on Debian Etch'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-6151186703824553483</id><published>2007-09-30T10:30:00.000+01:00</published><updated>2007-09-30T11:00:49.612+01:00</updated><title type='text'>Installing Wireless D-Link DWL-G520+ on Debian etch</title><content type='html'>&lt;span style="color: rgb(0, 0, 255);font-family:Arial;font-size:85%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;I got a desktop pc, nothing fancy and old p4 with 700MB RAM and a 40GB disk.  I will be using it at home where I normally use my work Laptop (Latitude D620 with Ubuntu 7.04) and there is wireless access.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Instead of Ubuntu I installed Debian on it, I downloaded the netinstall of Debian 4 (etch) and did the basic installation. For the first step I did the installation in the office connecting the pc to the network as I am not good doing everything from zero.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Once the pc was up and running I started investigating about my wireless card. I am using a D-Link DWL-G520+. I has been working great on a windows box for the last year and was time to move it to linux.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Looking around you find two main options (although I found some new drivers) using ndiswrapper and acx100.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Much of the googling I read mentioned that acx100 was the correct one for the g520 so I install that one. The installation is simple enough and the steps are below. Note that I've been using it for the last 24hrs and I am not happy with it. I even try to put the Ubuntu install cd and forget about debian/acx100 as the connection fails every now and them (I have on my desk my laptop and this pc and while the pc fails some times and have to either restart X or reboot the machine due a complete freeze the laptop stays connected all the time, arghhh).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;The information on how to install the driver ison the acx100 wiki page. The steps I followed are listed below:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://acx100.sourceforge.net/wiki/Distribution_list/Debian" target="_blank"&gt;http://acx100.sourceforge.net/wiki/Distribution_list/Debian&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt; &lt;hr /&gt;(as root)&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;&lt;span style="font-style: italic;"&gt; #  apt-get update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; # apt-get install  acx100-source wireless-tools&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; # module-assistant prepare&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(the below step is a menu driven, you have to build the acx100 module)&lt;br /&gt;&lt;span style="font-style: italic;"&gt; #  module-assistant # It will show a menu to build and install  it.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        |---&gt; Select / acx100 /  Build &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;                                  |----&gt;  Yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;                                  |----&gt; Yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; # modprobe acx&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt; If you want you could load the driver  automatically with:&lt;/span&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div style="font-style: italic;"&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt; #echo acx &gt;&gt;/etc/modules&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div style="font-style: italic;"&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt; #wget &lt;a href="http://195.66.192.167/linux/acx_patches/fw/acx111_1.2.1.34/tiacx111c16" target="_blank"&gt;http://195.66.192.167/linux/acx_patches/fw/acx111_1.2.1.34/tiacx111c16&lt;/a&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style="font-style: italic;"&gt; &lt;/div&gt; &lt;div&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;&lt;span style="font-style: italic;"&gt; #cp tiacx111c16 /lib/firmware/`uname  -r`/acx/1.2.1.34&lt;/span&gt;&lt;br /&gt;(manually created `uname -r`/acx )&lt;/span&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;#vi /etc/network/interfaces &lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style="font-style: italic;"&gt; &lt;/div&gt; &lt;div&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;&lt;span style="font-style: italic;"&gt;  # The wireless  network  interface&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  allow-hotplug wlan0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  iface wlan0 inet  dhcp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; #shutdown -r now&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That was it, after the reboot the machine detected the wireless networks around. Selected mine and enter password and was logged (again I fails time to time).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-6151186703824553483?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/6151186703824553483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=6151186703824553483&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/6151186703824553483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/6151186703824553483'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/09/installing-wireless-d-link-dwl-g520-on.html' title='Installing Wireless D-Link DWL-G520+ on Debian etch'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-7335904755687171134</id><published>2007-09-10T14:09:00.000+01:00</published><updated>2007-09-10T14:39:40.477+01:00</updated><title type='text'>Synergy 1.3.1 Windowz XP and Ubuntu 7.04</title><content type='html'>For the last weeks I've been using my laptop with Ubuntu and my office desktop with the corporate windows xp. I was using the Terminal Server Client to work on my desktop but switching between windows was quite boring.&lt;br /&gt;&lt;br /&gt;In the past when I used to have windows on boths boxes I run synergy to share the keyboard/mouse but didn't install it yet.&lt;br /&gt;&lt;br /&gt;First thing the sudo apt-get install synergy althouth it didn't show any error it didn't show any success either so I remove it.&lt;br /&gt;&lt;br /&gt;Next googling around I found the following link with a good explanation on what to do to get started, the link is: &lt;a href="https://help.ubuntu.com/community/SynergyHowto"&gt;https://help.ubuntu.com/community/SynergyHowto&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So the steps are:&lt;br /&gt;&lt;br /&gt;a) download Synergy the tar.tz  from the Synergy project page &lt;a href="http://synergy2.sourceforge.net/"&gt;http://synergy2.sourceforge.net/&lt;/a&gt;. The direct link is:&lt;br /&gt;&lt;a href="http://kent.dl.sourceforge.net/sourceforge/synergy2/synergy-1.3.1.tar.gz"&gt;http://kent.dl.sourceforge.net/sourceforge/synergy2/synergy-1.3.1.tar.gz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Untar the file on your home directory.&lt;br /&gt;&lt;br /&gt;b) Next install necessary libraries:&lt;br /&gt;&lt;pre&gt;sudo apt-get install libxtst-dev&lt;br /&gt;sudo apt-get install build-essential&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;c) Now configure this but specify the location of the libraries.. if not an error of X cannot be found will appear.  &lt;/p&gt; &lt;pre&gt;sudo ./configure -x-libraries /usr/lib -x-includes /usr/includes&lt;br /&gt;sudo make install&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;d) The previous step created synergc (client) and syngers (server) on your home director. The webpage mentioned below ask us to move the mto /user/bin so we do a:   &lt;/p&gt; &lt;pre&gt;sudo mv /usr/local/bin/synergyc /usr/bin&lt;br /&gt;sudo mv /usr/local/bin/synergys /usr/bin&lt;br /&gt;&lt;/pre&gt;e) The next step is to configure synergy. The system uses a file called synergy.conf , there is an example on the installation folder at /synergy-1.3.1/examples/synergy.conf.&lt;br /&gt;&lt;br /&gt;The configuration is quite easy, I have to say that easier than setting this between to windows boxes. Basically you say which are your 2 boxes and then where is which one respecting the other.&lt;br /&gt;&lt;br /&gt;Here you have to use  the hostname of your linux box and the name of the windowz box you set up on the windowz client.&lt;br /&gt;&lt;br /&gt;So my synergy.conf looks like this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/RuVFrkpdUxI/AAAAAAAAAGU/zBIrV1_qlh4/s1600-h/Screenshot.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/RuVFrkpdUxI/AAAAAAAAAGU/zBIrV1_qlh4/s320/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5108565967195951890" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;On the windows machine you set up the ip/hostname (you choose) of your linux box and click on the advance button at the end to set up the name assigned to this machine:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mPIx1MFtaGw/RuVG_EpdUyI/AAAAAAAAAGc/ILwTqo7tN1w/s1600-h/image1.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_mPIx1MFtaGw/RuVG_EpdUyI/AAAAAAAAAGc/ILwTqo7tN1w/s320/image1.jpg" alt="" id="BLOGGER_PHOTO_ID_5108567401715028770" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;On the advance settings just check the name, if you are having problems just make sure that the name on the below screen is the same as the one on the synergy.conf on your linux box. If they are not the same you will get errors on your client machine.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_mPIx1MFtaGw/RuVHDUpdUzI/AAAAAAAAAGk/H04dl-F-ohg/s1600-h/image2.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_mPIx1MFtaGw/RuVHDUpdUzI/AAAAAAAAAGk/H04dl-F-ohg/s320/image2.jpg" alt="" id="BLOGGER_PHOTO_ID_5108567474729472818" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;After this run the server synergys --config synergy.conf from your command line (check previous page you can mv the synergy.conf to your home directory and just run synergy) and start the client, you should be able to use your linux mouse/keyboard on both boxes!!!&lt;br /&gt;&lt;br /&gt;Please read the document from the ubuntu documentation mentioned above.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Richard&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-7335904755687171134?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/7335904755687171134/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=7335904755687171134&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/7335904755687171134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/7335904755687171134'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/09/synergy-131-windowz-xp-and-ubuntu-704.html' title='Synergy 1.3.1 Windowz XP and Ubuntu 7.04'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_mPIx1MFtaGw/RuVFrkpdUxI/AAAAAAAAAGU/zBIrV1_qlh4/s72-c/Screenshot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-4628802363702298967</id><published>2007-09-05T20:35:00.000+01:00</published><updated>2007-09-05T21:00:41.549+01:00</updated><title type='text'>Configuring Minicom on Ubuntu to connect to Cisco Router</title><content type='html'>Ok, that was a large title for this task but what the heck. What needs  to be done to achieve this? We need a piece of software called minicom (this has been around for ages, google it and you will learn a lot) and follow the next steps shown below:&lt;br /&gt;&lt;br /&gt;a) install minicom and follow the normal procedures&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;sudo apt-get isntall minicom&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;b) check your serial ports.&lt;br /&gt;&lt;br /&gt;We need to know the serial ports on your machine, so a dmseg would do the trick. Look for ttyS and take note of the number after it, in my case I have ttyS0 ready to use.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;richard@wok:~$ dmesg|grep ttyS&lt;br /&gt;[    1.430818] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A&lt;br /&gt;[    1.431528] 00:0c: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A&lt;br /&gt;richard@wok:~$&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;c) launch minicom as root&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;$sudo minicom&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;You will see a page as the one below. The first lines shows the configuration (I already modified mine, so yours must be the default ones).&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mPIx1MFtaGw/Rt8FxkpdUpI/AAAAAAAAAFU/IWpEJpSX_2s/s1600-h/1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_mPIx1MFtaGw/Rt8FxkpdUpI/AAAAAAAAAFU/IWpEJpSX_2s/s320/1.png" alt="" id="BLOGGER_PHOTO_ID_5106806851670725266" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;c) Press control + a and Z to go to the menu. The first thing we will change is the dialing string so select the letter "O" for "command string" on the below menu.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_mPIx1MFtaGw/Rt8GA0pdUqI/AAAAAAAAAFc/oVk3ApPxKQ4/s1600-h/2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_mPIx1MFtaGw/Rt8GA0pdUqI/AAAAAAAAAFc/oVk3ApPxKQ4/s320/2.png" alt="" id="BLOGGER_PHOTO_ID_5106807113663730338" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;d) The previous step should have brought you to the image below. With the arrows keys select "Modem and dialing" and press enter.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/Rt8GREpdUrI/AAAAAAAAAFk/Krf3KeZFx4I/s1600-h/3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/Rt8GREpdUrI/AAAAAAAAAFk/Krf3KeZFx4I/s320/3.png" alt="" id="BLOGGER_PHOTO_ID_5106807392836604594" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;e) Now you are on the image below. Press A to set the cursor on the first line and delete everything (I use to have the following configuration ~^M~AT S7=45 S0=0 L1 V1 X4 &amp;c1 E1 Q0^M   ). One done press ESC or RETURN to go back to the menu.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mPIx1MFtaGw/Rt8GUUpdUsI/AAAAAAAAAFs/sZpPo-klIFE/s1600-h/4.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_mPIx1MFtaGw/Rt8GUUpdUsI/AAAAAAAAAFs/sZpPo-klIFE/s320/4.png" alt="" id="BLOGGER_PHOTO_ID_5106807448671179458" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;f) Now back on the menu select "Serial Port Setup" with the arrow keys.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/Rt8GXEpdUtI/AAAAAAAAAF0/tRJ4ZBC1Ipo/s1600-h/5.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/Rt8GXEpdUtI/AAAAAAAAAF0/tRJ4ZBC1Ipo/s320/5.png" alt="" id="BLOGGER_PHOTO_ID_5106807495915819730" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;g) Using the letters configure the options:&lt;br /&gt;            A - For Serial Device&lt;br /&gt;           E - For Bps/Par/Bits&lt;br /&gt;&lt;br /&gt;Copy the configuration below, the option "E" will bring a new menu where you select the details. The option A has to match with what you find on the dmseg step "b" of this guide.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_mPIx1MFtaGw/Rt8Gj0pdUvI/AAAAAAAAAGE/TTwQD-ues0A/s1600-h/6.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_mPIx1MFtaGw/Rt8Gj0pdUvI/AAAAAAAAAGE/TTwQD-ues0A/s320/6.png" alt="" id="BLOGGER_PHOTO_ID_5106807714959151858" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;h) Exit to the main menu and reset minicom. Restart it so the changes would take effect (maybe there is an option to make the changes live without restarting minicom but this is a small step).&lt;br /&gt;&lt;br /&gt;After rebooting minicom with the Cisco router connected with the blue cable to your pc/laptop just turn the Cisco on and you will see the details on the screen and you are good to go. Example below:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/Rt8GnEpdUwI/AAAAAAAAAGM/IDaKcmuy52Y/s1600-h/7.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/Rt8GnEpdUwI/AAAAAAAAAGM/IDaKcmuy52Y/s320/7.png" alt="" id="BLOGGER_PHOTO_ID_5106807770793726722" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I will add more details/tips along the way.&lt;br /&gt;&lt;br /&gt;As always good luck!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-4628802363702298967?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/4628802363702298967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=4628802363702298967&amp;isPopup=true' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/4628802363702298967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/4628802363702298967'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/09/configuring-minicom-on-ubuntu-to.html' title='Configuring Minicom on Ubuntu to connect to Cisco Router'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_mPIx1MFtaGw/Rt8FxkpdUpI/AAAAAAAAAFU/IWpEJpSX_2s/s72-c/1.png' height='72' width='72'/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-4064208737979623758</id><published>2007-09-01T20:03:00.000+01:00</published><updated>2007-09-01T20:25:21.900+01:00</updated><title type='text'>FTP Server:  Proftpd</title><content type='html'>I put a server to share files with friends and I had in my hands a little project on how to share them. For this time I chose to use the always friendly FTP service. Googling around I found Proftpd as one of the heavyweights for this and decided to install it. It can be found at:  &lt;a href="http://www.proftpd.org/"&gt;http://www.proftpd.org/&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I am using Debian, 3.1 with kernel 2.6.22.6. Installation thanks to apt is quite easy..&lt;br /&gt;&lt;br /&gt;a) &lt;span style="font-size:85%;"&gt;apt-get install proftpd &lt;/span&gt;.. that was it. no more. (there is a question on installing as inetd or standalone, you should choose your favorite).&lt;br /&gt;&lt;br /&gt;The next steps were to set it up so I can create ftp users "virtual" without shell access (they are not that good friends!) and limit them to upload/download only in certain directories.&lt;br /&gt;&lt;br /&gt;First add the following on &lt;span style="font-size:85%;"&gt;/etc/proftpd/proftpd.conf &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;# Set /home/FTP-shared directory as home directory&lt;br /&gt;DefaultRoot /media/muploads&lt;br /&gt;&lt;br /&gt;# Lock all the users in home directory, ***** really important *****&lt;br /&gt;DefaultRoot ~&lt;br /&gt;&lt;br /&gt;AuthUserFile /etc/proftpd/ftpd.passwd&lt;br /&gt;AuthGroupFile /etc/proftpd/ftpd.group&lt;br /&gt;&lt;br /&gt;&lt;directory&gt;&lt;br /&gt;Umask 022 022&lt;br /&gt;AllowOverwrite off&lt;br /&gt;&lt;limit&gt;&lt;br /&gt;DenyAll&lt;br /&gt;&lt;/limit&gt;&lt;br /&gt;&lt;/directory&gt;&lt;br /&gt;&lt;br /&gt;&lt;directory&gt;&lt;br /&gt;Umask 022 022&lt;br /&gt;AllowOverwrite off&lt;br /&gt;&lt;limit&gt;&lt;br /&gt;DenyAll&lt;br /&gt;&lt;/limit&gt;&lt;br /&gt;&lt;/directory&gt;&lt;br /&gt;&lt;br /&gt;&lt;directory&gt; /media/muploads/uploads/&gt;&lt;br /&gt;Umask 022 022&lt;br /&gt;AllowOverwrite on&lt;br /&gt;&lt;limit&gt;&lt;br /&gt;DenyAll&lt;br /&gt;&lt;/limit&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;The directories &lt;span style="font-size:85%;"&gt;/media/muploads/uploads&lt;/span&gt; and &lt;span style="font-size:85%;"&gt;/media/muploads/downloads&lt;/span&gt; should exist already.&lt;br /&gt;&lt;br /&gt;Second you have to create the users. For this you need to download a file called ftpasswd. This script would be used to create 2 files, ftp.passwd and ftp.group. Both files replaces the system group and passwd files. Read the documentation to learn more about them.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;ftpasswd --passwd --name=user --uid=501 --gid=500 --home=/media/muploads --she&lt;br /&gt;ll=/bin/false&lt;br /&gt;ftpasswd --group --name=ftpvirt --gid=500 --member=user&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The first command with the --passwd flag will ask you for a password for the user "user", just add it.&lt;br /&gt;&lt;br /&gt;The next step is to add the shell &lt;span style="font-size:85%;"&gt;/bin/false &lt;/span&gt;to the &lt;span style="font-size:85%;"&gt;/etc/shells&lt;/span&gt; file.  If this step is not done when user "user" tries to log in it would get an error as the shell doesn't exist. Note that the shell actually doesn't exist as we don't want the uses to telnet or ssh to the pc but adding the line &lt;span style="font-size:85%;"&gt;/bin/false&lt;/span&gt; to the file solves the problem.&lt;br /&gt;&lt;br /&gt;The final step is to change the permissions of the directories.&lt;br /&gt;&lt;br /&gt;on /media/muploads do a:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;    chown 500:501 downloads&lt;br /&gt;    chown 500:501 uploads&lt;br /&gt;    chmod 777 uploads&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The userid and groupid are the same for all users and directory. It doesn't matter that they don't exists (keep an eye if you have several users not to use this ids). The chmod 777 is quite extreme and you should use something more secure.&lt;br /&gt;&lt;br /&gt;The result, an ftp server that allows connections from virtual users. Diverts them directory to a general home directory and not systems home directories and that are allowed to download from one directory and only upload into another.&lt;br /&gt;&lt;br /&gt;As always I am sure there are security holes the size on the moon on this procedure but it is a start.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-4064208737979623758?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/4064208737979623758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=4064208737979623758&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/4064208737979623758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/4064208737979623758'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/09/ftp-server-proftpd.html' title='FTP Server:  Proftpd'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-1949285718866594547</id><published>2007-09-01T16:11:00.000+01:00</published><updated>2007-09-01T16:21:24.973+01:00</updated><title type='text'>Installing new hard disk on Debian</title><content type='html'>I got a new disk 40GB disk (found it on the office ether of unused stuff) and installed it on my little Debian server that only has a 20GB disk on it.&lt;br /&gt;&lt;br /&gt;The usage of the new disk would be something very productive for the organization, we will use it to share movies!. Ok probably IT Security will kick my ass if they found out but we will deal with that later.&lt;br /&gt;&lt;br /&gt;So the steps to add the disk are quite simple. This is an IDE disk and the first step is to connect the hardware (power, ide cable etc). Power up and the fun begins.&lt;br /&gt;&lt;br /&gt;a) run fdisk /dev/hdb to partition the disk (check dmseg to see the name it has, in my case hdb that is the standard).&lt;br /&gt;b) on fdisk I just created a primary partition and used 100% of the disk. This depends on the purpose of the disk so study your options. Once the partition is created quit fdisk saving the changes.&lt;br /&gt;c) next step is to format the partition. I am using ext3 so the command to run is&lt;br /&gt;    mkfs.ext3 /dev/hdb1&lt;br /&gt;d) next you create a mount partition&lt;br /&gt;    mkdir /media/muploads&lt;br /&gt;e) next you mount the disk&lt;br /&gt;    mount /dev/hdb1 /media/muploads&lt;br /&gt;f) finally change your fstab settings so the disk is mounted on every boot.&lt;br /&gt;    vi /etc/fstab&lt;br /&gt;    add the following line&lt;br /&gt;    /dev/hdb1 /media/muploads ext3 defaults 0 2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;That was all. I am sure betting things can be done for RAID, etc. Notes are welcome (almost).&lt;br /&gt;Good luck&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-1949285718866594547?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/1949285718866594547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=1949285718866594547&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/1949285718866594547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/1949285718866594547'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/09/installing-new-hard-disk-on-debian.html' title='Installing new hard disk on Debian'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-781946696217004124</id><published>2007-09-01T01:09:00.001+01:00</published><updated>2007-09-01T01:33:23.722+01:00</updated><title type='text'>Book: Five Years at the Epicenter of the Dot.Com Juggernaut</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/Rtitx0pdUnI/AAAAAAAAAFE/P-MzTtuQW4o/s1600-h/amazonia.gif"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/Rtitx0pdUnI/AAAAAAAAAFE/P-MzTtuQW4o/s200/amazonia.gif" alt="" id="BLOGGER_PHOTO_ID_5105021249082184306" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span class="sans"&gt;I just finished reading this book - Five Years at the Epicenter of the Dot.Com Juggernaut by James Marcus - and unfortunately I couldn't see the put my experience on the authors tale. I enjoyed the book and found it amusing and educational on my search to see how business are made but as I work on a dot.com myself I was hoping to find an outside look of what I daily see.&lt;br /&gt;&lt;br /&gt;My work on a dot.com is not as glamorous as James's but I believe I leave my footprint on the not so "dot.com" part of the business (after all I am a telephony administrator/engineer on it) and also I have to say and I join the on the late shift (5 years after the company appear) so I was not on the stock options group - although I new some of them and when the company was finally bought there were no millionaires on the building except the top execs - as he was.&lt;br /&gt;&lt;br /&gt;Going back to the book, first I would like to write reviews like his but this is just a group of characters put together in bad sentences with what is on my head, so Sorry James!. I leave the book with the wish to read as much as possible. I love the passion on reading the author has and shows on his writing. I consider myself lucky to be able to read more than 15 books a year that although I know is nothing - my father easily reads 4/5 times that number - is much more than all the people I know. I want to start reading the not so marking books, most of my reading is bestseller top shelf nice cover good reviewed type of book. I want to read and enjoy those not so known authors that haven't sold their souls to the publishing machinery, it is just september so I still have a chance to get it.&lt;br /&gt;&lt;br /&gt;Another point of the book that I didn't like was that the book could have been about a beer factory and not one of the pioneers on the tech boom. I know the author mentions it all the time but every business wants to revolutionize his market anyway so if you replace the amazon for other success history the books remain the same. What I am trying to see is that I see it more as a history about corporate work than a specific book about working in amazon. Again sorry James but I don't think you will never read this anyway, I really think nobody would ever read this in fact!&lt;br /&gt;&lt;br /&gt;In summary a good read, I like books like The Search or Google more to learn about dot.com companies but I recommend the book (this is my editorial at the end!) to everybody.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-781946696217004124?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/781946696217004124/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=781946696217004124&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/781946696217004124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/781946696217004124'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/09/book-five-years-at-epicenter-of-dotcom.html' title='Book: Five Years at the Epicenter of the Dot.Com Juggernaut'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_mPIx1MFtaGw/Rtitx0pdUnI/AAAAAAAAAFE/P-MzTtuQW4o/s72-c/amazonia.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-6639759405538280367</id><published>2007-08-24T19:52:00.000+01:00</published><updated>2007-10-10T12:29:44.122+01:00</updated><title type='text'>Another Asterisk 1.4.11 installation</title><content type='html'>I haven't tested this installation at the time of the post (want to leave the office!!) but as always I keep my notes here to go back my steps later if needed.&lt;br /&gt;&lt;br /&gt;The installation is simple as always.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;a) Check version of GNU Make is greater than 3.79, just run&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:arial;"&gt;rbtest:/home/ricardo/asterisk_intall# make -v&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;GNU Make 3.81&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;b) Install some dependencies (errors show during the installation of pwlib)&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:arial;"&gt;$  apt-get install libldap2-dev&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;configure: error: pwlib needs the GNU Project fast lexical analyzer generator flex&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;$  apt-get install flex&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;configure: error: pwlib needs the GNU Project parser generator bison&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;$  apt-get install bison&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;  19  apt-get install kernel-packages ncurses-dev fakeroot bzip2&lt;br /&gt; 20  apt-get install kernel-package ncurses-dev fakeroot bzip2&lt;br /&gt; 21  apt-get install yaird fakeroot&lt;br /&gt; 22  apt-get install make-kpkg kernel_image&lt;br /&gt; 23  apt-get install  kernel_image&lt;br /&gt; 24  apt-get install sudo&lt;br /&gt; 25  apt-get install iniramfs-tools&lt;br /&gt; 26  apt-get install initramfs-tools&lt;br /&gt; 27  apt-get install bzip2&lt;br /&gt; 28  apt-get install libncurses-dev&lt;br /&gt; 30  ap-get install wget&lt;br /&gt; 35  apt-get install linux-headers-`uname -r` build-essential libnewt-dev libusb-dev&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;c) Download packages asterisk:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:arial;"&gt;rbtest:/home/ricardo/asterisk_intall# ls -ltr&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;total 16772&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;-rw-r--r--  1 ricardo ricardo 11218944 2007-08-24 16:25 asterisk-1.4.11.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;-rw-r--r--  1 ricardo ricardo  1563752 2007-08-24 16:25 zaptel-1.4.5.1.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;-rw-r--r--  1 ricardo ricardo    81178 2007-08-24 16:25 libpri-1.4.1.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;-rw-r--r--  1 ricardo ricardo  1000286 2007-08-24 16:26 asterisk-addons-1.4.2.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;-rw-r--r--  1 ricardo ricardo  3249876 2007-08-24 16:26 asterisk-sounds-1.2.1.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;drwxr-xr-x  2 root    root        4096 2007-08-24 18:03 libpri-1.4.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;drwxr-xr-x 24 root    root        4096 2007-08-24 19:11 asterisk-1.4.11&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;drwxr-sr-x 14 root    root       12288 2007-08-24 19:21 zaptel-1.4.5.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;rbtest:/home/ricardo/asterisk_intall#&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;d) Download packages openh323&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;wget http://downloads.sourceforge.net/openh323/pwlib-v1_10_3-src-tar.gz&lt;br /&gt;wget http://downloads.sourceforge.net/openh323/openh323-v1_18_0-src-tar.gz&lt;br /&gt;&lt;br /&gt;rbtest:/home/ricardo/openh323_install# ls -ltr&lt;br /&gt;total 5704&lt;br /&gt;-rw-r--r-- 1 root root 3742730 2006-03-26 12:28 openh323-v1_18_0-src-tar.gz&lt;br /&gt;-rw-r--r-- 1 root root 2079871 2007-01-25 00:01 pwlib-v1_10_3-src-tar.gz&lt;br /&gt;drwxr-xr-x 9 1010 3000    4096 2007-08-24 18:28 pwlib_v1_10_3&lt;br /&gt;drwxr-xr-x 7 1010 3000    4096 2007-08-24 18:40 openh323_v1_18_0&lt;br /&gt;rbtest:/home/ricardo/openh323_install#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;e) Install Openh323&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:arial;"&gt;tar zxvf pwlib-v1_10_3-src-tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;cd pwlib_v1_10_3/&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;./configure&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:arial;"&gt;export PWLIBDIR=/home/ricardo/openh323_install/pwlib_v1_10_3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;cp $PWLIBDIR/lib/libpt_linux_x86_r.so.1.10.3 /usr/lib&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;cd ..&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It is very important that you set the PWLIBDIR to your path, othewise OpenH323 will not find it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;tar zxvf openh323-v1_18_0-src-tar.gz&lt;br /&gt;cd openh323_v1_18_0/&lt;br /&gt;./configure&lt;br /&gt;make opt&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;export OPENH323DIR=/home/ricardo/openh323_install/openh323_v1_18_0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;cp $OPENH323DIR/lib/libh323_linux_x86_r.so.1.18.0 /usr/lib&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Aain we must set the OPENH323DIR variable, so Asterisk can know here to look for OpenH323. We copy the library manually to the system directory, as we do not care about the rest of OpenH323 features.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;f) Install zaptel, libpri, asterisk&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:arial;"&gt;tar zxvf zaptel-1.4.4.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;cd zaptel-1.4.4&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;./configure&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;make menuselect&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;At this point use the menuselect utility to select which Zaptel hardware - if any - you have on board. Please remeber that if you want to exit keeping the changes you made, you must press x, while q will quit without saving and the left arrow will get you back to the previous menu. Even if you do not have Zaptel hardware, you should compile the ztdummy driver.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;make&lt;br /&gt;make install&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Now we install libpri&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:arial;"&gt;tar zxvf libpri-1.4.1.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;cd ..&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Now we build Asterisk itself:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:arial;"&gt;tar zxvf asterisk-1.4.8.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;./configure&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;make menuselect&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;At this point, you should go to the Channels menu and see that H323 is enabled. If it's not, vey likely you did not set OPENH323DIR or PWLIBDIR, so configure cannot enable H.323 by default.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;make&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You will get the following error, so run the make again:&lt;br /&gt;When compiling with H.323 support, the first time you run make it will end with an error telling you to run make again. This is okay, just do it as it says.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;***************************************************************&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;********** Re-run 'make' to pick up H.323 parameters **********&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;***************************************************************&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;make[1]: *** [h323/libchanh323.a] Error 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;make samples&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;cd ..&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This should be it. I checked that my /etc/zaptel.conf was missing. Not sure if this is because I didn't have any hardware installed. Just in case I copied&lt;br /&gt;150  cp /home/ricardo/asterisk_intall/zaptel-1.4.5.1/zaptel.conf.sample /etc/zaptel.conf&lt;br /&gt;&lt;br /&gt;Run the moprobe on zapte/ztdummy&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:arial;"&gt;  151  modprobe zaptel&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;  152  lsmod&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;  153  modprobe ztdummy&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;  154  lsmod&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Change the default zone on zaptel.conf to UK&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;156  vi /etc/zaptel.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Run the configuration and obviously 0 boards configured message appear:&lt;br /&gt;&lt;span style=";font-family:arial;font-size:85%;"  &gt;  157  ztcfg -v&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Started Asterisk&lt;br /&gt;&lt;span style="font-size:85%;"&gt;  158  asterisk -vvvvvvvvvvvvvvvvvvvvvvvvvvc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Will test this solution. Will do the installation of add-ons and sounds later as add-ons brings an h323 solution by itself.&lt;br /&gt;&lt;br /&gt;Enabling H.323&lt;br /&gt;In order to enable H.323, you simply edit /etc/asterisk/h323.conf as follows:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;gatekeeper = DISCOVER&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;context=h323&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This will tell it to find the gatekeeper automatically and to route incoming calls to context h323.&lt;br /&gt;To place an outbound call fron Asterisk, you just dial:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;exten =&gt; 21,1,Dial(h323/21)&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;This will find the terminal 21 through the Gatekeeper and will call it as needed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Main article retrieved from:&lt;br /&gt;http://astrecipes.net/index.php?n=286&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-6639759405538280367?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/6639759405538280367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=6639759405538280367&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/6639759405538280367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/6639759405538280367'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/08/another-asterisk-1411-installation.html' title='Another Asterisk 1.4.11 installation'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-8220428291204865962</id><published>2007-08-23T21:42:00.000+01:00</published><updated>2007-08-23T21:48:16.897+01:00</updated><title type='text'>Install Sun Java on Ubuntu 7.04</title><content type='html'>The installation of Java is quite easy. The default installation has the GNU version of Java, to run Sun engine first install the following packages:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: arial;"&gt;sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then check the version of Java running, the GNU version should still be the default one:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;ricardo@lmnwok1:~$ java -version&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;java version "1.4.2"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;gij (GNU libgcj) version 4.1.2 (Ubuntu 4.1.2-0ubuntu5)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Copyright (C) 2006 Free Software Foundation, Inc.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;This is free software; see the source for copying conditions.  There is NO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;ricardo@lmnwok1:~$&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;  &lt;br /&gt;To select the new Sun engine run the update-alternatives as below and select the option you want to use:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;font-size:85%;" &gt;ricardo@lmnwok1:~$ sudo update-alternatives --config java&lt;br /&gt;&lt;br /&gt;There are 3 alternatives which provide `java'.&lt;br /&gt;&lt;br /&gt; Selection    Alternative&lt;br /&gt;-----------------------------------------------&lt;br /&gt;         1    /usr/bin/gij-wrapper-4.1&lt;br /&gt;         2    /usr/lib/jvm/java-6-sun/jre/bin/java&lt;br /&gt;*+        3    /usr/lib/jvm/java-gcj/jre/bin/java&lt;br /&gt;&lt;br /&gt;Press enter to keep the default[*], or type selection number: 2&lt;br /&gt;Using `/usr/lib/jvm/java-6-sun/jre/bin/java' to provide `java'.&lt;br /&gt;ricardo@lmnwok1:~$&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now when checking the version you will see the new one:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;font-size:85%;" &gt;ricardo@lmnwok1:~$ java -version&lt;br /&gt;java version "1.6.0"&lt;br /&gt;Java(TM) SE Runtime Environment (build 1.6.0-b105)&lt;br /&gt;Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)&lt;br /&gt;ricardo@lmnwok1:~$&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After this as in my other post change the JRE used by Eclipse.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-8220428291204865962?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/8220428291204865962/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=8220428291204865962&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/8220428291204865962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/8220428291204865962'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/08/install-sun-java-on-ubuntu-704.html' title='Install Sun Java on Ubuntu 7.04'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-6700757341039914791</id><published>2007-08-21T19:27:00.000+01:00</published><updated>2007-08-23T21:48:53.938+01:00</updated><title type='text'>Ubuntu 7.04 on Dell Latitude D620</title><content type='html'>I got that urge again of installing linux on my laptop. I've been using Fedora in the past but after the latest crash (that needed to get a new hard disk but I had to admit that I don't know if Fedora crash the disk or the disk crash Fedora) and as I normally install Debian on the servers (and due all the people I know and magazines and post I have read about Ubuntu) I decided to install Ubuntu on my laptop.&lt;br /&gt;&lt;br /&gt;I went to the Ubuntu site and downloaded the image for the CD, run it on my laptop and first I was surprised about the installation process. Normally I install windows, leave enough space for Linux and then install Linux on the free space.&lt;br /&gt;&lt;br /&gt;Ubuntu is different from the start. The cd is a LiveCD, once it is loaded on the desktop there is a shortcut to install Ubuntu. You click on it and you go on with the wizard. The only part that you have to keep an eye is on the disk partitioning. The automatic wizard resize existing file disk option didn't work (some kind of error) a friend at the office mentioned that he had the same problem and selected the option to do it manually. I choose it and altered my windows partition and it did an automatic resize of it (don't know if it worked as I haven't use my windows partition yet), once you have enough space you create you swap and you other mounting points. As this is my first attempt I created only "swap" and "/".&lt;br /&gt;&lt;br /&gt;Next the installation is quite simple, once finished I run this two install packages:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-size:85%;"&gt;#&lt;/span&gt;&lt;span style="font-size:85%;"&gt; sudo apt-get install 915resolution (reboot)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;On which you need to edit the /etc/default/915resolution file. &lt;/span&gt;&lt;/span&gt;&lt;div style="font-family: arial;" class="file"&gt;&lt;span style="font-size:85%;"&gt; MODE=Auto&lt;br /&gt;XRESO=1440&lt;br /&gt;YRESO=900&lt;br /&gt;BIT=&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;And...&lt;br /&gt;&lt;span style="font-family: arial;font-size:85%;" &gt;# sudo apt-get install network-manager-pptp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I am still playing with this last one.&lt;br /&gt;&lt;br /&gt;I will add more notes later as soon as I get my feet wet on Ubuntu (first thing I noticed is that I have to sudo everything.. I miss root)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-6700757341039914791?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/6700757341039914791/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=6700757341039914791&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/6700757341039914791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/6700757341039914791'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/08/ubuntu-704-on-dell-latitude-d620.html' title='Ubuntu 7.04 on Dell Latitude D620'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-7739510648539182224</id><published>2007-07-10T15:29:00.000+01:00</published><updated>2007-07-10T16:05:26.809+01:00</updated><title type='text'>Book: Hardvard Business Review on Innovation</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://harvardbusinessonline.hbsp.harvard.edu/b02/en/common/item_detail.jhtml;jsessionid=HBGMYPDTDSFQ2AKRGWCB5VQBKE0YOISW?id=6145&amp;referral=1043"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 113px; height: 171px;" src="http://2.bp.blogspot.com/_mPIx1MFtaGw/Rn7TFrc7fPI/AAAAAAAAABw/sIUBBpO5jiM/s400/6145_c.gif" alt="" border="0" /&gt;&lt;/a&gt;This is basically a compilation of articles that appeared on the HBR magazine. The articles present on this book are:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;* &lt;/span&gt;Creating New Market Space&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;* &lt;/span&gt;Creating Breakthroughs at 3M&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;* &lt;/span&gt;Building an Innovation Factory&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;* &lt;/span&gt;Knowing a Winning Business Ida When You see One&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;* &lt;/span&gt;Meeting the Challenge of Disruptive Change&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;* &lt;/span&gt;Discovering New Points of Differentiation&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;* &lt;/span&gt;From Spare Change to Real Change: The Social Sector as Beta Site for Business Innovation&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;* &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;Enlightened Experimentation: The New Imperative for Innovation&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What did I learn from it? Consciously not much, the book started very well but it became boring or not that enlightening at the end so it took me much more time to finish it than expected (as falling sleep while reading a single page).&lt;br /&gt;&lt;br /&gt;But what it left me with 2 mayor notes, the way to innovation is breaking models and managers solve but innovator leads (or similar). I am sure that if one day I do the change from my low technically emotional job working under and with completely useless people in my opinion, I will read it again quickly to remember the tips it gives on how to think.&lt;br /&gt;&lt;br /&gt;Also the fact that they sell a book at almost 20U$D made of articles from a magazine that they already sold (physically, on the web, subscription, pamphlets, umbrellas, etc) gives a little of faith on the innovation of this guys.&lt;br /&gt;&lt;br /&gt;So do I recommend it? Yes but as quick read.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-7739510648539182224?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/7739510648539182224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=7739510648539182224&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/7739510648539182224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/7739510648539182224'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/07/book-hardvard-business-review-on.html' title='Book: Hardvard Business Review on Innovation'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_mPIx1MFtaGw/Rn7TFrc7fPI/AAAAAAAAABw/sIUBBpO5jiM/s72-c/6145_c.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-2806026141789178614</id><published>2007-07-04T19:36:00.000+01:00</published><updated>2007-07-04T21:26:23.832+01:00</updated><title type='text'>Book: Stories of Your Life and Others</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_mPIx1MFtaGw/Rov8qbjZDTI/AAAAAAAAADY/GS6R3jtRJjY/s1600-h/storiesq.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5083434410298641714" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://4.bp.blogspot.com/_mPIx1MFtaGw/Rov8qbjZDTI/AAAAAAAAADY/GS6R3jtRJjY/s200/storiesq.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;Stories of Your life and Others by Ted Chiang might be the second science fiction book I read in the last two years and I recommend it to everyone. The previous one was "&lt;a href="http://www.amazon.com/s/ref=nb_ss_b/105-6253624-1866804?initialSearch=1&amp;url=search-alias%3Dstripbooks&amp;amp;field-keywords=guide+to+the+galaxy"&gt;The Hitchhiker's Guide to the Galaxy&lt;/a&gt;" but I liked Chiang's writing better. &lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br&gt;I might be doing a comparison of rocks and apples here but the different writing stiles of each history make it great. I was impressed with one of them about a man whose intelligence gets increase on where the writing makes your heart beat accelerate and takes you to a journey were you can feel how the main character is feeling things. &lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br&gt;All stories were great and unique making you think, dream and look back. Again a book recommended to all. By the way you have no idea how much it took me to upload the image of the cover of the book (copyright to the owner, publicist, etc, etc), kind of spooky maybe the fiction is should not be before the science.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br&gt;Read, explore, open new windows and get lost as much as possible!&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:78%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:78%;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style="font-size:78%;"&gt;&lt;br&gt;(As always all images, etc are copyright by the owner and this never happened)&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-2806026141789178614?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/2806026141789178614/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=2806026141789178614&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/2806026141789178614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/2806026141789178614'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/07/book-review-stories.html' title='Book: Stories of Your Life and Others'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_mPIx1MFtaGw/Rov8qbjZDTI/AAAAAAAAADY/GS6R3jtRJjY/s72-c/storiesq.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-172980078580230870</id><published>2007-06-26T20:01:00.000+01:00</published><updated>2007-07-04T19:36:34.153+01:00</updated><title type='text'>Boring notes of day to day Linux</title><content type='html'>These are just some notes from my last asterisk installation (done on may 15th but notes lost between all the desktop files) and they are here because man is the only animal that stumbles on the same rock and even worst I am far away to grew up.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;a) Usefull installations for debian:&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;apt-get install mc bzip2 zip unzip ngrep iproute less&lt;br /&gt;&lt;/span&gt;&lt;em&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;b) Some detatails on debian networking:&lt;/em&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;Networking:&lt;br /&gt;&lt;br /&gt;rbast:/etc/network# pwd&lt;br /&gt;/etc/network&lt;br /&gt;rbast:/etc/network# more interfaces&lt;br /&gt;# This file describes the network interfaces available on your system&lt;br /&gt;# and how to activate them. For more information, see interfaces(5).&lt;br /&gt;&lt;br /&gt;# The loopback network interface&lt;br /&gt;auto lo&lt;br /&gt;iface lo inet loopback&lt;br /&gt;&lt;br /&gt;# The primary network interface&lt;br /&gt;allow-hotplug eth0&lt;br /&gt;iface eth0 inet dhcp&lt;br /&gt;rbast:/etc/network#&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Could be changed to:&lt;br /&gt;This file describes the network interfaces available on your system&lt;br /&gt;# and how to activate them. For more information, see interfaces(5).&lt;br /&gt;&lt;br /&gt;# The loopback network interface&lt;br /&gt;auto lo&lt;br /&gt;iface lo inet loopback&lt;br /&gt;&lt;br /&gt;# The primary network interface&lt;br /&gt;auto eth0&lt;br /&gt;iface eth0 inet static&lt;br /&gt;address 10.0.2.51&lt;br /&gt;netmask 255.255.255.0&lt;br /&gt;gateway 10.0.2.254&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;em&gt;c) how to open bz2 files (I always forget!!!) &lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;tar -xjvf asterisk_settings.tar.bz2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;d) I got an autoconf error&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;autonf error: solved by installing atuconf (apt-get) and running make config.&lt;br /&gt;&lt;br /&gt;232 make&lt;br /&gt;233 make config&lt;br /&gt;234 make install&lt;br /&gt;235 history&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;e) I got a cc1plus error&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;Asterisk installation: Got an error related to cc1plus while doing the .configuration. I apt-geted the packaged and worked.&lt;br /&gt;&lt;br /&gt;apt-get install build-essential&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;f) Finally booting Asterisk at start time:&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;147 cd /etc/init.d/&lt;br /&gt;148 cp /usr/src/asterisk-1.4.4/contrib/init.d/rc.debian.asterisk ./asterisk&lt;br /&gt;149 ls&lt;br /&gt;150 update-rc.d asterisk defaults&lt;br /&gt;&lt;br /&gt;It should display the following output:&lt;br /&gt;&lt;br /&gt;rbast:/etc/init.d# update-rc.d asterisk defaults&lt;br /&gt;Adding system startup for /etc/init.d/asterisk ...&lt;br /&gt;/etc/rc0.d/K20asterisk -&gt; ../init.d/asterisk&lt;br /&gt;/etc/rc1.d/K20asterisk -&gt; ../init.d/asterisk&lt;br /&gt;/etc/rc6.d/K20asterisk -&gt; ../init.d/asterisk&lt;br /&gt;/etc/rc2.d/S20asterisk -&gt; ../init.d/asterisk&lt;br /&gt;/etc/rc3.d/S20asterisk -&gt; ../init.d/asterisk&lt;br /&gt;/etc/rc4.d/S20asterisk -&gt; ../init.d/asterisk&lt;br /&gt;/etc/rc5.d/S20asterisk -&gt; ../init.d/asterisk&lt;br /&gt;rbast:/etc/init.d# history&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-172980078580230870?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/172980078580230870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=172980078580230870&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/172980078580230870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/172980078580230870'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/06/general-notes.html' title='Boring notes of day to day Linux'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-2888610137339530191</id><published>2007-06-25T15:32:00.000+01:00</published><updated>2007-06-25T15:53:32.812+01:00</updated><title type='text'>Must have applications for your Windows PC</title><content type='html'>Below is a list of applications that do my work and windows experience more easy. They are not sorted in any particular order and note that they are all light applications, no hundreds of MB involved.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Total commander&lt;/strong&gt; - &lt;a href="http://www.ghisler.com/"&gt;http://www.ghisler.com/&lt;/a&gt;&lt;br /&gt;A clon of the famous Norton commander used long time ago (yes I am that old and also you can have mc on your Linux) that you can use to manage your files, ftp, connect to other boxes, etc. Visit the website and go back in time where things were simpler.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Cerberus &lt;/strong&gt;- &lt;a href="http://www.cerberusftp.com/"&gt;http://www.cerberusftp.com/&lt;/a&gt;&lt;br /&gt;An FTP server easy and quickly to run on you pc. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Snagit&lt;/strong&gt; - &lt;a href="http://www.techsmith.com/screen-capture.asp"&gt;http://www.techsmith.com/screen-capture.asp&lt;/a&gt;&lt;br /&gt;A must have if you have to send documents with manuals or showing users what to do. Easily capture your screen, edit it, modified it, copy it and just send it or paste it or save it in whichever format you want.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Textpad &lt;/strong&gt;- &lt;a href="http://www.textpad.com/"&gt;http://www.textpad.com/&lt;/a&gt;&lt;br /&gt;A text editor to replace the old notepad on which you cannot do much. If you deal with logs and simple files and want to do searchs, compares, replaces, etc. this is the tool for you (other textedit or vim for windows but I always go back to Textepad).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Putty &lt;/strong&gt;-&lt;a href=" http://www.chiark.greenend.org.uk/~sgtatham/putty/"&gt; http://www.chiark.greenend.org.uk/~sgtatham/putty/&lt;/a&gt;&lt;br /&gt;Not sure if this is the right site where to download it but Google for it. A great and complete telnet and ssh and others. Very useful to replace the windows telnet.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Videolan &lt;/strong&gt;- &lt;a href="http://www.videolan.org/"&gt;http://www.videolan.org/&lt;/a&gt;&lt;br /&gt;This is to reproduce video files of all types (almost) very easy to use with some extra features as to stream your movie to your friends if they are on the same network.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Synergy &lt;/strong&gt;- &lt;a href="http://synergy2.sourceforge.net/"&gt;http://synergy2.sourceforge.net/&lt;/a&gt;&lt;br /&gt;If you have 2 pcs or more you can just use 1 keyboard and mouse to control both systems. I have my desktop and my laptop in the office and I use my normal keyboard for both, it shares memory so copy paste can be copy and no more having several mouse laying around not knowing which one to use and occupying all your desktop space.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Foxit &lt;/strong&gt;pdf reader - &lt;a href="http://www.foxitsoftware.com/pdf/rd_intro.php"&gt;http://www.foxitsoftware.com/pdf/rd_intro.php&lt;/a&gt;&lt;br /&gt;This is not a must but aren't you tired of downloading 70MB to read a 30K pdf!!. This is a PDF reader free to use, there is a pay option for a writer but I don't need it yet. One day Adobe would need to launch a light version of their app that consumes less memory also.&lt;br /&gt;&lt;br /&gt;Other applications I sue are the &lt;em&gt;CoolEdit&lt;/em&gt;, RealVNC (or any vnc clon), &lt;em&gt;WinSPC3 &lt;/em&gt;and &lt;em&gt;ActivePorts&lt;/em&gt;.&lt;br /&gt;&lt;br /&gt;Ok that is my list for the time being, I would have to go through my start/programs menu to find out more but if I have to find them then they are not essential.&lt;br /&gt;&lt;br /&gt;Good luck!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-2888610137339530191?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/2888610137339530191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=2888610137339530191&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/2888610137339530191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/2888610137339530191'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/06/must-have-applications-for-your-windows.html' title='Must have applications for your Windows PC'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-7678566922783707422</id><published>2007-06-24T16:04:00.000+01:00</published><updated>2007-06-24T16:06:29.149+01:00</updated><title type='text'>Benjamin Franklin's Thirteen Virtues</title><content type='html'>One of the things I would like to take from Benjamin Franklin are the virtudes that he tried to follow. I have a lot of work to do on most of them, but it simpler now that I have identify them.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Garamond;"&gt;1. &lt;/span&gt;&lt;span style="font-weight: bold;font-family:Garamond;" &gt;TEMPERANCE&lt;/span&gt;&lt;span style="font-family:Garamond;"&gt;. Eat not to dullness; drink not to elevation.&lt;/span&gt; &lt;span style="font-family:Garamond;"&gt;&lt;br /&gt;2. &lt;/span&gt;&lt;span style="font-weight: bold;font-family:Garamond;" &gt;SILENCE&lt;/span&gt;&lt;span style="font-family:Garamond;"&gt;. Speak not but what may benefit others or yourself; avoid trifling conversation.&lt;/span&gt; &lt;span style="font-family:Garamond;"&gt;&lt;br /&gt;3. &lt;/span&gt;&lt;span style="font-weight: bold;font-family:Garamond;" &gt;ORDER&lt;/span&gt;&lt;span style="font-family:Garamond;"&gt;. Let all your things have their places; let each part of your business have its time.&lt;/span&gt; &lt;span style="font-family:Garamond;"&gt;&lt;br /&gt;4. &lt;/span&gt;&lt;span style="font-weight: bold;font-family:Garamond;" &gt;RESOLUTION&lt;/span&gt;&lt;span style="font-family:Garamond;"&gt;. Resolve to perform what you ought; perform without fail what you resolve.&lt;/span&gt; &lt;span style="font-family:Garamond;"&gt;&lt;br /&gt;5. &lt;/span&gt;&lt;span style="font-weight: bold;font-family:Garamond;" &gt;FRUGALITY&lt;/span&gt;&lt;span style="font-family:Garamond;"&gt;. Make no expense but to do good to others or yourself; i.e., waste nothing.&lt;/span&gt; &lt;span style="font-family:Garamond;"&gt;&lt;br /&gt;6. &lt;/span&gt;&lt;span style="font-weight: bold;font-family:Garamond;" &gt;INDUSTRY&lt;/span&gt;&lt;span style="font-family:Garamond;"&gt;. Lose no time; be always employ'd in something useful; cut off all unnecessary actions.&lt;/span&gt; &lt;span style="font-family:Garamond;"&gt;&lt;br /&gt;7. &lt;/span&gt;&lt;span style="font-weight: bold;font-family:Garamond;" &gt;SINCERITY&lt;/span&gt;&lt;span style="font-family:Garamond;"&gt;. Use no hurtful deceit; think innocently and justly, and, if you speak, speak accordingly.&lt;/span&gt; &lt;span style="font-family:Garamond;"&gt;&lt;br /&gt;8. &lt;/span&gt;&lt;span style="font-weight: bold;font-family:Garamond;" &gt;JUSTICE&lt;/span&gt;&lt;span style="font-family:Garamond;"&gt;. Wrong none by doing injuries, or omitting the benefits that are your duty.&lt;/span&gt; &lt;span style="font-family:Garamond;"&gt;&lt;br /&gt;9. &lt;/span&gt;&lt;span style="font-weight: bold;font-family:Garamond;" &gt;MODERATION&lt;/span&gt;&lt;span style="font-family:Garamond;"&gt;. Avoid extreams; forbear resenting injuries so much as you think they deserve.&lt;/span&gt; &lt;span style="font-family:Garamond;"&gt;&lt;br /&gt;10. &lt;/span&gt;&lt;span style="font-weight: bold;font-family:Garamond;" &gt;CLEANLINESS&lt;/span&gt;&lt;span style="font-family:Garamond;"&gt;. Tolerate no uncleanliness in body, cloaths, or habitation.&lt;/span&gt; &lt;span style="font-family:Garamond;"&gt;&lt;br /&gt;11.&lt;/span&gt;&lt;span style="font-weight: bold;font-family:Garamond;" &gt;TRANQUILLITY&lt;/span&gt;&lt;span style="font-family:Garamond;"&gt;. Be not disturbed at trifles, or at accidents common or unavoidable.&lt;/span&gt; &lt;span style="font-family:Garamond;"&gt;&lt;br /&gt;12. &lt;/span&gt;&lt;span style="font-weight: bold;font-family:Garamond;" &gt;CHASTITY&lt;/span&gt;&lt;span style="font-family:Garamond;"&gt;. Rarely use venery but for health or offspring, never to dulness, weakness, or the injury of your own or another's peace or reputation.&lt;/span&gt; &lt;span style="font-family:Garamond;"&gt;&lt;br /&gt;13. &lt;/span&gt;&lt;span style="font-weight: bold;font-family:Garamond;" &gt;HUMILITY&lt;/span&gt;&lt;span style="font-family:Garamond;"&gt;. Imitate Jesus and Socrates.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(is there something wrong that I liked the virtudes of somebody who lived +200 years ago when slavery was still in practice?... also if you think about it, the world lives by 10 rules that were given to us +2000 and other +6000 and even longer)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-7678566922783707422?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/7678566922783707422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=7678566922783707422&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/7678566922783707422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/7678566922783707422'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/06/benjamin-franklins-thirteen-virtues.html' title='Benjamin Franklin&apos;s Thirteen Virtues'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-9063682673277077543</id><published>2007-06-24T15:17:00.000+01:00</published><updated>2007-06-24T15:53:24.583+01:00</updated><title type='text'>Book - Benjamin Franklin An American Life</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mPIx1MFtaGw/Rn59Obc7fJI/AAAAAAAAAAw/jdy_WMqdcpY/s1600-h/bf_al.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://1.bp.blogspot.com/_mPIx1MFtaGw/Rn59Obc7fJI/AAAAAAAAAAw/jdy_WMqdcpY/s400/bf_al.jpg" alt="" id="BLOGGER_PHOTO_ID_5079635116561235090" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I read Walter Isaacson book about Benjamin Franklin - note I am not american and english is not my first language! - and I have to say that I like it.&lt;br /&gt;&lt;br /&gt;I am not a writer, critic and I am consider myself a normal human being with my own mind. I think the book was more about Benjamin Franklin on the american revolution (then the "An American Life" of the title makes sense) that a biography of this really interesting man. You can argue that this life was america and I agree on that. Everybody has the right to his own opinion right?&lt;br /&gt;&lt;br /&gt;I recommend this book to everybody and one can lear a lot from it (or at least a few things depending on how commited and inteligent you are, in my case.. I just learned a little). As said the book focused more on Franklin's part on the American Independence, how from a loyal royalist became a patriot and help the US to get it idependence. (In my opinion a change more induced by the "practicallity of it" that the book mentioned he always focus on rather on actually believing it).&lt;br /&gt;&lt;br /&gt;You can also learn about his family and scientific work, how he thought, worked and specially wrote. It is amazing how good (always in a practical way) he was writting and how much he wrote, ok no every idiot (: has his own blog but for back then this man really knew how to express ideas, how to influence people and how to tell the truth.&lt;br /&gt;&lt;br /&gt;I didn't like how John Adams, Thomas Jefferson and Washington were portrayed (does that word exists?) and I didn't share Franklin's view about family.&lt;br /&gt;&lt;br /&gt;In general I admire the guy, would buy him a beer as the book say but would not spend my christmas with him as I like to be with my family.&lt;br /&gt;&lt;br /&gt;Funny thing at the same time I read this book I saw the movie called the "&lt;a href="http://www.imdb.com/title/tt0822854/"&gt;Shooter&lt;/a&gt;" (ok a blockbuster type of movie full of explosions with a die hard type of hero) and on it near the end the poor underdog hero confronts a US "sitting" senator about his actions and this says: "There are no sides.... there are republican and democrats there are haves and haves not... This is a country where a secretary of defense can go on tv and tell the american public that this is about freedom is not about oil"  so ok, this is a movie but how far is from the true?&lt;br /&gt;&lt;br /&gt;Again read this book or any other biography of Franklin, after this I am looking forward to read about Washington and Edison.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-9063682673277077543?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/9063682673277077543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=9063682673277077543&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/9063682673277077543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/9063682673277077543'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/06/book-benjamin-franklin-american-life.html' title='Book - Benjamin Franklin An American Life'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_mPIx1MFtaGw/Rn59Obc7fJI/AAAAAAAAAAw/jdy_WMqdcpY/s72-c/bf_al.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-8314445514129572885</id><published>2007-06-24T14:58:00.000+01:00</published><updated>2007-06-24T22:10:18.661+01:00</updated><title type='text'>Testing Google Docs!</title><content type='html'>This is a test of google docs direct posting to blogger. It is an nice alternative to the blogpost post manager and google is full of utils to make your net experience more control by them!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So at this moment I am using.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/Rn7Ym7c7fQI/AAAAAAAAAB4/dJx4AZdk630/s1600-h/blogger.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/Rn7Ym7c7fQI/AAAAAAAAAB4/dJx4AZdk630/s400/blogger.jpg" alt="" id="BLOGGER_PHOTO_ID_5079735593026157826" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Blogspot&lt;/span&gt;... where I publish (not very often) what I do (that means I need to do more).&lt;br /&gt;Must have? Not really, you can use other servers.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_mPIx1MFtaGw/Rn7c9bc7fXI/AAAAAAAAACw/9oOK2e-N0tQ/s1600-h/docs.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://1.bp.blogspot.com/_mPIx1MFtaGw/Rn7c9bc7fXI/AAAAAAAAACw/9oOK2e-N0tQ/s400/docs.jpg" alt="" id="BLOGGER_PHOTO_ID_5079740377619725682" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Docs. &lt;/span&gt;Will become a must very shortly. Word and Excel like formats available on the web? No more loosing files due hard disk failures? No more forgetting the file at home? Sharing it with a team? Great features, a little concern about security (you would not                     put your company salary here yet) and would like to see a feature like automatic                             archive (imagine go back to all previous version of the same file).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/Rn7aq7c7fVI/AAAAAAAAACg/SME8a5LkJPM/s1600-h/picasa.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/Rn7aq7c7fVI/AAAAAAAAACg/SME8a5LkJPM/s400/picasa.jpg" alt="" id="BLOGGER_PHOTO_ID_5079737860768890194" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Picasa&lt;/span&gt;. Having see how useful this is. Now you can have a blog and a flog?. I used to have Flirck (just testing on one of my first posts) but was limited on the amount of files per month or size. Let's see if this gives me the freedon (and remains FREE) to upload                   more files to share with family and friends.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/Rn7aq7c7fWI/AAAAAAAAACo/3d95socXE50/s1600-h/talk.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/Rn7aq7c7fWI/AAAAAAAAACo/3d95socXE50/s400/talk.jpg" alt="" id="BLOGGER_PHOTO_ID_5079737860768890210" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Talk&lt;/span&gt;. Ok another hotmail messenger, yahoo messenger, icq,  skype client kind of thing and I get lost between them. (I am using skype to test vxml, google talk never, hotmail messenger friends, yahoo meseenger work, icq I lost my account long time ago).&lt;br /&gt;                   Must have? Not really Keep using your old clients and skype if you want to talk on voip&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_mPIx1MFtaGw/Rn7Ym7c7fRI/AAAAAAAAACA/0i1pETltkhs/s1600-h/calendar.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://3.bp.blogspot.com/_mPIx1MFtaGw/Rn7Ym7c7fRI/AAAAAAAAACA/0i1pETltkhs/s400/calendar.jpg" alt="" id="BLOGGER_PHOTO_ID_5079735593026157842" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Calendar&lt;/span&gt;. A nice calendar to have on the web, maybe it can be connected to Orkut.&lt;br /&gt;Must have? Yes if you want to get out of outlook calendar. Yahoo has another one but don't use it so much.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mPIx1MFtaGw/Rn7YnLc7fSI/AAAAAAAAACI/G6jl52scMhI/s1600-h/desktop.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://4.bp.blogspot.com/_mPIx1MFtaGw/Rn7YnLc7fSI/AAAAAAAAACI/G6jl52scMhI/s400/desktop.jpg" alt="" id="BLOGGER_PHOTO_ID_5079735597321125154" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Desktop&lt;/span&gt;. This is a client install for search on my hd and add some gadgets (calendar) on my desktop (that looks a lot as Windows Vista gadgets.. the previous version had a white background).&lt;br /&gt;               Must have? Yes. Looking for files or emails is easier and faster.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mPIx1MFtaGw/Rn7YnLc7fTI/AAAAAAAAACQ/KCrdTp2vwqI/s1600-h/toolbar.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://4.bp.blogspot.com/_mPIx1MFtaGw/Rn7YnLc7fTI/AAAAAAAAACQ/KCrdTp2vwqI/s400/toolbar.jpg" alt="" id="BLOGGER_PHOTO_ID_5079735597321125170" border="0" /&gt;&lt;/a&gt; &lt;span style="font-weight: bold;"&gt;Toolbar&lt;/span&gt;. Nice to have, just add features to your IE or Firefox.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_mPIx1MFtaGw/Rn7YnLc7fUI/AAAAAAAAACY/yvWbRZ-tZX4/s1600-h/mail.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://4.bp.blogspot.com/_mPIx1MFtaGw/Rn7YnLc7fUI/AAAAAAAAACY/yvWbRZ-tZX4/s400/mail.jpg" alt="" id="BLOGGER_PHOTO_ID_5079735597321125186" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Gmail&lt;/span&gt;. Once you create an account you can activate everything so not used atm but nice. Note that people used to pay for having one of the invitations to gmail when it was                 still on beta. The 1GB (or more) that provides is great but how many accounts does a                     person really needs. I wish they could all have pop3 like in the old days.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And that is not all, if you go to the google homepage and choose "more" (on the search bar) you have more things to install. I use a lot maps and images and remember that now google have youtube database of vidoes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-8314445514129572885?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/8314445514129572885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=8314445514129572885&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/8314445514129572885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/8314445514129572885'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/06/this-is-first-document-under-account.html' title='Testing Google Docs!'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_mPIx1MFtaGw/Rn7Ym7c7fQI/AAAAAAAAAB4/dJx4AZdk630/s72-c/blogger.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-117269784610429098</id><published>2007-02-28T21:16:00.000Z</published><updated>2007-02-28T21:24:33.333Z</updated><title type='text'>Little Java program</title><content type='html'>My first little java program... after a few tries with the Hello World and reading a book I did my beeting game. It is not a great thing but I need to get used to break problems in parts - the example below doesn't do 100% that.&lt;br /&gt;&lt;br /&gt;I need to be able to break each action as much as possible, at the begining I thought it was going to be easy but for this simple example I kept falling into creating one big procedural class. I should be able to break it even more and caught more exception (like entering chars/strings instead of numbers) and will do it after I finish the second book of begining java.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;import java.text.NumberFormat;&lt;br /&gt;&lt;br /&gt;public class Account {&lt;br /&gt;&lt;br /&gt;  static int balance;&lt;br /&gt;&lt;br /&gt;  public Account (int amount) {&lt;br /&gt;      balance = amount;&lt;br /&gt;  }&lt;br /&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;    public Account () {&lt;br /&gt;      balance = 0;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public void credit (int betamount){&lt;br /&gt;      balance = balance + (2 * betamount);&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public vo&lt;/span&gt;&lt;span style="font-size:85%;"&gt;id debit (int betamount){&lt;br /&gt;      balance = balance - betamount;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public boolean checkBet (int betamount){&lt;br /&gt;      if (betamount &gt; balance) {&lt;br /&gt;          return false;&lt;br /&gt;      } else {&lt;br /&gt;          return true;&lt;br /&gt;      }&lt;br /&gt;  }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt; &lt;br /&gt;  public void showbalance (){&lt;br /&gt;      NumberFormat nf = NumberFormat.getCurrencyInstance();&lt;br /&gt;      System.out.println("Available balance is : " + nf.format(balance));&lt;br /&gt;  }&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Main class&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;import java.util.Random;&lt;br /&gt;import java.util.Scanner;&lt;br /&gt;&lt;br /&gt;public class BettingGame {&lt;br /&gt;&lt;br /&gt;  static Random myRandom = new Random();&lt;br /&gt;  static Scanner myScanner = new Scanner(System.in);&lt;br /&gt;   &lt;br /&gt;  publi&lt;/span&gt;&lt;span style="font-size:85%;"&gt;c static void main(String[] args) {&lt;br /&gt;&lt;br /&gt;      Account myAccount = new Account(1000);&lt;br /&gt;      int available;&lt;br /&gt;      myAccount.showbalance();&lt;br /&gt;      boolean keepgoiang = true;&lt;br /&gt;   &lt;br /&gt;      do {&lt;br /&gt;       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; System.out.println ("How much will you bet? &lt;enter 0="" to="" quit=""&gt;");&lt;br /&gt;              if (!myScanner.hasNextInt()){&lt;br /&gt;                  myScanner.next();&lt;br /&gt;                  continue;&lt;br /&gt;              }&lt;br /&gt;              int bet = myScanner.nextInt();&lt;br /&gt;              if (bet == 0) {&lt;br /&gt;                  break;&lt;br /&gt;              }&lt;br /&gt;              if&lt;/enter&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;enter 0="" to="" quit=""&gt; (myAccount.checkBet(bet)){&lt;br /&gt;               &lt;br /&gt;                  do {&lt;br /&gt;                      System.out.println ("Which number do you chose");&lt;br /&gt;                      if (myScanner.hasNextInt()){&lt;br /&gt;                          break;&lt;br /&gt;                      }&lt;br /&gt;                  }while (!myScanner.hasNextInt());&lt;br /&gt;                  int number = myScanner.nextInt();&lt;br /&gt;                  int ra&lt;/enter&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;enter 0="" to="" quit=""&gt;nnum = RandomGenerator(0,10);         &lt;br /&gt;                  System.out.println("Lucky number is: " + rannum);&lt;br /&gt;                  if (number == rannum){&lt;br /&gt;                      System.out.print("You win. ");&lt;br /&gt;                      myAccount.credit(bet);&lt;br /&gt;                  } else {&lt;br /&gt;                      System.out.print("Better Luck next time. ");&lt;br /&gt;                      myAccount.debit(bet);&lt;br /&gt;                  }&lt;/enter&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;enter 0="" to="" quit=""&gt;                 &lt;br /&gt;              } else {&lt;br /&gt;                  System.out.println ("Not enough founds for that bet");&lt;br /&gt;              }&lt;br /&gt;               myAccount.showbalance();&lt;br /&gt;               if (Account.balance == 0) {&lt;br /&gt;                   keepgoing = false;&lt;br /&gt;               }&lt;br /&gt;              &lt;/enter&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;enter 0="" to="" quit=""&gt;        }while (keepgoing);&lt;br /&gt;   &lt;br /&gt;      if (myAccount.balance &gt; 0 ) {&lt;br /&gt;          System.out.println("Great you quit with money on your pocket");&lt;br /&gt;          myAccount.showbalance();&lt;br /&gt;      } else {&lt;br /&gt;          System.out.println("You are fucked!");&lt;br /&gt;          myAccount.showbalance();&lt;br /&gt;      }&lt;br /&gt;   &lt;br /&gt;     &lt;/enter&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;enter 0="" to="" quit=""&gt;    }&lt;br /&gt;&lt;br /&gt;  public static int RandomGenerator (int min, int max){&lt;br /&gt;      int RamNumber = myRandom.nextInt(10) + 1;&lt;br /&gt;      return RamNumber;&lt;br /&gt;  }&lt;br /&gt; &lt;/enter&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;enter 0="" to="" quit=""&gt; &lt;br /&gt;}&lt;/enter&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;An image of the output on the console:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/x/blogger/3599/2963/1600/805484/Screenshot.png"&gt;&lt;img style="cursor: pointer;" src="http://photos1.blogger.com/x/blogger/3599/2963/200/658844/Screenshot.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-117269784610429098?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/117269784610429098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=117269784610429098&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/117269784610429098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/117269784610429098'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/02/little-java-program.html' title='Little Java program'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-117131150233491839</id><published>2007-02-12T20:10:00.000Z</published><updated>2007-02-12T20:18:22.353Z</updated><title type='text'>Fedora Eclipse 3.2.0 and jdk-1_5_0</title><content type='html'>I am leraning Java (trying to at least) and during the installation I was very pleased to see the Eclipse package under the options but the version installed uses jre-1.4.2-gcj. That is the java runtime engine from the gnu project. It is a great effort but to someone who is reading books about java and the Sun version you get to cases where particular clases/packages (I still don't get hold of the names) are not available. Therefore I installed the Sun JDK.&lt;br /&gt;&lt;br /&gt;As always after googling a little I found a great how-to and here are my notes. The link to the original post is at the botton of this post.&lt;br /&gt;&lt;br /&gt;First download a jdk/jre from Sun. At the moment of writing this version 6 was available. At work I using a tool to create vxml code with eclipse that recommends 1.4.2 so I choose 1.5 (just in the middle).&lt;br /&gt;&lt;br /&gt;I downloaded jdk-1_5_0_11-linux-i586.bin. There is a rpm but every site I checked recommends not getting closed to the sun rpm and all prefers to just run the binary.&lt;br /&gt;&lt;br /&gt;Once downloaed copy it to /opt directory and give it rights to be executed. The easiest way is chmod +x filename.&lt;br /&gt;&lt;br /&gt;Next cd to /opt and just run the binnary.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;./jdk-1_5_0_11-linux-i586.bin&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This will install everything under the current directory. In my case I ended with &lt;span style="font-size:85%;"&gt;/opt/jdk1.5.0_11&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note that the JDK installed Sun JRE so you might want to use this jre instead that the gnu one when browsing the web. So to do this you just create a link on the mozilla&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;ln -s /opt/jdk1.5.0_11/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you use firefox don't worry as firefox checks the mozilla plugins.&lt;br /&gt;&lt;br /&gt;Now we start with the tricky part. You need to create a file java.sh to include the new paths, in my case I created the following:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;[ricardo@mybox]$ more /etc/profile.d/java.sh&lt;br /&gt;export J2RE_HOME=/opt/jdk1.5.0_11/jre&lt;br /&gt;export PATH=$J2RE_HOME/bin:$PATH&lt;br /&gt;[ricardo@mybox]&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Once you have this file execute it by typing:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;source /etc/profile.d/java.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This wll set your new java paths. To check it run the command below:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;[ricardo@mybox]$ which java&lt;br /&gt;/opt/jdk1.5.0_11/jre/bin/java&lt;br /&gt;[ricardo@mybox]$&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Next step is to run the following command to be able to later change the from gnu java to sun java.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;/usr/sbin/alternatives --install /usr/bin/java java /opt/jdk1.5.0_11/jre/bin/java 2&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Then type&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;/usr/sbin/alternatives --config java&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;This will show you something like this:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;[ricardo@mybox]$ /usr/sbin/alternatives --config java&lt;br /&gt;&lt;br /&gt;There are 2 programs which provide 'java'.&lt;br /&gt;&lt;br /&gt;Selection    Command&lt;br /&gt;-----------------------------------------------&lt;br /&gt;*  1           /usr/lib/jvm/jre-1.4.2-gcj/bin/java&lt;br /&gt;+ 2           /opt/jdk1.5.0_11/jre/bin/java&lt;br /&gt;&lt;br /&gt;Enter to keep the current selection[+], or type selection number:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the case above the + sign was on option 1. I selected 2 so it changed to the new version I installed.&lt;br /&gt;&lt;br /&gt;Final step is to run the command below and get a similar entry as mine.&lt;br /&gt;&lt;br /&gt;[&lt;span style="font-size:85%;"&gt;ricardo@mybox]$ /usr/sbin/alternatives --display java&lt;br /&gt;java - status is manual.&lt;br /&gt;link currently points to /opt/jdk1.5.0_11/jre/bin/java&lt;br /&gt;/usr/lib/jvm/jre-1.4.2-gcj/bin/java - priority 1420&lt;br /&gt;slave keytool: /usr/lib/jvm/jre-1.4.2-gcj/bin/keytool&lt;br /&gt;slave rmiregistry: /usr/lib/jvm/jre-1.4.2-gcj/bin/rmiregistry&lt;br /&gt;slave jre_exports: /usr/lib/jvm-exports/jre-1.4.2-gcj&lt;br /&gt;slave jre: /usr/lib/jvm/jre-1.4.2-gcj&lt;br /&gt;/opt/jdk1.5.0_11/jre/bin/java - priority 2&lt;br /&gt;slave keytool: (null)&lt;br /&gt;slave rmiregistry: (null)&lt;br /&gt;slave jre_exports: (null)&lt;br /&gt;slave jre: (null)&lt;br /&gt;Current `best' version is /usr/lib/jvm/jre-1.4.2-gcj/bin/java.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now Eclipse. Eclipse keep using the old runtime everytime you create a new project.&lt;br /&gt;&lt;br /&gt;To solve this when you create a project go to the JRE section and click on "Configure JREs" as shown on the image below.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/x/blogger/3599/2963/1600/664020/one.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/x/blogger/3599/2963/320/976172/one.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Then on the following screen you click on add and complete the form with the details shown below (note that the libraries section will be auto completed once you selcted the home directory).&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/x/blogger/3599/2963/1600/114495/three.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/x/blogger/3599/2963/320/535288/three.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The final step is to check the new JRE and every new project will be using the Sun engine.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/x/blogger/3599/2963/1600/723925/two.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/x/blogger/3599/2963/320/169097/two.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;That is all, Good luck!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Much more information on the link below:&lt;br /&gt;http://stanton-finley.net/fedora_core_5_installation_notes.html#Java&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-117131150233491839?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/117131150233491839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=117131150233491839&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/117131150233491839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/117131150233491839'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/02/fedora-eclipse-320-and-jdk-150.html' title='Fedora Eclipse 3.2.0 and jdk-1_5_0'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-117121661762491739</id><published>2007-02-11T17:38:00.000Z</published><updated>2007-02-11T19:40:08.606Z</updated><title type='text'>Install Fedora Core 6 on a Dell Latitude D620</title><content type='html'>I got a new laptop at work (the hp nx6125 decided to give up on me) and as every time I have a new pc/laptop I will try to run linux on it until -as always- remember that I am a windows sofa lazy user and go back to it. Therefore until my concious realizes that I am trying to learn something here are the notes on what I did. (note if you want notes on how to install windows just click next during installation until death knocks on your door).&lt;br /&gt;&lt;br /&gt;I use two flavours of Linux.. Fedora for personal use and Debian for Servers.. Why? No idea.&lt;br /&gt;&lt;br /&gt;Note that his are my notes.. the urls where I got all this from are below. This notes are for me to avoid googling again for this in the future.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;*****Installation&lt;/span&gt;&lt;br /&gt;Downloaded the hp dvd image and booted from the DVD and just hit enter. I found later notes of people recommending the following boot options:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;linux i686&lt;/span&gt;&lt;br /&gt;--- Check http://fedoraproject.org/wiki/Bugs/FC6Common. Seems that some early versions installed the wrong architecture kernel version (in the document i586 instead of i686).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;linux resolution=1440×900&lt;/span&gt;&lt;br /&gt;--- For some reason some use this kind of resolution. I haven't tried it yet but not sure if this is for the nvidia or intel board.&lt;br /&gt;&lt;br /&gt;The installation is straight forward and I surf around the packages and selected the ones I wanted. Note that after the installation Fedora will try to update all your applications,  if you select Extras as package sources this update process will take a bit longer so have a good book or movie ready while your system goes to the net and updates everything (including kernel).&lt;br /&gt;&lt;br /&gt;The hardware on my pc is:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;[root@box loginname]$ /sbin/lspci&lt;br /&gt;00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)&lt;br /&gt;00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)&lt;br /&gt;00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)&lt;br /&gt;00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)&lt;br /&gt;00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)&lt;br /&gt;00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)&lt;br /&gt;00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)&lt;br /&gt;00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)&lt;br /&gt;00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)&lt;br /&gt;00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)&lt;br /&gt;00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)&lt;br /&gt;00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)&lt;br /&gt;00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)&lt;br /&gt;00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)&lt;br /&gt;00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 01)&lt;br /&gt;00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)&lt;br /&gt;03:01.0 CardBus bridge: O2 Micro, Inc. OZ601/6912/711E0 CardBus/SmartCardBus Controller (rev 40)&lt;br /&gt;09:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5752 Gigabit Ethernet PCI Express (rev 02)&lt;br /&gt;0c:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;From here the only things that I had to work around were:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;   00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)&lt;br /&gt;   0c:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;I will add the details for this below on the document.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;*****Sudo&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Sudo helps normal accounts to run application as root without being root. To add the normal user account as root run the command visudo and enter the following line.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;loginname ALL=(ALL) ALL&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The sudo configuration is pretty easy and straight forward. You can also create different groups to give access to diferent things like files or applications. In the above case &lt;loginname&gt; would have access to everything and it will need to type it's own password everytime that sudos a command.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;*****Yum&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Yum is the apt-get of Fedora and the life saver of the novice that would take care of dependencies and file location when isntalling/updating/removing new software. I remember on '96 or '97 playing with Slackware (influenced by Antonio Ex@@@) and FreeBSD (influenced by Juan Carlos Ne@@@@@) and untaring files and running the make, make config, make install to find out that a file somewhere was not present or your gcc was not the correct one, etc. And yes if you do the manth that was more than 10  years ago and still don't know shit. One day If I get rich and don't need to work anymore I will spend time to learn Slackware (imho the best way to learn what happens under the hood).&lt;br /&gt;&lt;br /&gt;I added freshrpm to the repository&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;[root@box loginname]cd /etc/yum.repos.d/&lt;br /&gt;[root@box loginname]# more freshrpms.repo&lt;br /&gt;[freeshrpms]&lt;br /&gt;name=FreshRPMs for Fedora Core $releasever - $basearch&lt;br /&gt;baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms&lt;br /&gt;enabled=1&lt;br /&gt;gpgcheck=1&lt;br /&gt;gpgkey=http://freshrpms.net/RPM-GPG-KEY-freshrpms&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;*****Fedora Kernel Headers&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We will need the kernel headers at some point (wireless) and always  a pain in the ass but I follow this steps found on the web and it worked.&lt;br /&gt;&lt;br /&gt;Note this is a 99% copy of a page I found with my notes around. The original link is below (sorry for this guys!).&lt;br /&gt;&lt;br /&gt;First move to:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;cd /usr/src/redhat/&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;We need to download the kernel SRPM package, whose version and release match our currently running kernel. This version is shown by the following command:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;# uname -r&lt;br /&gt;2.6.19-1.2895.fc6&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I use the following link &lt;span style="font-size:85%;"&gt;wget http://download.fedora.redhat.com/pub/fedora/linux/core/updates/6/SRPMS/kernel-2.6.19-1.2895.fc6.src.rpm&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Next thing is to install the SRPM package. This just extracts the included files in the proper directories under /usr/src/redhat/ or to the directory tree you use for building. It does not actually install any kernels. As a user, run:.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;# rpm -ivh kernel-$(uname -r).src.rpm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This extracts the kernel source packages and the various patches in the SOURCES directory and the spec file in the SPECS directory. The SRC RPM file is not needed any more.&lt;br /&gt;&lt;br /&gt;Next, we execute the %prep stage of the spec file, by issuing the following command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;# rpmbuild -bp --target $(arch) --rmsource --rmspec SPECS/kernel-2.6.spec&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;This extracts the kernel source code package and applies all the Red Hat patches. All the files are placed in the BUILD directory. Here follows an explanation of the options:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;-bp : &lt;/span&gt;Execute only the %prep stage&lt;br /&gt;&lt;span style="font-style: italic;"&gt;–target &lt;/span&gt;: Specify the architecture. You can explicitly put your architecture, instead of the $(arch) in this option. This is the same thing.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;–rmsource :&lt;/span&gt; This removes all the kernel SRC RPM related files under the SOURCES directory, so no unneeded files are left to the system.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;–rmspec &lt;/span&gt;: This also removes the spec file from the SPECS directory.&lt;br /&gt;&lt;br /&gt;Now, we move to the directory containing the fedora kernel sources:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;# cd /usr/src/redhat/BUILD/kernel-2.6.19/linux-2.6.19.i686&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Copy the proper kernel configuration file, that matches your architecture, from the configs directory and place it in our current working directory, naming it as .config and replacing the already existent .config file. For example, I used the kernel-2.6.14-i686.config file :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;# cp configs/kernel-2.6.19-i586.config .config&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;These files most probably contain the same configuration options, but we do this for completeness.&lt;br /&gt;&lt;br /&gt;Next thing is to add the proper kernel release number to the Makefile (in directory: &lt;span style="font-size:85%;"&gt;BUILD/kernel-2.6.19/linux-2.6.19.i686&lt;/span&gt;/). As it is stated in the Fedora release notes, in order to "protect the innocent" the value of the EXTRAVERSION field is -prep. Open this Makefile in a text editor and replace the -prep with the release number of your currently running kernel. For example, my running kernel at the time of writing is 2.6.14-1.1637_FC4. I replace the:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;EXTRAVERSION = -prep&lt;/span&gt;&lt;br /&gt;with :&lt;br /&gt;&lt;span style="font-size:85%;"&gt;EXTRAVERSION = -1.2895.fc6&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;# vi /usr/src/redhat/BUILD/kernel-2.6.19/linux-2.6.19.i686/Makefile&lt;br /&gt;VERSION = 2&lt;br /&gt;PATCHLEVEL = 6&lt;br /&gt;SUBLEVEL = 19&lt;br /&gt;EXTRAVERSION = -1.2895.fc6&lt;br /&gt;NAME=Avast! A bilge rat!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The last action of the basic configuration is to run the following command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;# make oldconfig&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This command sets the default answers to all kernel configuration questions according to the settings of our .config file. This command is more relevant to kernel re-building, but won’t hurt issuing it.&lt;br /&gt;&lt;br /&gt;At this point, if you try to compile any third party kernel modules using this directory as the kernel source directory, you will most probably encounter errors. This is because some more preparation should be done to the kernel sources (this mainly involves the include directory).&lt;br /&gt;&lt;br /&gt;A full compilation of the kernel would set all these things straight, but one of the goals is to avoid the compilation of the kernel to save some time. We have not modified any of the kernel configuration options or applied any extra patches, so this would be pointless anyway.&lt;br /&gt;&lt;br /&gt;I remind that our current directory is:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;/usr/src/redhat/BUILD/kernel-2.6.19/linux-2.6.19.i686&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A file, named Module.symvers, which contains information about the native kernel modules, needs to be present inside our current directory. This file is normally created after the native kernel modules are compiled. Since we are not building the kernel or any modules and since we have not modified the default kernel configuration, we can use the Module.symvers file, which is included in the official fedora kernel-devel RPM.&lt;br /&gt;&lt;br /&gt;The presense of this file is important when we compile any third party modules using these kernel headers. If it’s not there, then our modules will not contain any dependency information, regarding the native kernel modules. This way, if the third party module depends on some native kernel modules, then you will have to load the latter manually.&lt;br /&gt;&lt;br /&gt;So, copy the Module.symvers file from the directory, where the official fedora kernel-devel package is installed, into our current directory:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;# cp /usr/src/kernels/$(uname -r)-$(arch)/Module.symvers .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Finally, we issue the following command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;# make prepare scripts&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This creates:&lt;br /&gt;&lt;br /&gt;&lt;/loginname&gt;&lt;ol&gt;&lt;li&gt;The include/linux/version.h file, which contains kernel versioning information.&lt;/li&gt;&lt;li&gt;The proper asm symlink for your platform and the asm-offsets.h file inside your platform’s specific asm directory.&lt;/li&gt;&lt;li&gt;The scripts that come with the kernel sources. These are needed when we compile third party modules using these headers.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;This is the proper and most complete way of preparing our headers, instead of compiling each of the files mentioned above individually.&lt;br /&gt;&lt;br /&gt;That should be the end of all the needed actions in order to accomplish our goal. Final Words: At this point, we have a custom directory that contains:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The fedora kernel sources. The kernel has not been compiled.&lt;/li&gt;&lt;li&gt;The kernel headers that match those of the kernel-devel RPM package with the difference that they are complete. No files are missing.&lt;/li&gt;&lt;/ul&gt;The directory&lt;span style="font-size:85%;"&gt; /usr/src/redhat/BUILD/kernel-2.6.19/linux-2.6.19.i686 &lt;/span&gt;can be moved to any place you like. Give it a proper name that includes your currently running kernel version and release. The kernel headers, contained in this directory, can be used in order to compile any third party kernel modules. The rest of the contents of the&lt;span style="font-size:85%;"&gt; /usr/src/redhat/BUILD/ &lt;/span&gt;directory, can be deleted, unless you need it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;*****Wireless I&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;ntel Corporation PRO/Wireless 3945ABG &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;My wireless is a Intel. I don't recall exactly what I did as I surf a lot but here is what I remember:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;   0c:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;a) Install dkms-ipw3945, ipw3945d and ipw3945-firmware from freshrpms, install the kernel-devel package for your kernel (already done) and reboot.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;yum install ipw3945 (not sure)&lt;br /&gt;yum install dkms-ipw3945-1.2.0-1.noarch.rpm&lt;br /&gt;yum install ipw3945-firmware-1.13-1.noarch.rpm&lt;br /&gt;yum install ipw3945d-1.7.22-4.i386.rpm &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;b) Add the NetworkManager to Gnome so I can geet a fancy icon to log into networks.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Install the software: su -c 'yum install NetworkManager NetworkManager-glib NetworkManager-gnome'&lt;/li&gt;&lt;li&gt;Set the main service to start on boot: su -c '/sbin/chkconfig --level 345 NetworkManager on'&lt;/li&gt;&lt;li&gt;Set the dispatcher service to start on boot: su -c '/sbin/chkconfig --level 345 NetworkManagerDispatcher on'&lt;/li&gt;&lt;li&gt;Start the services: su -c '/sbin/service NetworkManager start ; /sbin/service NetworkManagerDispatcher start'&lt;/li&gt;&lt;li&gt;Now enter this command to load the tray icon: NetworkManagerInfo &amp; (or just Reboot as I did).&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;*****VPN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;This was really easy. Install PPTP and the pptpconfig GUI using the following commands:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;# rpm -Uvh http://pptpclient.sourceforge.net/yum/stable/fc6/pptp-release-current.noarch.rpm&lt;br /&gt;# yum --enablerepo=pptp-stable install pptpconfig&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then open ppptconfig application from the Applications/Internet menu and complete the configuration. On my case I had to disable (or enable?) one of the Encryption options to be able to connect to my work. Also on the Routing tab you can either select to route all traffic through the tunnel or set up rules so your internet traffic goes through your home broadband and your corporate applications go through the tunnel (don't know if this is a good idea on a security point of view).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;*****NTFS&lt;/span&gt;&lt;br /&gt;Mounting NTFS partition on FC6&lt;br /&gt;&lt;br /&gt;My laptop has 2 windows partions, one for the windows applications/windows installation and a second one to keep files, documents, etc. This is to avoid any problem in case I need to reinstall windows and to use as sandbox with the Fedora partition.&lt;br /&gt;&lt;br /&gt;My steps were:&lt;br /&gt;&lt;br /&gt;a) As root (or sudo)&lt;br /&gt;&lt;span style="font-size:85%;"&gt;yum install fuse fuse-libs ntfs-3g ntfsprogs ntfsprogs-gnomevfs&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;b) Check disk configuration to see where the partition is:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;[root@box loginname]# /sbin/fdisk -l&lt;br /&gt;Disk /dev/sda: 60.0 GB, 60011642880 bytes&lt;br /&gt;255 heads, 63 sectors/track, 7296 cylinders&lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;&lt;br /&gt;  Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;/dev/sda1   *           1        1958    15727603+   7  HPFS/NTFS&lt;br /&gt;/dev/sda2            1959        5222    26218080    7  HPFS/NTFS&lt;br /&gt;/dev/sda3            5223        5235      104422+  83  Linux&lt;br /&gt;/dev/sda4            5236        7296    16554982+   5  Extended&lt;br /&gt;/dev/sda5            5236        7296    16554951   8e  Linux LVM&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;The partition I want to mount is &lt;span style="font-style: italic;"&gt;/dev/sda2&lt;/span&gt;, so I change the /etc/fstab and add the last line on the example below:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;[root@box loginname]$ more /etc/fstab&lt;br /&gt;/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1&lt;br /&gt;LABEL=/boot             /boot                   ext3    defaults        1 2&lt;br /&gt;devpts                  /dev/pts                devpts  gid=5,mode=620  0 0&lt;br /&gt;tmpfs                   /dev/shm                tmpfs   defaults        0 0&lt;br /&gt;proc                    /proc                   proc    defaults        0 0&lt;br /&gt;sysfs                   /sys                    sysfs   defaults        0 0&lt;br /&gt;/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0&lt;br /&gt;/dev/sda2               /mnt/drive_e            ntfs-3g    rw,defaults,umask=0000 0 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Where &lt;span style="font-style: italic;"&gt;/mnt/drive_e &lt;/span&gt;is a directory I created to "label" the mounting point.&lt;br /&gt;Then ntfs-3g is the file system and note that rw will make the partition read/write. You can also set it up as ro (read only). Check the man mount for the meaning of umask as it gives several options.&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;*****Screen Resolution Intel 945 Dell 620&lt;/span&gt;&lt;br /&gt;Surfing around I found that many of this dells come with a nvidia driver and I guess my company is a cheaper one and went for the Intel 945 option.&lt;br /&gt;&lt;br /&gt;The lspci shows the version of the Display controller&lt;br /&gt;  &lt;span style="font-size:85%;"&gt; 00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Installation went well but the system keeps booting on 1024x768. I read along and I can see that I can at least run this laptip at 1200x800 and in some cases at 1440x900. Haven't been able to run at 1440x900 but here is what I did for 1280x800.&lt;br /&gt;&lt;br /&gt;a) &lt;span style="font-style: italic;"&gt;yum install 915resolution&lt;/span&gt;&lt;br /&gt;It looks that you need this utility to run customs resolution on the 945. Also this utility needs to be run everytime that you boot your pc.&lt;br /&gt;&lt;br /&gt;A few tips, after installing run "locate 915resolution" if nothing is found then run an updatedb.&lt;br /&gt;&lt;br /&gt;After install run a 915resolution -l and you will get a list of all options. Probably 1280x800 is not there so run the following options to create the 1280x800&lt;br /&gt;&lt;br /&gt;/usr/sbin/915resolution 49 1280 800&lt;br /&gt;/usr/sbin/915resolution 38 1280 800&lt;br /&gt;/usr/sbin/915resolution 58 1280 800&lt;br /&gt;&lt;br /&gt;As you have to run this everytime the box boots you can add them on the /etc/rc.local.&lt;br /&gt;&lt;br /&gt;I also added the file &lt;span style="font-style: italic;"&gt;/etc/default/915resolution &lt;/span&gt;so that it has&lt;span style="font-size:85%;"&gt; XRESO=1280 YRESO=800&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Finally I changed the /etc/X11/xorg.conf as follows (note that everytime I change the display configuration using the gnome utility this file looses this changes - I was trying to have 2 montiros running) but along the above steps are done it doesn't seem to affect it. Just in case below are the details I originally used on xorg.conf.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Section "Monitor"&lt;br /&gt;       Identifier   "Monitor1"&lt;br /&gt;       VendorName   "Monitor Vendor"&lt;br /&gt;       ModelName    "Monitor 1024x768"&lt;br /&gt;       HorizSync    24.0 - 64.0&lt;br /&gt;       VertRefresh  43.0 - 60.0&lt;br /&gt;       Option      "dpms"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Device"&lt;br /&gt;       Identifier  "Videocard0"&lt;br /&gt;       Driver      "i810"&lt;br /&gt;       BusID       "PCI:0:2:0"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Screen"&lt;br /&gt;       Identifier "Screen0"&lt;br /&gt;       Device     "Videocard0"&lt;br /&gt;       DefaultDepth     24&lt;br /&gt;       SubSection "Display"&lt;br /&gt;               Viewport   0 0&lt;br /&gt;               Depth     24&lt;br /&gt;               Modes    "1440x900" "1280x800" "1024x768" "800x600" "640x480"&lt;br /&gt;       EndSubSection&lt;br /&gt;EndSection&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;*****FIX DVD DMA&lt;br /&gt;(again copied from another site) &lt;/span&gt;&lt;/span&gt;For some of us, DMA isn't enabled by default for our wonderful FC5 powered computers (like some Dells and Thinkpads). I've been spending a month or two (off and on) trying to find out how to work arround this problem. The long answer, from what I understand, for why this happens has to do with an IDE and a SATA/PATA drivers that are conflicting with one another and trying to control the drive (you might notice that the drive is labled /dev/hdc) and the DMA doesn't work well... or at all. According to the bug-report that I read, this is not a bug but an expected side effect of some DVD drive setups. With recently released kernels it is not required to make a custom-build, so this is done based off of a yum-installed kernel.&lt;br /&gt;&lt;br /&gt;Signs of this problem include choppy DVD playback or slow image reading and when running &lt;i&gt;"hdparm -d1 /dev/hdc"&lt;/i&gt; to turn DMA on it will respond with &lt;i&gt;"Operation not permitted"&lt;/i&gt;. If you see this and, like me, have been trying to find a way to enable DMA on your drive this should help you and I'm writing this so that people with this (apperently common) problem can referance one place to solve it.&lt;br /&gt;&lt;br /&gt;Ok, now to get to the part where I tell you how to...&lt;br /&gt;&lt;br /&gt;&lt;b&gt;In the terminal:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;$su -&lt;br /&gt;#gedit /etc/modprobe.conf&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;add the following line to the end of the file (leaving an extra empty line behind it):&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;options libata atapi_enabled=1&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;save, close and continue in the terminal:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;#gedit /boot/grub/menu.lst&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;add the following to the boot parameter:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;combined_mode=libata&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;save, close and reboot.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Now your DVD drive should be called "/dev/scd0", DMA will not be needed and Xine should be able to play it without the choppyness. Further effects of a working DVD drive (from what I hear, tell myself to make me feel better and dream) include faster CD ripping speeds and general read speeds, improved oooo-aaahhhh factor of showing off Linux, improved firtility and a marginal decrease in Windows dependancy...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;*****Other installations&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;yum install flash-plugin&lt;br /&gt;yum install wifi-radar&lt;br /&gt;yum install wlassistant&lt;br /&gt;yum install gnome-commander&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;*****Usefull URLs&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Below are the URLs I used to get the information. Read them as the people who wrote them  knew what they were doing that is not my case most of the time.&lt;br /&gt;&lt;br /&gt;http://pptpclient.sourceforge.net/howto-fedora-core-6.phtml&lt;br /&gt;http://www.g-loaded.eu/2005/12/14/the-complete-fedora-kernel-headers/&lt;br /&gt;http://klamstwo.org/evad/archives/3&lt;br /&gt;http://mikelococo.com/2007/01/fc6-on-d620/&lt;br /&gt;http://www.mjmwired.net/resources/mjm-fedora-fc6.html&lt;br /&gt;http://www.linuxquestions.org/questions/showthread.php?t=515648&lt;br /&gt;http://fedoraproject.org/wiki/Tools/NetworkManager#head-fc3fe44e92c63867615113b1ef69cf4fc0dc03cf&lt;br /&gt;http://www.fedoraforum.org/forum/showthread.php?t=114586&lt;br /&gt;&lt;br /&gt;C51B50E96BD6109DF982BBD4F6&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-117121661762491739?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/117121661762491739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=117121661762491739&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/117121661762491739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/117121661762491739'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/02/install-fedora-core-6-on-dell-latitude.html' title='Install Fedora Core 6 on a Dell Latitude D620'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-116872718037953925</id><published>2007-01-13T22:15:00.001Z</published><updated>2009-01-04T20:57:58.932Z</updated><title type='text'>Installing Asterisk, Java SDK, recompiling Kernel on Debian</title><content type='html'>This is nothing to be proud off.. two things I wanted to install. Note this is not JAVA for Asterisk, keep googling on how to do that, this is just a few packages I installed on a Debian box.&lt;br /&gt;&lt;br /&gt;------&lt;br /&gt;&lt;br /&gt;a) &lt;span style="font-style: italic;"&gt;Java SDK &lt;/span&gt;- Sun webpage has jdk-6-linux-i586.bin but I followed some instructions (running the binary and trying to create the Debian package) but they didn't work so I check what was available. I found that testing (etch) had a Sun Java package ready to apt-get install.&lt;br /&gt;&lt;br /&gt;-------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;b) &lt;span style="font-style: italic;"&gt;Asterisk again&lt;/span&gt; (this is a second server, I want to experiment with IAX and SIP trunks between asterisks)&lt;br /&gt;&lt;br /&gt;For (a) I couldn't install it on normal ways so I cheated. Following is what I did -not on purpose.&lt;br /&gt;&lt;br /&gt;Installed Sarge from Netinstall and updated it.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;   5  cd /etc/apt/&lt;br /&gt;1  vi sources.list&lt;br /&gt;2  apt-get update&lt;br /&gt;3  apt-get dist-upgrade&lt;br /&gt;4  shutdown -r now&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Upgraded to Etch (by changing the sourcelist)&lt;br /&gt;&lt;span style="font-size:85%;"&gt;   5  cd /etc/apt/&lt;br /&gt;12  apt-get install fakeroot&lt;br /&gt;13  apt-get install java-package  ncurses-dev wget bzip2&lt;br /&gt;17  vi sources.list&lt;br /&gt;18  apt-get update&lt;br /&gt;19  apt-get dist-upgrade&lt;br /&gt;20  uname -r&lt;br /&gt;21  shutdown -r now&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Install Jdk 5 (not 6)&lt;br /&gt;&lt;span style="font-size:85%;"&gt;  22  apt-get install sun-java5-jdk&lt;br /&gt;23  which java&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;After this I went to install asterisk but when compiling Zaptel I got the error that the headers didn't match although they were there and they were the same as the uname -r. I tried to uninstall them and install them again but once uninstalled I couldn't install them again... so I decided to do something that I always fails... build the kernel from the sources.&lt;br /&gt;&lt;br /&gt;Upgraded the kernel to latest one on kernel.org&lt;br /&gt;I install a bunch of packages that not sure what they are for&lt;br /&gt;&lt;span style="font-size:85%;"&gt; 105  apt-get install kernel-package ncurses-dev fakeroot wget bzip2&lt;br /&gt;106  apt-get install make-kpkg kernel_image&lt;br /&gt;130  apt-get install yaird fakeroot&lt;br /&gt;134  apt-get install initramfs-tools&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Also in the process I created a Sudo account.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;apt-get install sudo&lt;br /&gt;adduser ricardosudo&lt;br /&gt;visudo -&gt; modified a file with PICO&lt;br /&gt;added ricadosudo ALL=(ALL) ALL&lt;br /&gt;sudo adduser ricardosudo src&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And here it gets weird:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;   cd /usr/src&lt;br /&gt;tar jxf /path/to/linux-2.6.19.2.tar.bz2&lt;br /&gt;cd linux-2.6.19.2/&lt;br /&gt;cp /boot/config-$(uname -r) .config&lt;/span&gt; ---&gt; basically I am copying the .config left by the default installation to avoid starting from zero.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;   make oldconfig&lt;/span&gt; ---&gt; not sure if necessary. Here you are asked A LOT of things. Try to answer what you can but probably this will remind you a Windoze NEXT NEXT NEXT era.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;   make menuconfig -&lt;/span&gt;-&gt; here again I think that I could avoid the previous step. anyway go through the options and remove anything you think you don't need as it will make the kernel smaller and compile quicker. What do I don't need you ask? Go for the obvious - like removing support for ATI if you have an Intel Graphic board.&lt;br /&gt;&lt;br /&gt;Example of the screen of menuconfig:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/x/blogger/3599/2963/1600/539002/menuconfig.gif"&gt;&lt;img style="cursor: pointer;" src="http://photos1.blogger.com/x/blogger/3599/2963/200/455770/menuconfig.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;A few things to check are:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;   Processor type and features ---&gt; Processor family (Pentium 4)&lt;br /&gt;Processor type and features ---&gt; Timer Frequency (1000 Hz)&lt;br /&gt;Processor type and features ---&gt; Preemption Model ---&gt; Preemptible Kernel (Low-Latency Desktop)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Exit to the main menu and SAVE then run:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;   fakeroot make-kpkg clean&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Run the make-kpkg commmand like: fakeroot make-kpkg --append-to-version "&lt;-suffix&gt;" --revision "&lt;revision#&gt;" --us --uc --initrd kernel_image kernel_headers Where &lt;-suffix&gt; is whatever you want (like -mykernel), and change &lt;revision#&gt; with a number (like the date, 05112006.)&lt;br /&gt;&lt;br /&gt;Example: &lt;span style="font-size:85%;"&gt;fakeroot make-kpkg --append-to-version "-mykernel" --revision "01132007" --us --uc --initrd kernel_image kernel_headers&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;After this you will get 2 deb files, you can use dpkg -i to install them.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;dpkg -i linux-headers-2.6.19.2-mykernel_01132007_i386.deb&lt;br /&gt;dpkg -i linux-image-2.6.19.2-mykernel_01132007_i386.deb&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Here my box went wrong saying that I needed Yaird initramfs-tools and another package and could continue. I try to apt-get install those package bUt it kept saying "The following packages have unmet dependencies." but also it said to try to run &lt;span style="font-style: italic;font-size:85%;" &gt;apt-get install -f&lt;/span&gt; (note alone, not any other instance).&lt;br /&gt;&lt;br /&gt;After this I run the dpkg again and now it worked.&lt;br /&gt;&lt;br /&gt;After this I was able to install Asterisk as always and it worked. I am sure that I am doing something wrong and hope to learn what it is along the way.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;NOTE:&lt;/span&gt; When compiling Zaptel I run the modprobe zaptel and modprobe ztdummy as I don't have any fxo,fxs,tdm board on this box. It will us the ztdummy for timing. An lsmod shows the modules...&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;rbtest:/usr/src# lsmod&lt;br /&gt;Module                  Size  Used by&lt;br /&gt;ztdummy                 5544  0&lt;br /&gt;zaptel                208932  1 ztdummy&lt;br /&gt;crc_ccitt               2304  1 zaptel&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Something good came out of this.. NO KERNEL PANIC on an attempt to recompile a kernel. I have to say.. first time I didn't got one of this.&lt;br /&gt;&lt;br /&gt;Some links that I used to do this were:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://http//www.falkotimme.com/howtos/debian_kernel2.6_compile/"&gt;http://www.falkotimme.com/howtos/debian_kernel2.6_compile/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://wizah.blogspot.com/2005/12/debian-how-to-custom-kernel-compile.html"&gt;http://wizah.blogspot.com/2005/12/debian-how-to-custom-kernel-compile.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.debianhelp.co.uk/kernel2.6.htm"&gt;http://www.debianhelp.co.uk/kernel2.6.htm&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/revision#&gt;&lt;/revision#&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-116872718037953925?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/116872718037953925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=116872718037953925&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/116872718037953925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/116872718037953925'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/01/installing-asterisk-java-sdk.html' title='Installing Asterisk, Java SDK, recompiling Kernel on Debian'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-116821743617658214</id><published>2007-01-08T00:09:00.000Z</published><updated>2007-01-08T00:50:36.193Z</updated><title type='text'>Installing Asterisk again</title><content type='html'>I installed Asterisk again. This time version 1.4.&lt;br /&gt;&lt;br /&gt;As always I  did a Debian  Sarge netsinstall. On boot I choose the linux26 option to have a 2.6 kernel rather than the 2.4 that comes by default.. Why? Have no idea.&lt;br /&gt;&lt;br /&gt;The installation is really basic, I don't choose any configuration when Debian asksfor "Desktop", "Web Server", etc.. I just give the ok and start with an empty server.&lt;br /&gt;&lt;br /&gt;(Note that I tried to run the "testing" or "etch" version of netinstall but Asterisk requieres headers. The etch version repository don't have the headers for the default installation and you need to recompile.. AND I CANNOT RECOMPILE THE BLODDY KERNEL YET. I tried, I really tried and read several posts/pages and run diferent methods - from building my debian kernel  package to actually recompile the kernel from source - but always I get a Kernel Panic. If anybody want's to sit with me and show me how to do it, I will pay for the lunch/coffee).&lt;br /&gt;&lt;br /&gt;After the installation I changed the source.list to add contrib and non-free packages when installing new software. The file can be seen below:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;rbast:/etc/asterisk# cd /etc/apt/&lt;br /&gt;rbast:/etc/apt# more sources.list&lt;br /&gt;#deb file:///cdrom/ sarge main&lt;br /&gt;&lt;br /&gt;deb http://ftp.uk.debian.org/debian/ stable main contrib non-free&lt;br /&gt;deb-src http://ftp.uk.debian.org/debian/ stable main contrib non-free&lt;br /&gt;&lt;br /&gt;deb http://security.debian.org/ stable/updates main contrib non-free&lt;br /&gt;rbast:/etc/apt#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You have to run&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt; apt-get update&lt;/span&gt; after this to let Debian pick up the changes (need to read more about apt).&lt;br /&gt;&lt;br /&gt;Then I run the &lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;apt-get dist-upgrade&lt;/span&gt; to upgrade all the packages installed.&lt;br /&gt;&lt;br /&gt;First step after install - as I like to do things remotely - is to do the apt-get install ssh. This will install a ssh client and server (openssh) so I can log in remotely and keep working from my laptop. Ah.. I never mentioned this but the "server" is an old HP PIII box.&lt;br /&gt;&lt;br /&gt;Next step install the headers needed for Asterisk:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;apt-get install kernel-headers-`uname -r`&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Download all the packages again:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;wget http://ftp.digium.com/pub/asterisk/releases/asterisk-1.4.0.tar.gz&lt;br /&gt;wget http://ftp.digium.com/pub/zaptel/releases/zaptel-1.4.0.tar.gz  &lt;br /&gt;wget http://ftp.digium.com/pub/libpri/releases/libpri-1.4.0.tar.gz&lt;br /&gt;wget http://ftp.digiu&lt;/span&gt;&lt;span style="font-size:85%;"&gt;m.com/pub/asterisk/releases/asterisk-addons-1.4.0.tar.gz&lt;br /&gt;wget http://ftp.digium.com/pub/asterisk/releases/asterisk-sounds-1.2.1.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And follow the installation as with 1.2.x, only a few things changed (maybe more.. correct me please).&lt;br /&gt;&lt;br /&gt;On the asterisk package you need to run the configure utility as show below:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;tar xvfz asterisk-1.4.0&lt;/span&gt;&lt;span style="font-size:85%;"&gt;.tar.gz&lt;br /&gt;cd asterisk-1.4.0&lt;br /&gt;./configure&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;make samples&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Also on the asterisk-addons  or you will get an error message after the make if not.&lt;br /&gt;&lt;br /&gt;Some tips I picked up this time (also the last time but I didn't take note of them at that time) are:&lt;br /&gt;&lt;br /&gt;a) run lspci - shows the 2 fxo clones I bought (2 years ago by now).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;rbast:/usr/src/asterisk# lspci&lt;br /&gt;0000:00:1f.5 Multimed&lt;/span&gt;&lt;span style="font-size:85%;"&gt;ia audio controller: Intel Corp. 82801AA AC'97 Audio (rev 02)&lt;br /&gt;0000:01:0b.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface&lt;br /&gt;0000:01:0e.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface&lt;br /&gt;rbast:/usr/src/asterisk#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;b) run lsmod - shows the modules loaded. (I have way too much modules)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;rbast:/usr/src/asterisk# lsmod&lt;br /&gt;Module                  Size  Used by&lt;br /&gt;wcfxo                  12448  0&lt;br /&gt;zaptel                231332  1 wcfxo&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Other usefull things to check are:&lt;br /&gt;cat /proc/zaptel/* --&gt; it should show 2 files.&lt;br /&gt;&lt;br /&gt;After installation I need to configure my 2 fxo boards:&lt;br /&gt;&lt;br /&gt;In zaptel.conf set the following configuration:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;fxsks=1-2&lt;br /&gt;loadzone=uk&lt;br /&gt;defaultzone=uk&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then execute:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;/sbin/ztcfg -vvvv&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In zapata.conf set the following configuration:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;[channels]&lt;br /&gt;language=en&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;context=zap&lt;br /&gt;signalling=fxs_ks&lt;br /&gt;callerid="Line 1"&lt;br /&gt;channel =&gt; 1&lt;br /&gt;callerid="Line 2"&lt;br /&gt;channel =&gt; 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Finally reload chan_zap.so&lt;br /&gt;&lt;br /&gt;Set sip.conf as follows to have 2 extensions - a grandstream budgetone 100 and then a normal xlite softphone.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;[10001]&lt;br /&gt;type=friend&lt;br /&gt;context=sip&lt;br /&gt;regexten=10001&lt;br /&gt;secret=10001&lt;br /&gt;username=10001&lt;br /&gt;callerid="GrandStream1" &lt;10001&gt;&lt;br /&gt;host=dynamic&lt;br /&gt;nat=no&lt;br /&gt;canreinvite=yes&lt;br /&gt;dtmfmode=info&lt;br /&gt;call-limit=1&lt;br /&gt;disallow=all&lt;br /&gt;allow=ulaw&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;allow=alaw&lt;br /&gt;callingpres=allowed_passed_screen&lt;br /&gt;&lt;br /&gt;[10002]&lt;br /&gt;type=friend&lt;br /&gt;regexten=10002&lt;br /&gt;context=sip&lt;br /&gt;secret=10002&lt;br /&gt;username=10002&lt;br /&gt;callerid="XLite" &lt;10002&gt;&lt;br /&gt;host=dynamic&lt;br /&gt;nat=yes&lt;br /&gt;canreinvite=no&lt;br /&gt;disallow=all&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;llow=gsm&lt;br /&gt;allow=ulaw&lt;br /&gt;allow=alaw&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My extensions.conf atm is rather simple. I have 2 sip phones, 2 zap lines and just for testing the following configuration should work:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;[general]&lt;br /&gt;static=yes&lt;br /&gt;writeprotect=no&lt;br /&gt;clearglobalvars=no&lt;br /&gt;[sip]&lt;br /&gt;exten =&gt; 10001,1&lt;/span&gt;&lt;span style="font-size:85%;"&gt;,Dial(SIP/10001,20,tr);&lt;br /&gt;exten =&gt; 10002,1,Dial(SIP/10002,20,tr);&lt;br /&gt;exten =&gt; _8XXXX,1,Dial,Zap/1/${EXTEN}&lt;br /&gt;exten =&gt; _9XXXXXXXXXXX,1,Dial,Zap/1/${EXTEN}&lt;br /&gt;[zap]&lt;br /&gt;exten =&gt; s,1,Dial(SIP/10001,20,tr);&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;The above configuration should ring the 2 sip phones and allow the sip phones to ring any extension on my office through the 1st zap channel (need to read about macros to use both and pick up an available zap channel).&lt;br /&gt;&lt;br /&gt;It will also send any call from my pbx to the grandstream phone.&lt;br /&gt;&lt;br /&gt;My PBX is an Avaya CM3. I want to set up an H323 trunk, but at the moment anybody dialing extension 8xxx1 and 8xxx2 (I am not trying to hide the extensions number, I really don't remember them) will send the calls to the grandstream sip phone.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/x/blogger/3599/2963/1600/844770/gran.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://photos1.blogger.com/x/blogger/3599/2963/320/371783/gran.jpg" alt="" border="0" /&gt;&lt;/a&gt;The Grandstream configuration is simple and show on the picture attached. To configure it first check the phone ip - activate dhcp or enter an ip using he keypad - and log in. The default password is admin, if you don't know the password you can reset it by going to the "reset" option on the phone menu throught the keypad and enter the mac address of the phone. Look for the grandstream manual on the net as they have some rules of how to change the mac address letters for numbers.&lt;br /&gt;&lt;br /&gt;That is all for today.. Good luck!&lt;br /&gt;&lt;br /&gt;Usefull links:&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;http://kb.digium.com/ -&gt; Digium Knowledge Base.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-116821743617658214?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/116821743617658214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=116821743617658214&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/116821743617658214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/116821743617658214'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2007/01/installing-asterisk-again.html' title='Installing Asterisk again'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-116517324194176693</id><published>2006-12-03T19:10:00.000Z</published><updated>2006-12-03T19:14:01.956Z</updated><title type='text'>Networking Setup on Debian Linux</title><content type='html'>&lt;p&gt;The networking configuration and eth0 is configured in the file /etc/network/interfaces file.If the system is set up to use dhcp, then the /etc/network/interfaces would contain:&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;iface eth0 inet dhcp&lt;/blockquote&gt;&lt;p&gt;To change the system to use a static IP address, change the /etc/network/interfaces file to:&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;p&gt;iface eth0 inet static   &lt;/p&gt;&lt;p&gt; address 192.168.1.1    &lt;/p&gt;&lt;p&gt; netmask 255.255.255.0    &lt;/p&gt;&lt;p&gt; gateway 192.168.1.254&lt;/p&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-116517324194176693?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/116517324194176693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=116517324194176693&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/116517324194176693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/116517324194176693'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2006/12/networking-setup-on-debian-linux.html' title='Networking Setup on Debian Linux'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-115644988136259029</id><published>2006-08-24T21:04:00.000+01:00</published><updated>2007-01-08T00:55:51.416Z</updated><title type='text'>Asterisk Installation on Debian Sarge 3.1</title><content type='html'>Asterisk Installation on Debian Sarge:&lt;br /&gt;Linux rbast 2.6.8-2-386 #1 Tue Aug 16 12:46:35 UTC 2005 i686 GNU/Linux&lt;br /&gt;&lt;br /&gt;After several days of trying to have a Linux box with a recompiled kernel (and failed every time) I gave up and just do the basic/minimum and no packages installation of debian netinstall. After that I started the Asterisk installation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here are the steps. They worked for me, I picked them up from several sites.&lt;br /&gt;&lt;br /&gt;cd /usr/src/&lt;br /&gt;apt-get install kernel-headers-2.6.8-2-386&lt;br /&gt;&lt;br /&gt;apt-get install cvs&lt;br /&gt;apt-get install libssl-dev&lt;br /&gt;apt-get install zlib1g-dev&lt;br /&gt;apt-get install libnewt-dev&lt;br /&gt;apt-get install bison&lt;br /&gt;apt-get install ncurses-dev&lt;br /&gt;apt-get install libssl-dev&lt;br /&gt;apt-get install initrd-tools&lt;br /&gt;apt-get install procps&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mkdir asterisk&lt;br /&gt;cd asterisk&lt;br /&gt;&lt;br /&gt;wget http://ftp.digium.com/pub/asterisk/asterisk-1.2.4.tar.gz&lt;br /&gt;wget http://ftp.digium.com/pub/zaptel/zaptel-1.2-current.tar.gz&lt;br /&gt;wget http://ftp.digium.com/pub/libpri/libpri-1.2-current.tar.gz&lt;br /&gt;wget http://ftp.digium.com/pub/libiax/iax-0.2.2.tar.gz&lt;br /&gt;wget http://ftp.digium.com/pub/asterisk/asterisk-1.2-current.tar.gz&lt;br /&gt;wget http://ftp.digium.com/pub/asterisk/asterisk-addons-1.2-current.tar. gz&lt;br /&gt;&lt;br /&gt;tar xvfz libpri-1.2-current.tar.gz&lt;br /&gt;cd libpri-1.2.3/&lt;br /&gt;make clean&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;cd ..&lt;br /&gt;tar xvfz zaptel-1.2-current.tar.gz&lt;br /&gt;cd zaptel-1.2.8/&lt;br /&gt;make clean&lt;br /&gt;make linux26)&lt;br /&gt;make install&lt;br /&gt;modprobe zaptel&lt;br /&gt;modprobe wcfxo&lt;br /&gt;ztcfg&lt;br /&gt;(from goods2world where I bout the cheap/clone x100p. =&gt; Also, this commands need to get executed whenever&lt;br /&gt;you restart the system. Make sure to add it to init.d loading scripts. Stupid installation manual can be found&lt;br /&gt;here http://www.goods2world.com/downloads/X100PG2W.pdf)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;cd ..&lt;br /&gt;tar xvfz asterisk-1.2-current.tar.gz&lt;br /&gt;cd asterisk-1.2.11/&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;make samples&lt;br /&gt;&lt;br /&gt;(don't know why I put this notes here)&lt;br /&gt;wget http://ftp.digium.com/pub/asterisk/g729/linux/32-bit/i386/codec_g72 9a.so&lt;br /&gt;wget http://ftp.digium.com/pub/asterisk/g729/register_utility/glibc2.3.5 /x86/register&lt;br /&gt;wget http://ftp.digium.com/pub/asterisk/releases/asterisk-sounds-1.2.1.t ar.gz&lt;br /&gt;&lt;br /&gt;cd ..&lt;br /&gt;tar xvfz asterisk-sounds-1.2.1.tar.gz&lt;br /&gt;cd asterisk-sounds-1.2.1&lt;br /&gt;make clean&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;cd ..&lt;br /&gt;cd asterisk-addons-1.2.4/&lt;br /&gt;make clean&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;cd..&lt;br /&gt;modprobe ztdummy&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;From Asterisk TFOT&lt;br /&gt;Let’s look at some examples. To start Asterisk and connect to the CLI with a verbos-&lt;br /&gt;ity level of 3, use the following command:&lt;br /&gt;   # /usr/sbin/asterisk –cvvv&lt;br /&gt;If the Asterisk process is already running (for example, if you started Asterisk with&lt;br /&gt;/usr/sbin/asterisk), instead use the reconnect switch, like so:&lt;br /&gt;   # /usr/sbin/asterisk –vvvr&lt;br /&gt;&lt;br /&gt;Get a sipphone and install it. Try to connect to the ip of the server and dial any number.&lt;br /&gt;The examples installation prepared the system to accept any incoming call and play a menu so&lt;br /&gt;anything you dial will work. If you hear the menu. You are ready for phase II (now what!!!)&lt;br /&gt;&lt;br /&gt;Next step. READ THE MANUALS!!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-115644988136259029?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/115644988136259029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=115644988136259029&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/115644988136259029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/115644988136259029'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2006/08/asterisk-installation-on-debian-sarge.html' title='Asterisk Installation on Debian Sarge 3.1'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-115624386509554930</id><published>2006-08-22T11:47:00.000+01:00</published><updated>2006-08-22T11:53:06.696+01:00</updated><title type='text'>SELinux Tip</title><content type='html'>I installed vlcplayer and mplayer to watch movies and also add some codecs. When run this applications generated errors on dmesg like the following:&lt;br /&gt;&lt;br /&gt;audit(1156241386.596:14): avc:  denied  { execmod } for  pid=2850 comm="vlc" name="libavutil.so.49.0.0" dev=dm-0 ino=284990 scontext=user_u:system_r:unconfined_t:s0 tcontext=system_u:object_r:lib_t:s0 tclass=file&lt;br /&gt;&lt;br /&gt;This was an issue on SELinux don't giving them access to the files. Looking around I found the following comment on &lt;a href="http://fedora.redhat.com/docs/selinux-faq-fc5/"&gt;http://fedora.redhat.com/docs/selinux-faq-fc5/&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: monospace;"&gt;SELinux restricts certain memory protection operation. Following is a list of those denials, as well as possible reasons and solutions for those denials. For more information on these restrictions, see http://people.redhat.com/drepper/selinux-mem.html.&lt;br /&gt;&lt;br /&gt;These show up in /var/log/messages (or /var/log/audit/audit.log if using the audit daemon) as avc denials. These can also show up when running programs with errors like&lt;br /&gt;&lt;br /&gt;error while loading shared libraries: /usr/lib/libavutil.so.49:&lt;br /&gt;cannot restore segment prot after reloc: Permission denied&lt;br /&gt;&lt;br /&gt;which indicates that the library is trying to perform a text relocation and failing. Text relocations are bad, but can be allowed via the first hint below. Below are the SELinux memory permissions that are denied, as well as hints at how to address these denials.&lt;br /&gt;&lt;br /&gt;execmod&lt;br /&gt;&lt;br /&gt;    This is usually based on a library label. You can permanently change the context on the library with the following commands&lt;br /&gt;&lt;br /&gt;    # /usr/sbin/semanage fcontext -a -t textrel_shlib_t '/usr/lib/libavutil.so.49.0.0'&lt;br /&gt;    # /sbin/restorecon -v /usr/lib/libavutil.so.49.0.0&lt;br /&gt;&lt;br /&gt;    with the particular library at fault in place of /usr/lib/libavutil.so.49.0.0. Now your application should be able to run. Please report this as a bugzilla.&lt;br /&gt;execstack&lt;br /&gt;&lt;br /&gt;    Attempt to execstack -c LIBRARY. Now try your application again. If the application now works, the library was mistakenly marked as requiring execstack. Please report this as a bugzilla.&lt;br /&gt;execmem, execheap&lt;br /&gt;&lt;br /&gt;    A boolean for each one of these memory check errors have been provided. So if you need to run an application requiring either of these permissions, you can set the boolean allow_exec* to fix the problem. For instance if you try to run an application and you get an AVC message containing an execstack failure. You can set the boolean with&lt;br /&gt;&lt;br /&gt;    setsebool -P allow_execstack=1&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-115624386509554930?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/115624386509554930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=115624386509554930&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/115624386509554930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/115624386509554930'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2006/08/selinux-tip.html' title='SELinux Tip'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-115609256465256244</id><published>2006-08-20T17:40:00.000+01:00</published><updated>2006-08-20T17:49:24.653+01:00</updated><title type='text'>Wireless on a nx6125</title><content type='html'>My work laptop is an HP nx6125 and it comes with a Broadcom wireless adapter. To make it run on windows I used ndiswrapper and worked fine. I went to HP support page and dowload the window drives. There I took the file bcmwl5a.ini (bcmwl5.ini doesn't work) and bcmwl5.sys and copied on the ndiswrapper directory.&lt;br /&gt;&lt;br /&gt;Check this site for details:&lt;br /&gt;&lt;br /&gt;http://ndiswrapper.sourceforge.net/mediawiki/index.php/Installation&lt;br /&gt;http://ndiswrapper.sourceforge.net/mediawiki/index.php/Fedora&lt;br /&gt;&lt;br /&gt;After ndiswrapper installation the process is as follows:&lt;br /&gt;&lt;br /&gt;ndiswrapper -i&lt;br /&gt;ndiswrapper -l&lt;br /&gt;ndiswrapper -m&lt;br /&gt;modprobe ndiswrapper&lt;br /&gt;&lt;br /&gt;ifconfig eth0 down&lt;br /&gt;ifconfig eth1 up (In fedora wlan is eth1)&lt;br /&gt;iwconfig eth1 key &lt;your&gt;&lt;br /&gt;iwconfig eth1 essid &lt;your&gt;&lt;br /&gt;dhclient eth1&lt;br /&gt;ifconfig to check the system&lt;br /&gt;&lt;br /&gt;At this time you will see eth1 on the Network Manager of Fedora.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-115609256465256244?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/115609256465256244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=115609256465256244&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/115609256465256244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/115609256465256244'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2006/08/wireless-on-nx6125.html' title='Wireless on a nx6125'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-115609204547618751</id><published>2006-08-20T17:16:00.000+01:00</published><updated>2006-08-20T17:40:45.500+01:00</updated><title type='text'>Serial Connection</title><content type='html'>My asterisk box (no monitor or keyboard) will need serial connection "just in case the network" goes down. I have another box next to it and connected through the serial. To allow this we need to change the inittab file as by default the serial connection is usually disabled.&lt;br /&gt;&lt;br /&gt;As root vi /etc/inittab:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;            &lt;/span&gt;rbold:/etc# vi inittab&lt;br /&gt;&lt;pre&gt;&lt;span style="font-family: mon;"&gt;&lt;span style="font-weight: bold;"&gt;Check the file and you will find something like this:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;/b&gt;&lt;/pre&gt;# Example how to put a getty on a serial line (for a terminal)&lt;br /&gt;T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100&lt;br /&gt;#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100&lt;br /&gt;&lt;br /&gt;In my case I remove the coment from the fist line and it worked. I've seen on the web examples with s0 instead of T0, it makes more sense but maybe it is a Debian thing.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The options for this file are:&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;-L    force line to be local line with no need for carrier detect (when you have no modem).&lt;/li&gt;&lt;li&gt;9600    serial line rate in bps.  Set this to your dumb terminal or terminal emulator line rate.&lt;/li&gt;&lt;li&gt;ttyS0    this is the serial port identifier.&lt;/li&gt;&lt;li&gt;vt100    is the terminal emulation. &lt;/li&gt;&lt;/ul&gt;Check the web for more otpions&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-115609204547618751?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/115609204547618751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=115609204547618751&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/115609204547618751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/115609204547618751'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2006/08/serial-connection.html' title='Serial Connection'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-115608404906618235</id><published>2006-08-20T15:21:00.000+01:00</published><updated>2006-11-28T22:20:30.740Z</updated><title type='text'>Update</title><content type='html'>I got lost for 2 months. I was resolved to start on this and now is time. Since I started this a few things have happened:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Change job (well kind of - different company but same desk).&lt;/li&gt;&lt;li&gt;Change city, I left city move to a little boring - great to just read and learn - town.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Bought a Nikon D50&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Installed FC5 on my laptop as base work OS (still have a pc with WXP for some win32 stuff).&lt;/li&gt;&lt;li&gt;Installed a Debian 3.1r2 - Unstable- pc to run Asterisk on it. Installation TODAY!&lt;/li&gt;&lt;li&gt;Got an iMac as secondary work pc.&lt;/li&gt;&lt;/ul&gt;Well lets see how this goes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-115608404906618235?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/115608404906618235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=115608404906618235&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/115608404906618235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/115608404906618235'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2006/08/update.html' title='Update'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28036198.post-114752854174966587</id><published>2006-05-13T14:28:00.000+01:00</published><updated>2008-02-12T19:34:51.484Z</updated><title type='text'>A new begining</title><content type='html'>Ok, this blog is a personal sponsor. I am a techie, but not the techie I would like to be. I've been working on IT for the past 5 years. Have I modified commercial (small businness or system gateways) software applications (php, c++, visual basic, .net, java, javascript, shell scripts, perl, vxml an I believe another couple more) on my work? &lt;strong&gt;YES I HAVE&lt;/strong&gt;. Do I consider myself a programmer? &lt;strong&gt;NO&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;I can read simple code, understand it and change to achieve what I need. But I can't start from scratch, I never was asked to and I am kind of lazy (therefore this page will be my sponsor). I have tried to learn proper software development hundreds of time and I have to say that if I had a response for every "&lt;em&gt;&lt;span style="color:#6666cc;"&gt;Hello World&lt;/span&gt;&lt;/em&gt;" that I have done I would still be greeting people.&lt;br /&gt;&lt;br /&gt;I love IT, I love when I am a faced a problem and solve it but after work (and I work long hours as I like to see things well done and on my terms so usually take upon other people work) I go back home and just relax watching tv, reading a book and try to stay out of the pc.&lt;br /&gt;&lt;br /&gt;My interests are &lt;span style="color:#ff6666;"&gt;Linux&lt;/span&gt;, &lt;span style="color:#cc33cc;"&gt;Java&lt;/span&gt;, &lt;span style="color:#66ffff;"&gt;software development&lt;/span&gt;, &lt;span style="color:#009900;"&gt;Asterisk PBX&lt;/span&gt;, &lt;span style="color:#999999;"&gt;vxml&lt;/span&gt;, &lt;span style="color:#ffcc33;"&gt;voip&lt;/span&gt;, &lt;span style="color:#ff6600;"&gt;databases&lt;/span&gt;. I will try to start with linux, java and asterisk and see where they meet - I know you will say from that I can linked them from the begining - but will try to understand each of them and then integrate the others.&lt;br /&gt;&lt;br /&gt;How many times I have installed Linux? &lt;em&gt;Lost count&lt;/em&gt;, I have installed slackware, red hat, fedora, debian, gentoo, ubuntu several times. After the install I get bored and go back to watch tv (my work laptop has windoze and slackware but don't ask when was the last time I boot lilo on slack).&lt;br /&gt;&lt;br /&gt;How many times I have install the java tools ... &lt;em&gt;the same.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;How many times I have installed asterisk.... &lt;em&gt;4/5&lt;/em&gt;. I even hosted 4 extensions to talk with friends around the world and we used it ..... for a week until we got bored and switch to normal software.&lt;br /&gt;&lt;br /&gt;So this is my new beginning, I will be posting what I do and I will help me see how lazy I am. And force the shame to take me out of bed, couch, dreams and keep working and learn new things.&lt;br /&gt;&lt;br /&gt;For info.. what I do? I am a pbx/cti/ivr/pds administrator.&lt;br /&gt;&lt;br /&gt;By the way, this is my first blog or thing in the net, I just went to google put blog on the search box and opened the first link. I see that this things has an "Edit Comments" option so therefore I assume people would be able to add comments. So fell free to add anything you like....&lt;br /&gt;&lt;br /&gt;Finally although this is going to be mostly focus on techie things I will try to post normal things...&lt;br /&gt;&lt;br /&gt; good luck&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/28036198-114752854174966587?l=rblondon.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rblondon.blogspot.com/feeds/114752854174966587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=28036198&amp;postID=114752854174966587&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/114752854174966587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28036198/posts/default/114752854174966587'/><link rel='alternate' type='text/html' href='http://rblondon.blogspot.com/2006/05/new-begining.html' title='A new begining'/><author><name>Richard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
