Skip to content

eiguike/mouse-posyx

Repository files navigation

Mouse Posyx


CircleCI

Control your mouse and keyboard throught your browser's smartphone. [video]

This application uses Websockets to create a connection between the host and the browser and it is compatible for Windows and Linux (WIP for OSX).

Build instructions:


Building for Linux (Click to expand) 1. Clone this repository
 $ git clone https://github.com/eiguike/mouse-posyx.git
  1. Install the prerequisites packages:
$ sudo apt install cmake zlib1g-dev libx11-dev libxtst-dev
  1. Initialize submodule folder and update it
 $ git submodule init; git submodule update
  1. Build libwebsockets and install
 $ cd libwebsockets;mkdir build;cd build;cmake ..;make; sudo make install;
  1. In mouse-posyx's folders, execute the following commands to build:
 $ mkdir build; cd build
 $ cmake ..
 $ make
  1. Copy libwebsockets's implementations to the proper folder
$ sudo cp /usr/local/lib/libwebsockets* /usr/lib
  1. Execute the application
$ ./mouse-posyx
  1. Access the application throught IP:8000 in your favorite browser.
  2. Enjoy!
Building for Windows (Click to expand) 1. Install OpenSSL, cmake and Visual Studio
  1. Clone this repository

  2. Build and install libwebsockets

  3. In root folder, create a 'build' folder

 md build; cd build

5a. Prepare the development enviroment to compile

 cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RELEASE

5b. Prepare the development enviroment to compile, with OpenSSL activated:

 cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RELEASE -DUSE_SSL=TRUE
  1. Compile
 nmake
  1. Execute the application

  2. Access the application throught IP:8000 in your favorite browser.

  3. Enjoy!

Building for MacOSX (Click to expand) 1. Clone this repository
 $ git clone https://github.com/eiguike/mouse-posyx.git
  1. Initialize submodule folder and update it
 $ git submodule init; git submodule update
  1. Build libwebsockets and install
 $ cd libwebsockets;mkdir build;cd build;cmake .. -DLWS_WITH_SSL=OFF -DLWS_WITHOUT_BUILTIN_SHA1=OFF;make; sudo make install;
  1. In mouse-posyx's folders, execute the following commands to build:
 $ mkdir build; cd build
 $ cmake ..
 $ make
  1. Execute the application
$ ./mouse-posyx
  1. Access the application throught IP:8000 in your favorite browser.
  2. Enjoy!

Binaries release:


Binaries are only available for Windows, and you can download here

Author:

@eiguike - rick.eihara@gmail.com