<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Danny Tsang &#187; Linux</title>
	<atom:link href="http://www.dannytsang.co.uk/index.php/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dannytsang.co.uk</link>
	<description>A diary of (mostly) technology related encounters in the life of Danny Tsang</description>
	<lastBuildDate>Tue, 31 Aug 2010 23:01:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Kick A Linux User Who&#8217;s Logged In</title>
		<link>http://www.dannytsang.co.uk/index.php/kick-a-linux-user-whos-logged-in/</link>
		<comments>http://www.dannytsang.co.uk/index.php/kick-a-linux-user-whos-logged-in/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 23:01:28 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[logoff]]></category>
		<category><![CDATA[pkill]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2912</guid>
		<description><![CDATA[In command line type in who or w will list all the users who are currently logged in. To log them off type in the following: pkill -KILL -u danny where danny is the username. If &#8216;danny&#8217; was logged in multiple times e.g locally and via ssh then both will be logged off. Linux logout [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/setting-default-linux-shell/' rel='bookmark' title='Permanent Link: Setting Default Linux Shell'>Setting Default Linux Shell</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/gnu-screen-in-linux/' rel='bookmark' title='Permanent Link: GNU Screen In Linux'>GNU Screen In Linux</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/separating-user-windows-on-different-drives/' rel='bookmark' title='Permanent Link: Separating User &#038; Windows On Different Drives'>Separating User &#038; Windows On Different Drives</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In command line type in <code>who</code> or <code>w</code> will list all the users who are currently logged in.</p>
<p>To log them off type in the following:<br />
<code>pkill -KILL -u danny</code></p>
<p>where danny is the username. If &#8216;danny&#8217; was logged in multiple times e.g locally and via ssh then both will be logged off.</p>
<p><a href="http://www.cyberciti.biz/faq/linux-logout-user-howto/" target="_blank">Linux logout user or logoff user commands</a></p>


<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/setting-default-linux-shell/' rel='bookmark' title='Permanent Link: Setting Default Linux Shell'>Setting Default Linux Shell</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/gnu-screen-in-linux/' rel='bookmark' title='Permanent Link: GNU Screen In Linux'>GNU Screen In Linux</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/separating-user-windows-on-different-drives/' rel='bookmark' title='Permanent Link: Separating User &#038; Windows On Different Drives'>Separating User &#038; Windows On Different Drives</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/kick-a-linux-user-whos-logged-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Default Crontab Editor</title>
		<link>http://www.dannytsang.co.uk/index.php/change-default-crontab-editor/</link>
		<comments>http://www.dannytsang.co.uk/index.php/change-default-crontab-editor/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 07:53:35 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[crontab]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=3001</guid>
		<description><![CDATA[To change the default crontab editor type in the following command: export EDITOR=nano Change nano for your preferred editor. Crontab editor Related posts:Setting Default Linux Shell Check GUI Program Is Running In Linux DNS Notification With Inadyn


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/setting-default-linux-shell/' rel='bookmark' title='Permanent Link: Setting Default Linux Shell'>Setting Default Linux Shell</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/check-gui-program-is-running-in-linux/' rel='bookmark' title='Permanent Link: Check GUI Program Is Running In Linux'>Check GUI Program Is Running In Linux</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/dns-notification-with-inadyn/' rel='bookmark' title='Permanent Link: DNS Notification With Inadyn'>DNS Notification With Inadyn</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To change the default crontab editor type in the following command:<br />
<code>export EDITOR=nano</code><br />
Change nano for your preferred editor.</p>
<p><a href="http://ubuntuforums.org/showthread.php?t=256778" target="_blank">Crontab editor</a></p>


<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/setting-default-linux-shell/' rel='bookmark' title='Permanent Link: Setting Default Linux Shell'>Setting Default Linux Shell</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/check-gui-program-is-running-in-linux/' rel='bookmark' title='Permanent Link: Check GUI Program Is Running In Linux'>Check GUI Program Is Running In Linux</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/dns-notification-with-inadyn/' rel='bookmark' title='Permanent Link: DNS Notification With Inadyn'>DNS Notification With Inadyn</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/change-default-crontab-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tethering HTC Desire With Ubuntu 9.10</title>
		<link>http://www.dannytsang.co.uk/index.php/tethering-htc-desire-with-ubuntu-9-10/</link>
		<comments>http://www.dannytsang.co.uk/index.php/tethering-htc-desire-with-ubuntu-9-10/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 08:47:30 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile Phone]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2961</guid>
		<description><![CDATA[I read that Ubuntu 10.04 detected the HTC Desire automatically so I tried it on my EEE PC running Ubuntu 9.10. Plugged the USB cable in, set it to Internet Mode. a few seconds later Ubuntu reported it was connected. Tether a HTC Desire with Ubuntu 10.04 (Lucid) via USB Related posts:HTC Desire Mini Review [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/htc-desire-mini-review/' rel='bookmark' title='Permanent Link: HTC Desire Mini Review'>HTC Desire Mini Review</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/ibm-t60-ubuntu-winner/' rel='bookmark' title='Permanent Link: IBM T60 + Ubuntu = Winner'>IBM T60 + Ubuntu = Winner</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/installing-ipp-printer/' rel='bookmark' title='Permanent Link: Installing IPP Printer On Ubuntu'>Installing IPP Printer On Ubuntu</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I read that <a href="http://www.ubuntu.com/" target='_blank'>Ubuntu</a> 10.04 detected the HTC Desire automatically so I tried it on my EEE PC running <a href="http://www.ubuntu.com/" target='_blank'>Ubuntu</a> 9.10.</p>
<p>Plugged the USB cable in, set it to Internet Mode. a few seconds later <a href="http://www.ubuntu.com/" target='_blank'>Ubuntu</a> reported it was connected.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/08/HT-Desire-Tethering.png" rel="lightbox[2961]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/08/HT-Desire-Tethering-150x150.png" alt="" title="HT Desire Tethering" width="150" height="150" class="aligncenter size-thumbnail wp-image-2962" /></a></div>
<p><a href="http://robert.penz.name/307/tether-a-htc-desire-with-ubuntu-10-04-lucid-via-usb/" target="blank">Tether a HTC Desire with Ubuntu 10.04 (Lucid) via USB</a></p>


<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/htc-desire-mini-review/' rel='bookmark' title='Permanent Link: HTC Desire Mini Review'>HTC Desire Mini Review</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/ibm-t60-ubuntu-winner/' rel='bookmark' title='Permanent Link: IBM T60 + Ubuntu = Winner'>IBM T60 + Ubuntu = Winner</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/installing-ipp-printer/' rel='bookmark' title='Permanent Link: Installing IPP Printer On Ubuntu'>Installing IPP Printer On Ubuntu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/tethering-htc-desire-with-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show Nautilus As Text In Ubuntu 10.04</title>
		<link>http://www.dannytsang.co.uk/index.php/show-nautilus-as-text-in-ubuntu-10-04/</link>
		<comments>http://www.dannytsang.co.uk/index.php/show-nautilus-as-text-in-ubuntu-10-04/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 08:57:06 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[nautilus]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[windows manager]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2919</guid>
		<description><![CDATA[In the new Ubuntu the windows manager Nautilus does not change from an icon to a text when you click on the current directory in the bread crumb. To solve this use the shortcut Ctrl + L Related posts:Sync Mozilla Thunderbird Using Dropbox VirtualBox With Ubuntu Quick Review My Windows 7 Shortcuts


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/sync-mozilla-thunderbird-using-dropbox/' rel='bookmark' title='Permanent Link: Sync Mozilla Thunderbird Using Dropbox'>Sync Mozilla Thunderbird Using Dropbox</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/virtualbox-with-ubuntu-review/' rel='bookmark' title='Permanent Link: VirtualBox With Ubuntu Quick Review'>VirtualBox With Ubuntu Quick Review</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/my-windows-7-shortcuts/' rel='bookmark' title='Permanent Link: My Windows 7 Shortcuts'>My Windows 7 Shortcuts</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In the new <a href="http://www.ubuntu.com/" target='_blank'>Ubuntu</a> the windows manager Nautilus does not change from an icon to a text when you click on the current directory in the bread crumb. To solve this use the shortcut Ctrl + L</p>

<a href='http://www.dannytsang.co.uk/index.php/show-nautilus-as-text-in-ubuntu-10-04/file-browser-icons/' title='File Browser Icons'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/07/File-Browser-Icons-150x150.png" class="attachment-thumbnail" alt="File Browser Icons" title="File Browser Icons" /></a>
<a href='http://www.dannytsang.co.uk/index.php/show-nautilus-as-text-in-ubuntu-10-04/file-browser-text/' title='File Browser Text'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/07/File-Browser-Text-150x150.png" class="attachment-thumbnail" alt="File Browser Text" title="File Browser Text" /></a>



<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/sync-mozilla-thunderbird-using-dropbox/' rel='bookmark' title='Permanent Link: Sync Mozilla Thunderbird Using Dropbox'>Sync Mozilla Thunderbird Using Dropbox</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/virtualbox-with-ubuntu-review/' rel='bookmark' title='Permanent Link: VirtualBox With Ubuntu Quick Review'>VirtualBox With Ubuntu Quick Review</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/my-windows-7-shortcuts/' rel='bookmark' title='Permanent Link: My Windows 7 Shortcuts'>My Windows 7 Shortcuts</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/show-nautilus-as-text-in-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VNC/RDP Not Refreshing On Ubuntu</title>
		<link>http://www.dannytsang.co.uk/index.php/vncrdp-not-refreshing-on-ubuntu/</link>
		<comments>http://www.dannytsang.co.uk/index.php/vncrdp-not-refreshing-on-ubuntu/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 09:59:24 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[gnome panel]]></category>
		<category><![CDATA[RDP]]></category>
		<category><![CDATA[remote desktop]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[visual effects]]></category>
		<category><![CDATA[VNC]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2872</guid>
		<description><![CDATA[When I use VNC Client to remote desktop onto my Ubuntu 10.04 I got the background and maybe even the Gnome panel but the windows and programs were not appearing on the screen. However my mouse and clipboard was still working so I had ended up VNC&#8217;ing to the box and switching the display to [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/ubuntu-710/' rel='bookmark' title='Permanent Link: Ubuntu 7.10'>Ubuntu 7.10</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/re-discovering-linux/' rel='bookmark' title='Permanent Link: Re-discovering Linux'>Re-discovering Linux</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/ubuntu-no-monitor-defaults-to-800x600/' rel='bookmark' title='Permanent Link: Ubuntu No Monitor Defaults To 800&#215;600'>Ubuntu No Monitor Defaults To 800&#215;600</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/Empty-VNC-Window.png" rel="lightbox[2872]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/Empty-VNC-Window-150x150.png" alt="" title="Empty VNC Window" width="150" height="150" class="aligncenter size-thumbnail wp-image-2875" /></a></div>
<p>When I use VNC Client to remote desktop onto my <a href="http://www.ubuntu.com/" target='_blank'>Ubuntu</a> 10.04 I got the background and maybe even the <a href="http://www.gnome.org" target='_blank'>Gnome</a> panel but the windows and programs were not appearing on the screen. However my mouse and clipboard was still working so I had ended up VNC&#8217;ing to the box and switching the display to another source.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/Screenshot-Appearance-Preferences.png" rel="lightbox[2872]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/Screenshot-Appearance-Preferences-150x150.png" alt="" title="Screenshot-Appearance Preferences" width="150" height="150" class="aligncenter size-thumbnail wp-image-2874" /></a></div>
<p>To fix this problem just disable the visual desktop effects under <code>System > Preferences > Appearance</code> Under the <strong>Visual Effects</strong> tab set it to <strong>None</strong>.</p>
<p><a href="http://ubuntuforums.org/showthread.php?t=1383356">VNC &#8211; remote desktop does not refresh</a></p>

<a href='http://www.dannytsang.co.uk/index.php/vncrdp-not-refreshing-on-ubuntu/screenshot-appearance-preferences/' title='Screenshot-Appearance Preferences'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/Screenshot-Appearance-Preferences-150x150.png" class="attachment-thumbnail" alt="Screenshot-Appearance Preferences" title="Screenshot-Appearance Preferences" /></a>
<a href='http://www.dannytsang.co.uk/index.php/vncrdp-not-refreshing-on-ubuntu/empty-vnc-window/' title='Empty VNC Window'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/Empty-VNC-Window-150x150.png" class="attachment-thumbnail" alt="Empty VNC Window" title="Empty VNC Window" /></a>



<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/ubuntu-710/' rel='bookmark' title='Permanent Link: Ubuntu 7.10'>Ubuntu 7.10</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/re-discovering-linux/' rel='bookmark' title='Permanent Link: Re-discovering Linux'>Re-discovering Linux</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/ubuntu-no-monitor-defaults-to-800x600/' rel='bookmark' title='Permanent Link: Ubuntu No Monitor Defaults To 800&#215;600'>Ubuntu No Monitor Defaults To 800&#215;600</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/vncrdp-not-refreshing-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linksys SPA3102 And FreePBX On Ubuntu 10.04</title>
		<link>http://www.dannytsang.co.uk/index.php/linksys-spa3102-and-freepbx-on-ubuntu-10-04/</link>
		<comments>http://www.dannytsang.co.uk/index.php/linksys-spa3102-and-freepbx-on-ubuntu-10-04/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 23:01:47 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[analogue]]></category>
		<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[ata]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[Dial]]></category>
		<category><![CDATA[DND]]></category>
		<category><![CDATA[group pickup]]></category>
		<category><![CDATA[landline number]]></category>
		<category><![CDATA[linksys]]></category>
		<category><![CDATA[linksys spa3102]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysqladmin]]></category>
		<category><![CDATA[pbx]]></category>
		<category><![CDATA[pbx system]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[pots]]></category>
		<category><![CDATA[private branch exchange]]></category>
		<category><![CDATA[pstn]]></category>
		<category><![CDATA[Routes]]></category>
		<category><![CDATA[SIP]]></category>
		<category><![CDATA[softphone]]></category>
		<category><![CDATA[telephone line]]></category>
		<category><![CDATA[Trunks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VOIP]]></category>
		<category><![CDATA[web interface]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2186</guid>
		<description><![CDATA[Overview I wanted to setup a Private Branch eXchange(PBX) system using Asterisk server at home. As I already had a traditional land line (PSTN or POTS line) I needed something to bridge the computer to the land line. My idea of having a PBX at was to route as many calls over VOIP which tends [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/adding-outgoing-skype-for-sip-to-freepbx/' rel='bookmark' title='Permanent Link: Adding Outgoing Skype For SIP To FreePBX'>Adding Outgoing Skype For SIP To FreePBX</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/remote-extension-in-freepbx/' rel='bookmark' title='Permanent Link: Remote Extension In FreePBX'>Remote Extension In FreePBX</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/freepbx-common-voicemail-box/' rel='bookmark' title='Permanent Link: FreePBX &#8211; Common Voicemail Box'>FreePBX &#8211; Common Voicemail Box</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h3>Overview</h3>
<p>I wanted to setup a Private Branch eXchange(PBX) system using Asterisk server at home. As I already had a traditional land line (PSTN or POTS line) I needed something to bridge the computer to the land line. My idea of having a PBX at was to route as many calls over VOIP which tends to be cheaper like Skype and still use a traditional landline for emergencies as well as just having a landline number.</p>
<h3>History</h3>
<p>Originally I started writing a post on how to get a PBX with a web interface going on <a href="http://www.ubuntu.com/" target='_blank'>Ubuntu</a> 8.04. However once I had it all installed it wasn&#8217;t working 100%. I had issues with permissions and FreePBX had problems with the operation panel. Fast forward 2-3 years and I&#8217;m back doing it again but this time on the next LTS release and 7 minor release later from FreePBX.</p>
<h3>Ubuntu 10.04 LTS</h3>
<h3>Asterisk</h3>
<p>Asterisk is a free and open source software for PBX. It&#8217;s what you see in companies to manage and route all their phones calls. Asterisk is a PBX engine which has several front end engines and even a distribution specially for PBX box called <a href="http://www.trixbox.org/" target="_blank">Trixbox</a>. If you just want a headless PBX then installing Asterix will suffice however I was not technically skilled enough to create all configuration files from scratch and also a nice front end will go a long way for the Wife Acceptance Factor (WAF). This is where FreePBX comes in.</p>
<h3>FreePBX</h3>
<p>FreePBX is GUI interface wrapper for Asterisk. <a href="http://www.ubuntu.com/" target='_blank'>Ubuntu</a> has a FreePBX package in it&#8217;s repository. FreePBX uses a web front end so it can be accessed anywhere and makes administration a lot easier. It uses modules to extend the functionally like add-ons in <a href="http://www.mozilla-europe.org/en/products/firefox/" target='_blank'>Firefox</a>. These include group pickup to Parking Lots.</p>
<p>With FreePBX this sorts out the software side of my PBX.</p>
<h3>Linksys SPA3102</h3>
<p>This an Analogue Telephone Adaptor(ATA) which is used to convert a land line to a digital network and a traditional land line phone to the network too. The hardware has been around for a long time and it does work with Asterisk. The SPA(Sipura)3102 can be used as a standalone PBX box too but in my case it will be used to forward incoming and outgoing calls.</p>
<p>The SPA3102 also has a web interface but it can also be used to act as a router at the same time. The web interface is very basic and not very user friendly but has a lot of options making it very customizable and configurable.</p>
<h3>Asterisk And FreePBX Install</h3>
<p>Switch to root user before installing <code>sudo su</code>.</p>
<p>Install MySQL <code>sudo apt-get install mysql-server</code><br />
When prompted for password enter one.</p>
<p>Install MySQL modules, PHP, kernel headers for compiling code, <code>apt-get install build-essential <a href="http://www.linux.org" target='_blank'>linux</a>-headers-`uname -r` openssh-server bison flex apache2 php5 php5-curl php5-cli php5-mysql php-pear php-db php5-gd curl sox libncurses5-dev libssl-dev libmysqlclient15-dev mpg123 libxml2-dev</code></p>
<p>Go to /usr/src <code>cd /usr/src/</code><br />
and download the Asterisk source files </p>
<blockquote><p>xargs wget << SOURCES</p>
<p>http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.2.1+2.2.1.tar.gz</p>
<p>http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.10.2.tar.gz</p>
<p>http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6.2.6.tar.gz</p>
<p>http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-addons-1.6.2.0.tar.gz</p>
<p>SOURCES</p></blockquote>
<p>Un-tar(zip) all the source files in /usr/src/ <code>tar xvf dahdi-<a href="http://www.linux.org" target='_blank'>linux</a>-complete-2.2.1+2.2.1.tar.gz</code><br />
<code>tar xvf libpri-1.4.10.2.tar.gz</code><br />
<code>tar xvf asterisk-1.6.2.6.tar.gz</code><br />
<code>tar xvf asterisk-addons-1.6.2.0.tar.gz</code></p>
<p>Compile Asterisk in the following order:<br />
<code>cd dahdi-<a href="http://www.linux.org" target='_blank'>linux</a>-complete-2.2.1+2.2.1</code><br />
<code>make all &#038;&#038; make install &#038;&#038; make config</code><br />
<code>cd ../libpri-1.4.10.2</code><br />
<code>make &#038;&#038; make install</code><br />
<code>cd ../asterisk-1.6.2.6</code><br />
<code>./configure</code><br />
<code>make &#038;&#038; make install</code><br />
<code>make samples</code><br />
<code>cd ../asterisk-addons-1.6.2.0</code><br />
<code>./configure</code><br />
<code>make &#038;&#038; make install</code><br />
<code>make samples</code><br />
Download and extract extra sounds <code>cd /var/lib/astersik/sounds</code><br />
<code>wget -O - http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en-gsm-current.tar.gz | tar xvfz -</code></p>
<p>Create an Asterisk user account on the <a href="http://www.linux.org" target='_blank'>Linux</a> box <code>adduser asterisk --disabled-password --no-create-home --gecos "asterisk PBX user"</code><br />
<code>adduser www-data asterisk</code></p>
<p>Make a backup of the Asterisk configuration file <code>cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf_orig</code></p>
<p>Change the Asterisk config to run as a correct user <code>sed -i 's/^\(User\|Group\).*/\1 asterisk/' /etc/apache2/apache2.conf</code></p>
<p>Create the Asterisk service script which will start and stop the Asterisk demon:</p>
<blockquote><p>cat > /etc/init.d/asterisk <<-END_STARTUP<br />
#!/bin/bash<br />
### BEGIN INIT INFO<br />
# Provides:          asterisk<br />
# Required-Start:    \$network \$syslog<br />
# Required-Stop:     \$network \$syslog<br />
# Default-Start:     2 3 4 5<br />
# Default-Stop:      0 1 6<br />
# Short-Description: Asterisk daemon.<br />
# Description:       This script handles start/stop states of asterisk.<br />
### END INIT INFO</p>
<p>set -e<br />
set -a<br />
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin<br />
DESC="Asterisk"<br />
NAME=amportal<br />
DAEMON=/usr/sbin/\$NAME</p>
<p>test -x \$DAEMON || exit 0</p>
<p>d_start() {<br />
    amportal start<br />
}</p>
<p>d_stop() {<br />
    amportal stop<br />
}</p>
<p>d_reload() {<br />
    amportal restart<br />
}</p>
<p>case "\$1" in</p>
<p>start)<br />
    echo -n "Starting \$DESC: \$NAME"<br />
    d_start<br />
    echo "."<br />
;;</p>
<p>stop)<br />
    echo -n "Stopping \$DESC: \$NAME"<br />
    d_stop<br />
    echo "."<br />
;;</p>
<p>restart|force-reload)<br />
    echo -n "Restarting \$DESC: \$NAME"<br />
    d_stop<br />
    sleep 10<br />
    d_start<br />
    echo "."<br />
;;</p>
<p>*)</p>
<p>    echo "Usage: \$SCRIPTNAME {start|stop|restart|force-reload}" >&#038;2<br />
    exit 3<br />
;;</p>
<p>esac</p>
<p>exit 0<br />
END_STARTUP</p></blockquote>
<p>Ensure the permissions of the demon script is correct <code>chmod 755 /etc/init.d/asterisk</code></p>
<p>Make Asterisk start up when the computer starts <code>update-rc.d asterisk defaults 90 10</code></p>
<p>Download and extract FreePBX<br />
<code>cd /usr/src/</code><br />
<code>wget -O - http://mirror.freepbx.org/freepbx-2.7.0.tar.gz | tar xvfz -</code><br />
<code>cd freepbx-2.7.0/</code></p>
<p>Copy the Amportal configuration <code>cp amportal.conf /etc/</code></p>
<p>Set environment variables for the current session. These variables will store the password for MySQL access so that the script can be 100% automated. One is the admin password and the other is the Asterisk database user password. These variables should clear once the terminal session ends but it is advised to remove them from the bash history in <strong>~/.bash_history</strong><br />
<code>export MYSQL_ROOT_PW=abcd</code><br />
<code>export ASTERISK_DB_PW=wxyz</code></p>
<p>Run the database scripts:<br />
<code>mysqladmin -u root -p${MYSQL_ROOT_PW} create asterisk</code><br />
<code>mysqladmin -u root -p${MYSQL_ROOT_PW} create asteriskcdrdb</code><br />
<code>mysql -u root -p${MYSQL_ROOT_PW} asterisk < SQL/newinstall.sql</code><br />
<code>mysql -u root -p${MYSQL_ROOT_PW} asteriskcdrdb < SQL/cdr_mysql_table.sql</code></p>
<blockquote><p>mysql -u root -p${MYSQL_ROOT_PW} <<-END_PRIVS<br />
GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY "${ASTERISK_DB_PW}";<br />
GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY "${ASTERISK_DB_PW}";<br />
flush privileges;<br />
END_PRIVS</p></blockquote>
<p>Edit the amportal configuration file with the database username and password<br />
<code>sed -i "s/# \(AMPDBUSER=.*\)/\1/" /etc/amportal.conf</code><br />
<code>sed -i "s/# \(AMPDBPASS=\).*/\1${ASTERISK_DB_PW}/" /etc/amportal.conf</code><br />
<code>sed -i "s@\(AMPWEBROOT=\).*@\1/var/www/@"  /etc/amportal.conf</code><br />
<code>sed -i "s@\(FOPWEBROOT=\).*@\1/var/www/panel@" /etc/amportal.conf</code><br />
<code>sed -i "s@\(FOPWEBADDRESS=\).*@PUTIPADDRESS@" /etc/amportal.conf</code></p>
<p>Change the max PHP file upload size to 120mb in Apache<br />
<code>sed -i 's/\(^upload_max_filesize = \).*/\120M/' /etc/php5/apache2/php.ini</code></p>
<p>Change the files and directories so that Asterisk has access to them<br />
<code>chown asterisk. /var/run/asterisk</code><br />
<code>chown -R asterisk. /etc/asterisk</code><br />
<code>chown -R asterisk. /var/{lib,log,spool}/asterisk</code><br />
<code>chown -R asterisk. /var/www/</code></p>
<p>Remove line ending from the Asterisk configuration file.<br />
<code>sed -i '1 s/\(\[directories\]\).*/\1/' /etc/asterisk/asterisk.conf</code></p>
<p>Start Asterisk<br />
<code>./start_asterisk start</code></p>
<p>Install FreePBX<br />
<code>./install_amp</code></p>
<p>Restart Apache server<br />
<code>/etc/init.d/apache2 restart</code></p>
<p>Create a symlink to the "Music On Hold"(MOH) files<br />
<code>ln -s /var/lib/asterisk/moh /var/lib/asterisk/mohmp3</code></p>
<p>Start FreePBX<br />
<code>amportal start</code></p>
<h3>Asterisk / PBX Terminology</h3>
<p>Before I go into configuring the PBX itself it is worth knowing the terminology behind the technology.</p>
<ul>
<li>Extension - Can be considered as an internal phone number. Each extension can be associated with a user and the user and the user can "roam" from phone to phone keeping their phone number.</li>
<li>Feature Codes - Special phone numbers which can put an extension to do not disturb (DND) so that no phone calls will get through to accessing voicemail.</li>
<li>Trunk - Provides services to the PBX such as land line or to allow calls to another PBX.</li>
<li>Routes - The path a call may go. Routes consists of inbound, calls coming in and outbound, calls leaving the system routes.</li>
<li>Dial Rules - Rules defined in ASCII characters which govern routes e.g Only free phone numbers are allowed to take the land line route. All other numbers should go out to a VOIP provider.</li>
<li>Channels - Number of simultaneous calls a trunk can handle</li>
</ul>
<h3>Configure FreePBX</h3>
<p>First thing to do is set up extensions. Extensions are independent to any available routes as by default Asterisk treats any number dialled as an internal number. Below are steps to create 2 extensions. One number will eventually be assigned to the phone attached to the Linksys SPA3102 and the other for another hard/softphone.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/New-Extension.png" rel="lightbox[2186]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/New-Extension-150x150.png" alt="" title="New Extension" width="150" height="150" class="aligncenter size-thumbnail wp-image-2843" /></a></div>
<ol>
<li>Go to Setup > Basic > Extensions menu item.</li>
<li>Ensure "Generic SIP Device" is selected in the Devices drop down box.</li>
<li>Enter the following details:</li>
<ol>
<li>User Extension - Phone number of extension E.G 1000</li>
<li>Display Name - Friendly name</li>
<li>Voicemail &#038; Directory Status - Enable this if you want the user to have voicemail facilities</li>
<li>Secret - Leave blank for now but this is the password for the extension.</li>
</ol>
<li>Submit the changes.</li>
<li>Click on the new extension listed on the right hand side of the Extensions page. This will edit the extension</li>
<li>Under <strong>Device Options</strong> section change the <strong>Mailbox</strong> by removing the @device suffix and just leave the extension number in the field.</li>
<li>Submit the changes again.</li>
<li>Repeat the steps above again to create a second extension, changing the extension number, display name and the mailbox setting E.G 1001</li>
<li>Apply the changes to make it take effect.</li>
</ol>
<p>At this point I would download a SIP softphone such as <a href="http://www.counterpath.com/x-lite.html" target="_blank">X-Lite</a> on two computers and test out the 2 extensions created. Using the X-Lite or other softphones is beyond this article.</p>
<p>For Dialling out of the Sipura 3102 a Trunk is needed as well as configuring the outbound route.</p>
<ol>
<li>Go to Setup > Basic > Trunks in FreePBX</li>
<li>Click on the <strong>Add SIP Trunk</strong></li>
<li>Fill in the following fields:</li>
<ol>
<li>Trunk Description - A friendly name for the trunk. This can be anything</li>
<li>Outbound Caller ID - Full telephone number of the landline including area code.</li>
<li>CID Options - Any</li>
<li>Maximum Channels - 1</li>
<li>Dial Rules - Leave blank</li>
<li>Outbound Dial Prefix - Leave blank</li>
<li>Trunk Name - A memorable name which will be used in the Sipura configuration</li>
<li>Peer Details:<br />
<blockquote><p>canreinvite=no<br />
context=from-pstn<br />
host=[host]<br />
nat=no<br />
port=5061<br />
type=friend<br />
qualify=yes<br />
dtmfmode=rfc2833</p></blockquote>
<p>Change [host] to the IP address of computer hosting Asterisk / FreePBX and [username] to username to be used by Sipura
</li>
<li>Leave the remaining fields blank.</li>
</ol>
<li>Submit Changes.</li>
<li>Go to Setup > Basic > Outbound Routes</li>
<li>Click on 0 9_outside (or create a new one)</li>
<li>Change the settings to as follows:</li>
<ol>
<li>All fields should be blank or left as default up to Dial Patterns.</li>
<li>Dial Patterns - <code>9|.</code></li>
<li>Trunk Sequence - Select the Trunk created above.</li>
</ol>
<li>Submit changes.</li>
<li>Apply the changes.</li>
</ol>
<p>The above setting outbound route requires a 9 to be dialled followed by the number to be dialled. The dial pattern can be changed later.</p>
<p>Create a new inbound route for the landline to Asterisk via SPA3102:</p>
<ol>
<li>Go to Setup > Inbound Call Control > Inbound Routes</li>
<li>Change the following settings:</li>
<ol>
<li>Description - A meaningful name for the inbound route</li>
<li>DID Number - Enter the landline telephone number including the area code.</li>
<li>Set Destination - Set where the landline call should go to. This can be voicemail or an extension</li>
</ol>
<li>Submit changes.</li>
<li>Apply Settings</li>
</ol>
<p>It is worth mentioning here that there is a module in FreePBX called Ring Group which would allow a group of extensions to be named as a destination. This means anyone in the group will have their phone ring when someone rings the landline.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/FreePBX-user-authentication.png" rel="lightbox[2186]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/FreePBX-user-authentication-150x150.png" alt="" title="FreePBX user authentication" width="150" height="150" class="aligncenter size-thumbnail wp-image-2815" /></a></div>
<p>As a recommended step check if a password has been set on the admin web page. Clear out the browser's cookies and cache. Go to the Freepbx page and click on the FreePBX Administration link it should prompt for a password. If not edit the default admin account or add a new account under <code>Setup > Basic > Administration</code></p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/Administrators-account.png" rel="lightbox[2186]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/Administrators-account-150x150.png" alt="" title="Administrators account" width="150" height="150" class="aligncenter size-thumbnail wp-image-2814" /></a></div>
<p>Notice there is a warning under "General Settings". This means the authentication has not been turned on. Submit the changes and apply them once completed. Go to the Freepbx box and edit the file <code>/etc/amportal.conf</code> Look for the line <code>AUTHTYPE=none</code> and change it from <strong>none</strong> to <strong>database</strong>.</p>
<h3>Setting Up SPA3102</h3>
<p>Out of the box the ATA is configured to act as a router and has the web interface disabled on the WAN port. I will be putting SPA3102 into an existing network so I need to enable the WAN port and turn off the DHCP. The WAN port needs to be enabled so that it can connect to the local network instead of the box expecting a modem and turning off DHCP will stop two devices assigning an IP to the computers on the network.</p>
<p>Plug a telephone into phone socket of the SPA3102 and the power in the power socket. Pick up the phone and dial ***** (5 asterisks) and then 7932 and then 1. Hang up or press #.</p>
<p>Now plug the network cable into the Internet port of the SPA3102 <strong>NOT THE ETHERNET PORT</strong>. Point your browser to the IP address of the SPA3102. To find out what the IP is you should be able to check on your router or dial ***** (5 asterisks) > 110 on your phone.</p>
<p>Just like a router, a webpage with settings and status of the device should appear. Use the screenshots below and set all the settings below:</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-System-Tab.png" rel="lightbox[2186]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-System-Tab-150x150.png" alt="" title="SPA3102 Voice-System Tab" width="150" height="150" class="aligncenter size-thumbnail wp-image-2823" /></a><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-SIP-Tab.png" rel="lightbox[2186]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-SIP-Tab-150x150.png" alt="" title="SPA3102 Voice-SIP Tab" width="150" height="150" class="aligncenter size-thumbnail wp-image-2822" /></a><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-Provisioning-Tab.png" rel="lightbox[2186]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-Provisioning-Tab-150x150.png" alt="" title="SPA3102 Voice-Provisioning Tab" width="150" height="150" class="aligncenter size-thumbnail wp-image-2819" /></a><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-Regional-Tab.png" rel="lightbox[2186]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-Regional-Tab-150x150.png" alt="" title="SPA3102 Voice-Regional Tab" width="150" height="150" class="aligncenter size-thumbnail wp-image-2821" /></a><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-Line-1-Tab.png" rel="lightbox[2186]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-Line-1-Tab-150x150.png" alt="" title="SPA3102 Voice-Line 1 Tab" width="150" height="150" class="aligncenter size-thumbnail wp-image-2818" /></a><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-PSTN-Line-Tab.png" rel="lightbox[2186]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-PSTN-Line-Tab-150x150.png" alt="" title="SPA3102 Voice-PSTN Line Tab" width="150" height="150" class="aligncenter size-thumbnail wp-image-2820" /></a></div>
<p>The settings are for UK and I have change the tones in the Voice > Regional settings. Others such as the daylight savings are aligned to the UK time zone.</p>
<p>The following needs to be configured according to the environment.<br />
<strong>Voice > Line 1 > Proxy and Registration</strong></p>
<ul>
<li>Proxy - IP address of the <a href="http://www.linux.org" target='_blank'>Linux</a> box which will host the Asterisk and FreePBX software.</li>
</ul>
<p><strong>Voice > Line 1 > Subscriber Information</strong></p>
<ul>
<li>User ID - Extension set in FreePBX</li>
<li>Password - Leave blank initially for easier debugging but it should match the secret settings in the extensions</li>
</ul>
<p><strong>Voice > PSTN Line > Proxy and Registration</strong></p>
<ul>
<li>Proxy - IP address of the <a href="http://www.linux.org" target='_blank'>Linux</a> box which will host the Asterisk and FreePBX software.</li>
</ul>
<p><strong>Voice > PSTN Line > Dial Plans</strong></p>
<ul>
<li>Dial Plan 2 - S0(<:xxxxxxxxxx>) where x is the phone number of your land land including the area code e.g 01323123456</li>
</ul>
<p><a href="http://www.asterisk.org/" target="_blank">Asterisk</a><br />
<a href="http://www.trixbox.org/" target="_blank">Trixbox</a><br />
<a href="http://www.freepbx.org/" target="_blank">FreePBX</a><br />
<a href="http://hmontoliu.blogspot.com/2010/03/installing-asterisk-and-freepbx-on.html">Installing Asterisk and FreePBX on a vmware instance of Ubuntu 10.04 (Lucid) alpha3</a></p>
<div align="center"></div>

<a href='http://www.dannytsang.co.uk/index.php/linksys-spa3102-and-freepbx-on-ubuntu-10-04/freepbx-user-authentication/' title='FreePBX user authentication'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/FreePBX-user-authentication-150x150.png" class="attachment-thumbnail" alt="FreePBX user authentication" title="FreePBX user authentication" /></a>
<a href='http://www.dannytsang.co.uk/index.php/linksys-spa3102-and-freepbx-on-ubuntu-10-04/administrators-account/' title='Administrators account'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/Administrators-account-150x150.png" class="attachment-thumbnail" alt="Administrators account" title="Administrators account" /></a>
<a href='http://www.dannytsang.co.uk/index.php/linksys-spa3102-and-freepbx-on-ubuntu-10-04/spa3102-voice-line-1-tab/' title='SPA3102 Voice-Line 1 Tab'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-Line-1-Tab-150x150.png" class="attachment-thumbnail" alt="SPA3102 Voice-Line 1 Tab" title="SPA3102 Voice-Line 1 Tab" /></a>
<a href='http://www.dannytsang.co.uk/index.php/linksys-spa3102-and-freepbx-on-ubuntu-10-04/spa3102-voice-provisioning-tab/' title='SPA3102 Voice-Provisioning Tab'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-Provisioning-Tab-150x150.png" class="attachment-thumbnail" alt="SPA3102 Voice-Provisioning Tab" title="SPA3102 Voice-Provisioning Tab" /></a>
<a href='http://www.dannytsang.co.uk/index.php/linksys-spa3102-and-freepbx-on-ubuntu-10-04/spa3102-voice-regional-tab/' title='SPA3102 Voice-Regional Tab'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-Regional-Tab-150x150.png" class="attachment-thumbnail" alt="SPA3102 Voice-Regional Tab" title="SPA3102 Voice-Regional Tab" /></a>
<a href='http://www.dannytsang.co.uk/index.php/linksys-spa3102-and-freepbx-on-ubuntu-10-04/spa3102-voice-sip-tab/' title='SPA3102 Voice-SIP Tab'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-SIP-Tab-150x150.png" class="attachment-thumbnail" alt="SPA3102 Voice-SIP Tab" title="SPA3102 Voice-SIP Tab" /></a>
<a href='http://www.dannytsang.co.uk/index.php/linksys-spa3102-and-freepbx-on-ubuntu-10-04/spa3102-voice-system-tab/' title='SPA3102 Voice-System Tab'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-System-Tab-150x150.png" class="attachment-thumbnail" alt="SPA3102 Voice-System Tab" title="SPA3102 Voice-System Tab" /></a>
<a href='http://www.dannytsang.co.uk/index.php/linksys-spa3102-and-freepbx-on-ubuntu-10-04/spa3102-voice-pstn-line-tab/' title='SPA3102 Voice-PSTN Line Tab'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/SPA3102-Voice-PSTN-Line-Tab-150x150.png" class="attachment-thumbnail" alt="SPA3102 Voice-PSTN Line Tab" title="SPA3102 Voice-PSTN Line Tab" /></a>
<a href='http://www.dannytsang.co.uk/index.php/linksys-spa3102-and-freepbx-on-ubuntu-10-04/new-extension/' title='New Extension'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/06/New-Extension-150x150.png" class="attachment-thumbnail" alt="New Extension" title="New Extension" /></a>



<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/adding-outgoing-skype-for-sip-to-freepbx/' rel='bookmark' title='Permanent Link: Adding Outgoing Skype For SIP To FreePBX'>Adding Outgoing Skype For SIP To FreePBX</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/remote-extension-in-freepbx/' rel='bookmark' title='Permanent Link: Remote Extension In FreePBX'>Remote Extension In FreePBX</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/freepbx-common-voicemail-box/' rel='bookmark' title='Permanent Link: FreePBX &#8211; Common Voicemail Box'>FreePBX &#8211; Common Voicemail Box</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/linksys-spa3102-and-freepbx-on-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Full Disk &#8211; MediaTomb Hog</title>
		<link>http://www.dannytsang.co.uk/index.php/full-disk-mediatomb-hog/</link>
		<comments>http://www.dannytsang.co.uk/index.php/full-disk-mediatomb-hog/#comments</comments>
		<pubDate>Sun, 30 May 2010 21:40:46 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Disk]]></category>
		<category><![CDATA[MediaTomb]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2805</guid>
		<description><![CDATA[For some reason MediaTomb was out putting a lot of log statements in /var/log/mediatomb.log. I tailed the file and only got what looked like time stamped entries of normal scanning information as I have timed re-scans. The file managed to fill my 250GB hard drive when Ubuntu 10.04 started to complain. After removing the file [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/mediatomb-dlna-to-playstation-3/' rel='bookmark' title='Permanent Link: MediaTomb DLNA To Playstation 3'>MediaTomb DLNA To Playstation 3</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/xmltv-error-6400-and-xmltv-error-2304/' rel='bookmark' title='Permanent Link: XMLTV Error 6400 And XMLTV Error 2304'>XMLTV Error 6400 And XMLTV Error 2304</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/my-performance-tweaks-to-ubuntu/' rel='bookmark' title='Permanent Link: My Performance Tweaks To Ubuntu'>My Performance Tweaks To Ubuntu</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>For some reason MediaTomb was out putting a lot of log statements in /var/log/mediatomb.log. I tailed the file and only got what looked like time stamped entries of normal scanning information as I have timed re-scans.</p>
<p>The file managed to fill my 250GB hard drive when <a href="http://www.ubuntu.com/" target='_blank'>Ubuntu</a> 10.04 started to complain. After removing the file using the command line all was fine again.</p>


<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/mediatomb-dlna-to-playstation-3/' rel='bookmark' title='Permanent Link: MediaTomb DLNA To Playstation 3'>MediaTomb DLNA To Playstation 3</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/xmltv-error-6400-and-xmltv-error-2304/' rel='bookmark' title='Permanent Link: XMLTV Error 6400 And XMLTV Error 2304'>XMLTV Error 6400 And XMLTV Error 2304</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/my-performance-tweaks-to-ubuntu/' rel='bookmark' title='Permanent Link: My Performance Tweaks To Ubuntu'>My Performance Tweaks To Ubuntu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/full-disk-mediatomb-hog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTC Desire Mini Review</title>
		<link>http://www.dannytsang.co.uk/index.php/htc-desire-mini-review/</link>
		<comments>http://www.dannytsang.co.uk/index.php/htc-desire-mini-review/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 23:01:43 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile Phone]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Apple iPhone]]></category>
		<category><![CDATA[Apps]]></category>
		<category><![CDATA[Desire]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[HTC]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[Nexus]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[usb drive]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2774</guid>
		<description><![CDATA[Overview I have finally made the jump from the iPhone to an Android OS phone. Whilst the OS 4.0 from Apple preview event looked good, there was no sign or mention that they will change the App store and it&#8217;s draconian approval process. HTC vs. Google I was undecided between the HTC Desire and the [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/apple-iphone-3g-dock/' rel='bookmark' title='Permanent Link: Apple iPhone 3G Dock'>Apple iPhone 3G Dock</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/tethering-htc-desire-with-ubuntu-9-10/' rel='bookmark' title='Permanent Link: Tethering HTC Desire With Ubuntu 9.10'>Tethering HTC Desire With Ubuntu 9.10</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/phone-platforms/' rel='bookmark' title='Permanent Link: Nokia Buys Symbian'>Nokia Buys Symbian</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h3>Overview</h3>
<p>I have finally made the jump from the <a href="http://www.apple.com/iphone/" target='_blank'>iPhone</a> to an Android OS phone. Whilst the OS 4.0 from Apple preview event looked good, there was no sign or mention that they will change the App store and it&#8217;s draconian approval process.</p>
<h3>HTC vs. Google</h3>
<p>I was undecided between the HTC Desire and the <a href="http://www.google.com/" target='_blank'>Google</a> Nexus One. There two phones run on a similar platform but there are subtle differences such as noise cancellation and track ball on the Nexus vs. Sense UI and an optical track (ball).</p>
<p>The decision was made to go the Desire because:</p>
<ul>
<li>It was out in the UK before the Nexus</li>
<li>Proper physical buttons instead of the touch sensitive buttons</li>
</ul>
<h3>Unboxing</h3>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/04/HTC-Desire-box.jpg" rel="lightbox[2774]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/04/HTC-Desire-box-150x150.jpg" alt="" title="HTC Desire box" width="150" height="150" class="aligncenter size-thumbnail wp-image-2782" /></a></div>
<p>The phone came in a very small package but still managed to fit most of the items I&#8217;d expected to see to come with the phone e.g earphones, documents, etc.</p>
<p>I do have to say there was no manual that came with the phone but it was more like a quick start guide. On the first start up of the phone there was another quick introduction but nothing substantial for those who like to read the manual.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/04/Contents1.jpg" rel="lightbox[2774]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/04/Contents1-150x150.jpg" alt="" title="Contents" width="150" height="150" class="aligncenter size-thumbnail wp-image-2780" /></a></div>
<h3>Replacing iPhone</h3>
<p>After having an Apple <a href="http://www.apple.com/iphone/" target='_blank'>iPhone</a> 3G for just over 18 months it was apparent what I missed and what I loved about the new phone.</p>
<p><strong>Pros:</strong></p>
<ul>
<li>No download limit &#8211; Previously there was a 10mb download limit from the App store or iTunes over the mobile carrier. With Android there is no such limit.</li>
<li>Removable battery &#8211; Not that I plan to change the battery often but it&#8217;s nice to know I can.</li>
<li>Auto focus camera &#8211; It bugged me that the <a href="http://www.apple.com/iphone/" target='_blank'>iPhone</a> camera did not have macro mode but the HTC Desire even has face recognition.</li>
<li>Micro USB &#8211; A standard connector so I do not have to hunt for an Apple specific one to power the device</li>
<li>USB mode &#8211; Ability to set the mode when it is connected to the computer e.g charge, Sync, Tether&#8230;</li>
<li>Tethering &#8211; Ability to tether via USB out of the box (except for the need to download the USB drive in Windows)</li>
<li>Multitasking  &#8211; The ability to run multiple threads at a time in the background has it&#8217;s pros and cons. For the good parts it&#8217;s been everything the <a href="http://www.apple.com/iphone/" target='_blank'>iPhone</a> should have done with the push notification. I was getting RSS to update at regular intervals so when I open the app it had them already cached, sending tweets can be done with the app closed so you are free to do other things once the send button is pressed and even <a href="http://www.facebook.com" target='_blank'>Facebook</a> allowed uploading of pictures in another thread!</li>
</ul>
<p><strong>Cons:</strong></p>
<ul>
<li>Headphone profile &#8211; Connecting a headphone/earphone to the 3.5mm jack does not change the volume to what it was set to before when a jack was connected.</li>
<li>Battery life &#8211; I was able to make it through the whole day usually without the <a href="http://www.apple.com/iphone/" target='_blank'>iPhone</a> running out of power but the Desire does if I play any games for a long period.</li>
<li>Lack of Apps &#8211; Particular high quality games such as Popcap games. There are some good apps but nothing near the amount the <a href="http://www.apple.com/iphone/" target='_blank'>iPhone</a> has.</li>
<li>Multitasking &#8211; Apple was correct when they said it would use more power if they enabled multitasking and with the HTC Desire I saw the side effects. This had lead to reducing the amount of background updates and notifications as well as killing some of the other watchdog threads in Twitter and <a href="http://www.facebook.com" target='_blank'>Facebook</a> clients.</li>
<li><del datetime="2010-05-26T12:35:04+00:00">Conference calls &#8211; There&#8217;s no option to allow more one or more people to an existing call.</del></li>
</ul>
<p>The phone does have conference calling function but it is not displayed on screen during a call. Pressing the menu button reveals this function</p>
<p><strong>Observations:</strong></p>
<ul>
<li>Apps are smaller &#8211; Android apps seems to be smaller but that may be because the <a href="http://www.apple.com/iphone/" target='_blank'>iPhone</a> Apps may use more custom graphics.</li>
<li>Headphone jack detection &#8211; Whilst connecting a headset does not lower the volume on the Android device, it still stops the music play back if the jack is removed from the port.</li>
<li>Case &#8211; Whilst both the Apple <a href="http://www.apple.com/iphone/" target='_blank'>iPhone</a> and the HTC Desire did not come with a case it would have been a nice touch like the HTC HD2.</li>
</ul>
<h3>Personal Preference</h3>
<p>I still prefer the Apple <a href="http://www.apple.com/iphone/" target='_blank'>iPhone</a>&#8217;s keyboard but that may be because I was use to using it the Apple way. The typing of the keys felt slightly less accurate but I&#8217;m getting better at it and the spelling corrections are not as well done but the words in the dictionary are much better because it contains some odd words not in the dictionary.</p>
<p>HTC Sense UI does add some good integration from third party companies such as <a href="http://www.facebook.com" target='_blank'>Facebook</a> and Twitter integration to the contacts. The &#8220;People&#8221; or contacts page allows for linking and unlinking from <a href="http://www.facebook.com" target='_blank'>Facebook</a> profiles. Once linked it will associate people&#8217;s profile pictures to the contact on the phone.</p>
<p>There are caveats to this like some profile pictures have really low resolution so it gets blown up on screen when the person calls and also HTC has duplicated some of the functionalities the Android OS provides already for this integration. For example HTC has it&#8217;s own version of <a href="http://www.facebook.com" target='_blank'>Facebook</a> application which allows it to link to the peoples page but the non HTC <a href="http://www.facebook.com" target='_blank'>Facebook</a> app also has to be installed in order for it to work. This means there are two apps which appear in the programs list for <a href="http://www.facebook.com" target='_blank'>Facebook</a>.</p>
<h3>Summary</h3>
<p>I am happy with the trade offs for the phone but I hope the continous improvements made by both <a href="http://www.google.com/" target='_blank'>Google</a> and HTC will come to fix some of the issues I have raised over time.</p>
<p>In terms of the battery problem I do not think there is anything that can be done without a re-design.</p>
<div align="center"></div>

<a href='http://www.dannytsang.co.uk/index.php/htc-desire-mini-review/contents-4/' title='Contents'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/04/Contents1-150x150.jpg" class="attachment-thumbnail" alt="Contents" title="Contents" /></a>
<a href='http://www.dannytsang.co.uk/index.php/htc-desire-mini-review/htc-desire-box-opened/' title='HTC Desire box opened'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/04/HTC-Desire-box-opened-150x150.jpg" class="attachment-thumbnail" alt="HTC Desire box opened" title="HTC Desire box opened" /></a>
<a href='http://www.dannytsang.co.uk/index.php/htc-desire-mini-review/htc-desire-box/' title='HTC Desire box'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/04/HTC-Desire-box-150x150.jpg" class="attachment-thumbnail" alt="HTC Desire box" title="HTC Desire box" /></a>



<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/apple-iphone-3g-dock/' rel='bookmark' title='Permanent Link: Apple iPhone 3G Dock'>Apple iPhone 3G Dock</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/tethering-htc-desire-with-ubuntu-9-10/' rel='bookmark' title='Permanent Link: Tethering HTC Desire With Ubuntu 9.10'>Tethering HTC Desire With Ubuntu 9.10</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/phone-platforms/' rel='bookmark' title='Permanent Link: Nokia Buys Symbian'>Nokia Buys Symbian</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/htc-desire-mini-review/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PDF Printer In Ubuntu</title>
		<link>http://www.dannytsang.co.uk/index.php/pdf-printer-in-ubuntu/</link>
		<comments>http://www.dannytsang.co.uk/index.php/pdf-printer-in-ubuntu/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 00:01:49 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[pdf printer]]></category>
		<category><![CDATA[printer]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2698</guid>
		<description><![CDATA[It is really simple to add a PDF printer in Ubuntu 9.10. A PDF printer prints a page and writes to a file in PDF format. To install this feature typer in the terminal: sudo apt-get install cups-pdf That&#8217;s it. It should install and even add the printer automatically. Related posts:Setting Up CUPS (Print Server) [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/setting-up-cups-print-server-on-ubuntu-804/' rel='bookmark' title='Permanent Link: Setting Up CUPS (Print Server) On Ubuntu 8.04'>Setting Up CUPS (Print Server) On Ubuntu 8.04</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/installing-ipp-printer/' rel='bookmark' title='Permanent Link: Installing IPP Printer On Ubuntu'>Installing IPP Printer On Ubuntu</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/microsoft-word-crashing-frequently/' rel='bookmark' title='Permanent Link: Microsoft Word Crashing Frequently'>Microsoft Word Crashing Frequently</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>It is really simple to add a PDF printer in <a href="http://www.ubuntu.com/" target='_blank'>Ubuntu</a> 9.10. A PDF printer prints a page and writes to a file in PDF format. To install this feature typer in the terminal:<br />
<code>sudo apt-get install cups-pdf</code></p>
<p>That&#8217;s it. It should install and even add the printer automatically.</p>


<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/setting-up-cups-print-server-on-ubuntu-804/' rel='bookmark' title='Permanent Link: Setting Up CUPS (Print Server) On Ubuntu 8.04'>Setting Up CUPS (Print Server) On Ubuntu 8.04</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/installing-ipp-printer/' rel='bookmark' title='Permanent Link: Installing IPP Printer On Ubuntu'>Installing IPP Printer On Ubuntu</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/microsoft-word-crashing-frequently/' rel='bookmark' title='Permanent Link: Microsoft Word Crashing Frequently'>Microsoft Word Crashing Frequently</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/pdf-printer-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mount ISO File In Linux</title>
		<link>http://www.dannytsang.co.uk/index.php/mount-iso-file-in-linux/</link>
		<comments>http://www.dannytsang.co.uk/index.php/mount-iso-file-in-linux/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 01:03:30 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CD-rom]]></category>
		<category><![CDATA[CDROM]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[iso file]]></category>
		<category><![CDATA[iso9660]]></category>
		<category><![CDATA[Mount ISO]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2684</guid>
		<description><![CDATA[A neat trick in Linux is the ability to mount an .iso file as if it was a CDROM. The command to do this is: sudo mount -t iso9660 -o loop /home/danny/filename.iso /media/cdrom where &#8220;/home/danny/filename.iso&#8221; is the path to the ISO file and the latter &#8220;/media/cdrom&#8221; is the mount point. In this case it will [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/nfs-server/' rel='bookmark' title='Permanent Link: NFS Server'>NFS Server</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/kick-a-linux-user-whos-logged-in/' rel='bookmark' title='Permanent Link: Kick A Linux User Who&#8217;s Logged In'>Kick A Linux User Who&#8217;s Logged In</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/formatting-a-floppy-disk-in-linux/' rel='bookmark' title='Permanent Link: Formatting A Floppy Disk In Linux'>Formatting A Floppy Disk In Linux</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A neat trick in <a href="http://www.linux.org" target='_blank'>Linux</a> is the ability to mount an .iso file as if it was a CDROM.</p>
<p>The command to do this is:<br />
<code>sudo mount -t iso9660 -o loop /home/danny/filename.iso /media/cdrom</code></p>
<p>where &#8220;/home/danny/filename.iso&#8221; is the path to the ISO file and the latter &#8220;/media/cdrom&#8221; is the mount point. In this case it will mount it where the CDROM would normally be mounted on.</p>
<p><a href="http://ubuntuforums.org/showthread.php?t=387780" target="_blank">Mount ISO as CD-rom not as a folder</a></p>


<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/nfs-server/' rel='bookmark' title='Permanent Link: NFS Server'>NFS Server</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/kick-a-linux-user-whos-logged-in/' rel='bookmark' title='Permanent Link: Kick A Linux User Who&#8217;s Logged In'>Kick A Linux User Who&#8217;s Logged In</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/formatting-a-floppy-disk-in-linux/' rel='bookmark' title='Permanent Link: Formatting A Floppy Disk In Linux'>Formatting A Floppy Disk In Linux</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/mount-iso-file-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NFS Server</title>
		<link>http://www.dannytsang.co.uk/index.php/nfs-server/</link>
		<comments>http://www.dannytsang.co.uk/index.php/nfs-server/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 10:40:32 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Mount NFS]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[Network Attached Storage]]></category>
		<category><![CDATA[Network File Share]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[nfs client]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2580</guid>
		<description><![CDATA[Overview Network File Share (NFS) is a protocol for sharing storage. It is quite common in Network Attached Storage (NAS) devices and is a standard compared to Samba which is Microsoft specific but has been ported to Linux. Install NFS Server Install the relevant software: sudo apt-get install nfs-kernel-server nfs-common portmap Configure NFS Server Configuring [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/mount-iso-file-in-linux/' rel='bookmark' title='Permanent Link: Mount ISO File In Linux'>Mount ISO File In Linux</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/change-mac-address-in-windows/' rel='bookmark' title='Permanent Link: Change MAC Address In Windows'>Change MAC Address In Windows</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/print-server-cups/' rel='bookmark' title='Permanent Link: Print Server (CUPS)'>Print Server (CUPS)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h3>Overview</h3>
<p>Network File Share (NFS) is a protocol for sharing storage. It is quite common in Network Attached Storage (NAS) devices and is a standard compared to Samba which is Microsoft specific but has been ported to <a href="http://www.linux.org" target='_blank'>Linux</a>.</p>
<h3>Install NFS Server</h3>
<p>Install the relevant software:<br />
<code>sudo apt-get install nfs-kernel-server nfs-common portmap</code></p>
<h3>Configure NFS Server</h3>
<p>Configuring NFS server is relatively simply. Edit the file <strong>/etc/exports</strong> file and add all the directories available as a share. The format should be as follows</p>
<blockquote><p>/media/cdrom 192.168.0.1/24(rw,async)</p></blockquote>
<li>mount point on local system.</li>
<li>host</li>
<li>permissions</li>
<p>Using the above string this would share the CDROM to any computer with the IP range 192.168.0.1-192.168.0.254 that has read and write permissions and requests can be process asynchronously.</p>
<p>Specific IPs can be given to each share like this:</p>
<blockquote><p>/media/cdrom 192.168.0.1(rw,async) 192.168.0.1(ro,async)</p></blockquote>
<p>Computer 192.168.0.1 has the permissions described in the above example and the computer with 192.168.0.2 only has asynchronous requests and read only access to files for that share.</p>
<p>When specifying mount points note where the spaces are and are not because spaces are read by the system so </p>
<blockquote><p>/media/cdrom 192.168.0.1 (rw,async)</p></blockquote>
<p>is invalid because there is a space between the IP address and the parenthesis.</p>
<p>Once all the shares have been configured it is necessary to restart NFS to see the changes:<br />
<code>sudo /etc/init.d/nfs-kernel-server restart</code></p>
<h3>Mount NFS Share On Linux</h3>
<p>Install the NFS client if the computer does not have a NFS server itself:<br />
<code>sudo apt-get install portmap nfs-common</code></p>
<p>To mount the share manually from the terminal type the following:<br />
<code>sudo mount 192.168.0.1:/media/cdrom /media/share</code><br />
First is super user command sudo then mount command, IP address of NFS server followed by the path to share. The last parameter is the local mount point so in the above example it will mount the CDROM drive from the server onto /media/share directory of the client computer.</p>
<p>To make the mount more permanent edit the <strong>/etc/fstab</strong> file and the following line, one for each NFS share.</p>
<blockquote><p><strong>192.168.0.1:/media/cdrom /media/share</strong> nfs rsize=8192,wsize=8192,timeo=14,intr</p></blockquote>
<p>The only part that needs to be changed is the IP address, NFS share point and the mount point. This is highlighted in bold in the example above. The rest should be fine left as is. This change should mount the share when the computer is started.</p>
<h3>Mount NFS Share On Windows 7 Ultimate Edition</h3>
<p>NFS support does not come as standard with Windows so it has to be installed. Also I only found the feature in Windows 7 Ultimate Edition and not the Professional. I believe there is a Business Edition in between but do not know if it has the support for NFS.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/Turn-Windows-features-on-or-off.png" rel="lightbox[2580]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/Turn-Windows-features-on-or-off-150x150.png" alt="" title="Turn Windows features on or off" width="150" height="150" class="aligncenter size-thumbnail wp-image-2601" /></a></div>
<p>Go to the Control Panel and on the left hand side click on Turn <strong>Windows features on or off</strong> hyper link. It will load a list of software in a tree / node structure. Find <strong>Services for NFS</strong> and tick <strong>Client for NFS</strong> as a minimum.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/Map-a-network-drive-start-menu.png" rel="lightbox[2580]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/Map-a-network-drive-start-menu-150x150.png" alt="" title="Map a network drive start menu" width="150" height="150" class="aligncenter size-thumbnail wp-image-2603" /></a></div>
<p>On the start menu right click on <strong>Network</strong> and select <strong>Map network drive</strong>. If this option is not in the start menu go to <strong>Computer</strong> and right click on <strong>Network</strong> from the left hand panel. A wizard will start for mapping a network drive.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/Map-a-network-drive.png" rel="lightbox[2580]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/Map-a-network-drive-150x150.png" alt="" title="Map a network drive" width="150" height="150" class="aligncenter size-thumbnail wp-image-2605" /></a></div>
<p>Select the drive letter to be assigned to the NFS share and for the <strong>Folder</strong> enter the address [server]:[path] for example <code>192.168.0.1:/media/cdrom</code><br />
Tick <strong>Reconnect at logon</strong> if you want it to connect on start up and click <strong>Finish</strong> to end the wizard.</p>
<p>The only problem with mounting the NFS on Windows is every time Computer it takes a longer to scan and load the drives because it scans the NFS to get the size and amount used on the NFS.</p>
<h3>Summary</h3>
<p>NFS between <a href="http://www.linux.org" target='_blank'>Linux</a> machines is perfect and a good way to share files. Mounting a NFS makes the local share look as if it was it was local drive.</p>
<p>For Windows I&#8217;d stick to using Samba because it doesn&#8217;t take a while to scan the shared drive every time the drive is highlighted to get the drive information such as amount of space available. It&#8217;s not a nice to administer two services doing the same thing but it works.</p>
<p><a href="http://www.ubuntugeek.com/nfs-server-and-client-configuration-in-ubuntu.html" target="_blank">NFS Server and Client Configuration in Ubuntu</a></p>

<a href='http://www.dannytsang.co.uk/index.php/nfs-server/turn-windows-features-on-or-off/' title='Turn Windows features on or off'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/Turn-Windows-features-on-or-off-150x150.png" class="attachment-thumbnail" alt="Turn Windows features on or off" title="Turn Windows features on or off" /></a>
<a href='http://www.dannytsang.co.uk/index.php/nfs-server/map-a-network-drive-my-computer/' title='Map a network drive my computer'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/Map-a-network-drive-my-computer-150x150.png" class="attachment-thumbnail" alt="Map a network drive my computer" title="Map a network drive my computer" /></a>
<a href='http://www.dannytsang.co.uk/index.php/nfs-server/map-a-network-drive-start-menu/' title='Map a network drive start menu'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/Map-a-network-drive-start-menu-150x150.png" class="attachment-thumbnail" alt="Map a network drive start menu" title="Map a network drive start menu" /></a>
<a href='http://www.dannytsang.co.uk/index.php/nfs-server/map-a-network-drive/' title='Map a network drive'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/Map-a-network-drive-150x150.png" class="attachment-thumbnail" alt="Map a network drive" title="Map a network drive" /></a>



<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/mount-iso-file-in-linux/' rel='bookmark' title='Permanent Link: Mount ISO File In Linux'>Mount ISO File In Linux</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/change-mac-address-in-windows/' rel='bookmark' title='Permanent Link: Change MAC Address In Windows'>Change MAC Address In Windows</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/print-server-cups/' rel='bookmark' title='Permanent Link: Print Server (CUPS)'>Print Server (CUPS)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/nfs-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MediaTomb DLNA To Playstation 3</title>
		<link>http://www.dannytsang.co.uk/index.php/mediatomb-dlna-to-playstation-3/</link>
		<comments>http://www.dannytsang.co.uk/index.php/mediatomb-dlna-to-playstation-3/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 00:01:19 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[divx]]></category>
		<category><![CDATA[DLNA]]></category>
		<category><![CDATA[MediaTomb]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[myth]]></category>
		<category><![CDATA[MythTV]]></category>
		<category><![CDATA[Playstation]]></category>
		<category><![CDATA[Sony]]></category>
		<category><![CDATA[sony playstation]]></category>
		<category><![CDATA[sony playstation 3]]></category>
		<category><![CDATA[SQLite]]></category>
		<category><![CDATA[UPNP]]></category>
		<category><![CDATA[upnp server]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XviD]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2566</guid>
		<description><![CDATA[Overview I found the Video plugin for MythTV 0.21 to be inadequate for streaming to the Sony Playstation 3. It didn&#8217;t update fast enough when you dropped a video into the UPnP directory and also there was no external way of telling it to refresh it&#8217;s list of files without starting up Myth Frontend. MediaTomb [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/full-disk-mediatomb-hog/' rel='bookmark' title='Permanent Link: Full Disk &#8211; MediaTomb Hog'>Full Disk &#8211; MediaTomb Hog</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/dvdrip/' rel='bookmark' title='Permanent Link: dvd::rip'>dvd::rip</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/ubuntu-music-streaming-server-ampache/' rel='bookmark' title='Permanent Link: Ubuntu Music Streaming Server &#8211; Ampache'>Ubuntu Music Streaming Server &#8211; Ampache</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h3>Overview</h3>
<p>I found the Video plugin for <a href="http://www.mythtv.org/" target='_blank'>MythTV</a> 0.21 to be inadequate for streaming to the Sony Playstation 3. It didn&#8217;t update fast enough when you dropped a video into the UPnP directory and also there was no external way of telling it to refresh it&#8217;s list of files without starting up Myth Frontend.</p>
<h3>MediaTomb</h3>
<p>MediaTomb is a UPnP server which can run as a standalone or as a daemon. It uses an XML configuration file for it&#8217;s settings (pretty neat stuff) and is pretty small in size. The software comes with it&#8217;s own web server so you don&#8217;t have to install a full apache install to get to the control panel and it uses <a href="http://www.sqlite.org/" target='_blank'>SQLite</a> by default so no big database backend to be installed.</p>
<h3>Install &#038; Configure MediaTomb</h3>
<p>Install MediaTomb and ffmeg thumbnailer<br />
<code>sudo apt-get install mediatomb ffmpegthumbnailer</code><br />
That&#8217;s it for the install!</p>
<p>edit the file config file in <strong>/etc/mediatomb/config.xml</strong> and change the following settings:</p>
<p>Enable PS3 support change this:</p>
<blockquote><p>&lt;protocolInfo extend=&#8221;no&#8221;/&gt;&lt;!&#8211; For PS3 support change to &#8220;yes&#8221; &#8211;&gt;</p></blockquote>
<p>to</p>
<blockquote><p>&lt;protocolInfo extend=&#8221;yes&#8221;/>&lt;!&#8211; For PS3 support change to &#8220;yes&#8221; &#8211;&gt;</p></blockquote>
<p>and also</p>
<blockquote><p>&lt;!&#8211; &lt;map from=&#8221;avi&#8221; to=&#8221;video/divx&#8221;/&gt; &#8211;&gt;</p></blockquote>
<p>to</p>
<blockquote><p>&lt;map from=&#8221;avi&#8221; to=&#8221;video/divx&#8221;/&gt;</p></blockquote>
<p>Add the line<br />
<code>&lt;pc-directory upnp-hide="yes"/&gt;</code><br />
below<br />
<code>&lt;webroot&gt;/usr/share/mediatomb/web&lt;/webroot&gt;</code><br />
so that it looks like this<br />
<code>&lt;webroot&gt;/usr/share/mediatomb/web&lt;/webroot&gt;<br />
&lt;pc-directory upnp-hide="yes"/&gt;</code><br />
This hides the full directory path from the Playstation so it can only view the directories added and not the full system.</p>
<p>Add the following to enable thumbnail previews. I have found this does not work 100% of the time.</p>
<p>Enable transcoding<br />
<code>&lt;transcoding enabled="no"&gt;</code><br />
to<br />
<code>&lt;transcoding enabled="yes"&gt;</code></p>
<p>Add the following transcode mappings under <strong>&lt;mimetype-profile-mappings&gt;</strong> tag:</p>
<blockquote><p>&lt;transcode mimetype=&#8221;video/divx&#8221; using=&#8221;video-thumbnail&#8221;/&gt;<br />
 	  &lt;transcode mimetype=&#8221;video/mpeg&#8221; using=&#8221;video-thumbnail&#8221;/&gt;<br />
 	  &lt;transcode mimetype=&#8221;video/mp4&#8243; using=&#8221;video-thumbnail&#8221;/&gt;<br />
 	  &lt;transcode mimetype=&#8221;video/x-ms-wmv&#8221; using=&#8221;video-thumbnail&#8221;/&gt;</p></blockquote>
<p>Add the following settings between the <strong>&lt;profiles&gt;&lt;/profiles&gt;</strong> elements. Not the parent is plural and each profile is singular.</p>
<blockquote><p>&lt;profile name=&#8221;video-thumbnail&#8221; enabled=&#8221;yes&#8221; type=&#8221;external&#8221;&gt;<br />
                        &lt;mimetype&gt;image/jpeg&lt;/mimetype&gt;<br />
                        &lt;accept-url&gt;yes&lt;/accept-url&gt;<br />
                        &lt;thumbnail&gt;yes&lt;/thumbnail&gt;<br />
                        &lt;resolution&gt;128&#215;128&lt;/resolution&gt;<br />
                        &lt;agent command=&#8221;/usr/bin/ffmpegthumbnailer&#8221; arguments=&#8221;-i %in -o %out -s 128&#8243;/&gt;<br />
                        &lt;buffer size=&#8221;524288&#8243; chunk-size=&#8221;512&#8243; fill-size=&#8221;1024&#8243;/&gt;<br />
                &lt;/profile&gt;</p></blockquote>
<p>Restart MediaTomb service <code>sudo /etc/init.d/mediatomb restart</code> If it fails to restart then double check the config file for errors.</p>
<p>Go to the machine in a web browser on port 49152 e.g http://localhost:49152</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/MediaTomb-Adding-directory.png" rel="lightbox[2566]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/MediaTomb-Adding-directory-150x150.png" alt="" title="MediaTomb Adding directories" width="150" height="150" class="aligncenter size-thumbnail wp-image-2588" /></a></div>
<p>On this web page configures the directories available over UPnP. The Database section shows what directories are visible / registered to MediaTomb and Filesystem shows the computer directories that can be added for DLNA / UPnP visibility. When a directory is added MediaTomb scans the directory and register them so they show up on the Playstation. These can include music, videos and pictures.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/MediaTomb-Update-Frequency.png" rel="lightbox[2566]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/MediaTomb-Update-Frequency-150x150.png" alt="" title="MediaTomb Update Frequency" width="150" height="150" class="aligncenter size-thumbnail wp-image-2663" /></a></div>
<p>In the top right hand corner there is a plus &#8220;+&#8221; with two arrows around it. Clicking on it loads a new page in the main window, replacing the file lists in the directory. This is the page for setting how often it scans for changes.</p>
<p>Go to the Playstation, turn it on and go to the relevant category e.g photo in the menu. There should be a MediaTomb server in the list. If it does not appear go towards the top and scan for more media servers to look for MediaTomb.</p>
<h3>Summary</h3>
<p>The software is pretty self contained but I would have liked the option to use Apache and MySQL because those are already installed on my system.</p>
<p>MediaTomb does the job for now and whilst I cannot get the thumbnails to work on all the media it still does a brillant job of streaming the media to the Playstation. Unfortunately it&#8217;s not integrated into <a href="http://www.mythtv.org/" target='_blank'>MythTV</a> so records will still have to be done via <a href="http://www.mythtv.org/" target='_blank'>MythTV</a> but this is not a problem because all recorded TV shows are registered in the database.</p>
<p>A problem I did encounter was that I added multiple directories but reguardless of where they reside on the computer, all videos appear in one directory on the Playstation. I&#8217;m not  sure if this is a bug or how it&#8217;s suppose to work.</p>
<p><a href="http://ubuntuforums.org/showthread.php?t=650020&#038;page=5" target="_blank">[HOWTO]:Stream DivX/XviD to a PS3 with firmware 2.10 using MediaTomb and Ubuntu 7</a></p>

<a href='http://www.dannytsang.co.uk/index.php/mediatomb-dlna-to-playstation-3/mediatomb-adding-directory/' title='MediaTomb Adding directories'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/MediaTomb-Adding-directory-150x150.png" class="attachment-thumbnail" alt="MediaTomb Adding directories" title="MediaTomb Adding directories" /></a>
<a href='http://www.dannytsang.co.uk/index.php/mediatomb-dlna-to-playstation-3/mediatomb-update-frequency/' title='MediaTomb Update Frequency'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/MediaTomb-Update-Frequency-150x150.png" class="attachment-thumbnail" alt="MediaTomb Update Frequency" title="MediaTomb Update Frequency" /></a>



<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/full-disk-mediatomb-hog/' rel='bookmark' title='Permanent Link: Full Disk &#8211; MediaTomb Hog'>Full Disk &#8211; MediaTomb Hog</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/dvdrip/' rel='bookmark' title='Permanent Link: dvd::rip'>dvd::rip</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/ubuntu-music-streaming-server-ampache/' rel='bookmark' title='Permanent Link: Ubuntu Music Streaming Server &#8211; Ampache'>Ubuntu Music Streaming Server &#8211; Ampache</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/mediatomb-dlna-to-playstation-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable SFTP On VSFTPD In Ubuntu</title>
		<link>http://www.dannytsang.co.uk/index.php/enable-sftp-on-vsftpd-in-ubuntu/</link>
		<comments>http://www.dannytsang.co.uk/index.php/enable-sftp-on-vsftpd-in-ubuntu/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 00:01:41 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dsa]]></category>
		<category><![CDATA[ftp server]]></category>
		<category><![CDATA[rsa]]></category>
		<category><![CDATA[security certificates]]></category>
		<category><![CDATA[SFTP]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VSFTPD]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2487</guid>
		<description><![CDATA[Enabling SFTP is very easy and makes FTP protocol a lot more secure than traditional FTP because passwords are not sent in plain text which is susceptible to a lot of things such as packet sniffers, man-in-the-middle, etc. Assuming VSFTPD has been installed (in the default location) edit the file /etc/vsftpd.conf and check there are [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/my-performance-tweaks-to-ubuntu/' rel='bookmark' title='Permanent Link: My Performance Tweaks To Ubuntu'>My Performance Tweaks To Ubuntu</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/enabling-remote-access-to-mysql/' rel='bookmark' title='Permanent Link: Enabling Remote Access To MySQL'>Enabling Remote Access To MySQL</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/ssh-on-multiple-ports/' rel='bookmark' title='Permanent Link: SSH On Multiple Ports'>SSH On Multiple Ports</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Enabling SFTP is very easy and makes FTP protocol a lot more secure than traditional FTP because passwords are not sent in plain text which is susceptible to a lot of things such as packet sniffers, man-in-the-middle, etc.</p>
<p>Assuming VSFTPD has been installed (in the default location) edit the file <strong>/etc/vsftpd.conf</strong> and check there are security certificates installed and configured.</p>
<p>There are two entries which start with either:<br />
<code>dsa_cert_file<br />
dsa_private_key_file</code><br />
or<br />
<code>rsa_cert_file<br />
rsa_private_key_file</code><br />
Each specifying a file path to where the key and certificates are located.</p>
<p>The last step is to enable SFTP by adding the following line:<br />
<code>ssl_enable=YES</code><br />
Save and exit the file and restart the FTP server <code>sudo /etc/init.d/vsftpd restart</code></p>


<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/my-performance-tweaks-to-ubuntu/' rel='bookmark' title='Permanent Link: My Performance Tweaks To Ubuntu'>My Performance Tweaks To Ubuntu</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/enabling-remote-access-to-mysql/' rel='bookmark' title='Permanent Link: Enabling Remote Access To MySQL'>Enabling Remote Access To MySQL</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/ssh-on-multiple-ports/' rel='bookmark' title='Permanent Link: SSH On Multiple Ports'>SSH On Multiple Ports</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/enable-sftp-on-vsftpd-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bypass Blocked Websites Using SSH Proxy</title>
		<link>http://www.dannytsang.co.uk/index.php/bypass-blocked-websites-using-ssh-proxy/</link>
		<comments>http://www.dannytsang.co.uk/index.php/bypass-blocked-websites-using-ssh-proxy/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 00:01:27 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[open ssh]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[ssh proxy]]></category>
		<category><![CDATA[ssh server]]></category>
		<category><![CDATA[ssh session]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2490</guid>
		<description><![CDATA[Overview SSH tunnels are very useful for all sorts of things. One of these uses include proxy. If you have SSH access you can set one up very quickly. I do not condone any misuses of any I.T equipment, software or any other kind described in this article. All practices should be used within the [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/ssh-on-multiple-ports/' rel='bookmark' title='Permanent Link: SSH On Multiple Ports'>SSH On Multiple Ports</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/installing-ipp-printer/' rel='bookmark' title='Permanent Link: Installing IPP Printer On Ubuntu'>Installing IPP Printer On Ubuntu</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/auto-login-lock/' rel='bookmark' title='Permanent Link: Auto Login &#038; Lock For Linux &#038; Windows'>Auto Login &#038; Lock For Linux &#038; Windows</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h3>Overview</h3>
<p>SSH tunnels are very useful for all sorts of things. One of these uses include proxy. If you have SSH access you can set one up very quickly.</p>
<blockquote><p>I do not condone any misuses of any I.T equipment, software or any other kind described in this article. All practices should be used within the law and policy set by your region. Any examples are given are done so to highlight the uses this article may provide.</p></blockquote>
<h3>Uses</h3>
<p>By using your own SSH proxy you can by pass firewalls or blocked websites by directing the data through this connection and out from your SSH server.</p>
<p>For example at a work place they block websites such as <a href="http://www.facebook.com" target='_blank'>Facebook</a>, Twitter, etc. As long as you can connect to your SSH server the web traffic can be re-routed through this connection without the company seeing what is happening when the data is being re-routed apart from you have a SSH session (which may raise some eye brows if you do not have a legitimate use in your daily activities).</p>
<h3>Pre-requisites</h3>
<p>A server running an SSH server. The remainder of this article will be done on a <a href="http://www.ubuntu.com/" target='_blank'>Ubuntu</a> box.</p>
<p>Install SSH server by entering the following command in the terminal:<br />
<code>$ sudo apt-get install openssh-server</code></p>
<p>The default configuration should suffice and you can use your local accounts to log in.</p>
<h3>Establishing Multiple Ports</h3>
<p>It is generally a good idea to have your SSH server listening to more than just the default port (which is 22). Most places may ban this port to stop SSH session going out of an organization potentially leaving a connection open for unwanted outsiders.</p>
<p>To work around this look at my earlier <a href="p=2467">article</a> on how to set up multiple ports on the SSH server.</p>
<h3>Using Proxy On Windows</h3>
<p>Download <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">Putty</a> from Putty&#8217;s <a href="http://www.chiark.greenend.org.uk">website</a>. It&#8217;s just a small program that lets you connect to a SSH server amongst other protocols.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Putty.png" rel="lightbox[2490]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Putty-150x150.png" alt="" title="Putty" width="150" height="150" class="aligncenter size-thumbnail wp-image-2529" /></a></div>
<p>Starting the program up will show a window with a tree like navigation to the left and settings pane to the right and a bunch of buttons at the bottom. The following sections are based on the nodes on the left hand side of the window.</p>
<h4>Session</h4>
<p>Enter the IP address of the server and the ports configured above. Ensure the <strong>Connection type</strong> is set to <strong>SSH</strong>.</p>
<p>In <strong>Saved Sessions</strong> enter a name to call your connection so you do not have to enter the above and the following details every time. Do not press the <strong>Save</strong> button till all the settings have been set.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Tunnels.png" rel="lightbox[2490]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Tunnels-150x150.png" alt="" title="Tunnels" width="150" height="150" class="aligncenter size-thumbnail wp-image-2530" /></a></div>
<h4>Connection > SSH > Tunnels</h4>
<p>Enter the port your web browser will be using in the <strong>Source port</strong> box.</p>
<p>Leave <strong>Destination</strong> blank and select <strong>Dynamic</strong> and <strong>Auto</strong> radio buttons. Click the <strong>Add</strong> button to add the connection tunnel to the list. Multiple tunnels can be entered as long as different ports are used.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Save-session.png" rel="lightbox[2490]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Save-session-150x150.png" alt="" title="Save session" width="150" height="150" class="aligncenter size-thumbnail wp-image-2534" /></a></div>
<blockquote><p>At this point you can go back to the <strong>Session</strong> page and save the session by clicking on the <strong>Save</strong> button. To load the connection next time, select it from the list and click on the <strong>Load</strong> button.</p></blockquote>
<p>Click on the <strong>Open</strong> button to initiate the connection.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Login.png" rel="lightbox[2490]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Login-150x150.png" alt="" title="Login" width="150" height="150" class="aligncenter size-thumbnail wp-image-2533" /></a></div>
<p>A warning my come up if it&#8217;s your first time connecting to your server via SSH. Accept it and it will prompt for a username then password. Enter your details pressing enter at each stage to move onto the next.</p>
<p>Once you get in it&#8217;s time to configure the web browser.</p>
<h3>FireFox</h3>
<p>Go to <strong>Tools > Options&#8230;</strong> Select the <strong>Advanced</strong> button and go to the <strong>Network</strong> tab. Click on the <strong>Settings</strong> button in the connection area. A new window should pop up.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Firefox.png" rel="lightbox[2490]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Firefox-150x150.png" alt="" title="Firefox" width="150" height="150" class="aligncenter size-thumbnail wp-image-2537" /></a></div>
<p>Select <strong>Manual proxy configuration</strong> and set the<strong> HTTP Proxy</strong> to localhost and the source port set in the Putty section. Ok to all the dialogues and your done.</p>
<h3>Internet Explorer</h3>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Internet-Options-Connections.png" rel="lightbox[2490]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Internet-Options-Connections-150x150.png" alt="" title="Internet Options Connections" width="150" height="150" class="aligncenter size-thumbnail wp-image-2541" /></a></div>
<p>Go to <strong>Tools > Internet Options</strong>. In Internet Options window go to the <strong>Connections</strong> tab.</p>
<p>Click on the LAN settings button to reveal another window.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Internet-Explorer-proxy.png" rel="lightbox[2490]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Internet-Explorer-proxy-150x150.png" alt="" title="Internet Explorer proxy" width="150" height="150" class="aligncenter size-thumbnail wp-image-2540" /></a></div>
<p>In the <strong>Proxy server</strong> settings tick the box for <strong>Use a proxy server for your LAN&#8230;</strong> and enter the address as localhost and the port as the source port in Putty. Save and close all dialogue boxes and windows.</p>
<h3>Summary</h3>
<p>A neat trick to stop people snooping at your browsing habits or just to avoid blocked sites. Sites may load slower because it has to go from your local machine, to the proxy server and out to the Internet and back again.</p>

<a href='http://www.dannytsang.co.uk/index.php/bypass-blocked-websites-using-ssh-proxy/putty/' title='Putty'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Putty-150x150.png" class="attachment-thumbnail" alt="Putty" title="Putty" /></a>
<a href='http://www.dannytsang.co.uk/index.php/bypass-blocked-websites-using-ssh-proxy/tunnels/' title='Tunnels'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Tunnels-150x150.png" class="attachment-thumbnail" alt="Tunnels" title="Tunnels" /></a>
<a href='http://www.dannytsang.co.uk/index.php/bypass-blocked-websites-using-ssh-proxy/login/' title='Login'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Login-150x150.png" class="attachment-thumbnail" alt="Login" title="Login" /></a>
<a href='http://www.dannytsang.co.uk/index.php/bypass-blocked-websites-using-ssh-proxy/save-session/' title='Save session'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Save-session-150x150.png" class="attachment-thumbnail" alt="Save session" title="Save session" /></a>
<a href='http://www.dannytsang.co.uk/index.php/bypass-blocked-websites-using-ssh-proxy/firefox/' title='Firefox'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Firefox-150x150.png" class="attachment-thumbnail" alt="Firefox" title="Firefox" /></a>
<a href='http://www.dannytsang.co.uk/index.php/bypass-blocked-websites-using-ssh-proxy/internet-explorer-proxy/' title='Internet Explorer proxy'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Internet-Explorer-proxy-150x150.png" class="attachment-thumbnail" alt="Internet Explorer proxy" title="Internet Explorer proxy" /></a>
<a href='http://www.dannytsang.co.uk/index.php/bypass-blocked-websites-using-ssh-proxy/internet-options-connections/' title='Internet Options Connections'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/Internet-Options-Connections-150x150.png" class="attachment-thumbnail" alt="Internet Options Connections" title="Internet Options Connections" /></a>



<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/ssh-on-multiple-ports/' rel='bookmark' title='Permanent Link: SSH On Multiple Ports'>SSH On Multiple Ports</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/installing-ipp-printer/' rel='bookmark' title='Permanent Link: Installing IPP Printer On Ubuntu'>Installing IPP Printer On Ubuntu</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/auto-login-lock/' rel='bookmark' title='Permanent Link: Auto Login &#038; Lock For Linux &#038; Windows'>Auto Login &#038; Lock For Linux &#038; Windows</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/bypass-blocked-websites-using-ssh-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>energy@home Twitter Integration</title>
		<link>http://www.dannytsang.co.uk/index.php/energyhome-twitter-integration/</link>
		<comments>http://www.dannytsang.co.uk/index.php/energyhome-twitter-integration/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 00:01:06 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[energy@home]]></category>
		<category><![CDATA[oauth]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[python-twitter]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[Twitterrific]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2498</guid>
		<description><![CDATA[A preview of my part time project energy@home with Twitter integration. As you can see the value for total energy used is currently way off but it&#8217;s a preview of what&#8217;s to come. There are two options: tweet hourly summary and daily summary. These can be turned on and off. I am using python-twitter library [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/energyhome-0-4/' rel='bookmark' title='Permanent Link: energy@home 0.4'>energy@home 0.4</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/recording-currentcost-data-viewing-it-on-the-web/' rel='bookmark' title='Permanent Link: Recording CurrentCost Data &#038; Viewing It On The Web'>Recording CurrentCost Data &#038; Viewing It On The Web</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/energyhome-project-update/' rel='bookmark' title='Permanent Link: energy@home Project Update v0.4a'>energy@home Project Update v0.4a</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A preview of my part time project <a href="http://code.google.com/p/energyathome/" target="_blank">energy@home</a> with Twitter integration.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/energyathome-twitter.png" rel="lightbox[2498]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2010/01/energyathome-twitter.png" alt="" title="energy@home Twitter Integration" width="320" height="480" class="aligncenter size-full wp-image-2499" /></a></div>
<p>As you can see the value for total energy used is currently way off but it&#8217;s a preview of what&#8217;s to come.</p>
<p>There are two options: tweet hourly summary and daily summary. These can be turned on and off. I am using <a href="http://code.google.com/p/python-twitter/" target="_blank">python-twitter</a> library which does not use oauth authentication so the client description comes up as API which is not nice.</p>


<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/energyhome-0-4/' rel='bookmark' title='Permanent Link: energy@home 0.4'>energy@home 0.4</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/recording-currentcost-data-viewing-it-on-the-web/' rel='bookmark' title='Permanent Link: Recording CurrentCost Data &#038; Viewing It On The Web'>Recording CurrentCost Data &#038; Viewing It On The Web</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/energyhome-project-update/' rel='bookmark' title='Permanent Link: energy@home Project Update v0.4a'>energy@home Project Update v0.4a</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/energyhome-twitter-integration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unable to access MythTV Perl API.  Try with &#8211;verbose to find out why.</title>
		<link>http://www.dannytsang.co.uk/index.php/unable-to-access-mythtv-perl-api-try-with-verbose-to-find-out-why/</link>
		<comments>http://www.dannytsang.co.uk/index.php/unable-to-access-mythtv-perl-api-try-with-verbose-to-find-out-why/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 09:28:00 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MythTV]]></category>
		<category><![CDATA[mythtv-status]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[T.V]]></category>
		<category><![CDATA[tv guide]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu 8.04]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2491</guid>
		<description><![CDATA[I have been getting the error message Unable to access MythTV Perl API. Try with &#8211;verbose to find out why. on MythTv running on Ubuntu 8.04. It wasn&#8217;t bothering me too much because the TV guide was still being updated. Also I believe this is something to do with MythTV-Status only which prints out in [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/mythweb-preview/' rel='bookmark' title='Permanent Link: MythWeb Preview'>MythWeb Preview</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/enabling-remote-access-to-mysql/' rel='bookmark' title='Permanent Link: Enabling Remote Access To MySQL'>Enabling Remote Access To MySQL</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/xmltv-error-6400-and-xmltv-error-2304/' rel='bookmark' title='Permanent Link: XMLTV Error 6400 And XMLTV Error 2304'>XMLTV Error 6400 And XMLTV Error 2304</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have been getting the error message </p>
<blockquote><p>Unable to access MythTV Perl API.  Try with &#8211;verbose to find out why.</p></blockquote>
<p>on <a href="http://www.mythtv.org/" target='_blank'>MythTv</a> running on <a href="http://www.ubuntu.com/" target='_blank'>Ubuntu</a> 8.04. It wasn&#8217;t bothering me too much because the TV guide was still being updated. Also I believe this is something to do with <a href="http://www.mythtv.org/" target='_blank'>MythTV</a>-Status only which prints out in the console what is being recorded (if any), next up coming recording and the amount of available space.</p>
<p>The problem is the <a href="http://www.mythtv.org/" target='_blank'>MythTv</a>-Status program is ran on a schedule and is requires the <strong>config.xml</strong> in the <strong>~/.mythtv</strong> directory to be copied or a symbolic link in <strong>/root/.mythtv</strong> Run the following commands to solve the problem:<br />
<code>$ sudo mkdir /root/.<a href="http://www.mythtv.org/" target='_blank'>mythtv</a><br />
$ sudo ln -s ~/.<a href="http://www.mythtv.org/" target='_blank'>mythtv</a>/config.xml<br />
$ sudo /etc/init.d/<a href="http://www.mythtv.org/" target='_blank'>mythtv</a>-status reload</code></p>
<p>The last command will run <a href="http://www.mythtv.org/" target='_blank'>MythTv</a>-Status to read the new configuration XML file and run without any errors.</p>
<p>The only problem it has caused is that it does not say how many days worth or TV guide it has where as before this fix it specified it with errors.</p>
<p><a href="http://ubuntuforums.org/showthread.php?t=770188" target="_blank">Unable to access MythTV Perl API. Try with &#8211;verbose to find out why. Ubuntu Forum</a></p>


<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/mythweb-preview/' rel='bookmark' title='Permanent Link: MythWeb Preview'>MythWeb Preview</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/enabling-remote-access-to-mysql/' rel='bookmark' title='Permanent Link: Enabling Remote Access To MySQL'>Enabling Remote Access To MySQL</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/xmltv-error-6400-and-xmltv-error-2304/' rel='bookmark' title='Permanent Link: XMLTV Error 6400 And XMLTV Error 2304'>XMLTV Error 6400 And XMLTV Error 2304</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/unable-to-access-mythtv-perl-api-try-with-verbose-to-find-out-why/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SSH On Multiple Ports</title>
		<link>http://www.dannytsang.co.uk/index.php/ssh-on-multiple-ports/</link>
		<comments>http://www.dannytsang.co.uk/index.php/ssh-on-multiple-ports/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 00:07:27 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[port 22]]></category>
		<category><![CDATA[port 3389]]></category>
		<category><![CDATA[remote desktop port]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh server]]></category>
		<category><![CDATA[SSHD]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2467</guid>
		<description><![CDATA[It is possible to have SSHD (SSH server) to listen on multiple ports. some places block port 22 the default port for SSH. To over come this you can use another port such as 3389 (which happens to be the Windows remote desktop port number) which may not be blocked. In Ubuntu edit the /etc/ssh/sshd_config [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/enable-sftp-on-vsftpd-in-ubuntu/' rel='bookmark' title='Permanent Link: Enable SFTP On VSFTPD In Ubuntu'>Enable SFTP On VSFTPD In Ubuntu</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/change-default-crontab-editor/' rel='bookmark' title='Permanent Link: Change Default Crontab Editor'>Change Default Crontab Editor</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/bypass-blocked-websites-using-ssh-proxy/' rel='bookmark' title='Permanent Link: Bypass Blocked Websites Using SSH Proxy'>Bypass Blocked Websites Using SSH Proxy</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>It is possible to have SSHD (SSH server) to listen on multiple ports. some places block port 22 the default port for SSH. To over come this you can use another port such as 3389 (which happens to be the Windows remote desktop port number) which may not be blocked.</p>
<p>In <a href="http://www.ubuntu.com/" target='_blank'>Ubuntu</a> edit the <strong>/etc/ssh/sshd_config</strong> and add another entry <code>Port 3389</code> or what ever port number. For convention I&#8217;d recommend adding it above or below the default <strong>Port 22</strong>. Save and exit the text editor and restart the SSH server for the new settings to take effect <code>sudo /etc/init.d/ssh restart</code>.</p>
<p>Remember to configure the router with the new port.</p>
<p><a href="http://ubuntuforums.org/archive/index.php/t-56441.html" target="_blank">running sshd on 2 ports? Ubuntu forum post</a></p>


<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/enable-sftp-on-vsftpd-in-ubuntu/' rel='bookmark' title='Permanent Link: Enable SFTP On VSFTPD In Ubuntu'>Enable SFTP On VSFTPD In Ubuntu</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/change-default-crontab-editor/' rel='bookmark' title='Permanent Link: Change Default Crontab Editor'>Change Default Crontab Editor</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/bypass-blocked-websites-using-ssh-proxy/' rel='bookmark' title='Permanent Link: Bypass Blocked Websites Using SSH Proxy'>Bypass Blocked Websites Using SSH Proxy</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/ssh-on-multiple-ports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sync Mozilla Thunderbird Using Dropbox</title>
		<link>http://www.dannytsang.co.uk/index.php/sync-mozilla-thunderbird-using-dropbox/</link>
		<comments>http://www.dannytsang.co.uk/index.php/sync-mozilla-thunderbird-using-dropbox/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 20:28:30 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[mail folder]]></category>
		<category><![CDATA[mozilla thunderbird]]></category>
		<category><![CDATA[ubuntu linux]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2376</guid>
		<description><![CDATA[Overview I have had a Dropbox account for a while now but never really used it till now. There have been really good tricks and uses to Dropbox posted on the Internet and I finally decided to try my hands at synchronising my emails. Dropbox Setup Install Dropbox and create an account. I am using [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/dropbox-causes-duplicate-folders-in-mozilla-thunderbird/' rel='bookmark' title='Permanent Link: Dropbox Causes Duplicate Folders In Mozilla Thunderbird'>Dropbox Causes Duplicate Folders In Mozilla Thunderbird</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/thunderbird-html-signatures/' rel='bookmark' title='Permanent Link: Thunderbird HTML Signatures'>Thunderbird HTML Signatures</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/microsoft-foldershare/' rel='bookmark' title='Permanent Link: Microsoft FolderShare'>Microsoft FolderShare</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h3>Overview</h3>
<p>I have had a Dropbox account for a while now but never really used it till now. There have been really good tricks and uses to Dropbox posted on the Internet and I finally decided to try my hands at synchronising my emails.</p>
<h3>Dropbox Setup</h3>
<p>Install Dropbox and create an account. I am using the free 2GB as my total mail folder size is less than 2GB. Head over to <a href="https://www.getdropbox.com" target="_blank">https://www.getdropbox.com</a> and follow the instructions for installing Dropbox. I will assume the Dropbox folder is set to default which is ~\<em>username</em>\My Dropbox in Windows or ~/<em>username</em>/Dropbox in <a href="http://www.ubuntu.com/" target='_blank'>Ubuntu</a> <a href="http://www.linux.org" target='_blank'>Linux</a>.</p>
<h3>Mozilla Thunderbird Setup</h3>
<p>I am assuming this already exists. If not go to <a href="http://www.mozillamessaging.com/en-US/thunderbird/" target="_blank">http://www.mozillamessaging.com/en-US/thunderbird/</a> and install it.</p>
<h3>Sync Setup On Windows</h3>
<p>Close down Mozilla <a href="http://www.mozilla.com/en-US/thunderbird/" target='_blank'>Thunderbird</a> program. I would recommend creating a directory for your emails within the Dropbox directory. I named mine <a href="http://www.mozilla.com/en-US/thunderbird/" target='_blank'>Thunderbird</a> e.g <code>C:\Users\<em>username</em>\My Dropbox\Thunderbird</code></p>
<p>At a minimum the default profile needs to be copied to the Dropbox directory. Copy: <code>C:\Users\<em>username</em>\AppData\Roaming\Thunderbird\Profiles</code> to <code>C:\Users\<em>username</em>\My Dropbox\Thunderbird\Profiles\xxxxxxxx.default</code></p>
<p>xxxxxxxx.default = a random filename with .default at the end of the folder name.</p>
<p>Other files may be copied under the <code>My Dropbox\Thunderbird</code> directory such as email notification sounds so it is always backed up and sync&#8217;d across.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2009/10/Shortcut-Profile-Manager.png" rel="lightbox[2376]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2009/10/Shortcut-Profile-Manager-150x150.png" alt="Shortcut Profile Manager" title="Shortcut Profile Manager" width="150" height="150" class="aligncenter size-thumbnail wp-image-2379" /></a></div>
<p>Point <a href="http://www.mozilla.com/en-US/thunderbird/" target='_blank'>Thunderbird</a> to the new location of your profile by starting <a href="http://www.mozilla.com/en-US/thunderbird/" target='_blank'>Thunderbird</a> with the following arguments <code><a href="http://www.mozilla.com/en-US/thunderbird/" target='_blank'>thunderbird</a>.exe -ProfileManager</code> This can be done by creating / editing a <a href="http://www.mozilla.com/en-US/thunderbird/" target='_blank'>Thunderbird</a> shortcut or <code>Start Menu > Run</code> dialog</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2009/10/Run-Dialogue-Profile-Manager.png" rel="lightbox[2376]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2009/10/Run-Dialogue-Profile-Manager-150x150.png" alt="Run Dialogue Profile Manager" title="Run Dialogue Profile Manager" width="150" height="150" class="aligncenter size-thumbnail wp-image-2378" /></a></div>
<p>Create a new profile and click <strong>Next ></strong> button on the wizard pop up window. Select <strong>Choose Folder&#8230;</strong> and locate the xxxxxxxx.default directory in My Dropbox directory and press finish.</p>
<p>You may delete the old user or select the new user and click on <strong>Start Thunderbird</strong> button.</p>
<h3>Sync Setup On Ubuntu / Linux</h3>
<p>All the steps are the same as Windows setup except for the different file paths and to start the profile manger user <code>mozilla-<a href="http://www.mozilla.com/en-US/thunderbird/" target='_blank'>thunderbird</a> -ProfileManager</code> in the command line.</p>
<p>The default profile directory in <a href="http://www.ubuntu.com/" target='_blank'>Ubuntu</a> is located in <code>/home/<em>username</em>/.<a href="http://www.mozilla.com/en-US/thunderbird/" target='_blank'>thunderbird</a>/xxxxxxxx.default</p>
<h3>Summary</h3>
<p>It's really easy and now it allows me to user <a href="http://www.mozilla.com/en-US/thunderbird/" target='_blank'>Thunderbird</a> from anywhere so long as the files have been sync'd to Dropbox. I generally take periodic copies of the profile directory in case something terribly goes wrong with the sync.</p>
<p>I have ran into problems using this setup including my Trash file size became larger than the 2GB allowed on my free account. I tried emptying it from within <a href="http://www.mozilla.com/en-US/thunderbird/" target='_blank'>Thunderbird</a> but it failed so I deleted the Trash.msf file and it solved my problems.</p>

<a href='http://www.dannytsang.co.uk/index.php/sync-mozilla-thunderbird-using-dropbox/run-dialogue-profile-manager/' title='Run Dialogue Profile Manager'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2009/10/Run-Dialogue-Profile-Manager-150x150.png" class="attachment-thumbnail" alt="Run Dialogue Profile Manager" title="Run Dialogue Profile Manager" /></a>
<a href='http://www.dannytsang.co.uk/index.php/sync-mozilla-thunderbird-using-dropbox/shortcut-profile-manager/' title='Shortcut Profile Manager'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2009/10/Shortcut-Profile-Manager-150x150.png" class="attachment-thumbnail" alt="Shortcut Profile Manager" title="Shortcut Profile Manager" /></a>

<p><a href="https://www.getdropbox.com" target="_blank">Dropbox</a></p>
<p><a href="http://www.mozillamessaging.com/en-US/thunderbird/" target="_blank">Mozilla Thunderbird</a></p>


<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/dropbox-causes-duplicate-folders-in-mozilla-thunderbird/' rel='bookmark' title='Permanent Link: Dropbox Causes Duplicate Folders In Mozilla Thunderbird'>Dropbox Causes Duplicate Folders In Mozilla Thunderbird</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/thunderbird-html-signatures/' rel='bookmark' title='Permanent Link: Thunderbird HTML Signatures'>Thunderbird HTML Signatures</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/microsoft-foldershare/' rel='bookmark' title='Permanent Link: Microsoft FolderShare'>Microsoft FolderShare</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/sync-mozilla-thunderbird-using-dropbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.10 Grub2 No Timeout</title>
		<link>http://www.dannytsang.co.uk/index.php/ubuntu-9-10-grub2-no-timeout/</link>
		<comments>http://www.dannytsang.co.uk/index.php/ubuntu-9-10-grub2-no-timeout/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 12:11:00 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[startupmanager]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[Timeout]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2385</guid>
		<description><![CDATA[I have recently upgraded to Ubuntu 9.10 and found that the timeout doesn&#8217;t seem to be working. Grub&#8217;s timeout feature allows for automatically boot up into a selected OS after a specified amount of time. By default it&#8217;s 10 seconds. For some reason this was not happening for me. To fix it I install Start [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/installing-ubuntu-810-from-usb-stick/' rel='bookmark' title='Permanent Link: Installing Ubuntu 8.10 From USB Stick'>Installing Ubuntu 8.10 From USB Stick</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/virtualbox-with-ubuntu-review/' rel='bookmark' title='Permanent Link: VirtualBox With Ubuntu Quick Review'>VirtualBox With Ubuntu Quick Review</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/ubuntu-710/' rel='bookmark' title='Permanent Link: Ubuntu 7.10'>Ubuntu 7.10</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have recently upgraded to <a href="http://www.ubuntu.com/" target='_blank'>Ubuntu</a> 9.10 and found that the timeout doesn&#8217;t seem to be working.</p>
<p>Grub&#8217;s timeout feature allows for automatically boot up into a selected OS after a specified amount of time. By default it&#8217;s 10 seconds. For some reason this was not happening for me.</p>
<p>To fix it I install Start Up Manager. To do this run <code>$ sudo apt-get install startupmanager</code> and go to <strong>System > Administration > StartUp Manager</strong> to get a graphical tool. It lacks a lot of options compared to writing it manually but it&#8217;s good enough. Set the timeout time and close the window. It should re-build the Grub settings before completely exiting. Restart and it should work.</p>
<p><strong>Update:</strong> There was a Grub2 update between writing this post and publishing it which did change the config of Grub.</p>


<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/installing-ubuntu-810-from-usb-stick/' rel='bookmark' title='Permanent Link: Installing Ubuntu 8.10 From USB Stick'>Installing Ubuntu 8.10 From USB Stick</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/virtualbox-with-ubuntu-review/' rel='bookmark' title='Permanent Link: VirtualBox With Ubuntu Quick Review'>VirtualBox With Ubuntu Quick Review</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/ubuntu-710/' rel='bookmark' title='Permanent Link: Ubuntu 7.10'>Ubuntu 7.10</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/ubuntu-9-10-grub2-no-timeout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check GUI Program Is Running In Linux</title>
		<link>http://www.dannytsang.co.uk/index.php/check-gui-program-is-running-in-linux/</link>
		<comments>http://www.dannytsang.co.uk/index.php/check-gui-program-is-running-in-linux/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 00:01:08 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[azureus]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bash program]]></category>
		<category><![CDATA[bash script]]></category>
		<category><![CDATA[bash shell]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[crontab bash shell script]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.dannytsang.co.uk/?p=2346</guid>
		<description><![CDATA[Overview I have create a bash script to: Check if the program&#8217;s process is running If so just quit the script If not start up the program Using this script and crontab it allows the script to be ran every x time checking to make sure the program is running. Setup Log into the user [...]


Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/linux-command-line-tips/' rel='bookmark' title='Permanent Link: Linux Command Line Tips'>Linux Command Line Tips</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/setting-default-linux-shell/' rel='bookmark' title='Permanent Link: Setting Default Linux Shell'>Setting Default Linux Shell</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/linux-terminal-not-auto-completing/' rel='bookmark' title='Permanent Link: Linux Terminal Not Auto-completing'>Linux Terminal Not Auto-completing</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h3>Overview</h3>
<p>I have create a bash script to:</p>
<ol>
<li>Check if the program&#8217;s process is running</li>
<li>If so just quit the script</li>
<li>If not start up the program</li>
</ol>
<p>Using this script and crontab it allows the script to be ran every x time checking to make sure the program is running.</p>
<h3>Setup</h3>
<p>Log into the user who will / has permission to run the script as well as the program. I shall use Azureus / Vuze as my example since this was the program I wrote it for. I also assume that you are using the downloaded version and not the one from the repository.</p>
<h3>Script</h3>
<p>Create an empty file. I shall use $home as in your user directory e.g <code>/home/danny</code> Paste the following script into the file:</p>
<blockquote><p>#!/bin/bash<br />
PROGRAM=&#8217;azureus&#8217;</p>
<p>if ps ax | grep -v grep | grep $PROGRAM > /dev/null<br />
then<br />
    echo &#8220;$PROGRAM PROGRAM running, everything is fine&#8221;<br />
    exit<br />
else<br />
    echo &#8220;$PROGRAM is not running&#8221;<br />
    echo &#8220;Starting $PROGRAM&#8221;<br />
    DISPLAY=:0.0 /home/danny/vuze/azureus &#038;>/tmp/azureus.out</p>
<p>    if ps ax | grep -v grep | grep $PROGRAM > /dev/null<br />
    then<br />
        echo &#8220;$PROGRAM PROGRAM running, everything is fine&#8221;<br />
    else<br />
        echo &#8220;Unable to start $PROGRAM&#8221;<br />
    fi<br />
fi</p></blockquote>
<p><a href='http://www.dannytsang.co.uk/wp-content/uploads/2009/10/myScript.sh'>myScript</a></p>
<p>Just to explain the script from top to bottom. If you are not interested skip this paragraph. The first line declares it&#8217;s a bash shell script and where bash can be found. PROGRAM is a variable holding the program name this can be changed to any other program. The if statement does a &#8220;ps&#8221; command which lists all the process running and doing other various pipes and filters down the list. If the program is found then it prints the message and exits. If it does not exist then it will print a message to say it&#8217;s not running and starting the program, The third line after the &#8220;else&#8221; statement is the command to start azureus. This can be changed to your relevant program. <code>DISPLAY=:0.0</code> is only necessary if the program has a GUI. It runs the program what is usually the display on port 0, the one users usually see on the monitor. The remaining parts check if the program has started and prints the relevant message.</p>
<p>Save and close the file.</p>
<p>The script needs execute permissions. Run the following command to do this <code>$ chmod +x /home/danny/myScript.sh</code></p>
<h3>Crontab</h3>
<p>crontab is the <a href="http://www.linux.org" target='_blank'>Linux</a> scheduler. It does things based on time. There are two was to set this up.</p>
<h4>GUI / Easy Way</h4>
<p>Install <a href="http://www.gnome.org" target='_blank'>gnome</a>-schedule:<br />
<code>$ sudo apt-get install <a href="http://www.gnome.org" target='_blank'>gnome</a>-schedule</code></p>
<p>Once installed, go to <code>System > Preferences > Scheduled tasks</code></p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2009/10/Gnome-Task-Schedule.png" rel="lightbox[2346]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2009/10/Gnome-Task-Schedule-150x150.png" alt="Gnome Task Schedule" title="Gnome Task Schedule" width="150" height="150" class="aligncenter size-thumbnail wp-image-2352" /></a></div>
<p>Click &#8220;New&#8221; from the toolbar and select &#8220;A task that launches recurrently&#8221;.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2009/10/New-Task.png" rel="lightbox[2346]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2009/10/New-Task-150x150.png" alt="New Task" title="New Task" width="150" height="150" class="aligncenter size-thumbnail wp-image-2354" /></a></div>
<p>Give it a description and in the command field enter the path to the script. I untick the &#8220;No output&#8221; option so I can see any errors when we test the script later. Choose the appropriate &#8220;Time &#038; Date&#8221; for often the script should be ran.</p>
<div align="center"><a href="http://www.dannytsang.co.uk/wp-content/uploads/2009/10/New-Task-Advanced.png" rel="lightbox[2346]"><img src="http://www.dannytsang.co.uk/wp-content/uploads/2009/10/New-Task-Advanced-150x150.png" alt="New Task Advanced" title="New Task Advanced" width="150" height="150" class="aligncenter size-thumbnail wp-image-2353" /></a></div>
<p>The problem with this method is the customizability of the schedule with every minute the smallest value. To enter a more suitable value click on the &#8220;Advanced&#8221; radio button and for every 10 minutes enter the <code>*/10</code> and leave all other boxes &#8220;*&#8221;(asterisk). Click the &#8220;Add&#8221; button to save the entry.</p>
<p>Highlight and click &#8220;Run Task&#8221; to test the script.</p>
<h4>Command Line / Harder Way</h4>
<p>Whilst logged into the user who will run the schedule edit the crontab: <code>$ crontab -e</code></p>
<p>By default on <a href="http://www.ubuntu.com/" target='_blank'>Ubuntu</a> Nano is the default editor. I use this template in crontab:<br />
<code># +---------------- minute (0 - 59)<br />
# |  +------------- hour (0 - 23)<br />
# |  |  +---------- day of month (1 - 31)<br />
# |  |  |  +------- month (1 - 12)<br />
# |  |  |  |  +---- day of week (0 - 6) (Sunday=0 or 7)<br />
# |  |  |  |  |<br />
</code></p>
<p>This should help you with entering values but to run the script every 10 minutes the line should be <code>*/10 * * * * /home/danny/myScript.sh</code></p>
<p>Save and exit crontab.</p>
<h3>Summary</h3>
<p>The script can be customized to check and run any program. Now hopefully any program crashes or if someone closes the program you want running it will automatically start it up and keep it up.</p>

<a href='http://www.dannytsang.co.uk/index.php/check-gui-program-is-running-in-linux/gnome-task-schedule/' title='Gnome Task Schedule'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2009/10/Gnome-Task-Schedule-150x150.png" class="attachment-thumbnail" alt="Gnome Task Schedule" title="Gnome Task Schedule" /></a>
<a href='http://www.dannytsang.co.uk/index.php/check-gui-program-is-running-in-linux/new-task-advanced/' title='New Task Advanced'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2009/10/New-Task-Advanced-150x150.png" class="attachment-thumbnail" alt="New Task Advanced" title="New Task Advanced" /></a>
<a href='http://www.dannytsang.co.uk/index.php/check-gui-program-is-running-in-linux/new-task/' title='New Task'><img width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2009/10/New-Task-150x150.png" class="attachment-thumbnail" alt="New Task" title="New Task" /></a>

<p><a href="http://bbs.archlinux.org/viewtopic.php?id=37287" target="_blank">Cron job to start / stop Azureus &#8211; can not start azureus</a></p>
<p><a href="https://help.ubuntu.com/community/CronHowto" target="_blank">CronHowTo &#8211; Ubuntu</a></p>
<p><a href="http://www.cyberciti.biz/faq/crontab-every-10-min/" target="_blank">Run crontab Every 10 Minutes</a></p>


<p>Related posts:<ol><li><a href='http://www.dannytsang.co.uk/index.php/linux-command-line-tips/' rel='bookmark' title='Permanent Link: Linux Command Line Tips'>Linux Command Line Tips</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/setting-default-linux-shell/' rel='bookmark' title='Permanent Link: Setting Default Linux Shell'>Setting Default Linux Shell</a></li>
<li><a href='http://www.dannytsang.co.uk/index.php/linux-terminal-not-auto-completing/' rel='bookmark' title='Permanent Link: Linux Terminal Not Auto-completing'>Linux Terminal Not Auto-completing</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dannytsang.co.uk/index.php/check-gui-program-is-running-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
