start new:
tmux
start new with session name:
tmux new -s myname
| #!/usr/bin/env bash | |
| if [ $EUID -ne 0 ]; then | |
| echo "You must be root: \"sudo ngxvhost\"" | |
| exit 1 | |
| fi | |
| # May need to run this as sudo! | |
| # I have it in /usr/local/bin and run command 'ngxvhost' from anywhere, using sudo. | 
| #!/usr/bin/env bash | |
| echo ">>> Starting Install Script" | |
| # Update | |
| sudo apt-get update | |
| # Install MySQL without prompt | |
| sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
| sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' |