<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Danny Tsang &#187; Linux</title> <atom:link href="http://www.dannytsang.co.uk/index.php/category/linux/feed/" rel="self" type="application/rss+xml" /><link>http://www.dannytsang.co.uk</link> <description>Eats and spits code by day</description> <lastBuildDate>Tue, 31 Jan 2012 22:47:19 +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 <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> 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><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> &#8211; PBX 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 / <a
href="http://www.dannytsang.co.uk/index.php/tag/playstation-3/" class="st_tag internal_tag" rel="tag" title="Posts tagged with playstation 3">Playstation 3</a></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 analogue 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 CPU, RAM and <a
href="http://www.dannytsang.co.uk/index.php/tag/hdd/" class="st_tag internal_tag" rel="tag" title="Posts tagged with HDD">HDD</a> 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 <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></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>Backup user files &#8211; Music, pictures, etc</li><li>Backup settings &#8211; FreePBX, Gnome(possibly), fstab, apache 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>FreePBX MySQL Caller Lookup Source</title><link>http://www.dannytsang.co.uk/index.php/freepbx-mysql-caller-lookup-source/</link> <comments>http://www.dannytsang.co.uk/index.php/freepbx-mysql-caller-lookup-source/#comments</comments> <pubDate>Tue, 13 Dec 2011 00:01:39 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[PBX]]></category> <category><![CDATA[caller id]]></category> <category><![CDATA[FreePBX]]></category> <category><![CDATA[Gigaset]]></category> <category><![CDATA[MyISAM]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[siemens]]></category> <category><![CDATA[siemens gigaset]]></category> <category><![CDATA[sql]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=4106</guid> <description><![CDATA[Overview One of the reasons I switched to MySQL instead of using the built in phonebook was because the numbers weren&#8217;t matching the ones in the internal phonebook. The built in phonebook only allows numbers so international numbers with + &#8230; <a
href="http://www.dannytsang.co.uk/index.php/freepbx-mysql-caller-lookup-source/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><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/mysql-tuning/' rel='bookmark' title='MySQL Tuning'>MySQL Tuning</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>One of the reasons I switched to <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> instead of using the built in phonebook was because the numbers weren&#8217;t matching the ones in the internal phonebook. The built in phonebook only allows numbers so international numbers with + or numbers with hyphens cannot be matched to phonebook entries. Using a user defined <a
href="http://www.dannytsang.co.uk/index.php/tag/database/" class="st_tag internal_tag" rel="tag" title="Posts tagged with database">database</a> and query will solve these problems.</p><h3>Setup MySQL</h3><p>We need a schema and a table to store the phonebook and I&#8217;d suggest a new user with at least SELECT privileges. The script below creates a schema called <strong><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></strong> and a table called <strong>phonebook</strong>:<br
/> <code>--<br
/> -- Create schema freepbx<br
/> --</p><p>CREATE DATABASE IF NOT EXISTS freepbx;<br
/> USE freepbx;</p><p>--<br
/> -- Definition of table `freepbx`.`phonebook`<br
/> --</p><p>DROP TABLE IF EXISTS `freepbx`.`phonebook`;<br
/> CREATE TABLE  `freepbx`.`phonebook` (<br
/> `name` varchar(50) NOT NULL,<br
/> `number` varchar(20) NOT NULL,<br
/> `phone` varchar(10) DEFAULT NULL,<br
/> PRIMARY KEY (`name`,`number`)<br
/> ) ENGINE=MyISAM DEFAULT CHARSET=latin1;</code><br
/> <a
href='http://www.dannytsang.co.uk/wp-content/uploads/2011/09/phonebook.zip'>phonebook.zip</a></p><p>The table contains 3 fields:</p><ul><li>name &#8211; The name of the number</li><li>number &#8211; The matching phone number</li><li>phone &#8211; The type of phone number E.g mob</li></ul><h3>Add Contacts</h3><p>Run the following query to insert new contacts in the phonebook:<br
/> <code>insert freepbx.phonebook (name, number, phone) values ('Danny','123456','mob');</code><br
/> Replace Danny, 123456. mob with your own values. The name and number (the first 2 items in the values) are required and the phone (&#8216;mob in the example) is optional. When omitting the phone field run the following query instead:<br
/> <code>insert freepbx.phonebook (name, number) values ('Danny','123456');</code><br
/> The name and number combined must be unique otherwise it won&#8217;t create an entry in the database. See below for how it will be displayed on the phone / reports.</p><p>The Siemens S68H which comes with the Siemens <a
href="http://www.dannytsang.co.uk/index.php/tag/gigaset/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Gigaset">Gigaset</a> 685IP will display all the caller ID if it fits on the display but the text will &#8220;just go off the screen&#8221; if it does not, only display the first part of the name. The number is always displayed below the caller ID where possible.</p><h3>Setup FreePBX</h3><p>Log into FreePBX and go to <code>Tools Setup (tab) > Inbound Call Control > CallerID Lookup Sources</code> Click the <strong>Add CID Lookup Source</strong> button to add a new phonebook directory. Select <strong>MySQL</strong> from the <strong>Source type</strong> This will change the require informations on the page. Enter the following information:</p><blockquote><p>Source Description: MySQL<br
/> Source type: MySQL<br
/> Cache results: yes [tick]<br
/> Host: [server address]<br
/> Database: freepbx<br
/> Query: <code>SELECT CONCAT(name, IF(phone IS NOT NULL,CONCAT(' (', phone, ')'), '')) as cid FROM phonebook WHERE number like '[NUMBER]'</code><br
/> Username: [username]<br
/> Password: [password]</p></blockquote><p>Source description can be any name and it will be used a reference in other settings. The Host will typically be <em>localhost</em> unless the MySQL database is installed on a different machine.</p><p>The query will show <em>Danny (mob)</em> if the phone field is populated. The brackets are automatically inserted. If the phone field is empty (NULL in the database) it will just show the name <em>Danny</em></p><p>Press the <strong>Submit Changes</strong> button to save the new caller ID look up.</p><p>Go to <code>Setup (tab) > Inbound Call Control > Inbound <a
href="http://www.dannytsang.co.uk/index.php/tag/routes/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Routes">Routes</a></code> and select an inbound route which will use the new phonebook. Under the <strong>CID Lookup Source</strong> section select the phonebook called MySQL (or what ever it was named in the Source description) in the <strong>Source</strong> dropdown.</p><p>Press the <strong>Submit</strong> button to save the change and repeat for all other inbound routes which will use the MySQL phonebook.</p><p>Apply the changes for all the settings to take hold.</p><h3>Summary</h3><p>Having MySQL as a source makes it a lot more flexible and customizable. Also it can be linked to an existing directory. More technical knowledge is required to manage the contacts but that comes with the flexibility.</p><p><a
href="http://samyantoun.50webs.com/asterisk/freepbx/calleridlookup/" target="_blank">Setup MySQL CallerID Lookup Source on FreePBX</a></p><p>Related posts:<ol><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/mysql-tuning/' rel='bookmark' title='MySQL Tuning'>MySQL Tuning</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-mysql-caller-lookup-source/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Resizing VirtualBox Disk</title><link>http://www.dannytsang.co.uk/index.php/resizing-virtualbox-disk/</link> <comments>http://www.dannytsang.co.uk/index.php/resizing-virtualbox-disk/#comments</comments> <pubDate>Fri, 18 Nov 2011 10:29:00 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[disk space]]></category> <category><![CDATA[Gparted]]></category> <category><![CDATA[ISO]]></category> <category><![CDATA[SATA]]></category> <category><![CDATA[storage]]></category> <category><![CDATA[UUID]]></category> <category><![CDATA[virtual disk]]></category> <category><![CDATA[virtual machine]]></category> <category><![CDATA[virtualbox]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=4189</guid> <description><![CDATA[I ran out of disk space on my virtual machine and needed more space. I did not want to create a new disk and install from scratch but VirtualBox does not have any GUI tools which would resize a disk &#8230; <a
href="http://www.dannytsang.co.uk/index.php/resizing-virtualbox-disk/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/formatting-a-floppy-disk-in-linux/' rel='bookmark' title='Formatting A Floppy Disk In Linux'>Formatting A Floppy Disk In Linux</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-lvm2/' rel='bookmark' title='Ubuntu LVM2 &#8211; Smart Storage'>Ubuntu LVM2 &#8211; Smart Storage</a></li></ol>]]></description> <content:encoded><![CDATA[<p>I ran out of disk space on my virtual machine and needed more space. I did not want to create a new disk and install from scratch but <a
href="http://www.dannytsang.co.uk/index.php/tag/virtualbox/" class="st_tag internal_tag" rel="tag" title="Posts tagged with virtualbox">VirtualBox</a> does not have any GUI tools which would resize a disk easily.</p><ol><li>Create a new disk which is larger than the original</li><li>Attach it to the <a
href="http://www.dannytsang.co.uk/index.php/tag/vm/" class="st_tag internal_tag" rel="tag" title="Posts tagged with vm">VM</a></li><li>Download <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> Live CD <a
href="http://www.dannytsang.co.uk/index.php/tag/iso/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ISO">ISO</a> file from <a
href="http://gparted.sourceforge.net/livecd.php" target="_blank">http://gparted.sourceforge.net/livecd.php</a></li><li>&#8220;Insert&#8221; the CD into the virtual machine by selecting the Gparted Live ISO file downloaded in the previous step</li><li>Boot the VM and select to boot from CD</li><li>Follow the onscreen prompt to boot Gparted Live in X (GUI) mode</li><li>Gparted should start after it has booted. Note the disks path of the small (source) and larger (destination) drives</li><li>Enter the following command to copy from one drive to the other:<code>dd if=/dev/sda of=/dev/sdb</code> where /dev/sda is the source and /dev/sdb is the destination. This will take a while to finish</li><li>Refresh Gparted and the new drive will have <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> and data matching the old drive</li><li>Move and resize the partitions</li><li>Double click on the <strong>Exit</strong> button on the desktop and select <strong>Shutdown</strong></li><li>Go back to the <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> settings for the VM and re-arrange the disk <a
href="http://www.dannytsang.co.uk/index.php/tag/sata/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SATA">SATA</a> <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> in the Attributes section.</li><li>Change the SATA port so that the new drive is on the port the old drive was on. This requires assigning the old drive to a third port, change the new drive to the old port and change the old drive port to the old new drive port</li><li>Save the changes and boot the VM</li></ol><p>If any of the partitions were deleted and re-created the UUID needs to be updated. See <a
href="http://www.dannytsang.co.uk/?p=2035" title="Replace /dev/xxx With UUID">Replace /dev/xxx With UUID</a></p><p>Ensure the new disk boots before detaching the old drive.</p><p><a
href="https://forums.virtualbox.org/viewtopic.php?t=10348" target="_blank">increase size of virtual disk</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/formatting-a-floppy-disk-in-linux/' rel='bookmark' title='Formatting A Floppy Disk In Linux'>Formatting A Floppy Disk In Linux</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-lvm2/' rel='bookmark' title='Ubuntu LVM2 &#8211; Smart Storage'>Ubuntu LVM2 &#8211; Smart Storage</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/resizing-virtualbox-disk/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-11-10/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu 11.10">Ubuntu 11.10</a> 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>Bash Reverse Search</title><link>http://www.dannytsang.co.uk/index.php/bash-reverse-search/</link> <comments>http://www.dannytsang.co.uk/index.php/bash-reverse-search/#comments</comments> <pubDate>Mon, 17 Oct 2011 23:01:43 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Authentication]]></category> <category><![CDATA[bash]]></category> <category><![CDATA[bash shell]]></category> <category><![CDATA[shell]]></category> <category><![CDATA[Yubico]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=4185</guid> <description><![CDATA[A cool little tip when using Bash shell is the reverse search in the shell history. If your looking for a previous command hit the key combo [ctrl + r] and the prompt changes to (reverse-i-search) Type in the command &#8230; <a
href="http://www.dannytsang.co.uk/index.php/bash-reverse-search/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/setting-default-linux-shell/' rel='bookmark' title='Setting Default Linux Shell'>Setting Default Linux Shell</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/linux-terminal-not-auto-completing/' rel='bookmark' title='Linux Terminal Not Auto-completing'>Linux Terminal Not Auto-completing</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></ol>]]></description> <content:encoded><![CDATA[<p>A cool little tip when using <a
href="http://www.dannytsang.co.uk/index.php/tag/bash/" class="st_tag internal_tag" rel="tag" title="Posts tagged with bash">Bash</a> <a
href="http://www.dannytsang.co.uk/index.php/tag/shell/" class="st_tag internal_tag" rel="tag" title="Posts tagged with shell">shell</a> is the reverse search in the <a
href="http://www.dannytsang.co.uk/index.php/tag/shell/" class="st_tag internal_tag" rel="tag" title="Posts tagged with shell">shell</a> history.</p><p>If your looking for a previous <a
href="http://www.dannytsang.co.uk/index.php/tag/command/" class="st_tag internal_tag" rel="tag" title="Posts tagged with command">command</a> hit the key combo <code>[ctrl + r]</code> and the prompt changes to <strong>(reverse-i-search)</strong> Type in the command and it will a list of matching commands. Press enter to run the previous command that is listed.</p><p><a
href="http://hak5.org/episodes/hak5-1007" target="_blank">Hak5 1007 – Yubico and the future of authentication</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/setting-default-linux-shell/' rel='bookmark' title='Setting Default Linux Shell'>Setting Default Linux Shell</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/linux-terminal-not-auto-completing/' rel='bookmark' title='Linux Terminal Not Auto-completing'>Linux Terminal Not Auto-completing</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></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/bash-reverse-search/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Security Holes &amp; Backdoors In FreePBX</title><link>http://www.dannytsang.co.uk/index.php/security-holes-backdoors-in-freepbx/</link> <comments>http://www.dannytsang.co.uk/index.php/security-holes-backdoors-in-freepbx/#comments</comments> <pubDate>Wed, 21 Sep 2011 16:20:52 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networking]]></category> <category><![CDATA[PBX]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Software]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=4138</guid> <description><![CDATA[I found a chilling article by chance the consequence was extremely bad! It seems security was not high on the agenda when FreePBX was initially developed and the developers had built some default and backdoors into a system for easy &#8230; <a
href="http://www.dannytsang.co.uk/index.php/security-holes-backdoors-in-freepbx/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/remove-ubuntu-keyring-password/' rel='bookmark' title='Remove Ubuntu Keyring Password'>Remove Ubuntu Keyring Password</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-common-voicemail-box/' rel='bookmark' title='FreePBX &#8211; Common Voicemail Box'>FreePBX &#8211; Common Voicemail Box</a></li></ol>]]></description> <content:encoded><![CDATA[<p>I found a chilling article by chance the consequence was extremely bad!</p><p>It seems <a
href="http://www.dannytsang.co.uk/index.php/tag/security/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Security">security</a> was not high on the agenda when <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> was initially developed and the developers had built some default and backdoors into a <a
href="http://www.dannytsang.co.uk/index.php/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with system">system</a> for easy access. Whilst I think this is a terrible idea, it doesn&#8217;t seem like the project has ever cleansed it of all of these developer friendly holes (turned security issues). The article on <a
href="http://nerdvittles.com/?p=737" target="_blank">Nerd Vittles</a> gives a full account of the issue and the username:<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> that were used during the development. They are as follows:</p><blockquote><p>admin:admin<br
/> admin:password<br
/> admin:passworm<br
/> maint:admin<br
/> maint:maint<br
/> maint:password<br
/> maint:passworm<br
/> wwwadmin:password<br
/> wwwadmin:wwwadmin<br
/> wwwadmin:admin<br
/> asteriskuser:eLaStIx.asteriskuser.2oo7</p></blockquote><p>The above format is username:password and to test them just go to the administration page of FreePBX http://[<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>]/admin e.g http://www.dannytsang.co.uk/admin</p><p>I do not 100% agree with the starting from scratch with a fresh install because some people may have taken extra precautions (such as myself) so fixing the issue won&#8217;t be as bad as stated. There&#8217;s also a <a
href="http://nerdvittles.com/index.php?p=580" target="_blank">security primer</a> on the same site which will help with securing FreePBX. The problem is the article doesn&#8217;t specifically state how to fix it except to change the default passwords? How? Also the post could go through or link how to backup the existing install so that it&#8217;s not 100% lose. I&#8217;m not complaining but more like constructive criticism because I&#8217;m in that boat.</p><p>Some of the techniques to secure web <a
href="http://www.dannytsang.co.uk/index.php/tag/servers/" class="st_tag internal_tag" rel="tag" title="Posts tagged with servers">servers</a> and Ubuntu (if FreePBX is running on Ubuntu) will apply to FreePBX and I may post more articles to help secure FreePBX.</p><p><a
href="http://automation.binarysage.net/?p=1404" target="_blank">News: FreePBX/Asterisk Security Flaw</a></p><p><a
href="http://nerdvittles.com/?p=737" target="_blank">FreePBX Backdoor Passwords Pose Asterisk Security Threat</a></p><p><a
href="http://nerdvittles.com/index.php?p=580" target="_blank">Avoiding the $100,000 Phone Bill: A Primer on Asterisk Security</a></p><p><a
href="http://www.dannytsang.co.uk/?p=3594" title="Apache 2 Hardening Tips">Apache 2 Hardening Tips</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/remove-ubuntu-keyring-password/' rel='bookmark' title='Remove Ubuntu Keyring Password'>Remove Ubuntu Keyring Password</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-common-voicemail-box/' rel='bookmark' title='FreePBX &#8211; Common Voicemail Box'>FreePBX &#8211; Common Voicemail Box</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/security-holes-backdoors-in-freepbx/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 remote <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>. After a reboot, in order to gain remote <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> 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 <a
href="http://www.dannytsang.co.uk/index.php/tag/terminal/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Terminal">terminal</a>.</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 <a
href="http://www.dannytsang.co.uk/index.php/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with system">system</a> keyring.</p><p>To disable the password go to <code>Applications > Accessories > Passwords and Encryption 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 <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></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/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Asus">Asus</a> 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 not even boot from the HDD. Time for a replacement!</p><h3>Why Have A <a
href="http://www.dannytsang.co.uk/index.php/tag/laptop/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Laptop">Laptop</a> 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 <a
href="http://www.dannytsang.co.uk/index.php/tag/keyboard/" class="st_tag internal_tag" rel="tag" title="Posts tagged with keyboard">keyboard</a> 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 <a
href="http://www.dannytsang.co.uk/index.php/tag/microsoft/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Microsoft">Microsoft</a>&#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>Acer <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 D255E (Intel N455)</h3><p>After a long and hard search to find a Linux compatible <a
href="http://www.dannytsang.co.uk/index.php/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with system">system</a>, 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 Atom N255 processor. Then came the D255E which has the Intel Atom 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 backup 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 recovery partition on their drive. Also the package did not include any restore media so if you break your Windows 7 Starter and your recovery 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 <a
href="http://www.dannytsang.co.uk/index.php/tag/iso/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ISO">ISO</a> out.</p><h3>Installing Ubuntu 11.04</h3><p>I created a bootable Ubuntu 11.04 USB 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 <a
href="http://www.dannytsang.co.uk/index.php/tag/shell/" class="st_tag internal_tag" rel="tag" title="Posts tagged with shell">shell</a> 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>Netstat By Port</title><link>http://www.dannytsang.co.uk/index.php/netstat-by-port/</link> <comments>http://www.dannytsang.co.uk/index.php/netstat-by-port/#comments</comments> <pubDate>Tue, 16 Aug 2011 23:03:18 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[bind]]></category> <category><![CDATA[netstat]]></category> <category><![CDATA[port]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3886</guid> <description><![CDATA[netstat -tulpn&#124; grep :80 where 80 is the port number Apache Address already in use: make_sock: could not bind to port 80 or 443 error and solution Related posts: O2 Blocks Port 25 SSH On Multiple Ports Enabling Remote Access &#8230; <a
href="http://www.dannytsang.co.uk/index.php/netstat-by-port/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/o2-blocks-port-25/' rel='bookmark' title='O2 Blocks Port 25'>O2 Blocks Port 25</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/enabling-remote-access-to-mysql/' rel='bookmark' title='Enabling Remote Access To MySQL'>Enabling Remote Access To MySQL</a></li></ol>]]></description> <content:encoded><![CDATA[<p><code><a
href="http://www.dannytsang.co.uk/index.php/tag/netstat/" class="st_tag internal_tag" rel="tag" title="Posts tagged with netstat">netstat</a> -tulpn| grep :80</code> where 80 is the <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> number</p><p><a
href="http://www.cyberciti.biz/faq/apachehttpdaddress-already-in-use-make_sock-could-not-bind-to-port-80-or-443/" target="_blank">Apache Address already in use: make_sock: could not bind to port 80 or 443 error and solution</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/o2-blocks-port-25/' rel='bookmark' title='O2 Blocks Port 25'>O2 Blocks Port 25</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/enabling-remote-access-to-mysql/' rel='bookmark' title='Enabling Remote Access To MySQL'>Enabling Remote Access To MySQL</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/netstat-by-port/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/dos/" class="st_tag internal_tag" rel="tag" title="Posts tagged with DOS">dos</a>2<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> (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>2<a
href="http://www.dannytsang.co.uk/index.php/tag/dos/" class="st_tag internal_tag" rel="tag" title="Posts tagged with DOS">dos</a>) 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 <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> <a
href="http://www.dannytsang.co.uk/index.php/tag/command/" class="st_tag internal_tag" rel="tag" title="Posts tagged with command">command</a> 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>Linux &#8211; List Open Ports</title><link>http://www.dannytsang.co.uk/index.php/linux-list-open-ports/</link> <comments>http://www.dannytsang.co.uk/index.php/linux-list-open-ports/#comments</comments> <pubDate>Wed, 20 Jul 2011 20:11:02 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networking]]></category> <category><![CDATA[netstat]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3720</guid> <description><![CDATA[Command to list all the ports that are open / listening for incoming traffic: $netstat -a &#124; egrep 'Proto&#124;LISTEN' Related posts: SSH On Multiple Ports Ubuntu 10.04 Firewall (UFW) Basics Netstat By Port
Related posts:<ol><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/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/netstat-by-port/' rel='bookmark' title='Netstat By Port'>Netstat By Port</a></li></ol>]]></description> <content:encoded><![CDATA[<p><a
href="http://www.dannytsang.co.uk/index.php/tag/command/" class="st_tag internal_tag" rel="tag" title="Posts tagged with command">Command</a> to list all the <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> that are open / listening for incoming traffic:<br
/> <code>$<a
href="http://www.dannytsang.co.uk/index.php/tag/netstat/" class="st_tag internal_tag" rel="tag" title="Posts tagged with netstat">netstat</a> -a | egrep 'Proto|LISTEN'</code></p><p>Related posts:<ol><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/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/netstat-by-port/' rel='bookmark' title='Netstat By Port'>Netstat By Port</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/linux-list-open-ports/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Synergy (Project) Windows To Windows</title><link>http://www.dannytsang.co.uk/index.php/synergy-project-windows-to-windows/</link> <comments>http://www.dannytsang.co.uk/index.php/synergy-project-windows-to-windows/#comments</comments> <pubDate>Tue, 19 Jul 2011 23:01:03 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[client]]></category> <category><![CDATA[keyboard]]></category> <category><![CDATA[monitor]]></category> <category><![CDATA[mouse]]></category> <category><![CDATA[server]]></category> <category><![CDATA[Synergy]]></category> <category><![CDATA[synergy software]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3682</guid> <description><![CDATA[Overview It&#8217;s been a while since I have used a &#8220;stable&#8221; software which almost made me tear my hair out! As good as the concept of Synergy is the execution could have been better. All credit to the software and &#8230; <a
href="http://www.dannytsang.co.uk/index.php/synergy-project-windows-to-windows/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/logitech-g15-and-mx-revolution/' rel='bookmark' title='Logitech G15 and MX Revolution'>Logitech G15 and MX Revolution</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/numpad-not-working-under-gnome/' rel='bookmark' title='Numpad not working under Gnome'>Numpad not working under Gnome</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/keyboard/' rel='bookmark' title='Keyboard'>Keyboard</a></li></ol>]]></description> <content:encoded><![CDATA[<h3>Overview</h3><p>It&#8217;s been a while since I have used a &#8220;stable&#8221; software which almost made me tear my hair out! As good as the concept of Synergy is the execution could have been better. All credit to the software and it&#8217;s contributors/team for making it usable.</p><p>Synergy is a software that allows more than one machine share a <a
href="http://www.dannytsang.co.uk/index.php/tag/keyboard/" class="st_tag internal_tag" rel="tag" title="Posts tagged with keyboard">keyboard</a> and mouse. Just like having multiple monitors the mouse cursor will scroll off the edge of one <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> say the <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> and onto the other like a <a
href="http://www.dannytsang.co.uk/index.php/tag/laptop/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Laptop">laptop</a>.</p><h3>Features</h3><p>The best way to describe Synergy is the pictures from their website:<br
/> <img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Synergy.jpg" alt="" title="Synergy" width="548" height="200" class="aligncenter size-full wp-image-3689" /><br
/> The software is cross platform so the keyboard and mouse can be shared with Windows, Linux and Mac computer all at the same time. In this post however I will be setting it up with 2 Windows machines.</p><p>Synergy also can share clipboards too so copying from computer A can be pasted on computer B.</p><p>The software uses 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>-client model so the computer with the keyboard and mouse that is to be shared runs as 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> and all remaining computers are classed as clients. If a client has a connected keyboard and mouse, it can still operate them independently of 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> but the client keyboard and mouse cannot control 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> &#8211; it&#8217;s a one way thing.</p><p>I will be using the Synergy setup as the example where The server is in the middle and 2 clients are either side of it.</p><h3>Windows Server</h3><p>Download and install the Synergy software. At the time I opted for the stable version which was 1.3.6. There are 32 and 64 bit versions so install the correct one for server. Clients can have different bit version to the software and vice-versa.</p><p><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Synergy-Client.png" rel="lightbox[3682]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Synergy-Client-150x150.png" alt="" title="Synergy Client" width="150" height="150" class="aligncenter size-thumbnail wp-image-3685" /></a><br
/> Once installed, start the software and a very basic window should appear. Change the selection option from <strong>Use another computer&#8217;s shared keyboard and mouse (client)</strong> to <strong>Share this computer&#8217;s keyboard and mouse (server)</strong>.</p><p><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Server-Screen-Configuration.png" rel="lightbox[3682]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Server-Screen-Configuration-150x150.png" alt="" title="Server Screen Configuration" width="150" height="150" class="aligncenter size-thumbnail wp-image-3702" /></a><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Client1-Screen-Configuration.png" rel="lightbox[3682]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Client1-Screen-Configuration-150x150.png" alt="" title="Client1 Screen Configuration" width="150" height="150" class="aligncenter size-thumbnail wp-image-3700" /></a><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Client2-Screen-Configuration.png" rel="lightbox[3682]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Client2-Screen-Configuration-150x150.png" alt="" title="Client2 Screen Configuration" width="150" height="150" class="aligncenter size-thumbnail wp-image-3701" /></a><br
/> Click on the <strong>Configure&#8230;</strong> button to open up a new dialogue box. This window sets the computers (monitors really) and their orientation. First, add the server computer to top list using the <strong>+</strong> button. It is recommended the Screen Name should be the same as the computer name found in <code>(My) Computer > (right click) Properties</code> and the <strong>Computer name:</strong> is the name of the computer.</p><p>Leave Aliases as blank (empty).</p><p>Leave Options as all unticked and only tick them if there are issues with the stated keys.</p><p>Leave Modifiers as is or change according to preference. This may be useful for different operating systems.</p><p>Dead Corners prevents the cursor from jumping from one screen to the next. This may happen when using features such as expose on the Mac where moving the mouse to a designated corner will trigger something. Leave this unticked for now.</p><p>The next step is to link the computers together. This tells Synergy how the computers are positioned and which computer to go to when the mouse moves to the edge. It can be confusing at first but it means the screens can be linked in a series or in a circle. Always leaving the % of the screen unless the screens are very different. Working from left to right  Select <strong>right</strong>, <strong>Client1</strong>, <strong>Server</strong> in the dropdown boxes. The line should read something along the lines of <em>&#8220;of the <strong>right</strong> (part of the screen) of <strong>Client1</strong> goes to <strong>Server</strong>&#8220;</em> so the right edge on Client one links to the Server. Click the + button below to add the link and ready for a new link.</p><p><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Client1-Link.png" rel="lightbox[3682]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Client1-Link-150x150.png" alt="" title="Client1 Link" width="150" height="150" class="aligncenter size-thumbnail wp-image-3699" /></a><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/All-Links.png" rel="lightbox[3682]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/All-Links-150x150.png" alt="" title="All Links" width="150" height="150" class="aligncenter size-thumbnail wp-image-3698" /></a></p><p>Add the following to join the server to client1, server to client2 and client 2 to server (see above screenshot).</p><p>Click OK to close the dialogue box.</p><p><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Advanced-Options.png" rel="lightbox[3682]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Advanced-Options-150x150.png" alt="" title="Advanced Options" width="150" height="150" class="aligncenter size-thumbnail wp-image-3697" /></a><br
/> Click on the <strong>Advanced&#8230;</strong> button. This is where you specify which screen belongs to this computer. In this case the screen name should be <strong>Server</strong>. Either change or note down the <strong>Port</strong> and ensure it is open on the computer. Click OK to save and close.</p><p>Next is to register the program to start automatically by clicking on the <strong>AutoStart&#8230;</strong> button. Read and chose the relevant startup option preferred. I would leave it turned off for now because enabling it stopped it from working. It can be uninstalled but it does required Synergy to be restarted (don&#8217;t know why it can&#8217;t start the server). Close the dialogue box after.</p><p>Don&#8217;t bother with Test because it was broken I tried it. Go straight to Start button and the server is up and running if there is the Synergy icon in the tray.</p><h3>Windows Client</h3><p><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Synergy-Client.png" rel="lightbox[3682]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Synergy-Client-150x150.png" alt="" title="Synergy Client" width="150" height="150" class="aligncenter size-thumbnail wp-image-3685" /></a><br
/> Startup Synergy but this time leave it on <strong>User another computer’s shared keyboard and mouse (client)</strong> and enter the IP or computer name of the server machine.</p><p>Click on the Advanced&#8230; button and enter the screen associated with the client. So on Client 1 enter Client1 and Client 2 should be Client2.</p><p>Next click Start and it should be connected to the server!</p><h3>Limitations</h3><p>It&#8217;s mainly nice to have features but it&#8217;s still worth noting that:</p><ul><li>Clipboard can only share text. I tried images to files but it did not work.</li><li>Dragging files from one screen/computer to another fails. It prevents the cursor from jumping screens whilst dragging something.</li><li>Synergy doesn&#8217;t work when the computer is locked. I don&#8217;t have a problem with this limitation on security grounds. This also applies to the first login of each computer.</li><li>High <a
href="http://www.dannytsang.co.uk/index.php/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with system">system</a> usage / process freezes prevents the mouse from moving to the other computers. This is reasonable limitation because Synergy does not have enough resources to process the mouse move.</li><li>Network Dependent &#8211; If the network is down, then the software will not be able to communicate with each other. This may also apply to unstable networks.</li></ul><h3>Problems</h3><p>The UI can be confusing. For example I created a link for a computer, pressed the + button to add another and then OK&#8217;d it only to find it does not added it to the list unless you press the + button. Trying to remove a computer screen from the list caused Synergy to crash only to find it restoring to the last successful state. I am now confused as to how to remove them! Also the computer the aliases must match the ones typed on the server or it will error out.</p><p>A major issue I had with it was the Test function. Every time I tried it, it would either crash or complain it could not connect depending if it was the server or client. This made me go round and round trying different things only to find pressing start on client and server just worked (more or less).</p><p>It still prints out a message stating it&#8217;s a unstable software even though I&#8217;m using the stable version listed their site (64bit only maybe?).</p><p>I have noticed a problem where the clipboard is not being passed back and forth at times. Also the scroll wheel only works intermittently (more often not) which is very frustrating!</p><p>On <a
href="http://www.dannytsang.co.uk/index.php/tag/windows-7/" class="st_tag internal_tag" rel="tag" title="Posts tagged with windows 7">Windows 7</a> client, the cursor centers to the middle of the screen. In a full screen application such as Windows Media Player, the cursor stays hidden.</p><p>It&#8217;s an understatement to say there are polish needed. Currently it works for what I need and hopefully it will improve over time.</p><h3>Summary</h3><p>The motion is very smooth and seamless. The basic functionality is there but can be improved. It&#8217;s a good solution for controller 2 or more computers via one keyboard and mouse. The best part of it is the cross platform even if I do not use it.</p> <a
href='http://www.dannytsang.co.uk/index.php/synergy-project-windows-to-windows/synergy-client/' title='Synergy Client'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Synergy-Client-150x150.png" class="attachment-thumbnail" alt="Synergy Client" title="Synergy Client" /></a> <a
href='http://www.dannytsang.co.uk/index.php/synergy-project-windows-to-windows/synergy-server/' title='Synergy Server'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Synergy-Server-150x150.png" class="attachment-thumbnail" alt="Synergy Server" title="Synergy Server" /></a> <a
href='http://www.dannytsang.co.uk/index.php/synergy-project-windows-to-windows/synergy/' title='Synergy'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Synergy-150x150.jpg" class="attachment-thumbnail" alt="Synergy" title="Synergy" /></a> <a
href='http://www.dannytsang.co.uk/index.php/synergy-project-windows-to-windows/advanced-options/' title='Advanced Options'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Advanced-Options-150x150.png" class="attachment-thumbnail" alt="Advanced Options" title="Advanced Options" /></a> <a
href='http://www.dannytsang.co.uk/index.php/synergy-project-windows-to-windows/all-links/' title='All Links'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/All-Links-150x150.png" class="attachment-thumbnail" alt="All Links" title="All Links" /></a> <a
href='http://www.dannytsang.co.uk/index.php/synergy-project-windows-to-windows/client1-link/' title='Client1 Link'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Client1-Link-150x150.png" class="attachment-thumbnail" alt="Client1 Link" title="Client1 Link" /></a> <a
href='http://www.dannytsang.co.uk/index.php/synergy-project-windows-to-windows/client1-screen-configuration/' title='Client1 Screen Configuration'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Client1-Screen-Configuration-150x150.png" class="attachment-thumbnail" alt="Client1 Screen Configuration" title="Client1 Screen Configuration" /></a> <a
href='http://www.dannytsang.co.uk/index.php/synergy-project-windows-to-windows/client2-screen-configuration/' title='Client2 Screen Configuration'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Client2-Screen-Configuration-150x150.png" class="attachment-thumbnail" alt="Client2 Screen Configuration" title="Client2 Screen Configuration" /></a> <a
href='http://www.dannytsang.co.uk/index.php/synergy-project-windows-to-windows/server-screen-configuration/' title='Server Screen Configuration'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Server-Screen-Configuration-150x150.png" class="attachment-thumbnail" alt="Server Screen Configuration" title="Server Screen Configuration" /></a><p><a
href="http://synergy-foss.org/">Synergy</a></p><p><a
href="http://lifehacker.com/254648/how-to-control-multiple-computers-with-a-single-keyboard-and-mouse">How to Control Multiple Computers with a Single Keyboard and Mouse</a></p><p><a
href="http://synergy2.sourceforge.net/trouble.html">Synergy Troubleshooting</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/logitech-g15-and-mx-revolution/' rel='bookmark' title='Logitech G15 and MX Revolution'>Logitech G15 and MX Revolution</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/numpad-not-working-under-gnome/' rel='bookmark' title='Numpad not working under Gnome'>Numpad not working under Gnome</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/keyboard/' rel='bookmark' title='Keyboard'>Keyboard</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/synergy-project-windows-to-windows/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>FreePBX Symlink From Modules Failed</title><link>http://www.dannytsang.co.uk/index.php/freepbx-symlink-from-modules-failed/</link> <comments>http://www.dannytsang.co.uk/index.php/freepbx-symlink-from-modules-failed/#comments</comments> <pubDate>Mon, 11 Jul 2011 23:01:30 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[PBX]]></category> <category><![CDATA[FreePBX]]></category> <category><![CDATA[Symlink]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=2930</guid> <description><![CDATA[Overview I recently upgraded FreePBX from 2.7.1 to 2.8 and from 2.8 to 2.9 the upgrade went OK except for a minor problem where the symbolic link is broken. Whilst this did not cause any problems in terms of the &#8230; <a
href="http://www.dannytsang.co.uk/index.php/freepbx-symlink-from-modules-failed/">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/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/asterisk-freepbx-full-log-file/' rel='bookmark' title='Asterisk / FreePBX full Log file'>Asterisk / FreePBX full Log file</a></li></ol>]]></description> <content:encoded><![CDATA[<h3>Overview</h3><p>I recently upgraded <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> from 2.7.1 to 2.8 and from 2.8 to 2.9 the <a
href="http://www.dannytsang.co.uk/index.php/tag/upgrade/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Upgrade">upgrade</a> went OK except for a minor problem where the symbolic link is broken. Whilst this did not cause any problems in terms of the functionality or the workings of the <a
href="http://www.dannytsang.co.uk/index.php/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with system">system</a>, it would be nice to solve the problem which appears in the dashboard.</p><h3>Error Message</h3><p>The title of the notification is &#8220;<a
href="http://www.dannytsang.co.uk/index.php/tag/symlink/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Symlink">Symlink</a> from modules failed&#8221; with the following body:<br
/> <code>Error Symlink from modules failed retrieve_conf failed to sym link:<br
/> /etc/<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/sip/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SIP">sip</a>_notify.conf<br
/> This can result in FATAL failures to your PBX. If the target <a
href="http://www.dannytsang.co.uk/index.php/tag/file/" class="st_tag internal_tag" rel="tag" title="Posts tagged with file">file</a> exists, the symlink will not occur and you should rename the target <a
href="http://www.dannytsang.co.uk/index.php/tag/file/" class="st_tag internal_tag" rel="tag" title="Posts tagged with file">file</a> to allow the automatic sym link to occur and remove this error, unless this is an intentional customization.</code></p><p>Other people have been getting other sym link errors other than sip_notify.conf but the technique should be the same.</p><h3>The Fix</h3><p>Take backup copy of the files mentioned:<br
/> <code>$sudo cp /etc/asterisk/sip_notify.conf /etc/asterisk/sip_notify.conf.bak</code><br
/> Ensure the backup file have the same permission and ownership as the original.</p><p>Remove the original file:<br
/> <code>$sudo rm /etc/asterisk/sip_notify.conf</code></p><p><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Apply-Configuration-Changes.png" rel="lightbox[2930]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/Apply-Configuration-Changes-150x136.png" alt="" title="Apply Configuration Changes" width="150" height="136" class="aligncenter size-thumbnail wp-image-3671" /></a><br
/> Run retrieve_conf function again. This is triggered by the orange button at the top of the screen which appears when settings have changed but not applied yet. An easy to do this is to go into any of the settings and hit submit. For example Outbound <a
href="http://www.dannytsang.co.uk/index.php/tag/routes/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Routes">Routes</a> > [select a route] > Submit Changes button. Click on the Apply Configuration Changes button and there error should disappear. To confirm this has worked (because it does not appear all the time) list the directory to see if a new symlink with the same name as the one that was deleted before:<br
/> <code>$sudo ls -l</code><br
/> This time it should have a -> to indicated it&#8217;s a symlink and point to another path E.g /etc/asterisk/sip_notify.conf -> /var/www/html/admin/modules/core/etc/sip_notify.conf</p><p><a
href="http://www.freepbx.org/forum/freepbx/users/symlink-from-modules-failed-on-status-screen-after-upgrade" target="_blank">Symlink from modules failed on status screen after upgrade</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/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/asterisk-freepbx-full-log-file/' rel='bookmark' title='Asterisk / FreePBX full Log file'>Asterisk / FreePBX full Log file</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/freepbx-symlink-from-modules-failed/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>Port/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 <a
href="http://www.dannytsang.co.uk/index.php/tag/terminal/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Terminal">terminal</a> I would recommend disabling ufw in the event the system goes down and when it comes back up could block remote <a
href="http://www.dannytsang.co.uk/index.php/tag/terminal/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Terminal">terminal</a> 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 <a
href="http://www.dannytsang.co.uk/index.php/tag/protocols/" class="st_tag internal_tag" rel="tag" title="Posts tagged with protocols">protocols</a> or ports. 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 port 22 (<a
href="http://www.dannytsang.co.uk/index.php/tag/ssh/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ssh">SSH</a>):<br
/> <code>$sudo ufw allow 22</code><br
/> This will allow TCP and <a
href="http://www.dannytsang.co.uk/index.php/tag/udp/" class="st_tag internal_tag" rel="tag" title="Posts tagged with UDP">UDP</a> 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 Server 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 <a
href="http://www.dannytsang.co.uk/index.php/tag/file/" class="st_tag internal_tag" rel="tag" title="Posts tagged with file">file</a> 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 <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>.</li><li>161,162 &#8211; SMNP used to monitor server status.</li><li>220 &#8211; IMAP for <a
href="http://www.dannytsang.co.uk/index.php/tag/client/" class="st_tag internal_tag" rel="tag" title="Posts tagged with client">client</a> email access</li><li>443 &#8211; HTTPS secure web traffic if supoorted.</li><li>465 &#8211; SMTP over <a
href="http://www.dannytsang.co.uk/index.php/tag/ssl/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ssl">SSL</a> 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> <a
href="http://www.dannytsang.co.uk/index.php/tag/database/" class="st_tag internal_tag" rel="tag" title="Posts tagged with database">database</a> 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 Ubuntu 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 <a
href="http://www.dannytsang.co.uk/index.php/tag/file/" class="st_tag internal_tag" rel="tag" title="Posts tagged with file">file</a> <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
/> <a
href="http://www.dannytsang.co.uk/index.php/tag/allowoverride/" class="st_tag internal_tag" rel="tag" title="Posts tagged with AllowOverride">AllowOverride</a> 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 DDOS 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-<a
href="http://www.dannytsang.co.uk/index.php/tag/security/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Security">security</a></h3><p>Helps stop some injection and Server 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 <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> 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 <a
href="http://www.dannytsang.co.uk/index.php/tag/command/" class="st_tag internal_tag" rel="tag" title="Posts tagged with command">command</a> &#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 <a
href="http://www.dannytsang.co.uk/index.php/tag/command/" class="st_tag internal_tag" rel="tag" title="Posts tagged with command">command</a> &#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> <a
href="http://www.dannytsang.co.uk/index.php/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with system">system</a> 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 <a
href="http://www.dannytsang.co.uk/index.php/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with system">system</a> 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 <a
href="http://www.dannytsang.co.uk/index.php/tag/file/" class="st_tag internal_tag" rel="tag" title="Posts tagged with file">file</a><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>FreePBX Blank Voicemail Login Page</title><link>http://www.dannytsang.co.uk/index.php/freepbx-blank-voicemail-login-page/</link> <comments>http://www.dannytsang.co.uk/index.php/freepbx-blank-voicemail-login-page/#comments</comments> <pubDate>Tue, 14 Jun 2011 23:01:46 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[PBX]]></category> <category><![CDATA[ARI Framework]]></category> <category><![CDATA[Asterisk]]></category> <category><![CDATA[FreePBX]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3611</guid> <description><![CDATA[After upgrading from 2.8.x to 2.9 was less straight forward than a minor upgrade but still easier to do compared to a fresh install. A problem I had encountered was navigating to the voicemail login page was blank. The page &#8230; <a
href="http://www.dannytsang.co.uk/index.php/freepbx-blank-voicemail-login-page/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/wordpress-233-upgrade/' rel='bookmark' title='WordPress 2.3.3 Upgrade'>WordPress 2.3.3 Upgrade</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/visual-studio-express-2008-orca/' rel='bookmark' title='Visual Studio Express 2008 (Orca)'>Visual Studio Express 2008 (Orca)</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>After upgrading from 2.8.x to 2.9 was less straight forward than a minor <a
href="http://www.dannytsang.co.uk/index.php/tag/upgrade/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Upgrade">upgrade</a> but still easier to do compared to a fresh install.</p><p>A problem I had encountered was navigating to the voicemail login page was blank. The page loaded successfully with just a white page. The cause is the <a
href="http://www.dannytsang.co.uk/index.php/tag/ari-framework/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ARI Framework">ARI Framework</a> module is not installed and to rectify it is as simple as downloading and installing the <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> ARI Framework module via the Admin page.</p><div
align="center"><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/ARI-Framework.png" rel="lightbox[3611]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/06/ARI-Framework-150x150.png" alt="" title="ARI Framework" width="150" height="150" class="aligncenter size-thumbnail wp-image-3613" /></a></div><p><a
href="http://www.freepbx.org/forum/freepbx/installation/recordings-page-is-blank-after-update-2-9" target="_blank">Recordings page is blank after update 2.9</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/wordpress-233-upgrade/' rel='bookmark' title='WordPress 2.3.3 Upgrade'>WordPress 2.3.3 Upgrade</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/visual-studio-express-2008-orca/' rel='bookmark' title='Visual Studio Express 2008 (Orca)'>Visual Studio Express 2008 (Orca)</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/freepbx-blank-voicemail-login-page/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Create And Enable SSL On Ubuntu LAMP Server</title><link>http://www.dannytsang.co.uk/index.php/create-and-enable-ssl-on-ubuntu-lamp-server/</link> <comments>http://www.dannytsang.co.uk/index.php/create-and-enable-ssl-on-ubuntu-lamp-server/#comments</comments> <pubDate>Tue, 22 Mar 2011 00:01:00 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Website]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[apache ssl]]></category> <category><![CDATA[crt]]></category> <category><![CDATA[CSR]]></category> <category><![CDATA[HTTPS]]></category> <category><![CDATA[ssl]]></category> <category><![CDATA[ssl certificate]]></category> <category><![CDATA[VirtualHost]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=3373</guid> <description><![CDATA[Introduction SSL is used to encrypt data between the client e.g a user viewing a website to the web server which hosts the site. SSL uses certificates which are signed and verify the validity of a website. Like any vendor &#8230; <a
href="http://www.dannytsang.co.uk/index.php/create-and-enable-ssl-on-ubuntu-lamp-server/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/enable-sftp-on-vsftpd-in-ubuntu/' rel='bookmark' title='Enable SFTP On VSFTPD In Ubuntu'>Enable SFTP On VSFTPD In Ubuntu</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/awstats/' rel='bookmark' title='Awstats'>Awstats</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>Introduction</h3><p>SSL is used to encrypt data between the <a
href="http://www.dannytsang.co.uk/index.php/tag/client/" class="st_tag internal_tag" rel="tag" title="Posts tagged with client">client</a> e.g a user viewing a website to the web server which hosts the site. SSL uses certificates which are signed and verify the validity of a website. Like any vendor based system the certificate is as secure as the issuer. This means anyone can generate an <a
href="http://www.dannytsang.co.uk/index.php/tag/ssl-certificate/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ssl certificate">SSL certificate</a> but only &#8220;certified vendors&#8221; are considered safe.</p><h3>Pre-requisites</h3><p>This post assumes Apache 2 is installed 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 (other versions may apply) with no issues. The default virtual host will be used as the example.</p><h3>Install SSL</h3><ol><li>Ensure the SSL mod is installed so Apache can handle SSL requests <code>sudo apt-get install ssl-cert</code></li><li>Enable the SSL module <code>sudo a2enmod ssl</code></li><li>Before restarting the service, edit <code>/etc/apache2/ports.conf</code> and make sure there is a <strong>Listen 443</strong> in the file. Alternatively add it in and if the entry is invalid apache won&#8217;t start.</li><li>Create a directory to store the SSL certificates <code>sudo mkdir /etc/apache2/ssl</code></li><li>Restart apache service <code>sudo service apache2 restart</code></li></ol><h3>Generate SSL Certificate</h3><blockquote><p>Only run steps in this section if the certificate to be used is not going to be issued by a vendor.</p></blockquote><ol><li>Create the certificate in the Apache SSL directory <code>sudo make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/www.dannytsang.com.crt</code></li></ol><p>Once complete go to <a
href="#VirtualHost">Configure Apache 2</a></p><h3>Applying For SSL</h3><p>The steps may vary but this is what I had to go through to obtain an SSL certificate:</p><ol><li>Install OpenSSL <code>sudo apt-get install openssl</code></li><li>Generate a RSA private key. Enter 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> when prompted <code>openssl genrsa -des3 -out www.dannytsang.com.key 2048</code></li><li>Create the CSR <code>openssl req -new -key www.dannytsang.com.key -out www.dannytsang.com.csr</code> Example information:<ul><li>Country Name (2 letter code) [AU]:GB</li><li>State or Province Name (full name) [Some-State]:Hertfordshire</li><li>Locality Name (eg, city) []:Stevenage</li><li>Organization Name (eg, company) [GX Networks Ltd]:Danny Tsang</li><li>Organizational Unit Name (eg, section) []:</li><li>Common Name (eg, YOUR name) []:www.dannytsang.com</li><li>Leave the rest blank</li></ul></li><li>Ensure the CSR details are correct <code>openssl req -noout -text -in www.dannytsang.com.csr</code> If not go through the steps above again to re-generate the CSR</li><li>Submit the CSR to the vendor.</li><li>The vendor will verify details submitted before issuing the SSL certificate. Once that is complete continue to the next stage.</li><p>Depending on the level of the SSL certificate applied there is always at least 2 certificates that have to be included in Apache. One is the Vendor who signs the SSL and the SSL certificate itself.</p><li>Copy the vendor certificate to <code>sudo mkdir /etc/apache2/ssl</code>. For example <code>sudo vi /etc/apache2/ssl/CaCert.pem</code></li><li>Copy the site / domain SSL certificate <code>sudo vi /etc/apache2/ssl/www.dannytsang.com.crt</code></li></ol><h3><a
name="VirtualHost">Configure Apache 2</a></h3><p>There are various ways to enable HTTPS on a website. The options described below are the ones discussed in this article:</p><ul><li>Site Wide &#8211; The whole site uses HTTPS so that all the traffic is encrypted. This is the most secure method. Some limitations with this include any &#8220;resources&#8221; displayed on the site not from a HTTPS site will show a warning to the user. Website traffic will still be encrypted but not for non HTTPS parts e.g Ads</li><li>Login / Accounts only &#8211; From user log in and onwards will be encrypted. Other parts are not.</li></ul><p>For Login / Accounts only part, <a
href="http://www.dannytsang.co.uk/index.php/tag/wordpress/" class="st_tag internal_tag" rel="tag" title="Posts tagged with WordPress">WordPress</a> will be used as the example.</p><p>For both options there should be 2 virtual hosts configured in Apache. One for non encrypted and the other for encrypted. If the desired effect is for the user to explicitly type https into the browser then only the secure virtual host is need. Otherwise a redirect will be created so that users entering http://www.dannytsang.com will automatically go to https://www.dannytsang.com. The following will assume the virtual host file have already been created and working. The virtual host file will be called dannytsang.</p><ol><li>Make a copy of the virtual host which will be used for the SSL part of the site <code>sudo cp /etc/apache2/sites-available/dannytsang /etc/apache2/sites-available/dannytsangssl</code></li><li>Edit the secure virtual host file and make the following changes:<ul><li>Change the <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> to 443, the default <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> for HTTPS traffic e.g &lt;VirtualHost *:443&gt;</li><li>ServerName &#8211; Ensure this directive is set to the same as the SSL certificate e.g ServerName www.dannytsang.com</li><li>SSLEngine &#8211; Turn SSL on e.g SSLEngine On</li><li>SSLCACertificateFile &#8211; Path to the vendor or &#8220;Certificate Authority&#8221; signing certificate. This may be optional and not required if it was not mentioned by the issuer e.g SSLCACertificateFile /etc/apache2/ssl/CaCert.pem</li><li>SSLCertificateChainFile &#8211; Intermediate CA. Same as above e.g SSLCertificateChainFile /etc/apache2/ssl/ICaCert.pem</li><li>SSLCertificateFile  &#8211; Path to site SSL e.g SSLCertificateFile /etc/apache2/ssl/www.dannytsang.com.crt</li><li>SSLCertificateKeyFile &#8211; The file path to the private key used to sign the CSR e.g SSLCertificateKeyFile /etc/apache2/ssl/www.dannytsang.com.key</li><li>Save and exit the file</li></ul></li></ol><p>Example of the secure virtual host configuration file so far:</p><blockquote><p> &lt;VirtualHost *:443&gt;<br
/> ServerName www.dannytsang.com</p><p> SSLEngine On<br
/> SSLCertificateChainFile /etc/apache2/ssl/ICaCert.pem<br
/> SSLCertificateFile /etc/apache2/ssl/www.dannytsang.com.crt<br
/> SSLCertificateKeyFile /etc/apache2/ssl/www.dannytsang.com.key</p><p> DocumentRoot /var/www/dannytsang</p><p>&lt;/VirtualHost&gt;</p></blockquote><p>Note that my example does not contain <strong>SSLCACertificateFile</strong>. For a self generated SSL the only <strong>SSLCertificateFile</strong> is needed.</p><h4>Site Wide HTTPS</h4><p>One of the pit falls of site wide encryption is that all content must reside on the https domain or from other https sources. Below is an example of what Google&#8217;s Chrome browser would show if content didn&#8217;t come from a secured resource. In my case it was Ads:<br
/> <a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/03/https-non-secure-content.png" rel="lightbox[3373]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/03/https-non-secure-content-150x150.png" alt="" title="https non secure content" width="150" height="150" class="aligncenter size-thumbnail wp-image-3408" /></a></p><ol><li>Edit the non secure virtual host file of the site <code>sudo vi /etc/apache2/sites-available/dannytsang</code></li><li>Add the following lines below the SSL related directives:<br
/> <code><br
/> &lt;IfModule mod_rewrite.c&gt;<br
/> RewriteEngine on<br
/> RewriteCond %{SERVER_PORT} !^443$<br
/> RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]<br
/> &lt;/IfModule&gt;<br
/> </code></li><li>Save and exit the virtual host file.</li><li>Enable the new secure virtual host <code>sudo a2ensite dannytsangssl</code></li><li>Restart Apache <code>sudo service apache2 restart</code></li></ol><h4>Login HTTPS For WordPress</h4><ol><li>Edit the non secure virtual host file <code>sudo vi /etc/apache2/sites-available/dannytsang</code></li><li>Add the following inside the &lt;Directory /var/www/dannytsang&gt;:<br
/> <code><br
/> &lt;Directory /var/www/dannytsang&gt;<br
/> &lt;IfModule mod_rewrite.c&gt;<br
/> RewriteEngine On<br
/> RewriteBase /<br
/> RewriteCond %{REQUEST_FILENAME} -f [OR]<br
/> RewriteCond %{REQUEST_FILENAME} -d<br
/> RewriteRule ^wp-(admin|login|register)(.*) https://%{SERVER_NAME}/wp-$1$2 [L]<br
/> &lt;/IfModule&gt;<br
/> &lt;/Directory&gt;<br
/> </code><br
/> The RewriteRule is the rule for when it would change the URL to https. In this case it looks for any of the following combinations after the domain wp-admin, wp-login, wp-register e.g www.dannytsang.com/wp-login.php. Multiple rules may be added to match all sorts of sub directories.</li><li>Save and exit the virtual host file.</li><li>Add the following line to the non secure site so that going from a login / admin page to the normal part of the site e.g logging out and going back to the front page will change it to non https<br
/> <code>vi /etc/apache2/sites-available/dannytsang</code><br
/> <code><br
/> &lt;Directory /var/www/dannytsang&gt;<br
/> &lt;IfModule mod_rewrite.c&gt;<br
/> RewriteEngine On<br
/> RewriteBase /<br
/> RewriteRule !^wp-(admin|login|register)(.*) - [C]<br
/> RewriteRule ^(.*)$ http://%{SERVER_NAME}/$1 [L]<br
/> &lt;/IfModule&gt;<br
/> &lt;/Directory&gt;<br
/> </code></li><li>Save and exit the virtual host file.</li><li>Enable mod_rewrite in Apache <code>sudo a2enmod rewrite</code></li><li>Enable the new secure virtual host <code>sudo a2ensite dannytsangssl</code></li><li>Restart Apache <code>sudo service apache2 restart</code></li><li>Edit the WordPress config file (wp-config.php) and add the following line to the bottom of the file <code>define('FORCE_SSL_ADMIN', true);</code></ol><h3>Debugging Tools &#038; Methods</h3><p>I found Google Chrome to be the best browser to troubleshoot SSL problems. Chrome is the most promient in showing HTTPS problems (see non secure sources screenshot above). The problem with Chrome was that it was more strict on showing the &#8220;padlock&#8221; HTTPS icon.<br
/> <a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/03/https-cross.png" rel="lightbox[3373]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/03/https-cross-150x94.png" alt="" title="https cross" width="150" height="94" class="aligncenter size-thumbnail wp-image-3424" /></a><br
/> Go to the Console in Chrome (Ctrl+Shift+j > Console tab) lists insure content warnings.<br
/> <a
href="http://www.dannytsang.co.uk/wp-content/uploads/2011/03/insure-content.png" rel="lightbox[3373]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2011/03/insure-content-150x150.png" alt="" title="insure content" width="150" height="150" class="aligncenter size-thumbnail wp-image-3425" /></a></p><h3>Summary</h3><p>Whilst going through this setup <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> myself it has been a long and arduous <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> (even if it doesn&#8217;t look it from this write up). I have learnt:</p><ul><li>Check the Certificate Authority &#8211; Ensure it is from a reputable organization issuing / signing the SSL. SSL providers are not necessarily the company which signs them. Also cheap SSLs may be signed by an unknown / not recognised as a verified CA. This list of CA vary from browser to browser.</li><li>Non secure SSL &#8211; Even if a page or site is encrypted using the HTTPS protocol, the page is not deemed secure if any information on a page comes from a non secure site.</li><li>Check WordPress Plugins &#8211; Some plugins are not HTTPS aware for example lightbox2.</li><li>Clear Cookies &#038; Cache &#8211; Sometimes browsers cache information and so even restarting the webserver may still result in an unsecure page / site. I found the best practice was to close the browser and start it up again. A quicker way to do it is to clear the cache and cookies associated with the site.</li></ul> <a
href='http://www.dannytsang.co.uk/index.php/create-and-enable-ssl-on-ubuntu-lamp-server/https-non-secure-content/' title='https non secure content'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/03/https-non-secure-content-150x150.png" class="attachment-thumbnail" alt="https non secure content" title="https non secure content" /></a> <a
href='http://www.dannytsang.co.uk/index.php/create-and-enable-ssl-on-ubuntu-lamp-server/https-cross/' title='https cross'><img
width="150" height="94" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/03/https-cross-150x94.png" class="attachment-thumbnail" alt="https cross" title="https cross" /></a> <a
href='http://www.dannytsang.co.uk/index.php/create-and-enable-ssl-on-ubuntu-lamp-server/insure-content/' title='insure content'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2011/03/insure-content-150x150.png" class="attachment-thumbnail" alt="insure content" title="insure content" /></a><p><a
href="https://help.ubuntu.com/community/forum/server/apache2/SSL" target="_blank">forumserverapache2SSL<br
/> </a></p><p><a
href="http://www.123-support.co.uk/support/answers/generate-a-csr-apache-open-ssl-634/" target="_blank">Generate a CSR: Apache (Open SSL)</a></p><p><a
href="http://codex.wordpress.org/Administration_Over_SSL" target="_blank">WordPress Administration Over SSL</a></p><p><a
href="http://ubuntuforums.org/showthread.php?t=895633"  target="_blank">apache2 &#8211; redirect http to https</a></p><p><a
href="https://search.thawte.com/support/ssl-digital-certificates/index?page=content&#038;actp=CROSSLINK&#038;id=SO15464" target="_blank">Intermediate Certificate Authority (CA) &#038; SSL Installation Instructions for Apache</a></p><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/enable-sftp-on-vsftpd-in-ubuntu/' rel='bookmark' title='Enable SFTP On VSFTPD In Ubuntu'>Enable SFTP On VSFTPD In Ubuntu</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/awstats/' rel='bookmark' title='Awstats'>Awstats</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/create-and-enable-ssl-on-ubuntu-lamp-server/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
