Install synergy in Ubuntu

Source: Internet
Author: User
What is synergy? Here: Http://blog.csdn.net/babyfacer/archive/2009/01/04/3706181.aspx

Installing an independent installation package on the unbuntu is a little troublesome. The independent installation package always prompts that there is a problem and the RPM cannot be used directly.

My personal solution is very simple, that is, search for synergy on Synaptic Package Manager, find it, and install it.
However, during execution, you need to find synergyc under usr/bin.
I use Linux as the client, so it is very simple to directly use:
Synergyc 158. 182. *. * (Server IP)

The server needs to modify the synergy. conf file. I have never used it. But it should not be difficult.

I also changed the host name. To do so:

Run the following command to view the Host Name of the current host:
Sudo/bin/hostname
Or:
Hostname

Run the following command to set the Host Name of the current host:
sudo /bin/hostname newname

To permanently reset the host name, you must manually modify the/etc/hostname file.

--------------------------
Repost a detailed article. English. Original article:Http://eightpence.com/install-latest-synergy-on-ubuntu/

Install latest synergy on Ubuntu Saturday limit L 1, 2006

Took me about 15 Google searches to get the latestSynergyRunning onUbuntu(Dapper, shocould apply to and work with other under tus) and I 've found what I needed. Hopefully this will save someone some time.

The latest build (at the time of writing) in Ubuntu dapper is 1.2.2 which is a full year old. With synergy being so buggy (don't get me started-it took1.3.0To get this "Bug" fixed-"Clients now detect loss of connection to server and reconnect"), It's useful to have the latest build that hopefully fixes some of those bugs. the packages always seem to lag way behind the version for synergy, so here are some tips to get the thing installed by source. the comments and instructions here are for dapper pre-release and synergy 1.3.0.

Update: if you have the latest synergy in your apt repository (Run "sudo apt-Cache show synergy" to see) then you can just install that ("sudo apt-Get install synaptic") and not worrying about compiling it from source. but if the packages are outdated, You can compile it by source as described here to get the latest version.

You can try and convert their RPM release to. Deb using

alien synergy*.rpm

(Requires package alien), and install it

sudo dpkg -i synergy*.deb

But the synergy executable produced always complains about a missing version of libstdc ++.

Alternatively, you can grab it fromSource. The configure script will complain like so:

configure: error: You must have the XTest library to build synergy

Well, just install it then, right? Unfortunately, searching with Synaptic for "xtest" in both description and name doesn't yield any relevant results. of course, that's because you need to search for "xtst" (duh !) And there you will find libxtst-Dev. How intuitive.

With that, configure showould proceed, but "make" May bomb out in the middle with an error like this:

In file included from CXWindowsClipboard.cpp:15:
CXWindowsClipboard.h:24:3: error: #error X11 is required to build synergy
In file included from CXWindowsClipboard.cpp:21:
CXWindowsUtil.h:23:3: error: #error X11 is required to build synergy
CXWindowsClipboard.h:38: error: expected `)' before ‘*’ token

Thanks synergy for telling me I don't have X11! And thanks for telling me this during the build stage rather than the configure stage! Of course on Ubuntu you do have x11. synergy just needs to explicitly be told where the specified des are, because for some reason, it can't find them itself. you can do this by the arguments X-Primary des and-X-libraries. /configure, as someone helpfully postedHere.

So, in summary:

sudo apt-get install libxtst-dev
./configure -x-includes /usr/include -x-libraries /usr/lib --prefix=/usr
make
sudo make install

Update: This might also be of use-
Start synergy with TPD on Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.