Posted on Leave a comment

Sharing mouse and keyboard

Several computers and monitors

Actively using several computers is a challenge.

Setup using two computers each have a monitor, sharing mouse and keyboard using network.

Both computers is running Manjaro Linux Openbox Community Edition.

Install the AUR package barrier using Pamac

pamac build barrier

Server

On the server (with mouse/keyboard attached) launch the barrier app and configure the server. Save the configuration as ~/.barrier.conf

Barrier launcher script.

touch ~/barrier.sh
chmod +x ~/barrier.sh
nano ~/barrier.sh
barriers --no-tray --debug INFO --name servername --enable-crypto -c "/home/username/.barrier.conf" --address :24800

Edit the Openbox autostart to run the script at login

nano ~/.config/openbox/autostart
sleep 1; ~/barrier.sh &

Client

On the client (the one to be controlled) launch the barrier app and connect to the server. This has to be done manually as the server identity must be confirmed before first use.

Barrier launcher script on client login.

touch ~/barrier.sh
chmod +x ~/barrier.sh
nano ~/barrier.sh
barrierc --no-tray --debug INFO --name clientname --enable-crypto [serverip]:24800

Edit the Openbox autostart to run the script at login

nano ~/.config/openbox/autostart
sleep 1; ~/barrier.sh &

Autologin

Install the package lightdm-settings and launch the settings manager using sudo

sudo lightdm-settings

Configure autologin for the user and restart the client.

Log off the server and re-login

Leave a Reply