Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rdch106/teamviewer-service
Service to launch TeamViewer Remote Desktop
https://github.com/rdch106/teamviewer-service
remote-control rest-api restful-api service teamviewer teamviewer-api
Last synced: about 20 hours ago
JSON representation
Service to launch TeamViewer Remote Desktop
- Host: GitHub
- URL: https://github.com/rdch106/teamviewer-service
- Owner: RDCH106
- License: agpl-3.0
- Created: 2018-09-01T11:10:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-05T21:11:08.000Z (about 6 years ago)
- Last Synced: 2024-10-13T09:15:07.526Z (about 1 month ago)
- Topics: remote-control, rest-api, restful-api, service, teamviewer, teamviewer-api
- Language: Python
- Size: 290 KB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TeamViewer Service
Service to launch TeamViewer Remote Desktop
---------------------
### Installation
You can install from source with:
``` bash
$ 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:
``` bash
$ cd teamviewer-service/teamviewerservice
$ python gateway_main.py
```In the first execution default config.json will be created in the working directory:
``` bash
Error loading config.json!Default config.json generated! Try again.
```👁️[*Check Configure tv_config.jon*](#configure-tv_configjon)
👁️[*Check Change Linkero adminSecret*](#change-linkero-adminsecret)
Running again the service will start to work:
``` bash
$ python gateway_main.py
```👁️[*Create Linkero user*](#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:
```py
from requests import postpost ('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*](#change-linkero-adminsecret) section.
If everything is correct, the post will return `