Skip to content

Instantly share code, notes, and snippets.

@flowolf
Last active March 8, 2021 19:29
Show Gist options
  • Select an option

  • Save flowolf/b5af11c2dfbf401550fd4b4f2000bcec to your computer and use it in GitHub Desktop.

Select an option

Save flowolf/b5af11c2dfbf401550fd4b4f2000bcec to your computer and use it in GitHub Desktop.

Revisions

  1. flowolf revised this gist Mar 8, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion synergy_linux_mac.md
    Original file line number Diff line number Diff line change
    @@ -45,7 +45,7 @@ $ ssh-copy-id -o PubKeyAuthentication=no -i .ssh/id_rsa.pub YOURMAC
    ```
    ## Running

    Synergy does not encrypt trafic in default setup. Therefor we tunnel the trafic through ssh.
    Synergy does not encrypt trafic in default setup. Therefore we tunnel the traffic through ssh.

    start the client on the mac.

  2. flowolf revised this gist Mar 21, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion synergy_linux_mac.md
    Original file line number Diff line number Diff line change
    @@ -23,7 +23,7 @@ section: links
    left = linux
    end
    section: options
    switchDelay = 200
    switchDelay = 300
    keystroke(control+super+right) = switchInDirection(right) # Switch screens on keypress
    keystroke(control+super+left) = switchInDirection(left)
    end
  3. flowolf revised this gist Mar 20, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions synergy_linux_mac.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    # Synergy between Linux and Mac Os X
    ## sharing a mouse and keyboard between two computers

    A quick writeup for a working setup (Linux is Server, Mac is Client)

  4. flowolf revised this gist Mar 20, 2020. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion synergy_linux_mac.md
    Original file line number Diff line number Diff line change
    @@ -31,14 +31,17 @@ end
    ## install for Mac Os X

    needs homebrew:
    ```
    $ brew cask install synergy
    ```

    In the system preferences, allow SSH (found under sharing)

    ## install on Linux
    ```
    $ apt install synergy
    $ ssh-copy-id -o PubKeyAuthentication=no -i .ssh/id_rsa.pub YOURMAC

    ```
    ## Running

    Synergy does not encrypt trafic in default setup. Therefor we tunnel the trafic through ssh.
  5. flowolf created this gist Mar 20, 2020.
    56 changes: 56 additions & 0 deletions synergy_linux_mac.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,56 @@
    # Synergy between Linux and Mac Os X

    A quick writeup for a working setup (Linux is Server, Mac is Client)

    synergy.conf:
    ```
    section: screens
    linux:
    mac:
    end
    section: aliases
    mac:
    mac.local
    linux:
    itchy # linux hostname
    end
    section: links
    linux:
    right = mac
    mac:
    left = linux
    end
    section: options
    switchDelay = 200
    keystroke(control+super+right) = switchInDirection(right) # Switch screens on keypress
    keystroke(control+super+left) = switchInDirection(left)
    end
    ```

    ## install for Mac Os X

    needs homebrew:
    $ brew cask install synergy

    In the system preferences, allow SSH (found under sharing)

    ## install on Linux
    $ apt install synergy
    $ ssh-copy-id -o PubKeyAuthentication=no -i .ssh/id_rsa.pub YOURMAC

    ## Running

    Synergy does not encrypt trafic in default setup. Therefor we tunnel the trafic through ssh.

    start the client on the mac.

    run this script on Linux to start the server:
    ```
    #!/bin/bash
    PORT=24800
    ssh -f -R $PORT:127.0.0.1:24800 YOURMAC sleep 10
    sleep 1
    synergys --config ~/.config/synergy.conf -f -n YOUR_SERVER -d DEBUG --restart
    ```