How to install KVM Synergy on Raspberry Pi 2
How to install KVM Synergy on Raspberry Pi 2
At first install all missing libraries:
apt-get install gcc cmake libx11-dev libxtst-dev curl libcurl3 libcurl4-gnutls-dev qt4-qmake
libssl-dev
download the newest version from https://github.com/symless/synergy
wget https://github.com/symless/synergy/archive/master.zip
Now tricky part which is true for version Synergy 1.8.8
1. extract files and go inside synergy/ext
2. unpack files
unzip ./gmock-1.6.0.zip -d ./gmock-1.6.0
unzip ./gtest-1.6.0.zip -d ./gtest-1.6.0
tar -xzf openssl-1.0.2.tar.gz
3. make new dir inside synergy root folder
mkdir /home/pi/synergy/openssl
4. Copy folder openssl from /home/pi/synergy/ext/openssl-1.0.2/include/openssl to root folder of synergy
cp -a /home/pi/synergy/ext/openssl-1.0.2/include/openssl/. /home/pi/synergy/openssl
5. If you want to play and fix symlinks - go ahead, the easiest way is to copy crypto folder
to folder above synergy
cp -a /home/pi/synergy/ext/openssl-1.0.2/crypto/. /home/pi/crypto
5. go to /home/pi/synergy/ and run
./hm.sh conf -g1
./hm.sh build
if there any errors from ld use
ld -lssl --verbose
and check folders and symlinks.
and run again
./hm.sh build
when finished it could be errors
[100%] Linking CXX executable ../../../../../bin/unittests
[100%] Built target unittests
Going back to: /home/pi/synergy/
Make GUI command: make -w
Entering dir: src/gui
make: Entering directory '/home/pi/synergy/src/gui'
make: *** No targets specified and no makefile found. Stop.
make: Leaving directory '/home/pi/synergy/src/gui'
Going back to: /home/pi/synergy/
Error: make -w failed with error: 512
[100%] Built target unittests
Going back to: /home/pi/synergy/
Make GUI command: make -w
Entering dir: src/gui
make: Entering directory '/home/pi/synergy/src/gui'
make: *** No targets specified and no makefile found. Stop.
make: Leaving directory '/home/pi/synergy/src/gui'
Going back to: /home/pi/synergy/
Error: make -w failed with error: 512
No worries.
6. copy from synergy bin folder
cp -a ./bin/. /usr/bin
7. To start automatically
7.1 create startup script
/home/pi/synergy.sh
#!/bin/bash
killall synergyc
sleep 1
export DISPLAY=:0 && synergyc -d INFO -n pi -l /var/log/synergy.log 192.168.0.1
exit 0
killall synergyc
sleep 1
export DISPLAY=:0 && synergyc -d INFO -n pi -l /var/log/synergy.log 192.168.0.1
exit 0
where 192.168.0.1 is your synergy server`s IP.
edit /etc/xdg/lxsession/LXDE-pi/autostart
add to the end of line
/home/pi/synergy.sh
8. Start synergy and enjoy!
/home/pi/synergy.sh
Comments
Post a Comment