JustToThePoint English Website Version
JustToThePoint en español

Maximize your online presence with our exclusive offer: Get a stunning hero banner, the hero you need and deserve, at an unbeatable price! Bew, 689282782, bupparchard@gmail.com

How to use and share a single mouse/keyboard across devices

Barrier is a free and open-source KVM forked from Synergy. It mimics the functionality of a KVM switch. It allows you to use and share a single mouse and keyboard across multiple devices. For instance, my macOS (server) and Ubuntu (client).

For Windows and MacOS (brew install barrier), the latest packages are available here. Ubuntu: sudo snap install barrier. Arch: pacman -S barrier.

  1. MacOS: Server (share this computer’s mouse and keyboard). Click on Configure Server…

    Drag and drop the computer icon from the top right to a suitable position. The position is essential because that’s how your mouse pointer will move between screens. Observe that you should provide the hostname of the client computer.Barrier My Barrier server configuration. Left to right: MyLinux (PC, Ubuntu), Maximos-Mac-… (my MacPro, macOS).

  2. Ubuntu: Client (use another computer’s mouse and keyboard). Disable Auto config. Screen name: MyLinux. Server IP: 192.168.1.40 (my MacOS’s IP).

    Maybe you could set up Barrier to run on startup. Launch Startup Applications: Name (Barrier), Command (/usr/bin/barrier).

  3. Set Barrier to automatically launch at boot up (macOS). Go to System Preferences and click Users & Groups. Then, click on Login Items. At the bottom left corner of the window, click on the lock icon and enter your admin password. Click the plus (+) sign, Applications and select Barrier to auto-start.

Barrier

Sharing a mouse and keyboard between Windows/macOS and Arch.

  1. Server (let’s say your laptop or PC with macOS, Windows or GNU/Linux): Server (share this computer’s mouse and keyboard).
  2. Client (Arch Linux): Client (use another computer’s mouse and keyboard). Screen name (Arch Linux’s name, e.g., nmaximo7Arch), Server IP (self-explanatory).
  3. Barrier, Change Settings: Start Barrier on startup.
  4. Autostart Barrier. Remember that an xprofile file (~/.xprofile) allows you to execute commands at the beginning of the X user session - before the window manager is started. gedit ~/.xprofile:
    #!/bin/sh 
    /usr/bin/barrier -f --no-tray --debug INFO --name nmaximo7Arch [192.168.1.40]:24800 &

It means, -f: run in the foreground; ‐‐no-tray: disable the system tray icon; ‐‐name nmaximo7Arch: use nmaximo7Arch instead of hostname to identify this screen in the barrier’s configuration; [192.168.1.40]:24800: server’s dirIP:port.

Bitcoin donation

JustToThePoint Copyright © 2011 - 2024 Anawim. ALL RIGHTS RESERVED. Bilingual e-books, articles, and videos to help your child and your entire family succeed, develop a healthy lifestyle, and have a lot of fun. Social Issues, Join us.

This website uses cookies to improve your navigation experience.
By continuing, you are consenting to our use of cookies, in accordance with our Cookies Policy and Website Terms and Conditions of use.