Created
February 3, 2020 03:56
-
-
Save ixtiyoruz/0ee96541943e4f969406317c8aa88f8b to your computer and use it in GitHub Desktop.
vatic installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://gitlab.com/EAVISE/publicwiki/wikis/install-vatic | |
sudo apt-get install -y git python-setuptools python-dev libfreetype6 libfreetype6-dev apache2 libapache2-mod-wsgi mysql-server-5.7 mysql-client-5.7 libmysqlclient-dev | |
sudo pip install cython==0.20 | |
sudo pip install SQLAlchemy wsgilog mysql-python parsedatetime argparse | |
sudo pip install numpy | |
# in my case this solution worked | |
sudo apt-get install python-munkres | |
#add ffmpeg-3 repo for 16.04 | |
sudo add-apt-repository ppa:jonathonf/ffmpeg-3 | |
sudo apt-get update | |
sudo apt-get install ffmpeg | |
#create new vatic directory | |
cd ~/Desktop | |
mkdir vatic | |
cd vatic | |
#clone repo from github | |
git clone https://github.com/cvondrick/turkic.git | |
git clone https://github.com/cvondrick/pyvision.git | |
git clone https://github.com/cvondrick/vatic.git | |
cd turkic | |
sudo python setup.py install | |
cd .. | |
cd pyvision | |
sudo python setup.py install | |
cd .. | |
sudo cp /etc/apache2/sites-enabled/000-default.conf /etc/apache2/sites-enabled/000-default.conf.backup | |
#change all data from 000-default.conf to below, make sure paths are correct | |
sudo echo " | |
WSGIDaemonProcess www-data | |
WSGIProcessGroup www-data | |
<VirtualHost *:80> | |
ServerName localhost | |
DocumentRoot /home/$USER/Desktop/vatic/vatic/public | |
WSGIScriptAlias /server /home/$USER/Desktop/vatic/vatic/server.py | |
CustomLog /var/log/apache2/access.log combined | |
</VirtualHost> | |
" | sudo tee /etc/apache2/sites-enabled/000-default.conf > /dev/null | |
#copy all lines below into apache2.conf, make sure paths are correct and tabs are equal to other (see in nano editor) | |
echo " | |
<Directory /home/$USER/Desktop/vatic/vatic/> | |
Options Indexes FollowSymLinks | |
AllowOverride None | |
Require all granted | |
</Directory> | |
" | sudo tee -a /etc/apache2/apache2.conf > /dev/null | |
sudo cp /etc/apache2/mods-available/headers.load /etc/apache2/mods-enabled | |
#restart apache2 | |
sudo apache2ctl graceful | |
printf "\n----------------------\n\n" | |
echo "Login into DB" | |
mysql -u root -p <<EOF | |
create database vatic; | |
EOF | |
#update vatic/vatic/config.py file with mysql pass | |
#In the vatic directory: | |
cd vatic/ | |
cp config.py-example config.py | |
sudo nano config.py | |
sudo apt-get install python-imaging | |
turkic setup --database | |
turkic setup --public-symlink | |
#check if turkic installed succesfully | |
printf "\n----------------------\n\n" | |
turkic status --verify | |
printf "\n----------------------\n\n" | |
sudo usermod -a -G $USER www-data | |
sudo mkdir /var/www/.python-eggs/ | |
sudo chown www-data:www-data /var/www/.python-eggs/ | |
sudo apache2ctl graceful | |
printf "\n-------------------------------\n\n" | |
echo " Vatic installed " | |
printf "\n-------------------------------\n\n" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment