---
# System prepended metadata

title: Setup VM

---

# Setup VM
tutorial [link](https://www.youtube.com/watch?v=YFBRVJPhDGY)
* `sudo apt install update`
* `sudo apt install apache2`
* `sudo ufw app list`
* `sudo ufw allow 'Apache'`
* `sudo systemctl status Apache`
* `sudo apt-get install libapache2-mod-wsgi python-dev`
* `cd/var/www/`
* `mkdir webApp`
* `cd webApp`
* `sudo apt-get install python-pip`
* `pip install flask flask_sqlalchemy`
---
open filedzilla, input your flask apps into the server, open webApp folder
webApp>webApp>

---

* `sudo nano /etc/apache2/sites-available/webApp.conf`
* input your server ip address
* `sudo a2ensite webApp`
* `sytemctl reload apache2`
* `sudo nano webApp.wsgi`
* `sudo service apache2 restart`




# setup liva
* install tmux
* install screen
* tmux new -s ovpn-bit
* sudo openvpn --config 
* ctrl b + d
* install ssh
* tmux new-session -t nama
* install nginx