<?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>BombStrike's blog &#187; synergy</title>
	<atom:link href="http://www.bombstrike.org/tag/synergy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bombstrike.org</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 07 Mar 2010 22:44:45 +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>How to use two different computers with two differents OSes seemlessly</title>
		<link>http://www.bombstrike.org/2009/03/how-to-use-two-different-computers-with-two-differents-oss-seemlessly/</link>
		<comments>http://www.bombstrike.org/2009/03/how-to-use-two-different-computers-with-two-differents-oss-seemlessly/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 12:49:11 +0000</pubDate>
		<dc:creator>Christophe Robin</dc:creator>
				<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[pulse]]></category>
		<category><![CDATA[pulseaudio]]></category>
		<category><![CDATA[synergy]]></category>

		<guid isPermaLink="false">http://www.bombstrike.org/?p=114</guid>
		<description><![CDATA[At home I have two computers, one on ArchLinux for work, and one under Vista for games. But switching between the two is really confusing when we&#8217;re a little tired, so I decided that I&#8217;d use only one soundcard, keyboard and mouse on the two computers&#8230;
I&#8217;m gonna explain you how to do this, in this [...]]]></description>
			<content:encoded><![CDATA[<p>At home I have two computers, one on ArchLinux for work, and one under Vista for games. But switching between the two is really confusing when we&#8217;re a little tired, so I decided that I&#8217;d use only one soundcard, keyboard and mouse on the two computers&#8230;</p>
<p>I&#8217;m gonna explain you how to do this, in this tutorial I&#8217;ll use my windows box as the &#8220;master&#8221; as it has the best soundcard, keyboard and such of the two computers. Let&#8217;s starts:</p>
<p><strong>Keyboard and Mouse</strong></p>
<p>Keyboard and Mouse are probably the easiest part of this &#8211; Synergy is a small utility that allow you to share a mouse/keyboard between multiple computers, download the binary for windows and launch it, there set the computer as a server, and click configure. Set two screens, for the name use the hostnames of each computers, then create two links like in the following screenshot:</p>
<p>Don&#8217;t forget to create the two links ! Or when you&#8217;ll switch one the second computer, you will not be able to go back <img src='http://www.bombstrike.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Then on our archlinux box, do the following:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">pacman -S synergy<br />
synergyc 192.168.xxx.xxx</div></div>
<p>That will launch the synergy client and connect to your server and voila, you can use only one keyboard/mouse between the two computers. Don&#8217;t forget to setup autostart in synergy on Windows, and add the client command in the Gnome Session Manager. Now it&#8217;s time to take care of the sound.</p>
<p><strong>Using the sound over the network</strong></p>
<p>Here is the hard part, setting up the sound over the network is a long task. First, download pulseaudio for windows <a href="http://www.cendio.com/pulseaudio/" target="_blank">here</a>. Extract the thing in a folder like C:\pulseaudio then create a config file named <em>default.pa</em> containing the following:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">load-module module-native-protocol-tcp listen=0.0.0.0<br />
load-module module-waveout</div></div>
<p>And put it in this folder. The first line tells pulseaudio to listen to all connections on the local network while the second line allow us to output sound. Next step is to double-click on <em>pulseaudio.exe</em> &#8211; Don&#8217;t paye attention to the warnings and go to C:\Users\&lt;username&gt; on Vista or C:\Document And Settings\&lt;username&gt; on previous windows then copy the .pulse-cookie here ( create by pulseaudio.exe ) to /etc/pulse-cookie on your linux box ( using WinSCP for example ). You can now add pulseaudio.exe to windows start ( there are lots of softs out there allowing it, just use whatever you want ) and we&#8217;re done with the windows box.</p>
<p>Now for our archlinux, we need to works on lots of things, let&#8217;s start on installing/configuring pulse:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">pacman -S pulseaudio padevchooser paman paprefs pavucontrol pavumeter</div></div>
<p>Then add to your rc.conf</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">DAEMONS=(... avahi-daemon pulseaudio)</div></div>
<p>Avahi is needed for network communications in pulse. Now change our cookie modes:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">chown pulse:pulse-access /etc/pulse-cookie<br />
cmod 0640 /etc/pulse-cookie</div></div>
<p>And finally setup pulseaudio by editing <em>/etc/pulse/client.conf</em>:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cookie-file = /etc/pulse-cookie<br />
default-server = 192.168.xxx.xxx # change this to your windows box ip</div></div>
<p>We are now done with pulse itself. Don&#8217;t forget to add your users to the <strong>pulse-access</strong> group.<br />
Let&#8217;s configure ALSA to use Pulse by editing <em>/etc/asound.conf</em> ( create it if it doesn&#8217;t exists ) and add the following lines:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">pcm.pulse {<br />
&nbsp; &nbsp; type pulse<br />
}<br />
ctl.pulse {<br />
&nbsp; &nbsp; type pulse<br />
}<br />
<br />
pcm.!default {<br />
&nbsp; &nbsp; type pulse<br />
}<br />
ctl.!default {<br />
&nbsp; &nbsp; type pulse<br />
}</div></div>
<p>With all that, you should be ok, try launching mplayer using the -ao=alsa flag and you should hear the sound on your windows box <img src='http://www.bombstrike.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.bombstrike.org/2009/03/how-to-use-two-different-computers-with-two-differents-oss-seemlessly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
