<?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; Ubuntu</title> <atom:link href="http://www.dannytsang.co.uk/index.php/tag/ubuntu/feed/" rel="self" type="application/rss+xml" /><link>http://www.dannytsang.co.uk</link> <description>Eats and spits code by day</description> <lastBuildDate>Mon, 06 Feb 2012 00:01:00 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Migration Plan From Ubuntu 10.04 LTS To 12.04 LTS</title><link>http://www.dannytsang.co.uk/index.php/migration-plan-from-ubuntu-10-04-lts-to-12-04-lts/</link> <comments>http://www.dannytsang.co.uk/index.php/migration-plan-from-ubuntu-10-04-lts-to-12-04-lts/#comments</comments> <pubDate>Wed, 28 Dec 2011 00:01:30 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[AMD]]></category> <category><![CDATA[CPU]]></category> <category><![CDATA[DVR]]></category> <category><![CDATA[FreePBX]]></category> <category><![CDATA[GHz]]></category> <category><![CDATA[LTS]]></category> <category><![CDATA[MythTV]]></category> <category><![CDATA[pbx]]></category> <category><![CDATA[playstation 3]]></category> <category><![CDATA[RAM]]></category> <category><![CDATA[SATA]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[UPNP]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=4207</guid> <description><![CDATA[Overview I&#8217;m preparing myself to move from 10.04 to 12.04. With 12.04 as the next Long Term Release (LTS) coming in the next release I thought it was time to prepare for the inevitable move from old to new. Setup &#8230; <a
href="http://www.dannytsang.co.uk/index.php/migration-plan-from-ubuntu-10-04-lts-to-12-04-lts/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/downtime/' rel='bookmark' title='Downtime'>Downtime</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/replace-devsda-with-uuid/' rel='bookmark' title='Replace /dev/xxx With UUID'>Replace /dev/xxx With UUID</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/freepbx-symlink-from-modules-failed/' rel='bookmark' title='FreePBX Symlink From Modules Failed'>FreePBX Symlink From Modules Failed</a></li></ol>]]></description> <content:encoded><![CDATA[<h3>Overview</h3><p>I&#8217;m preparing myself to move from 10.04 to 12.04. With 12.04 as the next Long Term Release (<a
href="http://www.dannytsang.co.uk/index.php/tag/lts/" class="st_tag internal_tag" rel="tag" title="Posts tagged with LTS">LTS</a>) coming in the next release I thought it was time to prepare for the inevitable move from old to new.</p><h3>Setup</h3><p>LTS from Canonical has support for 3 years for the desktop but it has been increased to 5 years for 12.04 code named Precise Pangolin. My Linux headed server currently does a lot and I like to treat it as a production system which cannot go down for long periods of time. The following services are being used:</p><ul><li>FreePBX &#8211; <a
href="http://www.dannytsang.co.uk/index.php/tag/pbx/" class="st_tag internal_tag" rel="tag" title="Posts tagged with pbx">PBX</a> system which manages the phones in the house</li><li>Energy@Home &#8211; Logs power usage at home</li><li><a
href="http://www.dannytsang.co.uk/index.php/tag/upnp/" class="st_tag internal_tag" rel="tag" title="Posts tagged with UPNP">uPNP</a> &#8211; Allows streaming of media to the T.v / Playstation 3</li><li>Ampache &#8211; Music streaming service</li><li><a
href="http://www.dannytsang.co.uk/index.php/tag/mythtv/" class="st_tag internal_tag" rel="tag" title="Posts tagged with MythTV">MythTv</a> &#8211; <a
href="http://www.dannytsang.co.uk/index.php/tag/dvr/" class="st_tag internal_tag" rel="tag" title="Posts tagged with DVR">DVR</a> for digital and <a
href="http://www.dannytsang.co.uk/index.php/tag/analogue/" class="st_tag internal_tag" rel="tag" title="Posts tagged with analogue">analogue</a> T.V</li></ul><p>Most noticeably the most important one is FreePBX. The rest are good to have but will only cause inconvenience if it was not running. To complicate things slightly the system is currently using LVM. I have never migrated an LVM before.</p><h3>Hardware</h3><p>The computer was originally built in 2004 with some minor upgrades including <a
href="http://www.dannytsang.co.uk/index.php/tag/cpu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with CPU">CPU</a>, RAM and HDD but it&#8217;s starting to show it&#8217;s age. The hardware was bought as a budget secondary desktop computer but has since resided to a headless 24&#215;7 server. Now it has so many services and software running that the load average is constantly above 5 on a AMD Athlon 64 4000+ (1&#215;2.4GHz stock) with 2GB RAM. The system has a 500 watt PSU but consumes around 130 W.</p><p>I think it&#8217;s time it received some TLC and a well deserved upgrade and it would be perfect if I could time it with the next LTS. Some of the features I&#8217;ll be looking for are:</p><ul><li>Gigabit Ethernet (hopefully 2 if possible)</li><li>More than 4 SATA ports</li><li>At least dual core CPU</li><li>Water cooled CPU</li></ul><h3>Check List</h3><p>List of things to do before upgrading:</p><ol><li><a
href="http://www.dannytsang.co.uk/index.php/tag/backup/" class="st_tag internal_tag" rel="tag" title="Posts tagged with backup">Backup</a> user files &#8211; Music, pictures, etc</li><li>Backup settings &#8211; FreePBX, <a
href="http://www.dannytsang.co.uk/index.php/tag/gnome/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Gnome">Gnome</a>(possibly), <a
href="http://www.dannytsang.co.uk/index.php/tag/fstab/" class="st_tag internal_tag" rel="tag" title="Posts tagged with fstab">fstab</a>, <a
href="http://www.dannytsang.co.uk/index.php/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with apache">apache</a> conf, &#8230;</li><li>Backup website files</li><li>Backup Database</li></ol><h3>Test Backup</h3><p>It&#8217;s always important to test the backup to ensure they actually work! Files and databases are easy. They can be restored into a different database and files can be copied to a different computer or different location as long there is enough space.</p><h3>Summary</h3><p>I probably won&#8217;t migrate on the day of release but I may test the backup plan around that time to make sure everything works. Once that&#8217;s done, Setup a VM and try installing and restore some of the backed up data and see if it works.</p><p><a
href="http://arstechnica.com/open-source/news/2011/10/ubuntu-1204-lts-to-get-extra-long-desktop-support-cycle.ars" target="_blank">Ubuntu 12.04 LTS to get extra-long desktop support cycle</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/downtime/' rel='bookmark' title='Downtime'>Downtime</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/replace-devsda-with-uuid/' rel='bookmark' title='Replace /dev/xxx With UUID'>Replace /dev/xxx With UUID</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/freepbx-symlink-from-modules-failed/' rel='bookmark' title='FreePBX Symlink From Modules Failed'>FreePBX Symlink From Modules Failed</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/migration-plan-from-ubuntu-10-04-lts-to-12-04-lts/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Things To Install After Installing Ubuntu 11.10</title><link>http://www.dannytsang.co.uk/index.php/things-to-install-after-installing-ubuntu-11-10/</link> <comments>http://www.dannytsang.co.uk/index.php/things-to-install-after-installing-ubuntu-11-10/#comments</comments> <pubDate>Sun, 06 Nov 2011 17:44:50 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Ubuntu 11.10]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=4246</guid> <description><![CDATA[A great article on what to install after Ubuntu 11.10 is installed. 10 things to do after installing Ubuntu 11.10 Related posts: Installing Ubuntu 8.10 From USB Stick VirtualBox With Ubuntu Quick Review Ubuntu 8.04 Upgrade To Ubuntu 8.10 No &#8230; <a
href="http://www.dannytsang.co.uk/index.php/things-to-install-after-installing-ubuntu-11-10/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/installing-ubuntu-810-from-usb-stick/' rel='bookmark' title='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='VirtualBox With Ubuntu Quick Review'>VirtualBox With Ubuntu Quick Review</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/ubuntu-804-upgrade-to-ubuntu-810-no-sound/' rel='bookmark' title='Ubuntu 8.04 Upgrade To Ubuntu 8.10 No Sound'>Ubuntu 8.04 Upgrade To Ubuntu 8.10 No Sound</a></li></ol>]]></description> <content:encoded><![CDATA[<p>A great article on what to install after <a
href="http://www.dannytsang.co.uk/index.php/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a> 11.10 is installed.</p><p><a
href="http://blog.sudobits.com/2011/09/08/10-things-to-do-after-installing-ubuntu-11-10/" target="_blank">10 things to do after installing Ubuntu 11.10</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/installing-ubuntu-810-from-usb-stick/' rel='bookmark' title='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='VirtualBox With Ubuntu Quick Review'>VirtualBox With Ubuntu Quick Review</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/ubuntu-804-upgrade-to-ubuntu-810-no-sound/' rel='bookmark' title='Ubuntu 8.04 Upgrade To Ubuntu 8.10 No Sound'>Ubuntu 8.04 Upgrade To Ubuntu 8.10 No Sound</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/things-to-install-after-installing-ubuntu-11-10/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>SpiderOak Mini Review</title><link>http://www.dannytsang.co.uk/index.php/spideroak-mini-review/</link> <comments>http://www.dannytsang.co.uk/index.php/spideroak-mini-review/#comments</comments> <pubDate>Tue, 27 Sep 2011 23:01:03 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[backup]]></category> <category><![CDATA[cloud]]></category> <category><![CDATA[Dropbox]]></category> <category><![CDATA[encryption]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[spideroak]]></category> <category><![CDATA[sync]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Windows]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3766</guid> <description><![CDATA[Overview I was looking for a replacement to Dropbox after the EULA / T&#038;C changes and found SpiderOak to be a very attractive alternative. It&#8217;s a backup and folder sharing / sync software which runs on all 3 major platforms &#8230; <a
href="http://www.dannytsang.co.uk/index.php/spideroak-mini-review/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/sync-mozilla-thunderbird-using-dropbox/' rel='bookmark' title='Sync Mozilla Thunderbird Using Dropbox'>Sync Mozilla Thunderbird Using Dropbox</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/microsoft-foldershare-itunes-doesnt-work/' rel='bookmark' title='Microsoft FolderShare &amp; iTunes Doesn&#8217;t Work'>Microsoft FolderShare &#038; iTunes Doesn&#8217;t Work</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/dropbox-causes-duplicate-folders-in-mozilla-thunderbird/' rel='bookmark' title='Dropbox Causes Duplicate Folders In Mozilla Thunderbird'>Dropbox Causes Duplicate Folders In Mozilla Thunderbird</a></li></ol>]]></description> <content:encoded><![CDATA[<h3>Overview</h3><p>I was looking for a replacement to <a
href="http://www.dannytsang.co.uk/index.php/tag/dropbox/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Dropbox">Dropbox</a> after the EULA / T&#038;C changes and found <a
href="http://www.dannytsang.co.uk/index.php/tag/spideroak/" class="st_tag internal_tag" rel="tag" title="Posts tagged with spideroak">SpiderOak</a> to be a very attractive alternative. It&#8217;s a <a
href="http://www.dannytsang.co.uk/index.php/tag/backup/" class="st_tag internal_tag" rel="tag" title="Posts tagged with backup">backup</a> and folder sharing / <a
href="http://www.dannytsang.co.uk/index.php/tag/sync/" class="st_tag internal_tag" rel="tag" title="Posts tagged with sync">sync</a> software which runs on all 3 major platforms (Windows, Mac and Linux). In this article I will compare the differences between Dropbox and SpiderOak.</p><h3>Signup</h3><p>Registering for an account was fairly simply. Not much different to other sites around today. Entering the usual details of username, password and email address with a confirmation email after. The service provides 2GB for free which is the same as Dropbox but there is no possibility of extending this without paying. Dropbox has a referral feature which adds 250mb to your account. I have accumulated a few referrals in my time so I have more than the 2GB space but I use less than this currently (but close to the limit).</p><p>Dropbox only required a login for each client to access the same account but SpiderOak required more.</p><h3><a
href="http://www.dannytsang.co.uk/index.php/tag/desktop/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Desktop">Desktop</a> Software</h3><p>The user interface is not as user friendly as Dropbox but it is also a lot more powerful. Consider SpiderOak a power user tool. It splits items up by category of what you want it to do. There are:</p><ul><li>Status &#8211; What SpiderOak is currently doing on the machine</li><li>Backup &#8211; Used to manage backup of local directories</li><li>View &#8211; Look at items in the &#8220;cloud&#8221; (backups). The browser also includes revision of each file if multiple backups exist</li><li>Sync &#8211; Allow backups to be synchronized across multiple devices</li><li>Share &#8211; Allow other people access to files or upload to your SpiderOak</li></ul><p><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Overview.png" rel="lightbox[3766]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Overview-150x150.png" alt="" title="Overview" width="150" height="150" class="aligncenter size-thumbnail wp-image-4009" /></a><br
/> Starting with the Status tab, there are multiple tabs within this page. The first one is overview. This is a good indicator as to what is happening with the 3 main features of Spideroak: Backup, Sync and Share. There are small details within each status such as how many files are currently being upload and the remaining amount in backup, Number of &#8220;Syncers&#8221; in Sync and the number of sharers in Share. Moving to the Queue sub tab within the Status page shows the files that are waiting to be processed.<br
/> Actions<br
/> Logs show what happened in the past such as files being uploaded and downloaded, shared or sync&#8217;d and Stats just gives a summary of what the program has done.</p><p><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Backup.png" rel="lightbox[3766]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Backup-150x150.png" alt="" title="Backup" width="150" height="150" class="aligncenter size-thumbnail wp-image-4008" /></a><br
/> Unlike Dropbox where a directory is placed on your computer where everything is sync SpiderOak uses the more traditional method of allowing users to choose the folders to be uploaded. This is the job of the Backup tab.</p><p><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/View.png" rel="lightbox[3766]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/View-150x150.png" alt="" title="View" width="150" height="150" class="aligncenter size-thumbnail wp-image-4014" /></a><br
/> The View tab shows a list of files in a tree node structure similar to Microsoft Windows classic sidebar view. It&#8217;s quick and efficient but does not allow multiselect (to delete multiple backup files for example) nor any preview of the file. The view also shows the amount of space free and used by the backup in graphic form (where as the Status page show it in numeric format).</p><p>Sync allows multiple computers to share and keep files up to date with each other. This is the core of what Dropbox does.</p><p>SpiderOak also allows users to share access to other users. The difference with SpiderOak is that they allow other uses to login without a passwork. Also the public area is designated by yourself instead of SpiderOak where as Dropbox have public folders where files are shared and stored.</p><h3>Initial Upload</h3><p>As with any online backup systems there largest and longest part of process is the initial upload of the files. Fortunately SpiderOak compresses the files prior to upload making this process quicker. Dropbox does not do this making the initial upload longer. For some reason after every upload the files took a long to in the &#8220;finalizing&#8221; stage. Even if the file size was marked as 0 bytes? This occurred through the time I was using it.</p><h3>Subsequent Uploads</h3><p>Updating existing files for both services are fairly similar. Whilst Dropbox doesn&#8217;t compress the files to be uploaded it does upload only the changed bytes.</p><h3>Sync</h3><p>One disadvantage of SpiderOak is the the lack of LAN Sync. This greatly increases the speed of synchronization because the files are transfer over the network instead of out through the Internet and back again.</p><p><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Syndication-Process.png" rel="lightbox[3766]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Syndication-Process-150x150.png" alt="" title="Syndication Process" width="150" height="150" class="aligncenter size-thumbnail wp-image-4023" /></a><br
/> I encountered a server error 500 when I was adding a device which was running on <a
href="http://www.dannytsang.co.uk/index.php/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a> 10.04 <a
href="http://www.dannytsang.co.uk/index.php/tag/lts/" class="st_tag internal_tag" rel="tag" title="Posts tagged with LTS">LTS</a>. It quit automatically but when I went to add it again the device had been added to the list. I then had to go back and select reinstalling device so that I could select the device from a list instead creating one. There was about 1-2 minutes while it was doing a 10 step process but eventually loaded the normal SpiderOak interface.</p><p><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Sync-Select.png" rel="lightbox[3766]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Sync-Select-150x150.png" alt="" title="Sync Select" width="150" height="150" class="aligncenter size-thumbnail wp-image-4019" /></a><br
/> Once the second computer was up and running I had to set up a new backup directory. This directory would be where files are synchronized to. I used my Dropbox directory as a test. I disabled Dropbox on both computers but ensuring they were both synchronized. Once that was done my Windows computer already had a backup set up of the directory and everything was uploaded. When I tried to add the second Linux computer&#8217;s Dropbox directory it kept complaining I didn&#8217;t have enough space and kept popping up with a message to buy more space. I thought the &#8220;advanced de-duplication&#8221; would see it was the same directory with the same stuff in it as the Windows computer! Alas it didn&#8217;t. To get it to work I renamed the Dropbox directory and created an empty folder, added it to be backed up and then I was able to select the 2 Dropbox directories from each computer for synchronizing.</p><p>Couple hours later and it has managed to create the folders on the second computer but still no files. This is unacceptable!</p><h3>Pricing</h3><p>As of 13/09/2011</p><ul><li>2GB &#8211; Free</li><li>100GB &#8211; $10 per month or $100 per year for each 100GB</li></ul><p>In comparison Dropbox charges $9.99 per month for 50GB which makes SpiderOak cheaper.</p><h3>Summary</h3><p><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Preferences-Backup.png" rel="lightbox[3766]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Preferences-Backup-150x150.png" alt="" title="Preferences - Backup" width="150" height="150" class="aligncenter size-thumbnail wp-image-4010" /></a><br
/> Security perspective it&#8217;s great but the trade off for that is <a
href="http://www.dannytsang.co.uk/index.php/tag/recovery/" class="st_tag internal_tag" rel="tag" title="Posts tagged with recovery">recovery</a>. The version backup is a major bonus but again the trade off is space. The latter isn&#8217;t an issue because you can turn off versioning to keep the space down.</p><p>The biggest issue I had with it was the Sync. The fact that adding the second computer&#8217;s directory as a backup with existing files in it causes it to spontaneously show the popup is unacceptable. Whilst I believe the merge tool was built for this situation I think it&#8217;s a flawed model. Also the time it took to Sync the files across was too slow. It was during peak time so my bandwidth was throttled by Virgin Media it should at least start to synchronize files across. In the end I gave up and went back to Dropbox.</p> <a
href='http://www.dannytsang.co.uk/index.php/spideroak-mini-review/backup/' title='Backup'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Backup-150x150.png" class="attachment-thumbnail" alt="Backup" title="Backup" /></a> <a
href='http://www.dannytsang.co.uk/index.php/spideroak-mini-review/overview/' title='Overview'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Overview-150x150.png" class="attachment-thumbnail" alt="Overview" title="Overview" /></a> <a
href='http://www.dannytsang.co.uk/index.php/spideroak-mini-review/preferences-backup/' title='Preferences - Backup'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Preferences-Backup-150x150.png" class="attachment-thumbnail" alt="Preferences - Backup" title="Preferences - Backup" /></a> <a
href='http://www.dannytsang.co.uk/index.php/spideroak-mini-review/preferences-copy/' title='Preferences - Copy'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Preferences-Copy-150x150.png" class="attachment-thumbnail" alt="Preferences - Copy" title="Preferences - Copy" /></a> <a
href='http://www.dannytsang.co.uk/index.php/spideroak-mini-review/preferences-schedule/' title='Preferences - Schedule'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Preferences-Schedule-150x150.png" class="attachment-thumbnail" alt="Preferences - Schedule" title="Preferences - Schedule" /></a> <a
href='http://www.dannytsang.co.uk/index.php/spideroak-mini-review/queue/' title='Queue'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Queue-150x150.png" class="attachment-thumbnail" alt="Queue" title="Queue" /></a> <a
href='http://www.dannytsang.co.uk/index.php/spideroak-mini-review/view/' title='View'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/View-150x150.png" class="attachment-thumbnail" alt="View" title="View" /></a> <a
href='http://www.dannytsang.co.uk/index.php/spideroak-mini-review/sync-select/' title='Sync Select'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Sync-Select-150x150.png" class="attachment-thumbnail" alt="Sync Select" title="Sync Select" /></a> <a
href='http://www.dannytsang.co.uk/index.php/spideroak-mini-review/syndication-process/' title='Syndication Process'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/09/Syndication-Process-150x150.png" class="attachment-thumbnail" alt="Syndication Process" title="Syndication Process" /></a><p><a
href="http://lifehacker.com/5818908/dropbox-vs-the-alternatives-which-online-syncing-service-is-right-for-you" target="_blank">Dropbox vs. the Alternatives: Which Online Syncing Service Is Right for You?</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/sync-mozilla-thunderbird-using-dropbox/' rel='bookmark' title='Sync Mozilla Thunderbird Using Dropbox'>Sync Mozilla Thunderbird Using Dropbox</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/microsoft-foldershare-itunes-doesnt-work/' rel='bookmark' title='Microsoft FolderShare &amp; iTunes Doesn&#8217;t Work'>Microsoft FolderShare &#038; iTunes Doesn&#8217;t Work</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/dropbox-causes-duplicate-folders-in-mozilla-thunderbird/' rel='bookmark' title='Dropbox Causes Duplicate Folders In Mozilla Thunderbird'>Dropbox Causes Duplicate Folders In Mozilla Thunderbird</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/spideroak-mini-review/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>WiTopia VPN Abroad</title><link>http://www.dannytsang.co.uk/index.php/witopia-vpn-abroad/</link> <comments>http://www.dannytsang.co.uk/index.php/witopia-vpn-abroad/#comments</comments> <pubDate>Sun, 28 Aug 2011 18:01:03 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Mobile Phone]]></category> <category><![CDATA[Networking]]></category> <category><![CDATA[Acer]]></category> <category><![CDATA[Android]]></category> <category><![CDATA[Cyanogenmod]]></category> <category><![CDATA[HTC]]></category> <category><![CDATA[netbook]]></category> <category><![CDATA[PPTP]]></category> <category><![CDATA[ROM]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[VPN]]></category> <category><![CDATA[vpn service]]></category> <category><![CDATA[Wi-fi]]></category> <category><![CDATA[WiTopia]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3867</guid> <description><![CDATA[Overview I recently went abroad to Cyprus and got a chance to try using a VPN service &#8220;on the road&#8221;. I had my Android and Linux devices with mixed results. Please continue reading to find out more. Ubuntu 11.04 I &#8230; <a
href="http://www.dannytsang.co.uk/index.php/witopia-vpn-abroad/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/witopia-vpn-service-review/' rel='bookmark' title='WiTopia VPN Service Review'>WiTopia VPN Service Review</a></li></ol>]]></description> <content:encoded><![CDATA[<h3>Overview</h3><p>I recently went abroad to Cyprus and got a chance to try using a <a
href="http://www.dannytsang.co.uk/index.php/tag/vpn-service/" class="st_tag internal_tag" rel="tag" title="Posts tagged with vpn service">VPN service</a> &#8220;on the road&#8221;. I had my Android and Linux devices with mixed results. Please continue reading to find out more.</p><h3><a
href="http://www.dannytsang.co.uk/index.php/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a> 11.04</h3><p>I had used my new <a
href="http://www.dannytsang.co.uk/index.php/tag/acer/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Acer">Acer</a> <a
href="http://www.dannytsang.co.uk/index.php/tag/aspire/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Aspire">Aspire</a> One (AOD) with a fresh copy of Ubuntu 11.04 installed a week prior to going out. I had pre-configured the OS with the standard VPN end point with the generic WiTopia address (<a
href="http://www.dannytsang.co.uk/index.php/tag/pptp/" class="st_tag internal_tag" rel="tag" title="Posts tagged with PPTP">pptp</a>.witopia.net) and also a London end point (<a
href="http://www.dannytsang.co.uk/index.php/tag/pptp/" class="st_tag internal_tag" rel="tag" title="Posts tagged with PPTP">pptp</a>.lon.witopia.net).</p><p>I only used the <a
href="http://www.dannytsang.co.uk/index.php/tag/netbook/" class="st_tag internal_tag" rel="tag" title="Posts tagged with netbook">netbook</a> at the hotel which had a very good wireless coverage all the way from the room to the lobby. The fastest speed I saw was 65kbps down which was fairly good. On average I was seeing around 20-60kbps. Most of the time the generic address worked and took me to an American server (mostly in San Francisco). There were a few times which needed multiple attempts or reconnect after a disconnect but generally it was reliable to use.</p><p>I tried to connect to the London server first at all times but 99% of the time it failed. I was pushed for time so I did not do more than few attempts and eventually giving up to use the generic server so I am not sure why it would not work.</p><h3>Android</h3><p>There were a few open and free Wifi hot spots when I was going around town and a lot of them did not work with the VPN. The service would just not connect to any of the servers I had preconfigued on my phone and when it did it too slow or it seemed like there was no connectivity. I was using a <a
href="http://www.dannytsang.co.uk/index.php/tag/htc/" class="st_tag internal_tag" rel="tag" title="Posts tagged with HTC">HTC</a> Desire running Cyanogenmod 7.0.3 with a baseband version 32.49.00.32U_5.11.05.27. The <a
href="http://www.dannytsang.co.uk/index.php/tag/rom/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ROM">ROM</a> was using Android 2.3.3. Even though the VPN did not work I had encountered a lot of UI issues including:</p><ul><li>Confusing VPN Status &#8211; There was only a key icon which appears in the notification bar but this does no indicate whether the VPN is connected or not connected until the notification bar is pulled down or you keep an eye on the notification bar to see if it connects / disconnects.</li><li>Initiating Steps &#8211; The amount of steps it took to connect to the Wifi as well as the VPN was long!</li><li>Searching For Open Networks &#8211; There was the ability to notify if an open Wifi was in range but that meant keeping the wireless on which would drain the battery faster than it already does. Everytime I had the chance I would get the phone out, turn the Wifi on using the built in power control in the pull down notification bar (love it!). Menu > Settings >Wireless &#038; Networks and <a
href="http://www.dannytsang.co.uk/index.php/tag/wi-fi/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Wi-fi">Wi-fi</a> Settings to pray for an open hot spot.</li></ul><p>Whilst there are apps to facilitate searching for wireless networks such as Wifi Analyser but it required another software for me to connect from within the app!</p><h3>WiTopia</h3><p>Speed through the VPN varied but there was a noticeable but negligible drop in speed as expected because I could only get onto a server in the US. Whilst it was a shame the UK server did not work, it still works a treat when I need to get some US streaming and well worth it when it works. As mentioned above a lot of the short comings are due to the software rather than the service.</p><h3>Summary</h3><p>I still like WiTopia as a service but the practicality of it made it less valuable. Whilst it worked well on stable and fast connections it was less usable on slower connections which is what most free and open hotspots were like. If I had more time to watch streaming media I would consider it as invaluable but I don&#8217;t. I also don&#8217;t travel as much as I&#8217;d like to so again it makes the price for the service harder to swallow.</p><p>I still have over half a year left and I shall see if I use it again between now and when it expires. I still have one trip abroad in the process of planning. As for using it on the phone, I would more or less completely rule it out.</p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/witopia-vpn-service-review/' rel='bookmark' title='WiTopia VPN Service Review'>WiTopia VPN Service Review</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/witopia-vpn-abroad/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Remove Ubuntu Keyring Password</title><link>http://www.dannytsang.co.uk/index.php/remove-ubuntu-keyring-password/</link> <comments>http://www.dannytsang.co.uk/index.php/remove-ubuntu-keyring-password/#comments</comments> <pubDate>Wed, 24 Aug 2011 09:20:24 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[passwords]]></category> <category><![CDATA[seahorse]]></category> <category><![CDATA[Ubuntu]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3796</guid> <description><![CDATA[I often access Linux remotely but since 10.04 I have been encountering issues with the remote desktop. After a reboot, in order to gain remote desktop connection it would always prompt for a password. In situations where it reboots and &#8230; <a
href="http://www.dannytsang.co.uk/index.php/remove-ubuntu-keyring-password/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/security-holes-backdoors-in-freepbx/' rel='bookmark' title='Security Holes &amp; Backdoors In FreePBX'>Security Holes &#038; Backdoors In FreePBX</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/enabling-remote-access-to-mysql/' rel='bookmark' title='Enabling Remote Access To MySQL'>Enabling Remote Access To MySQL</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/keepass-mini-review/' rel='bookmark' title='KeePass Mini Review'>KeePass Mini Review</a></li></ol>]]></description> <content:encoded><![CDATA[<p>I often access <a
href="http://www.dannytsang.co.uk/index.php/tag/linux/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Linux">Linux</a> remotely but since 10.04 I have been encountering issues with the <a
href="http://www.dannytsang.co.uk/index.php/tag/remote-desktop/" class="st_tag internal_tag" rel="tag" title="Posts tagged with remote desktop">remote desktop</a>. After a reboot, in order to gain <a
href="http://www.dannytsang.co.uk/index.php/tag/remote-desktop/" class="st_tag internal_tag" rel="tag" title="Posts tagged with remote desktop">remote desktop</a> connection it would always prompt for a <a
href="http://www.dannytsang.co.uk/index.php/tag/password/" class="st_tag internal_tag" rel="tag" title="Posts tagged with password">password</a>. In situations where it reboots and I&#8217;m not in the same physical place as the computer I&#8217;m stuck with just the terminal.</p><p>To resolve this, disable the password for <a
href="http://www.dannytsang.co.uk/index.php/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a>&#8217;s keyring. This makes the stored <a
href="http://www.dannytsang.co.uk/index.php/tag/passwords/" class="st_tag internal_tag" rel="tag" title="Posts tagged with passwords">passwords</a> insecure but I only have a few <a
href="http://www.dannytsang.co.uk/index.php/tag/passwords/" class="st_tag internal_tag" rel="tag" title="Posts tagged with passwords">passwords</a> saved with the system keyring.</p><p>To disable the password go to <code>Applications > Accessories > Passwords and <a
href="http://www.dannytsang.co.uk/index.php/tag/encryption/" class="st_tag internal_tag" rel="tag" title="Posts tagged with encryption">Encryption</a> keys</code> or Alt+F2 to get the run box and type in <code><a
href="http://www.dannytsang.co.uk/index.php/tag/seahorse/" class="st_tag internal_tag" rel="tag" title="Posts tagged with seahorse">seahorse</a></code> (I do not know why it&#8217;s called seahorse).</p><p>The<strong> Passwords and Encryption Keys</strong> window should appear and under the <strong>Passwords</strong> tab there should be a list of passwords that it are saved already. Right click on the ones to remove the password and select <strong>Change Password</strong>. Enter the old password in the Old Password field and leave the rest blank. By the same token to reset the password complete all the fields. A warning about storing the passwords without a password should appear but select <strong>Use Unsafe Storage</strong>.</p> <a
href='http://www.dannytsang.co.uk/index.php/remove-ubuntu-keyring-password/warning/' title='Warning'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/07/Warning-150x150.png" class="attachment-thumbnail" alt="Warning" title="Warning" /></a> <a
href='http://www.dannytsang.co.uk/index.php/remove-ubuntu-keyring-password/passwords-and-encryption-keys/' title='Passwords and Encryption Keys'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/07/Passwords-and-Encryption-Keys-150x150.png" class="attachment-thumbnail" alt="Passwords and Encryption Keys" title="Passwords and Encryption Keys" /></a> <a
href='http://www.dannytsang.co.uk/index.php/remove-ubuntu-keyring-password/change-password-2/' title='Change Password'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/08/Change-Password-150x150.png" class="attachment-thumbnail" alt="Change Password" title="Change Password" /></a><p><a
href="http://davestechsupport.com/blog/2009/01/16/how-to-remove-ubuntus-password-keyring/" target="_blank">How To Remove Ubuntu’s Password Keyring</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/security-holes-backdoors-in-freepbx/' rel='bookmark' title='Security Holes &amp; Backdoors In FreePBX'>Security Holes &#038; Backdoors In FreePBX</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/enabling-remote-access-to-mysql/' rel='bookmark' title='Enabling Remote Access To MySQL'>Enabling Remote Access To MySQL</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/keepass-mini-review/' rel='bookmark' title='KeePass Mini Review'>KeePass Mini Review</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/remove-ubuntu-keyring-password/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Acer Aspire One D255E Mini Review</title><link>http://www.dannytsang.co.uk/index.php/acer-aspire-one-d255e-mini-review/</link> <comments>http://www.dannytsang.co.uk/index.php/acer-aspire-one-d255e-mini-review/#comments</comments> <pubDate>Tue, 16 Aug 2011 23:04:24 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Hardware]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Acer]]></category> <category><![CDATA[Aspire]]></category> <category><![CDATA[Asus]]></category> <category><![CDATA[asus eee pc]]></category> <category><![CDATA[asus eee pc 701]]></category> <category><![CDATA[Atom]]></category> <category><![CDATA[eRecovery]]></category> <category><![CDATA[Intel]]></category> <category><![CDATA[Laptop]]></category> <category><![CDATA[Microsoft]]></category> <category><![CDATA[netbooks]]></category> <category><![CDATA[SSD]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[USB]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3774</guid> <description><![CDATA[Overview Our Asus EEE PC 701 SSD failed when I tried to upgrade it from Ubuntu 10.10 to 11.04. I was in the middle of an install when it failed to copy a file and then there after it could &#8230; <a
href="http://www.dannytsang.co.uk/index.php/acer-aspire-one-d255e-mini-review/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/ibm-t60-ubuntu-winner/' rel='bookmark' title='IBM T60 + Ubuntu = Winner'>IBM T60 + Ubuntu = Winner</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/virtualbox-with-ubuntu-review/' rel='bookmark' title='VirtualBox With Ubuntu Quick Review'>VirtualBox With Ubuntu Quick Review</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/back-to-windows-vista/' rel='bookmark' title='Back To Windows Vista'>Back To Windows Vista</a></li></ol>]]></description> <content:encoded><![CDATA[<h3>Overview</h3><p>Our <a
href="http://www.dannytsang.co.uk/index.php/tag/asus-eee-pc-701/" class="st_tag internal_tag" rel="tag" title="Posts tagged with asus eee pc 701">Asus EEE PC 701</a> <a
href="http://www.dannytsang.co.uk/index.php/tag/ssd/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SSD">SSD</a> failed when I tried to upgrade it from <a
href="http://www.dannytsang.co.uk/index.php/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a> 10.10 to 11.04. I was in the middle of an install when it failed to copy a file and then there after it could not even boot from the HDD. Time for a replacement!</p><h3>Why Have A Laptop And Netbook?</h3><p>This all happened at a bad time because I was going on holiday soon and I was planning to take it with me. The EEE PC was a great travel companion because it was small, light and cheap which meant I had access to a computer (and Internet where possible) on holiday whilst not too worried about having hundreds of pounds worth of computer being damaged or stolen.</p><h3>Netbook Vs. Tablet</h3><p>When this all occurred, I was thinking of the possibility of replacement the netbook with a tablet. They fulfil more or less the same purpose of the netbook with a few pros and cons. Yes there is no keyboard for quick and comfortable typing and nor does it have the full range of applications a traditional desktop can offer but the boot time / always on and the optimized applications seem to counter those arguments (in my mind).</p><p>The biggest factor when I had decided was the price. Currently, a netbook can be had for aorund £230 and upwards. Cheaper for older models but tablets are currently are around £400+ excluding the Samsung Galaxy Tab 1010 but that has a 7&#8243; screen with possible no outlook of getting new Android OS updates. This pretty much meant netbook was the only choice.</p><h3>Linux Powered Netbook</h3><p>Being the Geek that I am, I almost always do research before purchasing anything more than in your weekly shop. For this replacement netbook it was no different. What I was surprised about was the lack of netbooks with Linux on them. All the recent ones were powered by <a
href="http://www.dannytsang.co.uk/index.php/tag/windows/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Windows">Windows</a> 7 Starter edition. WHAT WENT WRONG!? I remember when netbooks just started out and almost all of them had Linux on them due to Microsoft&#8217;s License restrictions and more importantly the resource hog (compare to Linux) it was.</p><p>Alas the days of Linux powered machines look like they have gone and even Asus, the innovaters in netbooks are only selling Windows 7 on their machines. I was looking for a Ubuntu compatible device and it seemed it was fairly hard to find a 100% compatible netbook. I did encounter a <a
href="https://wiki.ubuntu.com/HardwareSupport/Machines/Netbooks" target="_blank">Ubuntu hardware wiki </a>which has a list of netbooks and their compatibilities but it was out of date but a good starting point.</p><p>The Chromebook was even less of an appeal and it&#8217;s untested. I cannot rely on having an Internet connection and have yet to hear the reviews or stories of it&#8217;s use. Availability was also an issue.</p><h3><a
href="http://www.dannytsang.co.uk/index.php/tag/acer/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Acer">Acer</a> Aspire One D255E (Intel N455)</h3><p>After a long and hard search to find a Linux compatible system, I had decided to get the Acer D255E in red. There are 5 variants of the D25x which are D250 which is the first and oldest of the D25x range. Then came D255 which had the Intel <a
href="http://www.dannytsang.co.uk/index.php/tag/atom/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Atom">Atom</a> N255 processor. Then came the D255E which has the Intel <a
href="http://www.dannytsang.co.uk/index.php/tag/atom/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Atom">Atom</a> N450, N455 and N555. The main difference between the N45X and the N555 was the battery it came with. The latter having the larger 8 cell battery rated at 8 hours where was the former 2 have the 3 cell, 4 hours. The other smaller differences included DDR3 instead of DDR2 and slightly faster Front Side Bus (FSB). All in all I decided to go for the cheaper N455 version to save what was £30 at the time and coming in on budget of £200. This was a good result considering the inflation between 2007 and 2011 when I got the EEE PC 701 at the time.</p><p>From here on out I will be describing the D255E N455 only.</p><h3>Initial Setup</h3><p>I wanted to <a
href="http://www.dannytsang.co.uk/index.php/tag/backup/" class="st_tag internal_tag" rel="tag" title="Posts tagged with backup">backup</a> the system prior to doing anything in case I needed to return it. As per the usual Acer (and now pretty much all manufactures) has a <a
href="http://www.dannytsang.co.uk/index.php/tag/recovery/" class="st_tag internal_tag" rel="tag" title="Posts tagged with recovery">recovery</a> partition on their drive. Also the package did not include any restore media so if you break your Windows 7 Starter and your <a
href="http://www.dannytsang.co.uk/index.php/tag/recovery/" class="st_tag internal_tag" rel="tag" title="Posts tagged with recovery">recovery</a> partition, your out of luck because Windows 7 Starter is not available for purchase over the counter. People say you can contact Acer to get one if your willing to pay for the packaging and shipping costs but I think this is an oversight. All computers should come with system restore media. The good thing is you can create your own restore DVDs (note the plural!).</p><p>In order to create restore DVDs you must first boot into Windows and go through the registration to get to the Desktop. From there the start menu under Acer is Acer eRecovery Management. Starting this program allows you to create and restore from discs. This does mean you need an external DVD writer plugged in. The program will guide you through creating the 3 recovery DVDs. Once it was done time to get the Ubuntu 11.04 ISO out.</p><h3>Installing Ubuntu 11.04</h3><p>I created a bootable Ubuntu 11.04 <a
href="http://www.dannytsang.co.uk/index.php/tag/usb/" class="st_tag internal_tag" rel="tag" title="Posts tagged with USB">USB</a> stick to install from rather than using an external drive. The install process was fairly painless although during the HDD partition stage, I had to quit and go back into Windows to make sure I was selecting the correct partition (and not over write the recover and Android partitions).</p><p>Everything worked out of the box with the exception of the microphone. It was not picking up any sound but I think this is a Pulse Audio issue. To fix this do the following:<br
/> <code>$ sudo apt-get update</p><p>$ sudo apt-get install pavucontrol</code><br
/> This will update the repository and install the pulse audio control panel. Once the install is complete, start the pulse audio control panel from the menu or by running the commal <code>pavucontrol</code><br
/> Then select Input and reduce the input volume for either right or left. As soon as you do this the input volume bar will suddenly become active.</p><p>Some multitouch features work on the touch pad such as the right click when tapping with 2 fingers but I was unable to get the 2 finger scrolling to work.</p><h3>Ubuntu 11.04</h3><p>I like the Unity shell and find it usable for day to day tasks. As with any new software it does need a bit of work. The Ubuntu Software Center is a vast improvement over the old</p><p>The AOD 255E has a height of 600 pixels which meant most of the minimal sized windows fix with the exception of the buttons at the bottom of windows (if any). This means it has only lost 178 pixels to make the lowest resolution of 768.</p><h3>Summary</h3><p>Overall I&#8217;m very happy with the setup. Although there are things that can be improved upon such as ability to update Android or even restore the Android partition. Also there is no way to enable the android dual boot feature without Windows. I hate the loss of space for the recovery partition and as I do not know what will be restored with the restore DVDs, I&#8217;ve decided to keep them there for the mean time but the combination of Android and recovery partition take up approximately 50GB!</p><p>The EEE PC SD card slot was a lot deeper than the Aspire One which meant the card would be more or less sit flush to the edge of the computer. On this machine it sticks up by around 1cm which means the card cannot be left in there as extra space. This is a design flaw in my opinion.</p><p>I&#8217;m also more sensitive to the fact that it&#8217;s using a traditional HDD instead of a solid state so no more throwing it around whilst it&#8217;s on. The size of the netbook is a big step up compared to the <del
datetime="2011-07-20T10:41:51+00:00">old</del> original EEE PC. Also the extra screen size and resolution helps.</p> <a
href='http://www.dannytsang.co.uk/index.php/acer-aspire-one-d255e-mini-review/aod-back/' title='AOD Back'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/07/AOD-Back-150x150.jpg" class="attachment-thumbnail" alt="AOD Back" title="AOD Back" /></a> <a
href='http://www.dannytsang.co.uk/index.php/acer-aspire-one-d255e-mini-review/aod-box-contents/' title='AOD Box Contents'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/07/AOD-Box-Contents-150x150.jpg" class="attachment-thumbnail" alt="AOD Box Contents" title="AOD Box Contents" /></a> <a
href='http://www.dannytsang.co.uk/index.php/acer-aspire-one-d255e-mini-review/aod-box-opened/' title='AOD Box Opened'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/07/AOD-Box-Opened-150x150.jpg" class="attachment-thumbnail" alt="AOD Box Opened" title="AOD Box Opened" /></a> <a
href='http://www.dannytsang.co.uk/index.php/acer-aspire-one-d255e-mini-review/aod-box/' title='AOD Box'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/07/AOD-Box-150x150.jpg" class="attachment-thumbnail" alt="AOD Box" title="AOD Box" /></a> <a
href='http://www.dannytsang.co.uk/index.php/acer-aspire-one-d255e-mini-review/aod-keyboard/' title='AOD Keyboard'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/07/AOD-Keyboard-150x150.jpg" class="attachment-thumbnail" alt="AOD Keyboard" title="AOD Keyboard" /></a> <a
href='http://www.dannytsang.co.uk/index.php/acer-aspire-one-d255e-mini-review/aod-opened/' title='AOD Opened'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/07/AOD-Opened-150x150.jpg" class="attachment-thumbnail" alt="AOD Opened" title="AOD Opened" /></a> <a
href='http://www.dannytsang.co.uk/index.php/acer-aspire-one-d255e-mini-review/aod-power-adapter/' title='AOD Power Adapter'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/07/AOD-Power-Adapter-150x150.jpg" class="attachment-thumbnail" alt="AOD Power Adapter" title="AOD Power Adapter" /></a> <a
href='http://www.dannytsang.co.uk/index.php/acer-aspire-one-d255e-mini-review/aod-power-pin/' title='AOD Power Pin'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/07/AOD-Power-Pin-150x150.jpg" class="attachment-thumbnail" alt="AOD Power Pin" title="AOD Power Pin" /></a> <a
href='http://www.dannytsang.co.uk/index.php/acer-aspire-one-d255e-mini-review/aod-power-plug/' title='AOD Power Plug'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/07/AOD-Power-Plug-150x150.jpg" class="attachment-thumbnail" alt="AOD Power Plug" title="AOD Power Plug" /></a> <a
href='http://www.dannytsang.co.uk/index.php/acer-aspire-one-d255e-mini-review/aod-sd-card/' title='AOD SD Card'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/07/AOD-SD-Card-150x150.jpg" class="attachment-thumbnail" alt="AOD SD Card" title="AOD SD Card" /></a> <a
href='http://www.dannytsang.co.uk/index.php/acer-aspire-one-d255e-mini-review/aod-spec/' title='AOD Spec'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/07/AOD-Spec-150x150.jpg" class="attachment-thumbnail" alt="AOD Spec" title="AOD Spec" /></a> <a
href='http://www.dannytsang.co.uk/index.php/acer-aspire-one-d255e-mini-review/aod/' title='AOD'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/07/AOD-150x150.jpg" class="attachment-thumbnail" alt="AOD" title="AOD" /></a><p><a
href="http://ubuntuforums.org/showthread.php?t=1624198" target="_blank">Acer Aspire One D255 microphone?</a></p><p><a
href="http://almlys.org/archives/847" target="_blank">Ubuntu 11.04 GNU/Linux on Acer Aspire One D255E</a></p><p><a
href="https://wiki.ubuntu.com/HardwareSupport/Machines/Netbooks" target="_blank">Ubuntu Hardware Wiki</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/ibm-t60-ubuntu-winner/' rel='bookmark' title='IBM T60 + Ubuntu = Winner'>IBM T60 + Ubuntu = Winner</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/virtualbox-with-ubuntu-review/' rel='bookmark' title='VirtualBox With Ubuntu Quick Review'>VirtualBox With Ubuntu Quick Review</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/back-to-windows-vista/' rel='bookmark' title='Back To Windows Vista'>Back To Windows Vista</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/acer-aspire-one-d255e-mini-review/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Ubuntu 10.04 dos2unix Tools Missing</title><link>http://www.dannytsang.co.uk/index.php/ubuntu-10-04-dos2unix-tools-missing/</link> <comments>http://www.dannytsang.co.uk/index.php/ubuntu-10-04-dos2unix-tools-missing/#comments</comments> <pubDate>Sun, 31 Jul 2011 23:01:03 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[dos2unix]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[unix]]></category> <category><![CDATA[unix2dos]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3680</guid> <description><![CDATA[To install dos2unix (and unix2dos) tools in Ubuntu: $sudo apt-get install tofrodos The package in Ubuntu does not use the standard dos2unix command and instead are: fromdos &#8211; same as dos2unix todos &#8211; same as unix2dos This tool seems to &#8230; <a
href="http://www.dannytsang.co.uk/index.php/ubuntu-10-04-dos2unix-tools-missing/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/wordpress-thumbnail-generation-greyed-out/' rel='bookmark' title='WordPress Thumbnail Generation Greyed Out'>WordPress Thumbnail Generation Greyed Out</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/installing-ubuntu-810-from-usb-stick/' rel='bookmark' title='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/ubuntu-server-710-gutsy-gibbon-to-804-hardy-herring/' rel='bookmark' title='Ubuntu Server 7.10 (Gutsy Gibbon) To 8.04 (Hardy Herring)'>Ubuntu Server 7.10 (Gutsy Gibbon) To 8.04 (Hardy Herring)</a></li></ol>]]></description> <content:encoded><![CDATA[<p>To install <a
href="http://www.dannytsang.co.uk/index.php/tag/dos2unix/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dos2unix">dos2unix</a> (and <a
href="http://www.dannytsang.co.uk/index.php/tag/unix/" class="st_tag internal_tag" rel="tag" title="Posts tagged with unix">unix</a>2dos) tools in <a
href="http://www.dannytsang.co.uk/index.php/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a>:<br
/> <code>$sudo apt-get install tofrodos</code></p><p>The package in Ubuntu does not use the standard dos2unix command and instead are:</p><ul><li>fromdos &#8211; same as dos2unix</li><li>todos &#8211; same as <a
href="http://www.dannytsang.co.uk/index.php/tag/unix2dos/" class="st_tag internal_tag" rel="tag" title="Posts tagged with unix2dos">unix2dos</a></li></ul><p>This tool seems to be missing in version 10.04 and onwards.</p><p><a
href="http://www.virtualhelp.me/linux/164-dos2unix-missing-ubuntu-1004" target="_blank">dos2unix missing (Ubuntu 10.04)</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/wordpress-thumbnail-generation-greyed-out/' rel='bookmark' title='WordPress Thumbnail Generation Greyed Out'>WordPress Thumbnail Generation Greyed Out</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/installing-ubuntu-810-from-usb-stick/' rel='bookmark' title='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/ubuntu-server-710-gutsy-gibbon-to-804-hardy-herring/' rel='bookmark' title='Ubuntu Server 7.10 (Gutsy Gibbon) To 8.04 (Hardy Herring)'>Ubuntu Server 7.10 (Gutsy Gibbon) To 8.04 (Hardy Herring)</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/ubuntu-10-04-dos2unix-tools-missing/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Ubuntu 10.04 Firewall (UFW) Basics</title><link>http://www.dannytsang.co.uk/index.php/ubuntu-10-04-firewall-ufw-basics/</link> <comments>http://www.dannytsang.co.uk/index.php/ubuntu-10-04-firewall-ufw-basics/#comments</comments> <pubDate>Sat, 02 Jul 2011 23:01:41 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networking]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[firewall]]></category> <category><![CDATA[gufw]]></category> <category><![CDATA[GUI]]></category> <category><![CDATA[iptables]]></category> <category><![CDATA[ports]]></category> <category><![CDATA[protocols]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[UDP]]></category> <category><![CDATA[ufw]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3638</guid> <description><![CDATA[Overview UFW or Uncomplicated FireWall is a basic software solution for protecting against network intrusions. It&#8217;s basic in the form that it&#8217;s a wrapper around the more powerful and complex iptables and therefore makes some assumptions such as rate limits. &#8230; <a
href="http://www.dannytsang.co.uk/index.php/ubuntu-10-04-firewall-ufw-basics/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/setting-up-cups-print-server-on-ubuntu-804/' rel='bookmark' title='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/ssh-on-multiple-ports/' rel='bookmark' title='SSH On Multiple Ports'>SSH On Multiple Ports</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/apache-2-hardening-tips/' rel='bookmark' title='Apache 2 Hardening Tips'>Apache 2 Hardening Tips</a></li></ol>]]></description> <content:encoded><![CDATA[<h3>Overview</h3><p>UFW or Uncomplicated FireWall is a basic software solution for protecting against network intrusions. It&#8217;s basic in the form that it&#8217;s a wrapper around the more powerful and complex iptables and therefore makes some assumptions such as rate limits. There are no smart detection systems and adaptability but it also makes it very simple and easy to use. This is not to say it&#8217;s too basic but it will suffice in most situations just like Windows Firewall. As time has progressed, UFW has improved a lot with a lot <a
href="http://en.wikipedia.org/wiki/Uncomplicated_Firewall" target="_blank">added features</a>.</p><h3>Install</h3><p>Installing UFW on Ubuntu is very simple:<br
/> <code>$sudo apt-get install ufw</code></p><p>To get the GUI for UFW:<br
/> <code>$sudo apt-get install gufw</code></p><p>The remaining part of this article will be describing how to use UFW from command line.</p><h3><a
href="http://www.dannytsang.co.uk/index.php/tag/port/" class="st_tag internal_tag" rel="tag" title="Posts tagged with port">Port</a>/Service Confirguration</h3><p>After installing ufw it should be inactive. To find the status of ufw:<br
/> <code>$sudo ufw status numbered</code></p><p>Inactive means the firewall is turned off but it will be made active on a reboot. Disabled means it is turned off and it will not start when the system is restarted. If ufw is installed on a remote system and only accessible via terminal I would recommend disabling ufw in the event the system goes down and when it comes back up could block remote terminal connections:<br
/> <code>$sudo ufw disable</code></p><p>Another default that is applied to ufw is that the firewall is set to allow all which means all connections are able to connect to the computer system unless a rule exists. It&#8217;s often easier to deny all and allow specific protocols or <a
href="http://www.dannytsang.co.uk/index.php/tag/ports/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ports">ports</a>. To do this run the following command:<br
/> <code>$sudo ufw default deny</code></p><p>To revert the above command:<br
/> <code>$sudo ufw default allow</code></p><p>The command format to allow or deny something is <code>$sudo ufw <allow|deny> <port>/ <protocol></code>. For example to allow <a
href="http://www.dannytsang.co.uk/index.php/tag/port-22/" class="st_tag internal_tag" rel="tag" title="Posts tagged with port 22">port 22</a> (SSH):<br
/> <code>$sudo ufw allow 22</code><br
/> This will allow TCP and UDP type traffic through port 22. To specify the protocol just append it to the end:<br
/> <code>$sudo ufw allow 22/tcp</code><br
/> Replace allow with deny to block connections:<br
/> <code>$sudo ufw deny 22/tcp</code></p><p>To allow/deny a multiple / range of ports do the following:<br
/> <code>$sudo ufw allow 21,22,80,1000:1024</code><br
/> The comma separated numbers are the individual ports whilst the colon means the range. The above command would have opened connections for ports 21, 22,80 and 1000-1024.</p><p>ufw recognizes some services. To get a list of the services perform the following command:<br
/> <code>$sudo less /etc/services</code></p><p>Replace the port number with the service name:<br
/> <code>$sudo ufw deny ssh</code></p><p>To delete a rule, add the keyword <strong>delete</strong> after ufw and before the allow/deny switch:<br
/> <code>$sudo ufw delete deny 22/tcp</code><br
/> or by using the status command and deleting by number from the left hand side:<br
/> <code>$sudo ufw delete 2</code><br
/> will delete the second rule listed in the ufw status printout.</p><p>If ufw is enabled, running the status command will also list the rules that have been entered.</p><p>The defaults and rules can be applied to outgoing connections too. Here are some examples:<br
/> <code>$sudo ufw default deny outgoing</code><br
/> Stops all outgoing connections by default</p><p><code>$sudo ufw default allow outgoing</code><br
/> Reverts back to allow outgoing connections</p><p><code>$sudo ufw allow out 22</code><br
/> Allows outgoing connections on port 22.</p><p><code>$sudo ufw allow out to 192.168.0.1 port 22</code><br
/> Allows outgoing connections from port 22 to machine 192.168.0.1</p><h3>Source Configuration</h3><p>Adding &#8220;from <ip-address>&#8221; will permit or refuse connection from a specific IP address:<br
/> <code>$sudo ufw deny from 192.168.0.1</code><br
/> The above command will block all connection requests from 192.168.0.1.</p><p>To block a range of IP addresses, do the following:<br
/> <code>$sudo ufw deny from 192.168.0.1 to 192.168.0.254</code></p><p>Source settings can also be applied to specific ports/services like this:<br
/> <code>$sudo ufw allow from 192.168.0.1 to any port 22/tcp</code></p><h3>Rule Conflicts</h3><p>Depending on the order the rules were added will depend on which rules are evaluated first. Using the commands described above here is Scenario 1:<br
/> <code><br
/> $sudo ufw default deny<br
/> $sudo ufw allow 22<br
/> $sudo ufw deny from 192.168.0.1 to any port 22<br
/> </code><br
/> With the allow port 22 added first, the computer with 192.168.0.1 will still be allowed to connect to port 22 because ufw see&#8217;s that 22 is allowed and it will not evaluate any rules below it. To fix the problem the commands should be entered in the following order:<br
/> <code><br
/> $sudo ufw default deny<br
/> $sudo ufw deny from 192.168.0.1 to any port 22<br
/> $sudo ufw allow 22<br
/> </code><br
/> The most generic and therefore open rule should be last with more specific rules added first. The ufw status command will list the rules in place in the order they were added / evaluated.</p><p>To insert a new rule in a specific position, use the status command with the option <strong>numbered</strong>:<br
/> <code>$sudo ufw status numbered</code><br
/> This will list all the exist rules with a number index on the left hand side.</p><p>Create a new rule as per normal but add <strong>insert <number></strong> before the rule to specify the order it should be inserted in:<br
/> <code>$sudo ufw insert 2 deny from 192.168.0.1 to any port 22</code><br
/> The above rule will be inserted in position 2 and move the old 2 and below rules down 1 place.</p><h3>Limiting Connections</h3><p>In place of opening a service / port there is also limiting. The rule for the limit is:</p><blockquote><p>ufw supports connection rate limiting, which is useful for protecting against brute-force login attacks. ufw will deny connections if an IP address has attempted to initiate 6 or more connections in the last 30 seconds.</p></blockquote><p>I have not seen any article on how to change the limit rules.</p><p>To use the connection limiting function, replace the word allow with limit. For example:<br
/> <code>$sudo ufw limit 22</code></p><p>If an allow rule exists for port 22, it should be removed otherwise ensure the limit rule is above the allow rule.</p><h3>Common <a
href="http://www.dannytsang.co.uk/index.php/tag/server/" class="st_tag internal_tag" rel="tag" title="Posts tagged with server">Server</a> Ports</h3><p>Below is a list of common ports to be left open. Whilst not all of them are applicable or the same it&#8217;s worth considering:</p><ul><li>20, 21 &#8211; FTP for unsecure file transfers. I&#8217;d recommend using SFTP or FTPS which usually reside on a different port. Also try and use the limit firewall rule instead of allow to minimize brute force attacks.</li><li>22 &#8211; SSH is a must and is used by FTPS and other secure services such as SCP. I&#8217;d recommend changing the SSH port to something more obscure. Also it&#8217;s worth using the limit firewall rule to prevent brute force attacks.</li><li>25 &#8211; SMTP for routing email. It&#8217;s not necessary to open if</li><li>80 &#8211; HTTP or webserver port. Leave this open if a webserver is running such as Apache.</li><li>161,162 &#8211; SMNP used to monitor server status.</li><li>220 &#8211; IMAP for client email access</li><li>443 &#8211; HTTPS secure web traffic if supoorted.</li><li>465 &#8211; SMTP over SSL for secure email access.</li><li>3306 &#8211; <a
href="http://www.dannytsang.co.uk/index.php/tag/mysql/" class="st_tag internal_tag" rel="tag" title="Posts tagged with mysql">MySQL</a> database port. I&#8217;d recommend not opening this port up and use SSH tunneling for more secure approach. If it&#8217;s necessary to open the port then use limit unless it causes connection issues.</li></ul><h3>Summary</h3><p>ufw is a nice wrapper to enable and disable ports and the syntax used are fairly logical and human readable. I would like to see more work done on the limit command which limits the connections coming in (and hopefully soon) going out.</p><p>http://gliderservices.no-ip.org/blog/?p=9</p><p><a
href="http://www.linuxserverhowto.com/linux-server-security/linux-server-security-ubuntu-firewall.html">Linux Server Security &#8211; Ubuntu&#8217;s ufw Firewall Configuration Tool</a></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='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/ssh-on-multiple-ports/' rel='bookmark' title='SSH On Multiple Ports'>SSH On Multiple Ports</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/apache-2-hardening-tips/' rel='bookmark' title='Apache 2 Hardening Tips'>Apache 2 Hardening Tips</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/ubuntu-10-04-firewall-ufw-basics/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Apache 2 Hardening Tips</title><link>http://www.dannytsang.co.uk/index.php/apache-2-hardening-tips/</link> <comments>http://www.dannytsang.co.uk/index.php/apache-2-hardening-tips/#comments</comments> <pubDate>Sat, 25 Jun 2011 23:01:31 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[DDOS]]></category> <category><![CDATA[server]]></category> <category><![CDATA[Ubuntu]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3594</guid> <description><![CDATA[Below are some of the tricks I use or found useful to try to mitigate unwanted attention. Whilst this is not a definitive guide these are simple quick things that can be done. This was written for Ubuntu but it &#8230; <a
href="http://www.dannytsang.co.uk/index.php/apache-2-hardening-tips/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/wordpress-permalink-change-error/' rel='bookmark' title='WordPress Permalink Change Error'>WordPress Permalink Change Error</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/ubuntu-10-04-firewall-ufw-basics/' rel='bookmark' title='Ubuntu 10.04 Firewall (UFW) Basics'>Ubuntu 10.04 Firewall (UFW) Basics</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/setting-up-cups-print-server-on-ubuntu-804/' rel='bookmark' title='Setting Up CUPS (Print Server) On Ubuntu 8.04'>Setting Up CUPS (Print Server) On Ubuntu 8.04</a></li></ol>]]></description> <content:encoded><![CDATA[<p>Below are some of the tricks I use or found useful to try to mitigate unwanted attention. Whilst this is not a definitive guide these are simple quick things that can be done. This was written for <a
href="http://www.dannytsang.co.uk/index.php/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a> but it can be applied to any OS running <a
href="http://www.dannytsang.co.uk/index.php/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with apache">Apache</a> 2.</p><h3>Disable Directory Listings</h3><p>First directive to change is to stop people browsing through files when a user types in a web address which leads to a folder.</p><p>Edit the file <code>/etc/apache2/sites-available/default</code><br
/> changing default for the site config file.<br
/> <code>$ sudo service apache2 restart</code><br
/> Find <strong>Indexes</strong> from the options under the Directory directive and add a subtract sign to disable the option. For example:<br
/> <code>&lt;Directory /var/www/&gt;<br
/> Options Indexes FollowSymLinks MultiViews<br
/> AllowOverride None<br
/> Order allow,deny<br
/> allow from all<br
/> &lt;/Directory&gt;</code><br
/> Becomes<br
/> <code>&lt;Directory /var/www/&gt;<br
/> Options -Indexes FollowSymLinks MultiViews<br
/> AllowOverride None<br
/> Order allow,deny<br
/> allow from all<br
/> &lt;/Directory&gt;</code></p><h3>mod-evasive</h3><p>As a last measure from a <a
href="http://www.dannytsang.co.uk/index.php/tag/ddos/" class="st_tag internal_tag" rel="tag" title="Posts tagged with DDOS">DDOS</a> attach, Apache has a module which black lists IP addresses temporarily. The default rules are:</p><blockquote><ol><li>Requesting the same page more than a few times per second</li><li>Making more than 50 concurrent requests on the same child per second</li><li>Making any requests while temporarily blacklisted (on a blocking list)</li></ol></blockquote><p><code>$sudo apt-get install libapache2-mod-evasive</code></p><h3>mod-security</h3><p>Helps stop some injection and <a
href="http://www.dannytsang.co.uk/index.php/tag/server/" class="st_tag internal_tag" rel="tag" title="Posts tagged with server">Server</a> Side Includes (SSI) attacks:<br
/> <code>$sudo apt-get install libapache2-mod-security2</code></p><h3>Remove Server Signature &#038; Information</h3><p>Turn off server information such as version of Apache and HTTP header server information.</p><p><code>$vi /etc/apache2/conf.d/security</code></p><p>Find the following and change the values to <strong>Prod</strong> and <strong>Off</strong><br
/> ServerTokens Prod<br
/> ServerSignature Off</p><h3>Update Apache</h3><p>Keep the software as up to date as possible. New version come out all the time with various fixes and security patches. Fortunately, Debian based systems such as Ubuntu makes this really easy:<br
/> <code>$sudo apt-get update &#038;&#038; sudo apt-get dist-upgrade</code></p><p>Last thing to do is to restart the server for the changes to take hold. Any mis-configuration should be reported when the server tries to start back up. It might be easier to restart after each change to make troubleshooting easier.</p><p>Below are some use case specific ways to enhance security. If the below changes breaks a site then revert the changes but for most home uses they can generally be turned off.</p><h3>Disable SSI</h3><p>Add a minus sign in front of <strong>Includes</strong>. E.g:<br
/> <code>&lt;Directory /var/www/&gt;<br
/> Options -Indexes -Includes FollowSymLinks MultiViews<br
/> AllowOverride None<br
/> Order allow,deny<br
/> allow from all<br
/> &lt;/Directory&gt;</code></p><h3>Disable CGI</h3><p>Add / modify <strong>ExecCGI</strong> in the directory directive:<br
/> <code>&lt;Directory /var/www/&gt;<br
/> Options -Indexes -Includes -ExecCGI FollowSymLinks MultiViews<br
/> AllowOverride None<br
/> Order allow,deny<br
/> allow from all<br
/> &lt;/Directory&gt;</code></p><h3>Disable Symbolic Links</h3><p>Remove / add a hyphen to <strong>FollowSymLinks</strong> to disable sym links (like shorts in Windows terms):<br
/> <code>&lt;Directory /var/www/&gt;<br
/> Options -Indexes -Includes -ExecCGI -FollowSymLinks MultiViews<br
/> AllowOverride None<br
/> Order allow,deny<br
/> allow from all<br
/> &lt;/Directory&gt;</code></p><h3>Disable All Options</h3><p>To remove all options above just remove all the options and add the word <strong>None</strong><br
/> <code>&lt;Directory /var/www/&gt;<br
/> Options None<br
/> AllowOverride None<br
/> Order allow,deny<br
/> allow from all<br
/> &lt;/Directory&gt;</code></p><p><a
href="http://secure-ubuntu-server.blogspot.com/2009/07/howto-hardening-your-apache-and-php-on_07.html" target="_blank">Almost Secure and Perfect Ubuntu Server</a></p><p><a
href="http://httpd.apache.org/docs/2.0/misc/security_tips.html" target="_blank">Security Tips</a></p><p><a
href="http://www.petefreitag.com/item/505.cfm" target="_blank">20 ways to Secure your Apache Configuration</a></p><p><a
href="http://gliderservices.no-ip.org/blog/?p=9" target="_blank">How to harden Ubuntu 10.04 LTS + LAMP</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/wordpress-permalink-change-error/' rel='bookmark' title='WordPress Permalink Change Error'>WordPress Permalink Change Error</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/ubuntu-10-04-firewall-ufw-basics/' rel='bookmark' title='Ubuntu 10.04 Firewall (UFW) Basics'>Ubuntu 10.04 Firewall (UFW) Basics</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/setting-up-cups-print-server-on-ubuntu-804/' rel='bookmark' title='Setting Up CUPS (Print Server) On Ubuntu 8.04'>Setting Up CUPS (Print Server) On Ubuntu 8.04</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/apache-2-hardening-tips/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Invalid Command &#8216;Header&#8217;</title><link>http://www.dannytsang.co.uk/index.php/invalid-command-header/</link> <comments>http://www.dannytsang.co.uk/index.php/invalid-command-header/#comments</comments> <pubDate>Tue, 21 Jun 2011 16:11:06 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[Ubuntu]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3737</guid> <description><![CDATA[Another error and same problem as last time: the module was not loaded! Invalid command &#8216;Header&#8217;, perhaps misspelled or defined by a module not included in the server configuration $sudo a2enmod headers to enable the headers module $sudo service apache2 &#8230; <a
href="http://www.dannytsang.co.uk/index.php/invalid-command-header/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/invalid-command-expiresactive/' rel='bookmark' title='Invalid Command &#8216;ExpiresActive&#8217;'>Invalid Command &#8216;ExpiresActive&#8217;</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/wordpress-permalink-change-error/' rel='bookmark' title='WordPress Permalink Change Error'>WordPress Permalink Change Error</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/wordpress-twitter-tools-shows-blank-page-on-connect/' rel='bookmark' title='WordPress Twitter Tools Shows Blank Page On Connect'>WordPress Twitter Tools Shows Blank Page On Connect</a></li></ol>]]></description> <content:encoded><![CDATA[<p>Another error and same problem as last time: the module was not loaded!</p><blockquote><p>Invalid command &#8216;Header&#8217;, perhaps misspelled or defined by a module not included in the <a
href="http://www.dannytsang.co.uk/index.php/tag/server/" class="st_tag internal_tag" rel="tag" title="Posts tagged with server">server</a> configuration</p></blockquote><p><code>$sudo a2enmod headers</code> to enable the headers module</p><p><code>$sudo service <a
href="http://www.dannytsang.co.uk/index.php/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with apache">apache</a>2 restart</code> to restart the server for the module to take effect.</p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/invalid-command-expiresactive/' rel='bookmark' title='Invalid Command &#8216;ExpiresActive&#8217;'>Invalid Command &#8216;ExpiresActive&#8217;</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/wordpress-permalink-change-error/' rel='bookmark' title='WordPress Permalink Change Error'>WordPress Permalink Change Error</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/wordpress-twitter-tools-shows-blank-page-on-connect/' rel='bookmark' title='WordPress Twitter Tools Shows Blank Page On Connect'>WordPress Twitter Tools Shows Blank Page On Connect</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/invalid-command-header/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Invalid Command &#8216;ExpiresActive&#8217;</title><link>http://www.dannytsang.co.uk/index.php/invalid-command-expiresactive/</link> <comments>http://www.dannytsang.co.uk/index.php/invalid-command-expiresactive/#comments</comments> <pubDate>Tue, 21 Jun 2011 16:10:08 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[ExpiresActive]]></category> <category><![CDATA[Ubuntu]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3734</guid> <description><![CDATA[I recently got the error message below when I was trying to reload Apache: Invalid command &#8216;ExpiresActive&#8217;, perhaps misspelled or defined by a module not included in the server configuration &#8230;fail! To fix it ensure the &#8220;expires&#8221; module is loaded: &#8230; <a
href="http://www.dannytsang.co.uk/index.php/invalid-command-expiresactive/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/invalid-command-header/' rel='bookmark' title='Invalid Command &#8216;Header&#8217;'>Invalid Command &#8216;Header&#8217;</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/wordpress-permalink-change-error/' rel='bookmark' title='WordPress Permalink Change Error'>WordPress Permalink Change Error</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/apache-2-hardening-tips/' rel='bookmark' title='Apache 2 Hardening Tips'>Apache 2 Hardening Tips</a></li></ol>]]></description> <content:encoded><![CDATA[<p>I recently got the error message below when I was trying to reload <a
href="http://www.dannytsang.co.uk/index.php/tag/apache/" class="st_tag internal_tag" rel="tag" title="Posts tagged with apache">Apache</a>:</p><blockquote><p>Invalid command &#8216;<a
href="http://www.dannytsang.co.uk/index.php/tag/expiresactive/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ExpiresActive">ExpiresActive</a>&#8217;, perhaps misspelled or defined by a module not included in the <a
href="http://www.dannytsang.co.uk/index.php/tag/server/" class="st_tag internal_tag" rel="tag" title="Posts tagged with server">server</a> configuration<br
/> &#8230;fail!</p></blockquote><p>To fix it ensure the &#8220;expires&#8221; module is loaded:<br
/> <code>$sudo a2enmod expires</code></p><p>Then restart <a
href="http://www.dannytsang.co.uk/index.php/tag/apache-server/" class="st_tag internal_tag" rel="tag" title="Posts tagged with apache server">Apache server</a><br
/> <code>$sudo service apache2 restart</code></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/invalid-command-header/' rel='bookmark' title='Invalid Command &#8216;Header&#8217;'>Invalid Command &#8216;Header&#8217;</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/wordpress-permalink-change-error/' rel='bookmark' title='WordPress Permalink Change Error'>WordPress Permalink Change Error</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/apache-2-hardening-tips/' rel='bookmark' title='Apache 2 Hardening Tips'>Apache 2 Hardening Tips</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/invalid-command-expiresactive/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Check For Rootkits In Ubuntu</title><link>http://www.dannytsang.co.uk/index.php/check-for-rootkits-in-ubuntu/</link> <comments>http://www.dannytsang.co.uk/index.php/check-for-rootkits-in-ubuntu/#comments</comments> <pubDate>Fri, 17 Jun 2011 23:01:09 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[chkrootkit]]></category> <category><![CDATA[Rootkits]]></category> <category><![CDATA[Ubuntu]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3600</guid> <description><![CDATA[There&#8217;s a nice pre-made script which checks your Ubuntu system for Rootkits. Whilst it&#8217;s by no means exhaust way of finding out if your system is infected it makes it real simply and easy to do. First thing to do &#8230; <a
href="http://www.dannytsang.co.uk/index.php/check-for-rootkits-in-ubuntu/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/mounting-extracting-bin-and-cue-files-in-ubuntu/' rel='bookmark' title='Mounting / Extracting .bin and .cue Files In Ubuntu'>Mounting / Extracting .bin and .cue Files In Ubuntu</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/check-gui-program-is-running-in-linux/' rel='bookmark' title='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/bash-sleep-vs-wait/' rel='bookmark' title='Bash Sleep vs. Wait'>Bash Sleep vs. Wait</a></li></ol>]]></description> <content:encoded><![CDATA[<p>There&#8217;s a nice pre-made script which checks your <a
href="http://www.dannytsang.co.uk/index.php/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a> system for <a
href="http://www.dannytsang.co.uk/index.php/tag/rootkits/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Rootkits">Rootkits</a>. Whilst it&#8217;s by no means exhaust way of finding out if your system is infected it makes it real simply and easy to do.</p><p>First thing to do is install the script<br
/> <code>$sudo apt-get install <a
href="http://www.dannytsang.co.uk/index.php/tag/chkrootkit/" class="st_tag internal_tag" rel="tag" title="Posts tagged with chkrootkit">chkrootkit</a></code></p><p>Next run it:<br
/> <code>$sudo chkrootkit</code><br
/> or redirect the output to a file<br
/> <code>$sudo chkrootkit > rootkit.txt</code><br
/> That&#8217;s it!</p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/mounting-extracting-bin-and-cue-files-in-ubuntu/' rel='bookmark' title='Mounting / Extracting .bin and .cue Files In Ubuntu'>Mounting / Extracting .bin and .cue Files In Ubuntu</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/check-gui-program-is-running-in-linux/' rel='bookmark' title='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/bash-sleep-vs-wait/' rel='bookmark' title='Bash Sleep vs. Wait'>Bash Sleep vs. Wait</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/check-for-rootkits-in-ubuntu/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>dvd::rip Debugging (Warning: No libxvidcore API 4 found)</title><link>http://www.dannytsang.co.uk/index.php/dvdrip-debugging-warning-no-libxvidcore-api-4-found/</link> <comments>http://www.dannytsang.co.uk/index.php/dvdrip-debugging-warning-no-libxvidcore-api-4-found/#comments</comments> <pubDate>Sun, 09 Jan 2011 21:03:19 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Cluster]]></category> <category><![CDATA[dvd]]></category> <category><![CDATA[dvdrip]]></category> <category><![CDATA[libxvidcore]]></category> <category><![CDATA[transcode]]></category> <category><![CDATA[Ubuntu]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3268</guid> <description><![CDATA[I had an issue with dvd::rip failing to transcode videos when using clusters but using the Transcode button worked fine. In the Cluster Control window everything was added fine but when the project started it failed at 0% on all &#8230; <a
href="http://www.dannytsang.co.uk/index.php/dvdrip-debugging-warning-no-libxvidcore-api-4-found/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/dvdrip/' rel='bookmark' title='dvd::rip'>dvd::rip</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/bash-man-command-not-found/' rel='bookmark' title='bash: man: command not found'>bash: man: command not found</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/waking-windows-7-controller-error/' rel='bookmark' title='Waking Windows 7 Controller Error'>Waking Windows 7 Controller Error</a></li></ol>]]></description> <content:encoded><![CDATA[<p>I had an issue with <a
href="http://www.dannytsang.co.uk/index.php/tag/dvd/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dvd">dvd</a>::rip failing to <a
href="http://www.dannytsang.co.uk/index.php/tag/transcode/" class="st_tag internal_tag" rel="tag" title="Posts tagged with transcode">transcode</a> videos when using clusters but using the <a
href="http://www.dannytsang.co.uk/index.php/tag/transcode/" class="st_tag internal_tag" rel="tag" title="Posts tagged with transcode">Transcode</a> button worked fine. In the <a
href="http://www.dannytsang.co.uk/index.php/tag/cluster/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Cluster">Cluster</a> Control window everything was added fine but when the project started it failed at 0% on all chunks and audio parts.</p><p>To turn on cluster logging the cluster needs to be started with a log level. For example <code><a
href="http://www.dannytsang.co.uk/index.php/tag/dvdrip/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dvdrip">dvdrip</a>-master 2</code> where 2 is the log level where:</p><ul><li>1 &#8211; Basic information</li><li>2 &#8211; Job logging</li><li>3 &#8211; All</li></ul><p>It is best not to run the cluster in the background when using logging to see what is going wrong.</p><div
align="center"><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/01/dvdrip-error.png" rel="lightbox[3268]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/01/dvdrip-error-150x87.png" alt="" title="dvd::rip Error" width="150" height="87" class="aligncenter size-thumbnail wp-image-3272" /></a></div><p>The error I was getting was <strong>Warning: No <a
href="http://www.dannytsang.co.uk/index.php/tag/libxvidcore/" class="st_tag internal_tag" rel="tag" title="Posts tagged with libxvidcore">libxvidcore</a> <a
href="http://www.dannytsang.co.uk/index.php/tag/api/" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">API</a> 4 found</strong> To fix the issue install libxvidcore4: <code>sudo apt-get install libxvidcore4</code> Shutdown the cluster and exit dvd::rip and start again. This time it should not report the warning.</p><p><a
href="http://www.linuxquestions.org/questions/linux-software-2/dvd-rip-problem-334748/" target="_blank">DVD::RIP Problem</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/dvdrip/' rel='bookmark' title='dvd::rip'>dvd::rip</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/bash-man-command-not-found/' rel='bookmark' title='bash: man: command not found'>bash: man: command not found</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/waking-windows-7-controller-error/' rel='bookmark' title='Waking Windows 7 Controller Error'>Waking Windows 7 Controller Error</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/dvdrip-debugging-warning-no-libxvidcore-api-4-found/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Ubuntu LVM2 &#8211; Smart Storage</title><link>http://www.dannytsang.co.uk/index.php/ubuntu-lvm2/</link> <comments>http://www.dannytsang.co.uk/index.php/ubuntu-lvm2/#comments</comments> <pubDate>Fri, 05 Nov 2010 00:32:29 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[disk partition manager]]></category> <category><![CDATA[disk storage]]></category> <category><![CDATA[Gparted]]></category> <category><![CDATA[GUI]]></category> <category><![CDATA[hard disks]]></category> <category><![CDATA[logical volume management]]></category> <category><![CDATA[LVM]]></category> <category><![CDATA[partitions]]></category> <category><![CDATA[physical volumes]]></category> <category><![CDATA[Ubuntu]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3107</guid> <description><![CDATA[Overview There are plenty of exceptions where hardware and software abstractions are used to create modular and flexible designs in a modern OS. Examples can be seen from Microsoft&#8217;s .Net Framework to Virtualization. Logical Volume Management or LVM is no &#8230; <a
href="http://www.dannytsang.co.uk/index.php/ubuntu-lvm2/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/resizing-virtualbox-disk/' rel='bookmark' title='Resizing VirtualBox Disk'>Resizing VirtualBox Disk</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/w00t-3-hour-wait/' rel='bookmark' title='W00t! 3 Hour Wait'>W00t! 3 Hour Wait</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/my-performance-tweaks-to-ubuntu/' rel='bookmark' title='My Performance Tweaks To Ubuntu'>My Performance Tweaks To Ubuntu</a></li></ol>]]></description> <content:encoded><![CDATA[<h3>Overview</h3><p>There are plenty of exceptions where hardware and software abstractions are used to create modular and flexible designs in a modern OS. Examples can be seen from Microsoft&#8217;s .Net Framework to Virtualization.</p><p>Logical Volume Management or LVM is no exception. It allows the separation of physical disk <a
href="http://www.dannytsang.co.uk/index.php/tag/storage/" class="st_tag internal_tag" rel="tag" title="Posts tagged with storage">storage</a> devices to a software layer allowing for <a
href="http://www.dannytsang.co.uk/index.php/tag/partitions/" class="st_tag internal_tag" rel="tag" title="Posts tagged with partitions">partitions</a> to span across multiple disks to only appear as one drive to the user.</p><h3>What Is LVM</h3><p>LVM allows a volume to be resized with less dependency no physical <a
href="http://www.dannytsang.co.uk/index.php/tag/hard-disks/" class="st_tag internal_tag" rel="tag" title="Posts tagged with hard disks">hard disks</a>. In LVM, physical <a
href="http://www.dannytsang.co.uk/index.php/tag/hard-disks/" class="st_tag internal_tag" rel="tag" title="Posts tagged with hard disks">hard disks</a> are referred to as physical volumes of PV. Each hard disk may contain more than one volume just like a hard disk can be partitioned many times.</p><p>A Logical Volume (LV) is a software managed volume. This allows the LV to extend or contract in size as and when needed. As time goes on more disks can be added and the LV can expand to take advantage of the disk without referring to each new additional drive as a separate drive e.g in Windows world E:\ currently exists with 100GB with a new drive added, it must be mounted on another drive letter e.g F:\ with 200GB. Using LVM E:\ will remain as a drive but the second drive will be added to E:\ making it appear as though drive E:\ has 300 GB, 100 GB from the original drive and 200 GB from the new drive.</p><p>Similarly the drives can be removed from the LVM if the drive is to be removed or used for another purpose. Reducing the size is more dangerous than expanding one and also all the existing data needs to fit onto the remaining drive space.</p><p>LVM should be used from the start as it requires the disk to be formatted / partitioned. LVM can consist of one disk and more can be added later.</p><h3>History</h3><p>I have encountered LVMs when Fedora first came out but never really understood / utilized them. It did not help that <a
href="http://www.dannytsang.co.uk/index.php/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a> never had any user friendly way to configure them and <a
href="http://www.dannytsang.co.uk/index.php/tag/gparted/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Gparted">Gparted</a>, my preferred disk <a
href="http://www.dannytsang.co.uk/index.php/tag/partition/" class="st_tag internal_tag" rel="tag" title="Posts tagged with partition">partition</a> manager did not support LVM.</p><p>Fedora / Redhat had always supported LVM very well and now Ubuntu is starting to catch up. The GUI still has some way to go but it&#8217;s improving all the time.</p><p>LVM has also moved to version 2 with the Linux 2.6 kernel and is the version this article will document.</p><h3>Install LVM And Tools</h3><blockquote><p>The remainder of the article will document setting up and configuring LVM on a Ubuntu 10.04 system. LVM is used in other Linux distributions and the commands may be common across all platforms but some may be Ubuntu specific.</p></blockquote><ol><li>Install LVM and GUI configuration tool<br
/> <code>sudo apt-get install lvm2 system-config-lvm</code></li><li>Install a partition editor Gparted<br
/> <code>sudo apt-get install gparted</code></li></ol><h3><a
name="PreparingDiskForLVM">Preparing Disk For LVM</a></h3><ol><li>Ensure the hard disk / partition is in the machine. If not then shutdown the system, attach the disk and start the <a
href="http://www.dannytsang.co.uk/index.php/tag/computer/" class="st_tag internal_tag" rel="tag" title="Posts tagged with computer">computer</a> up again.</li><li>Start Gparted</li><p><code>System > Administration > Gparted</code></p><li>Select the disk in the upper right drop down list.</li><li>If it&#8217;s a new device a partition table needs to be created<br
/> <code>Device > Create partition table...</code><br
/> <a
href="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/Gparted-Create-Patition-Table.png" rel="lightbox[3107]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/Gparted-Create-Patition-Table-150x150.png" alt="" title="Gparted Create Patition Table" width="150" height="150" class="aligncenter size-thumbnail wp-image-3132" /></a></li><li>Create an unformatted partition<br
/> <code>Right click on the disk allocation > New</code><br
/> <a
href="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/Create-new-Partition.png" rel="lightbox[3107]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/Create-new-Partition-150x150.png" alt="" title="Create new Partition" width="150" height="150" class="aligncenter size-thumbnail wp-image-3160" /></a></li><li>Select <strong>unformatted</strong> as the <strong>File System</strong> and change the partition size if necessary / not using the whole disk. Leave the rest as is unless</li><li>Click OK to create the partition.</li><li>Note the partition number in the list below the graph. In the picture below this is <strong>/dev/sdb1</strong><br
/> <a
href="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/GParted-partitioned.png" rel="lightbox[3107]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/GParted-partitioned-150x150.png" alt="" title="GParted partitioned" width="150" height="150" class="aligncenter size-thumbnail wp-image-3133" /></a></li><li>Repeat above steps to prepare any other hard disks to be used in LVM.</li><li>Create / prepare the physical volume (hard disks)<br
/> <code>sudo pvcreate /dev/sdb1</code><br
/> where /dev/sdb1 is the partition. This can be obtained from Gparted. Multiple partitions can be created by adding each one after the other in pvcreate command. e.g <strong>sudo pvcreate /dev/sdb1 /dev/sda1 /dev/sdc1</strong></li></ol><h3>Creating Volume Groups</h3><ol><li>Create a Logical Volume group. Each group can have multiple volumes but a group will share the same physical volumes / hard disks. To create a LV, it must be associated with at least one physical volume.<br
/> <code>sudo vgcreate lvm1 /dev/sdb1</code><br
/> where lvm1 is my group name and /dev/sdb1 is the PV allocated to lvm1.</li></ol><h3>Create Logical Volumes</h3><ol><li>Create a volume in the group.<br
/> <code>sudo lvcreate -L931.5G  -nhome lvm1</code><br
/> where -L99G is the size of the volume. In this example it is 931.51 GB. Different units can be used such as MB. -n<strong>home</strong> is the name of the volume and lvm1 is the volume group.</li><li>Repeat above step to add as many volumes as you wish. Each volume is treated as a individual &#8220;drive&#8221; changing the volume name each time as a minimum.<p>Although Gparted now shows the partition as being formated to lvm2, it is actually not formatted. Just like creating a partition it does not format the drive for use, creating a volume so far has only created the space for the LV.</li><li>Format LV to EXT4 (any file system can be used)<br
/> <code>mount -t ext4 -j /dev/lvm1/home</code><br
/> Note that you specify the logical volume and not the physical volume. -t is the file format and -j means use journalling.</li></ol><h3>Mounting Logical Volumes</h3><ol><li>To mount the new volume it will be located in <code>/dev/[volume group]/[volume]</code> for example <code>/dev/lvm1/home</code> The full command to mount the drive would be <code>sudo mount /media/home /dev/lvm1/home</code></li></ol><h3>LVM GUI Tool</h3><p>As part of the install of LVM there was a GUI tool installed as well <strong>system-config-lvm</strong>. To start the tool go to <code>Applications > System Tools > Logical Volume Management</code><br
/> <a
href="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/LVM-Menu.png" rel="lightbox[3107]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/LVM-Menu-150x150.png" alt="" title="LVM Menu" width="150" height="150" class="aligncenter size-thumbnail wp-image-3136" /></a></p><p>So far in the example used in this post, one LVM group with one physical volume has been create. This can be seen in the LVM tool:<br
/> <a
href="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/Logical-Volume-Management-Single-Disk.png" rel="lightbox[3107]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/Logical-Volume-Management-Single-Disk-150x150.png" alt="" title="Logical Volume Management Single Disk" width="150" height="150" class="aligncenter size-thumbnail wp-image-3135" /></a></p><h3>Adding More Space to a Volume</h3><p>A new drive or partition would be needed to extend the volume group size. How the spare space is allocated to each volume can be managed separately.</p><ol><li>Prepare the new disk / partition as in the above sections depending on the state of the drives. See <a
href="#PreparingDiskForLVM">Preparing Disk For LVM</a></li><li>Add the newly prepared disk to the LVM group<br
/> <code>sudo vgextend lvm1 /dev/sdd1</code><br
/> where lvm1 is the group name and /dev/sdd1 is the partition name.<br
/> The disk has been added to the group however the free space have not been allocated to volumes yet.<br
/> <a
href="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/Logical-Volume-Management-2-Disk-Unallocated.png" rel="lightbox[3107]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/Logical-Volume-Management-2-Disk-Unallocated-150x150.png" alt="" title="Logical Volume Management- 2 Disk Unallocated" width="150" height="150" class="aligncenter size-thumbnail wp-image-3143" /></a></li><li>To allocate the free space to a volume it needs to be extended to take up the freespace:<br
/> <code>sudo lvextend -L+931.51G /dev/lvm1/home</code><br
/> where -L+931.51G is how much to allocate and /dev/lvm1/home is the volume to make bigger.<br
/> <a
href="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/Logical-Volume-Management-2-Disk.png" rel="lightbox[3107]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/Logical-Volume-Management-2-Disk-150x150.png" alt="" title="Logical Volume Management- 2 Disk" width="150" height="150" class="aligncenter size-thumbnail wp-image-3142" /></a></li></ol><h3>Removing Disk From LVM</h3><p>Ensure the data currently on the LVM can fit onto any disks that remain attached to a LVM group. It is advised that a <a
href="http://www.dannytsang.co.uk/index.php/tag/backup/" class="st_tag internal_tag" rel="tag" title="Posts tagged with backup">backup</a> is taken before continuing.</p><ol><li>Umount the LV<br
/> <code>sudo umount /dev/lvm1/home</code></li><li>Perform a check disk and fix any disk errors<br
/> <code>sudo e2fsck -f /dev/lvm1/home</code></li><li>Resize the volume<br
/> <code>lvreduce /dev/lvm1/home -L931.5G</code></li><li>Commit the resize to disk and not just the LVM<br
/> <code>sudo resize2fs /dev/lvm1/home</code></li><li>Remove partition from LVM group<br
/> <code>sudo pvmove /dev/sdd1</code></li></ol><h3>Migrating LVM</h3><p>If you need to format and reinstall your OS or move your LVM storage to a new machine it needs to be prepared for that prior to moving it.</p><ol><li>Unmount the volume<br
/> <code>sudo umount /dev/lvm1/home</code></li><li>Make the volume inactive<br
/> <code>vgchange -an lvm1</code></li><li>Export the group so that it can be read by another system<br
/> <code>sudo vgexport lvm1</code></li><li>Power down and remove / format system disk.</li><li>Import LVM<br
/> <code>sudo vgimport lvm1</code></li><li>Reactivate the group<br
/> <code>sudo vgchange -ay lvm1</code></li></ol><h3>Useful Commands</h3><ul><li> <code>sudo pvscan</code><br
/> Lists all the physical volumes attached to the machine with information such as size of disk and amount free. It will only list PVs of drives which have had the command pvcreate used on them.</li><li> <code>sudo pvdisplay</code><br
/> Displays a list of physical volumes with their information such as which LV group they belong to, if they have been allocated, etc/</li><li> <code>sudo lvscan</code><br
/> Lists all the volumes on the machine with their status.</li><li> <code>sudo lvdisplay</code><br
/> Sam as lvscan but with more information.</li></ul><div
align="center"></div><h3>Summary</h3><p>LVM is a very clean way to allow for volumes to be expanded without impacting current software or setups. It helps to alleviate problems when disk drives run out of space and is a bonus to allow drives to be kept rather than replaced. It is advised that the <a
href="http://www.dannytsang.co.uk/index.php/tag/process/" class="st_tag internal_tag" rel="tag" title="Posts tagged with process">process</a> is done at the beginning of an install to avoid migrating the data from a non-LVM disk to a LVM space. It took several hours to copy just under 1TB from one system to the other.</p> <a
href='http://www.dannytsang.co.uk/index.php/ubuntu-lvm2/gparted-create-patition-table/' title='Gparted Create Patition Table'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/Gparted-Create-Patition-Table-150x150.png" class="attachment-thumbnail" alt="Gparted Create Patition Table" title="Gparted Create Patition Table" /></a> <a
href='http://www.dannytsang.co.uk/index.php/ubuntu-lvm2/gparted-partitioned/' title='GParted partitioned'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/GParted-partitioned-150x150.png" class="attachment-thumbnail" alt="GParted partitioned" title="GParted partitioned" /></a> <a
href='http://www.dannytsang.co.uk/index.php/ubuntu-lvm2/gparted-selected-disk/' title='GParted Selected Disk'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/GParted-Selected-Disk-150x150.png" class="attachment-thumbnail" alt="GParted Selected Disk" title="GParted Selected Disk" /></a> <a
href='http://www.dannytsang.co.uk/index.php/ubuntu-lvm2/logical-volume-management-single-disk/' title='Logical Volume Management Single Disk'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/Logical-Volume-Management-Single-Disk-150x150.png" class="attachment-thumbnail" alt="Logical Volume Management Single Disk" title="Logical Volume Management Single Disk" /></a> <a
href='http://www.dannytsang.co.uk/index.php/ubuntu-lvm2/lvm-menu/' title='LVM Menu'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/LVM-Menu-150x150.png" class="attachment-thumbnail" alt="LVM Menu" title="LVM Menu" /></a> <a
href='http://www.dannytsang.co.uk/index.php/ubuntu-lvm2/logical-volume-management-2-disk/' title='Logical Volume Management- 2 Disk'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/Logical-Volume-Management-2-Disk-150x150.png" class="attachment-thumbnail" alt="Logical Volume Management- 2 Disk" title="Logical Volume Management- 2 Disk" /></a> <a
href='http://www.dannytsang.co.uk/index.php/ubuntu-lvm2/logical-volume-management-2-disk-unallocated/' title='Logical Volume Management- 2 Disk Unallocated'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/Logical-Volume-Management-2-Disk-Unallocated-150x150.png" class="attachment-thumbnail" alt="Logical Volume Management- 2 Disk Unallocated" title="Logical Volume Management- 2 Disk Unallocated" /></a> <a
href='http://www.dannytsang.co.uk/index.php/ubuntu-lvm2/create-new-partition/' title='Create new Partition'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/11/Create-new-Partition-150x150.png" class="attachment-thumbnail" alt="Create new Partition" title="Create new Partition" /></a><p><a
href="https://help.ubuntu.com/community/SettingUpLVM-WithoutACleanInstall" target="_blank">SettingUpLVM-WithoutACleanInstall</a></p><p><a
href="http://ubuntuforums.org/showthread.php?t=451605" target="_blank">How do i remove a disk from an LVM?</a></p><p><a
href="http://tldp.org/HOWTO/LVM-HOWTO/recipemovevgtonewsys.html" target="_blank">Moving a volume group to another system</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/resizing-virtualbox-disk/' rel='bookmark' title='Resizing VirtualBox Disk'>Resizing VirtualBox Disk</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/w00t-3-hour-wait/' rel='bookmark' title='W00t! 3 Hour Wait'>W00t! 3 Hour Wait</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/my-performance-tweaks-to-ubuntu/' rel='bookmark' title='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/ubuntu-lvm2/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>FreePBX &#8211; Common Voicemail Box</title><link>http://www.dannytsang.co.uk/index.php/freepbx-common-voicemail-box/</link> <comments>http://www.dannytsang.co.uk/index.php/freepbx-common-voicemail-box/#comments</comments> <pubDate>Wed, 18 Aug 2010 23:01:17 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[PBX]]></category> <category><![CDATA[Asterisk]]></category> <category><![CDATA[FreePBX]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[VMB]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=2977</guid> <description><![CDATA[Overview I have several extensions on my Asterisk / FreePBX box but currently only one landline. Ring groups solved the problem of one incoming call ringing multiple handsets but there was only one official solution to sharing voicemail. Voicemail Blasting &#8230; <a
href="http://www.dannytsang.co.uk/index.php/freepbx-common-voicemail-box/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/remote-extension-in-freepbx/' rel='bookmark' title='Remote Extension In FreePBX'>Remote Extension In FreePBX</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/siemens-gigaset-685ip-mini-review/' rel='bookmark' title='Siemens Gigaset 685IP Mini Review'>Siemens Gigaset 685IP Mini Review</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/linksys-spa3102-and-freepbx-on-ubuntu-10-04/' rel='bookmark' title='Linksys SPA3102 And FreePBX On Ubuntu 10.04'>Linksys SPA3102 And FreePBX On Ubuntu 10.04</a></li></ol>]]></description> <content:encoded><![CDATA[<h3>Overview</h3><p>I have several extensions on my <a
href="http://www.dannytsang.co.uk/index.php/tag/asterisk/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Asterisk">Asterisk</a> / <a
href="http://www.dannytsang.co.uk/index.php/tag/freepbx/" class="st_tag internal_tag" rel="tag" title="Posts tagged with FreePBX">FreePBX</a> box but currently only one landline. Ring groups solved the problem of one incoming call ringing multiple handsets but there was only one official solution to sharing voicemail.</p><h3>Voicemail Blasting (<a
href="http://www.dannytsang.co.uk/index.php/tag/vmb/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VMB">VMB</a>)</h3><p>VMB is a way of disseminating incoming voicemail to multiple voicemail boxes. For example someone lease a message on voicemail for one extension. When the person has finished leaving a message, VMB copies that message and puts it into designated extension voicemail boxes for other extensions to receive. The problem with this setup is that the voicemail may be heard from one extension and deleted but it still remains on others.</p><h3>Symbolic Links To The Rescue</h3><p>I found a neat trick to fool FreePBX / Asterisk to get multiple voicemail boxes pointing to one. The great point about this is that each extensions keeps most of their settings separate so things like password can be different for each extension but the messages are shared. This means one person can delete the message from one phone and another user will not see the message (maybe except in the trash).</p><h3>How To</h3><p>I have FreePBX running on a <a
href="http://www.dannytsang.co.uk/index.php/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a> 10.04 install. First thing is to create all the extensions and enable voicemail on all of them.</p><p>Identify the one extension which will be shared amongst all others e.g 200.</p><p>Go to <code>/var/spool/asterisk/voicemail/default</code> Check if there&#8217;s a folder with the extension number of your designated voicemail. If not leave a message on extension 200 and it should create one.</p><p>Remove all other extensions which should share the same inbox as extension 200, e.g 201 and 202 <code>sudo rm -rf 201</code> and replace 201 with 202 etc.</p><p>Switch user to the Asterisk user. This is needed because the original directories were &#8220;owned&#8221; by the Asterisk user. Once created also ensure the symbolic links have at least the same or more permissions as extension 200 (or the shared voicemail box) <code>sudo su asterisk</code></p><p>Create a symbolic link to 200 with the previously removed folder names <code>ln -s 200 201</code><code>ln -s 200 202</code></p><h3>Summary</h3><p>This is a cool trick which should be transparent to FreePBX / Asterisk unless they change the way voicemail works. <a
href="http://www.dannytsang.co.uk/index.php/tag/updates/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Updates">Updates</a> and modules should not see any difference because the symbolic links point to a real directory.</p><p>Also it is easy to revert any extension back to having their own voicemail box or even create multiple shared voicemail boxes by removing the sym link and creating a new one to point to another extension directory.</p><p><a
href="https://support.rhinoequipment.com/index.php?_m=knowledgebase&#038;_a=viewarticle&#038;kbarticleid=60">How to make multiple extensions use a common voicemail box</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/remote-extension-in-freepbx/' rel='bookmark' title='Remote Extension In FreePBX'>Remote Extension In FreePBX</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/siemens-gigaset-685ip-mini-review/' rel='bookmark' title='Siemens Gigaset 685IP Mini Review'>Siemens Gigaset 685IP Mini Review</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/linksys-spa3102-and-freepbx-on-ubuntu-10-04/' rel='bookmark' title='Linksys SPA3102 And FreePBX On Ubuntu 10.04'>Linksys SPA3102 And FreePBX On Ubuntu 10.04</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/freepbx-common-voicemail-box/feed/</wfw:commentRss> <slash:comments>1</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 &#8230; <a
href="http://www.dannytsang.co.uk/index.php/show-nautilus-as-text-in-ubuntu-10-04/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/sync-mozilla-thunderbird-using-dropbox/' rel='bookmark' title='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='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='My Windows 7 Shortcuts'>My Windows 7 Shortcuts</a></li></ol>]]></description> <content:encoded><![CDATA[<p>In the new <a
href="http://www.dannytsang.co.uk/index.php/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a> the <a
href="http://www.dannytsang.co.uk/index.php/tag/windows/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Windows">windows</a> manager <a
href="http://www.dannytsang.co.uk/index.php/tag/nautilus/" class="st_tag internal_tag" rel="tag" title="Posts tagged with nautilus">Nautilus</a> 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='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='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='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 &#8230; <a
href="http://www.dannytsang.co.uk/index.php/vncrdp-not-refreshing-on-ubuntu/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/ubuntu-710/' rel='bookmark' title='Ubuntu 7.10'>Ubuntu 7.10</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/re-discovering-linux/' rel='bookmark' title='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='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 <a
href="http://www.dannytsang.co.uk/index.php/tag/vnc/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VNC">VNC</a> Client to <a
href="http://www.dannytsang.co.uk/index.php/tag/remote-desktop/" class="st_tag internal_tag" rel="tag" title="Posts tagged with remote desktop">remote desktop</a> onto my <a
href="http://www.dannytsang.co.uk/index.php/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a> 10.04 I got the background and maybe even the <a
href="http://www.dannytsang.co.uk/index.php/tag/gnome-panel/" class="st_tag internal_tag" rel="tag" title="Posts tagged with gnome panel">Gnome panel</a> but the windows and programs were not appearing on the <a
href="http://www.dannytsang.co.uk/index.php/tag/screen/" class="st_tag internal_tag" rel="tag" title="Posts tagged with screen">screen</a>. 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='Ubuntu 7.10'>Ubuntu 7.10</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/re-discovering-linux/' rel='bookmark' title='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='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[PBX]]></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 &#8230; <a
href="http://www.dannytsang.co.uk/index.php/linksys-spa3102-and-freepbx-on-ubuntu-10-04/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/freepbx-common-voicemail-box/' rel='bookmark' title='FreePBX &#8211; Common Voicemail Box'>FreePBX &#8211; Common Voicemail Box</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/remote-extension-in-freepbx/' rel='bookmark' title='Remote Extension In FreePBX'>Remote Extension In FreePBX</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/freepbx-symlink-from-modules-failed/' rel='bookmark' title='FreePBX Symlink From Modules Failed'>FreePBX Symlink From Modules Failed</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 <a
href="http://www.dannytsang.co.uk/index.php/tag/computer/" class="st_tag internal_tag" rel="tag" title="Posts tagged with computer">computer</a> 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 Ubuntu 8.04. However once I had it all installed it wasn&#8217;t working 100%. I had issues with permissions and <a
href="http://www.dannytsang.co.uk/index.php/tag/freepbx/" class="st_tag internal_tag" rel="tag" title="Posts tagged with FreePBX">FreePBX</a> 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 <a
href="http://www.dannytsang.co.uk/index.php/tag/lts/" class="st_tag internal_tag" rel="tag" title="Posts tagged with LTS">LTS</a> 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. Ubuntu 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.dannytsang.co.uk/index.php/tag/firefox/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Firefox">Firefox</a>. These include group pickup to Parking Lots.</p><p>With FreePBX this sorts out the software side of my PBX.</p><h3><a
href="http://www.dannytsang.co.uk/index.php/tag/linksys/" class="st_tag internal_tag" rel="tag" title="Posts tagged with linksys">Linksys</a> 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 linux-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-linux-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-linux-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 Linux 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><a
href="http://www.dannytsang.co.uk/index.php/tag/mysqladmin/" class="st_tag internal_tag" rel="tag" title="Posts tagged with mysqladmin">mysqladmin</a> -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 <a
href="http://www.dannytsang.co.uk/index.php/tag/apache-server/" class="st_tag internal_tag" rel="tag" title="Posts tagged with apache server">Apache server</a><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 (<a
href="http://www.dannytsang.co.uk/index.php/tag/dnd/" class="st_tag internal_tag" rel="tag" title="Posts tagged with DND">DND</a>) 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
/> <a
href="http://www.dannytsang.co.uk/index.php/tag/port/" class="st_tag internal_tag" rel="tag" title="Posts tagged with port">port</a>=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 <a
href="http://www.dannytsang.co.uk/index.php/tag/dhcp/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dhcp">DHCP</a>. 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 <a
href="http://www.dannytsang.co.uk/index.php/tag/dhcp/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dhcp">DHCP</a> 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 Linux 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 Linux 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/freepbx-common-voicemail-box/' rel='bookmark' title='FreePBX &#8211; Common Voicemail Box'>FreePBX &#8211; Common Voicemail Box</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/remote-extension-in-freepbx/' rel='bookmark' title='Remote Extension In FreePBX'>Remote Extension In FreePBX</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/freepbx-symlink-from-modules-failed/' rel='bookmark' title='FreePBX Symlink From Modules Failed'>FreePBX Symlink From Modules Failed</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>18</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 &#8230; <a
href="http://www.dannytsang.co.uk/index.php/full-disk-mediatomb-hog/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/mediatomb-dlna-to-playstation-3/' rel='bookmark' title='MediaTomb DLNA To Playstation 3'>MediaTomb DLNA To Playstation 3</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/my-performance-tweaks-to-ubuntu/' rel='bookmark' title='My Performance Tweaks To Ubuntu'>My Performance Tweaks To Ubuntu</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/microsoft-publisher-2007-freezing-problems/' rel='bookmark' title='Microsoft Publisher 2007 Freezing Problems'>Microsoft Publisher 2007 Freezing Problems</a></li></ol>]]></description> <content:encoded><![CDATA[<p>For some reason <a
href="http://www.dannytsang.co.uk/index.php/tag/mediatomb/" class="st_tag internal_tag" rel="tag" title="Posts tagged with MediaTomb">MediaTomb</a> was out putting a lot of log statements in /var/log/<a
href="http://www.dannytsang.co.uk/index.php/tag/mediatomb/" class="st_tag internal_tag" rel="tag" title="Posts tagged with MediaTomb">mediatomb</a>.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.dannytsang.co.uk/index.php/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">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='MediaTomb DLNA To Playstation 3'>MediaTomb DLNA To Playstation 3</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/my-performance-tweaks-to-ubuntu/' rel='bookmark' title='My Performance Tweaks To Ubuntu'>My Performance Tweaks To Ubuntu</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/microsoft-publisher-2007-freezing-problems/' rel='bookmark' title='Microsoft Publisher 2007 Freezing Problems'>Microsoft Publisher 2007 Freezing Problems</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>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. &#8230; <a
href="http://www.dannytsang.co.uk/index.php/pdf-printer-in-ubuntu/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/setting-up-cups-print-server-on-ubuntu-804/' rel='bookmark' title='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='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='Microsoft Word Crashing Frequently'>Microsoft Word Crashing Frequently</a></li></ol>]]></description> <content:encoded><![CDATA[<p>It is really simple to add a <a
href="http://www.dannytsang.co.uk/index.php/tag/pdf/" class="st_tag internal_tag" rel="tag" title="Posts tagged with PDF">PDF</a> <a
href="http://www.dannytsang.co.uk/index.php/tag/printer/" class="st_tag internal_tag" rel="tag" title="Posts tagged with printer">printer</a> in <a
href="http://www.dannytsang.co.uk/index.php/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a> 9.10. A <a
href="http://www.dannytsang.co.uk/index.php/tag/pdf-printer/" class="st_tag internal_tag" rel="tag" title="Posts tagged with pdf printer">PDF printer</a> 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 <a
href="http://www.dannytsang.co.uk/index.php/tag/cups/" class="st_tag internal_tag" rel="tag" title="Posts tagged with CUPS">cups</a>-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='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='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='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> </channel> </rss>
