-
barrier > gérer plusieurs machines avec une seule souris et un seul clavier
sudo apt install barrier
Commandes côté SERVEUR
barriers -a <address> -c <pathname> --daemon -n <screen> --restart -d <level> -a, --address <address> listen for clients on the given address. -c, --config <pathname> use the named configuration file instead. -d, --debug <level> filter out log messages with priority below level. level may be: FATAL, ERROR, WARNING, NOTE, INFO,DEBUG, DEBUG1, DEBUG2. -n, --name <screen> use screen-name instead the hostname to identify this screen in the configuration. -1, --no-restart do not try to restart on failure. --restart restart the server automatically if it fails. -l --log <file> write log messages to file. --no-tray disable the system tray icon. --enable-drag-drop enable file drag & drop. --enable-crypto enable the crypto (ssl) plugin. --profile-dir <path> use named profile directory instead. -f, --no-daemon run in the foreground. --daemon run as a daemon.
Commandes côté CLIENT
barrierc --yscroll <delta> --daemon -n <screen> --restart -d <level> <server-address> -d, --debug <level> filter out log messages with priority below level. level may be: FATAL, ERROR, WARNING, NOTE, INFO, DEBUG, DEBUG1, DEBUG2. -n, --name <screen> use screen-name instead the hostname to identify this screen in the configuration. -1, --no-restart do not try to restart on failure. --restart restart the server automatically if it fails. (*) -l --log <file> write log messages to file. --no-tray disable the system tray icon. --enable-drag-drop enable file drag & drop. --enable-crypto enable the crypto (ssl) plugin. --profile-dir <path> use named profile directory instead. -f, --no-daemon run in the foreground. --daemon run as a daemon. --yscroll <delta> defines the vertical scrolling delta, which is 120 by default.
Créer un service avec systemd
To add barrier client or server as a service on a systemd, you can create a .service file for systemd.
Exemple d’un service dans /etc/systemd/system/ started/stopped with the systemctl command. (X11 est à :0).
[Unit] Description=Barrier Client daemon After=network.target [Service] User=<username> Group=<groupname> ExecStart=barrierc --enable-crypto --display :0 --debug INFO -f <serveur> Restart=always [Install] WantedBy=multi-user.target
To use a systemd Barrier service on a multi-user system, consider using a user service or starting the GUI application at logon instead.
The barrier client can also be started from the command line remotely using ssh as long as $DISPLAY is set or specified with --display.