Skip to content

Instantly share code, notes, and snippets.

@thinktanklinux
Last active April 20, 2020 05:14
Show Gist options
  • Save thinktanklinux/2c130262f584b61060740832963d4a14 to your computer and use it in GitHub Desktop.
Save thinktanklinux/2c130262f584b61060740832963d4a14 to your computer and use it in GitHub Desktop.
#http://youtu.be/l9IXSy1H_4M
sudo apt upgrade && sudo apt-get upgrade --fix-missing
sudo apt install build-essential checkinstall
sudo apt install ubuntu-restricted-extras
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt update
sudo apt install launchpad-getkeys
sudo launchpad-getkeys
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git
sudo git config --global user.name "YourName"
sudo git config --global user.email youremail@gmail.com
wget -qO - https://bit.ly/jasmin-deb-repo | sudo bash
sudo apt-get install python-jasmin
sudo systemctl enable jasmind
sudo systemctl start jasmind
sudo apt list --upgradable
sudo apt upgrade -y
sudo apt -y autoclean
sudo apt -y clean
sudo apt update
sudo apt-get install apache2 libapache2-mod-wsgi
sudo ufw allow 'Apache'
sudo systemctl enable apache2
sudo systemctl restart apache2
sudo systemctl reload apache2
cd /var/www/
sudo git clone https://github.com/amechax/JasminWebPanel.git
sudo sm -rf html
sudo sv JasminWebPanel html
cd html
sudo apt install python-pip
sudo pip install -r requirements.pip
sudo ./manage.py migrate
sudo ./manage.py createsuperuser
sudo ./manage.py collectstatic
# Input your new username and password local_settings.py
sudo touch local_settings.py
sudo nano local_settings.py
TELNET_HOST = '127.0.0.1'
TELNET_PORT = 8990
TELNET_USERNAME = 'root'
TELNET_PW = 'password'
# To save local_settings.py press Ctrl+x then press "y" and hit Enter
# Run as development
sudo python manage.py runserver [::]:8000
# visit http://localhost:8000/
sudo cp 000-default.conf /etc/apache2/sites-available/000-default.conf
sudo nano /etc/apache2/sites-available/000-default.conf
# Remove all text from 000-default.conf and add below lines on it.
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html>
<Files django.wsgi>
Require all granted
</Files>
</Directors>
WSGIDaemonProcess html python-path=/var/www/html:/var/www/html/env/lib/python2.7/site-packages
WSGIProcessGroup html
WSGIScriptAlias / /var/www/html/main/wsgi.py
Alias /statics /var/www/html/static/
</VirtualHost>
# press "Ctrl+x" then press "y" and hit "Enter" to save
sudo a2enmod wsgi
sudo a2ensite 000-default.conf
sudo service apache2 restart
sudo chmod a+w db.sqlite3
cd ..
sudo chown root:root html
sudo service apache2 restart
sudo chown www-data:www-data html
cd html
sudo chown www-data:www-data db.sqlite3
sudo service apache2 reload
#visit http://localhost/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment