<?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>The McKenzie's Blog... &#187; Ubuntu</title>
	<atom:link href="http://www.uk-experience.com/category/internet/ubuntu-internet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.uk-experience.com</link>
	<description>Our life in the UK...</description>
	<lastBuildDate>Sat, 13 Mar 2010 15:55:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Synergy2 .. why don&#8217;t you have it??</title>
		<link>http://www.uk-experience.com/2010/01/25/synergy2-why-dont-you-have-it/</link>
		<comments>http://www.uk-experience.com/2010/01/25/synergy2-why-dont-you-have-it/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 16:41:31 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Synergy2]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.uk-experience.com/2010/01/25/synergy2-why-dont-you-have-it/</guid>
		<description><![CDATA[Ok, let me explain first what it is.. Synerygy2 is a way to share multiple computers with one keyboard and mouse.&#160; No, it’s not a KVM replacement.. Synergy2 replaces only the keyboard and mouse, you’ll need to have a monitor attached to each machine on your desk.&#160; This is actually a plus.&#160; In the photo [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, let me explain first what it is.. <a href="http://synergy2.sourceforge.net/" target="_blank">Synerygy2</a> is a way to share multiple computers with one keyboard and mouse.&#160; No, it’s not a KVM replacement.. Synergy2 replaces only the keyboard and mouse, you’ll need to have a monitor attached to each machine on your desk.&#160; This is actually a plus.&#160; In the photo below you’ll see my working area at the office… I’ve labelled which each runs for an OS and below that the names of the computers (click to see the full size image)</p>
<p><a href="http://www.uk-experience.com/wp-content/uploads/2010/01/officedesktop.jpg" target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="office-desktop" border="0" alt="office-desktop" src="http://www.uk-experience.com/wp-content/uploads/2010/01/officedesktop_thumb.jpg" width="244" height="184" /></a> </p>
<p>The keyboard and mouse is actually attached to the Ubuntu machine, in other words that’s the “server”.&#160; The XP and Windows 7 machines are “clients”.&#160; One thing to consider with Synergy is that it’s not secure.&#160; It does send everything you type in plain text over the network.&#160; This can be avoided by tunnelling the connection over something like SSH.&#160; Perhaps I’ll cover that later.&#160; Synergy2 isn’t new, it’s been around a very long time.</p>
<p>I don’t want to reinvent the wheel or try to take any limelight from those that have already posted great articles on how to set it up, the best information can be found from the <a href="http://synergy2.sourceforge.net/" target="_blank">Synergy2</a> website itself.</p>
<p>What I’m posting about is really how to fix a problem that I’m sure others might have encountered.&#160; Right.. so the problem is this.&#160; As I’ve said, the server is on Ubuntu.&#160; Naturally the “Windows key” on Ubuntu has no natural meaning to the OS, it’s just another key and not mapped to anything out of the box.&#160; The problem I’ve had is that while using Synergy the “Windows Key” didn’t work on the Ubuntu machine even though I’d remapped it to do things, such as Win + T to open a new xterm, Win + R to open the Run Command Dialog (basically making it operate a bit like Windows).&#160;&#160; the fix for this was a change in the <strong>$HOME/.synergy.ini</strong> file on the Ubuntu machine.&#160; The weird thing was that when move the mouse to the XP machine the Windows key did what it should, however on the Windows 7 it wouldn’t work.</p>
<p>Right, so what was the fix?&#160; Here is my <strong>.synergy.ini </strong>file</p>
<blockquote><p>section: screens     <br /> burma:      <br /> scotland:      <br />&#160; meta = super      <br /> rambler:      <br />&#160; meta = super      <br />end</p>
<p>section: links     <br /> burma:      <br /> left = scotland      <br /> right = rambler      <br /> scotland:      <br /> right = burma      <br /> left = rambler      <br /> rambler:      <br /> left = burma      <br /> right = scotland      <br />end</p>
<p>section: options     <br /> screenSaverSync = true      <br />end</p>
</blockquote>
<p><em><font color="#555555"></font></em>    <br />The important lines above are the “meta = super”.&#160; Under Ubuntu the Windows Key is called “meta”.&#160; This tells Synergy when the focus is on the windows machines to map the “meta” key to the “super” key, or in other words the Windows key.&#160; Once that was changed and synergys was restarted all was good again.</p>
<p>I’m posting this for anyone else that might have a problem with the windows key not working under synergy with Linux/Ubuntu/Unix machines and windows machines, but also as a reminder to myself should I forget how I fixed it <img src='http://www.uk-experience.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> &#160; I’d been through this exercise about 4 years ago but having rebuilt that machine I couldn’t for the life of me recall how I fixed it .. well, now that I’ve blogged about it I’ll at least have one good place to go and find the answer again <img src='http://www.uk-experience.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> &#160; </p>
]]></content:encoded>
			<wfw:commentRss>http://www.uk-experience.com/2010/01/25/synergy2-why-dont-you-have-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu network location detection</title>
		<link>http://www.uk-experience.com/2009/06/17/ubuntu-network-location-detection/</link>
		<comments>http://www.uk-experience.com/2009/06/17/ubuntu-network-location-detection/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 12:37:07 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Samba]]></category>

		<guid isPermaLink="false">http://www.uk-experience.com/2009/06/17/ubuntu-network-location-detection/</guid>
		<description><![CDATA[
Ok, it’s not a full location detection as such.. I use my laptop (Ubuntu 9.04) both at home and work, as well as other places.&#160; The problem that I had was related to how SAMBA was configured.&#160; At home I have one workgroup name and at work I want the machine to appear in the [...]]]></description>
			<content:encoded><![CDATA[</p>
<p>Ok, it’s not a full location detection as such.. I use my laptop (Ubuntu 9.04) both at home and work, as well as other places.&#160; The problem that I had was related to how SAMBA was configured.&#160; At home I have one workgroup name and at work I want the machine to appear in the company domain.&#160; But also, while out and about in the big bad world I don’t want SAMBA on at all, no need to share anything with anyone.</p>
<p>So, to over come this and correct it at boot time I’ve come up with the simple script below.&#160; The only other thing you need to do is prepare a couple of smb.conf files to suit the locations you’ll be in.&#160;&#160; I have 2 smb.conf files, one for HOME and one for WORK.&#160;&#160; I run the script from /etc/rc.local so it runs when I should have networking fully up and running.&#160; </p>
<p>Here is the script:</p>
<div style="border-bottom: gray 1px solid; border-left: gray 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 54.96%; padding-right: 4px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; height: 455px; max-height: 350px; font-size: 8pt; overflow: auto; border-top: gray 1px solid; cursor: text; border-right: gray 1px solid; padding-top: 4px">
<div style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">#!/bin/bash</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">HOME=YOUR_HOME_GW_IP</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">WORK=YOUR_WORK_GW_IP</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">GW=`route -n | grep ^0.0.0.0| awk <span style="color: #006080">'{print $2}'</span>`</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&#160;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #0000ff">if</span> [ $GW = $WORK ]; then</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">    #echo <span style="color: #006080">&quot;You're at work&quot;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">    cp /etc/samba/smb.conf.WORK /etc/samba/smb.conf</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">    /etc/init.d/samba restart</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">elif [ $GW = $HOME ]; then</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">    #echo <span style="color: #006080">&quot;You're at home&quot;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">    cp /etc/samba/smb.conf.HOME /etc/samba/smb.conf</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">    /etc/init.d/samba restart</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #0000ff">else</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">    #echo <span style="color: #006080">&quot;You're somewhere else&quot;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">    /etc/init.d/samba stop</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">fi</pre>
</p></div>
</div>
<p>Pretty simple really.&#160; Hope others will find it useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.uk-experience.com/2009/06/17/ubuntu-network-location-detection/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
