Installation¶
System dependencies¶
Install FreeCAD.¶
# Install FreeCAD
sudo add-apt-repository ppa:freecad-maintainers/freecad-stable
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install freecad freecad-doc
Install Docker.¶
# Install Docker
sudo apt-get install wget
wget -qO- https://get.docker.com/ | sh
Create a Docker group.¶
Warning
Warning: The docker group is equivalent to the root user.
# Create a Docker group
sudo usermod -aG docker YOUR_USER_NAME
Python requirements¶
cd machinehub
sudo -H pip install -r requirements.txt
Execute machinehub¶
Build the machinehub docker image to use as base to the machine images.
cd machinehub/machinehub/docker/
docker build -t machinehub .
Launch the webapp.
cd machinehub
python launcher.py
Configure machinehub¶
If you want to change the address or the admin info, edit ~/.machinehub/machinehub.conf yo chage the address, port, or the admin info.
[server]
host: 127.0.0.1
port: 5000
[users]
admin: admin #user: password