Two Ubuntu computers use Synergy to share the mouse and keyboard, and use javastusynergy

Source: Internet
Author: User

Two Ubuntu computers use Synergy to share the mouse and keyboard, and use javastusynergy

When using multiple computers at work, it may be difficult to connect them with the mouse or keyboard: it takes up a lot of places and is not necessary. This article describes how to use the Synergy program to share the mouse and keyboard between two Ubuntu computers. By using this method, you can automatically jump into another screen after moving the mouse to the edge of a screen, and position the mouse in which screen, the keyboard can be used for text input on any screen.

"1" Installation
Install both Ubuntu instances:

sudo apt-get install synergysudo apt-get install quicksynergy

"2" configure server
The two Synergy programs on Ubuntu need to communicate with each other, so there is a concept of server and client. I chose a desktop with strong performance as the server and a notebook with weak performance as the client.
On the server, in the home directory of your user, edit the file. synergy. conf (which does not exist at the beginning, create) and fill in the following content:

section: screens        desktop-server:        notebook-client:endsection: links        notebook-client:                right = desktop-server        desktop-server:                left = notebook-clientend

Here, "desktop-server" is the name of the machine obtained by running the hostname command on my desktop (server), and "notebook-client" is in my laptop (client) the host name obtained using the hostname command. You need to get the corresponding name according to your own situation and fill in the. synergy. conf file as above.
In the preceding configuration, "right = desktop-server" indicates that the screen of my desktop (server) is on the right of the client screen. Similarly, "left = notebook-client" indicates that my laptop (client) screen is on the left of my desktop (server) screen. This setting is determined by the placement of screens on two computers. This setting ensures that my mouse will automatically jump into the notebook screen after moving to the left edge of the desktop screen. You need to modify the position of your screen.
Source: http://www.codelast.com/
After configuration, run the following command on the server to start the server program:

synergys

"3" configure the client
You do not need to enter the. synergy. conf file on the client. You only need to run the QuickSynergy program to set the file, as shown in:

192.168.1.65 is the server address, and "notebook-client" is the host name obtained by using the hostname command on the client.
Click Execute to start the client. After startup, the mouse and keyboard can be shared.

"4" The client cannot connect to the server
If you make sure that the settings are correct but cannot connect the client to the server, you can check the system log of the server:

tail -f /var/log/syslog

If there is an error message similar to the following:

NOTE: new client disconnected #012 #011/build/buildd/synergy-1.3.8/src/lib/server/CClientProxyUnknown. cpp, 282

This may be caused by mismatch between the client and the server software version.
For example, run the following command on two Ubuntu computers with connection problems to view the Synergy version:

synergys --version

As a result, the server version is 1.3.8, and the client version is 1.4.10.
This is a problem. Because the protocols used by different versions may be incompatible, the client cannot communicate with the server and thus cannot connect to the server. Therefore, you can download the installation packages of the same client and server on the official Synergy website, and the problem will be solved.

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.