Giter Site home page Giter Site logo

rdch106 / teamviewer-service Goto Github PK

View Code? Open in Web Editor NEW
3.0 5.0 0.0 297 KB

Service to launch TeamViewer Remote Desktop

License: GNU Affero General Public License v3.0

Python 100.00%
teamviewer teamviewer-api remote-control service rest-api restful-api

teamviewer-service's Introduction

TeamViewer Service

Service to launch TeamViewer Remote Desktop


Installation

You can install from source with:

$ git clone https://github.com/RDCH106/teamviewer-service.git --recursive
$ cd teamviewer-service
$ pip install -r requirements.txt

Service start-up

Execute TeamViewer service with:

$ cd teamviewer-service/teamviewerservice
$ python gateway_main.py

In the first execution default config.json will be created in the working directory:

Error loading config.json!

Default config.json generated! Try again.

๐Ÿ‘๏ธCheck Configure tv_config.jon

๐Ÿ‘๏ธCheck Change Linkero adminSecret

Running again the service will start to work:

$ python gateway_main.py

๐Ÿ‘๏ธCreate Linkero user


Configuration

Configure tv_config.jon

Create tv_config.jon file in config with this content:

{"tv_path": "C:/path/to/teamviewer/TeamViewer.exe"}

where tv_path is the path to TeamViewer excutable. You can use TiemViewer portable version without installation for this purpose.

Change Linkero adminSecret

Change Linkero adminSecret typing the followings command:

python -c 'from linkero.tools.passwordHashGenerator import generatePasswordHash; generatePasswordHash()'

Introduce desired password and push enter. The password hash will be print in the following line in blue color. Copy the password hash to config.json in config folder. Search default adminSecret:

$5$rounds=549561$kWqFvPNTcBsl.Kle$ONikf.BJtqKKFTZbUtVmwZn0nDdwrsHhjyqgxRlUNw4

And replace it by your generated password hash.

Create Linkero user

Execute the following python code with gateway_main.py running:

from requests import post

post ('http://localhost:5000/api/users', data={"username":"myuser","password":"mypassword","secret":"myadminSecret"})

where "http://localhost:5000/api/users" is the local endpoint, "myuser" is the username for the new user, "mypassword" is the password for the new user and "myadminSecret" is the adminSecret introduced in Change Linkero adminSecret section.

If everything is correct, the post will return <Response [201] where code 201 indicates the correct creation of the user.


Usage

teamviewer-service's People

Contributors

rdch106 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

teamviewer-service's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.