- interrupt the boot process by any key
- in the boot menu press 'e' for edit
- add
init=/bin/bashafterro quietin the line that begins withlinux - press
ctrl-x - type
mount -rw -o remount /dont't forget the trailing slash - use
passwdto change to a new password
This file contains hidden or 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
| # show number notation | |
| def get_number_notation(value, decimal_place=2, unit=''): | |
| ref = {24: 'Y', 21: 'Z', 18: 'E', 15: 'P', | |
| 12: 'T', 9: 'G', 6: 'M', 3: 'k', 0: '', | |
| -3: 'm', -6: 'u', -9: 'n', -12: 'p', | |
| -15: 'f', -18: 'a', -21: 'z', -24: 'y', | |
| } | |
| num = max([key for key in ref.keys() if value > 10 ** key]) | |
| mult = ref[num] if unit else 'e{}'.format(num) | |
| return '{}{}{}'.format(int(value / 10 ** num * 10 ** decimal_place) / 10 ** decimal_place, mult, unit) |
In the following, we assume a working Flask application with the name of SCRIPT_NAME. First we need to install a couple of things:
sudo apt-get update && sudo apt-get upgrade
Installing nginx will fail if apache is running. If your installation breaks half ways, then remove the fragments, stop apache (and I actually suggest removing it in case not needed) and then install nginx again:
sudo apt-get remove nginx* --purge
sudo /etc/init.d/apache2 stop
Good page with description: