Files
Akilan-website/content/technicalposts/Modifying-laplace-keyboard-mouse.md

3.5 KiB

title, summary, date, aliases, tags, author, draft, aliases, weight
title summary date aliases tags author draft aliases weight
Patch: Using remote ScreenShare ,keyboard and mouse using laplace and Barrier Modifying the open source project laplace to allow remote keyboard and mouse during screenshare 2021-07-05
/laplace-keyboard-mouse
WebRTC
laplace
Akilan Selvacoumar false
/laplace-keyboard-mouse
2

What is laplace ?

" Laplace is an open-source project to enable screen sharing directly via browser. Made possible using WebRTC for low latency peer-to-peer connections, and WebSocket implemented in golang for WebRTC signaling. "

link: https://github.com/adamyordan/laplace

Link to my branch which has Barrier intergrated with Barrier KVM: https://github.com/Akilan1999/laplace/tree/keyboard_mouse

Link to the pull request: https://github.com/adamyordan/laplace/pull/8

Installation

Installation required to share keyboard and mouse

To do this we ensure that the client either has has a IPV6 address or a public IPV4 address. We use the use the popular open repository known as Barrier KVM.

What is Barrier kvm?

"Barrier is software that mimics the functionality of a KVM switch, which historically would allow you to use a single keyboard and mouse to control multiple computers by physically turning a dial on the box to switch the machine you're controlling at any given moment. Barrier does this in software, allowing you to tell it which machine to control by moving your mouse to the edge of the screen, or by using a keypress to switch focus to a different system." Barrier KVM

Platform Build Status
Linux Build Status
Mac Build Status
Windows Debug Build Status
Windows Release Build Status
Snap Snap Status

Build from source

$ git clone https://github.com/adamyordan/laplace.git
$ cd laplace && go build -o laplace main.go
$ export LAPLACE = $PATH
$ ./laplace --help
$ ./laplace -setconfig 
$ ./laplace -tls -addrs <ip address>:<port no>

Note: ensure you are running none using Sudo

Limitation

The machine that wants to control the screen needs to either be:

  • Same network as the server
  • Needs to have an IPV6 address
  • Needs to have an public IPV4 address

Vidoe demo

Video demo server side installation

{{< youtube 7c1_jlXJW4Q >}}

Video demo client side installation

{{< youtube gF70pqvN3Gk >}}