Project allows to show location of each user on your remote server.
- Get project:
$ git clone --recursive https://github.com/mperov/staffLocationWEB.git
$ cd staffLocationWEB/
-
- change full path to your .ssh folder in docker-compose.yml (/home/coder/.ssh is example path);
- Input IP address of your remote machine also change username and modify ssh port if it isn't 22 in call
getLocation.show()
that is at staffLocation.py source file; - Follow 4-7 README points of submodule project.
- Build and run container:
$ docker-compose build
$ docker-compose up -d
If it's all right site http://localhost:8080/location will be available.
- Get project:
$ git clone --recursive https://github.com/mperov/staffLocationWEB.git
$ cd staffLocationWEB/
- Create special Python virtual enviroment by
$ sudo apt-get install python3-venv -y
$ python3 -m venv staffLocationWEB
$ source staffLocationWEB/bin/activate
-
Next install some Python modules -
pip3 install -r requirements
orpython3 -m pip install -r requirements
If you don't have pip3 then you may install it how described here -
Install submodule Python requirements -
pip3 install -r getLinuxUserLocation/requirements
orpython3 -m pip install -r getLinuxUserLocation/requirements
-
Input IP address of your remote machine also change username and modify ssh port if it isn't 22 in call
getLocation.show()
that is at staffLocation.py source file. -
Set nginx credentials via variables BASIC_USERNAME and BASIC_PASSWORD in docker-compose.yml.
- Run project
$ source staffLocationWEB/bin/activate
$ ./staffLocation.py
- Open your favorite browser and go to http://localhost:8080/location