Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt
hiddentrue

Tricks with ethernet interfaces.

...

Table of Contents
maxLevel2
typeflat

...

Resources

Installation

Code Block
languagebash
$ sudo apt install ethtool

...

Remote PC

  • Both: Ensure both primary (server) and secondary (client) pc's are aware of each other's hostnames (use /etc/hosts if there is no DNS server) 

  • Server: Create a configuration file (/etc/synergy.conf, ~/.synergy.conf are likely places)

  • Client: The client side needs no configuration except to be aware of the server's hostname.

Configuration File (Server PC)
Code Block
languageyaml
# snorriheim is the server (also recorded in /etc/hosts on the clients)
# snorri-oryx is a client (recorded in /etc/hosts on the server)
# lenevo is another client (recorded in /etc/hosts on the server)

section: screens
  lenevo:
  snorriheim:
  snorri-oryx:
end

# Alisases seem to be oft needed when the hostname is other than
# the alias being used here
section: aliases
  lenevo:
    91106-DStonier.internal.tri.global
end

section: links
  lenevo:
    right = snorriheim
  snorri-oryx:
    left = snorriheim
  snorriheim:
    left = lenevo
    right = snorri-oryx
end

Execution

Execute Server and Client
Code Block
languagebash
# Server
synergys --config /etc/synergy.conf

# Clients
synergyc snorriheim

Debugging

Execute Server and Client
Code Block
languagebash
# Primary PC
synergys --debug DEBUG --no-daemon --config /etc/synergy.conf

# Secondary PC
synergyc --debug DEBUG snorriheim

Automation

Create some auto-start scripts and register these in the Autostart section of System Settings as a Script File, run on Startup.

Info

The client side is happy running clients in parallel. I haven't tested parallelising on the server, but that too is probably fine (or there is a smarter way to do so in the configuration?).

...

  • BIOS: Enable Wake on Lan(WOL) or Wake On PCI(E).

  • MAC Address: Get your MAC Address from ipconfig

  • WOL: Run the following code to enable wol on your interface

Code Block
languageyaml
$ sudo ethtool -s enp3s0 wol g
Note

This only enables it for the next reboot. Either enable it as a startup script or when remotely shutting down (see scripts below).

Local PC

snorriheim-wake
Code Block
languagebash
#!/bin/bash

synergys --config /etc/synergy.conf

...

wakeonlan 10:c3:7b:92:5c:67
snorriheim-sleep
Code Block
languagebash
#!/bin/bash

synergycssh --debug DEBUG snorriheimt snorriheim "sudo ethtool -s enp3s0 wol g && sudo shutdown -h now"