2020-04-26 22:12:40 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
apt update
|
2020-04-29 15:33:29 -04:00
|
|
|
apt install -y neofetch fortune-mod vim python3-pip git
|
2020-04-26 22:12:40 -04:00
|
|
|
|
|
|
|
echo "" > /etc/motd
|
|
|
|
|
|
|
|
echo "" >> /etc/bash.bashrc
|
|
|
|
echo "neofetch" >> /etc/bash.bashrc
|
|
|
|
echo "/usr/games/fortune" >> /etc/bash.bashrc
|
|
|
|
|
2020-09-17 20:16:47 -03:00
|
|
|
git clone https://dev.ilab.cl/public/pythonweb.git /srv
|
2020-04-26 22:12:40 -04:00
|
|
|
|
|
|
|
cd /srv
|
2020-04-29 15:33:29 -04:00
|
|
|
pip3 install setuptools gunicorn
|
2020-04-26 22:12:40 -04:00
|
|
|
pip3 install -r web-interface/requirements.txt
|
|
|
|
|
|
|
|
cp -f webinterface.service.sample /etc/systemd/system/webinterface.service
|
|
|
|
|
|
|
|
systemctl unmask webinterface.service
|
|
|
|
systemctl enable webinterface.service
|
|
|
|
systemctl start webinterface.service
|