First commit

This commit is contained in:
Wim Pomp
2022-08-30 13:04:14 +02:00
parent 359f330f11
commit e6acbd7c7f
15 changed files with 308 additions and 0 deletions

35
README.md Normal file
View File

@@ -0,0 +1,35 @@
# Matlab Hub
Start proxied matlab instances from a webpage using Nginx.
## Preequisites
Linux with Matlab and Python3
## Installation
make matlabhub/config.py:
license_file: 'path_to_license.lic'
port_range: [10000, 65536]
install:
sudo apt install nginx screen
sudo pip install matlabhub
sudo cp matlab /etc/nginx/sites-available/
sudo ln -s /etc/nginx/sites-available/matlab /etc/nginx/sites-enabled/matlab
sudo cp matlab.service /lib/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable nginx
sudo systemctl enable matlab
sudo service nginx start
sudo service matlab start
## Configuration
Change the user, path to the socket file and the port (default: 8585) in matlab and matlab.service.
## Usage
Browse to http://127.0.0.1:8585