Skip to content

Instantly share code, notes, and snippets.

@kn9
Created November 26, 2016 21:37
Show Gist options
  • Save kn9/c9501bb187c90bf14935b4acb45ba2ef to your computer and use it in GitHub Desktop.
Save kn9/c9501bb187c90bf14935b4acb45ba2ef to your computer and use it in GitHub Desktop.

Revisions

  1. Translator5 revised this gist Feb 9, 2016. 1 changed file with 9 additions and 7 deletions.
    16 changes: 9 additions & 7 deletions ONPAWD.sh
    Original file line number Diff line number Diff line change
    @@ -37,7 +37,6 @@ echo "deb http://repo.ajenti.org/debian main main debian" >> /etc/apt/sources.li
    apt-get update
    apt-get install ajenti
    service ajenti status
    service ajenti stop

    # ONLY IF DEBIAN 8.X
    #Configure Ajenti for non-SSL connection
    @@ -58,18 +57,20 @@ service ajenti stop
    #},

    #Install PostgreSQL
    apt-get install postgresql
    #apt-get install postgresql

    #Install PHP5 (requered by WordPress)
    apt-get install php5-common php5-cli php5-fpm php5-pgsql
    #Install PHP5 and MySQL (requered by WordPress)
    apt-get install php5-common php5-cli php5-fpm php5-mysql
    #php5-pgsql
    service php5-fpm restart

    #Install PHPmyAdmin
    #apt-get install phpmyadmin

    # Install Ajenti-v
    apt-get install ajenti-v ajenti-v-php-fpm ajenti-v-nginx
    #apt-get install ajenti-v-mysql php5-mysql
    #Install MySQL
    apt-get install ajenti-v-mysql

    # If you <3 Ruby
    #apt-get install ajenti-v-ruby-unicorn ajenti-v-ruby-puma
    @@ -85,11 +86,12 @@ apt-get install ajenti-v-mail
    #apt-get install courier-pop

    # Restart All Services
    service postgresql restart
    #service postgresql restart
    service mysql restart
    service php5-fpm restart
    service nginx restart
    #service apache2 restart
    service ajenti restart
    #service apache2 restart
    ###########
    ###FINE####
    ##ROUND 2##
  2. Translator5 revised this gist Feb 9, 2016. 1 changed file with 15 additions and 3 deletions.
    18 changes: 15 additions & 3 deletions ONPAWD.sh
    Original file line number Diff line number Diff line change
    @@ -6,15 +6,27 @@
    # Followed we install Wordpress and you will have to install some plugins for PSQL and Nginx.
    # Ready to press words!
    # ----------
    #remove instalaltion hardware ofthe sources.list
    nano /etc/apt/sources.list
    #put a "#" in front of the deb cd/dvd line

    #update
    apt-get update

    #Putty Connection
    apt-get install openssh-server
    #connect via ssh user@ip
    #on "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!"
    #use ssh-keygen -R ip

    #Install OpenSSL for Putty
    apt-get install openssl
    #apt-get install openssl

    #Only if you want/do not want apache2
    #Install Apache2
    #apt-get install apache2
    # Uninstall Apache2
    apt-get autoremove && apt-get remove apache2*
    #Uninstall Apache2
    #apt-get autoremove && apt-get remove apache2*

    #Install Nginx
    apt-get install nginx
  3. Translator5 revised this gist Feb 9, 2016. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions ONPAWD.sh
    Original file line number Diff line number Diff line change
    @@ -27,10 +27,11 @@ apt-get install ajenti
    service ajenti status
    service ajenti stop

    # ONLY IF DEBIAN 8.X
    #Configure Ajenti for non-SSL connection
    #If you want to use a SSL connection visit the following ans skip this step.
    # https://easythereentropy.wordpress.com/2014/05/29/getting-setup-with-nginx-php-and-postgresql/
    nano /etc/ajenti/config.json
    #nano /etc/ajenti/config.json

    #NOW IT's YOUR TURN
    #Change the following
    @@ -52,7 +53,7 @@ apt-get install php5-common php5-cli php5-fpm php5-pgsql
    service php5-fpm restart

    #Install PHPmyAdmin
    apt-get install phpmyadmin
    #apt-get install phpmyadmin

    # Install Ajenti-v
    apt-get install ajenti-v ajenti-v-php-fpm ajenti-v-nginx
  4. Roman revised this gist Feb 8, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions ONPAWD.sh
    Original file line number Diff line number Diff line change
    @@ -51,6 +51,9 @@ apt-get install postgresql
    apt-get install php5-common php5-cli php5-fpm php5-pgsql
    service php5-fpm restart

    #Install PHPmyAdmin
    apt-get install phpmyadmin

    # Install Ajenti-v
    apt-get install ajenti-v ajenti-v-php-fpm ajenti-v-nginx
    #apt-get install ajenti-v-mysql php5-mysql
  5. Roman revised this gist Feb 7, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ONPAWD.sh
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,7 @@ apt-get install openssl
    #Install Apache2
    #apt-get install apache2
    # Uninstall Apache2
    apt-get autoremove && sudo apt-get remove apache2*
    apt-get autoremove && apt-get remove apache2*

    #Install Nginx
    apt-get install nginx
  6. Roman revised this gist Feb 7, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ONPAWD.sh
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,8 @@ apt-get install openssl

    #Install Apache2
    #apt-get install apache2
    # Uninstall Apache2
    apt-get autoremove && sudo apt-get remove apache2*

    #Install Nginx
    apt-get install nginx
  7. Roman revised this gist Feb 7, 2016. No changes.
  8. Roman revised this gist Feb 7, 2016. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions ONPAWD.sh
    Original file line number Diff line number Diff line change
    @@ -12,10 +12,10 @@ apt-get update
    apt-get install openssl

    #Install Apache2
    apt-get install apache2
    #apt-get install apache2

    #Install Nginx
    #apt-get install nginx
    apt-get install nginx

    #Insall Ajenti
    wget http://repo.ajenti.org/debian/key -O- | apt-key add -
    @@ -28,7 +28,7 @@ service ajenti stop
    #Configure Ajenti for non-SSL connection
    #If you want to use a SSL connection visit the following ans skip this step.
    # https://easythereentropy.wordpress.com/2014/05/29/getting-setup-with-nginx-php-and-postgresql/
    #nano /etc/ajenti/config.json
    nano /etc/ajenti/config.json

    #NOW IT's YOUR TURN
    #Change the following
    @@ -50,8 +50,8 @@ apt-get install php5-common php5-cli php5-fpm php5-pgsql
    service php5-fpm restart

    # Install Ajenti-v
    apt-get install ajenti-v ajenti-v-php-fpm
    #apt-get install ajenti-v-nginx ajenti-v-mysql php5-mysql
    apt-get install ajenti-v ajenti-v-php-fpm ajenti-v-nginx
    #apt-get install ajenti-v-mysql php5-mysql

    # If you <3 Ruby
    #apt-get install ajenti-v-ruby-unicorn ajenti-v-ruby-puma
    @@ -69,8 +69,8 @@ apt-get install ajenti-v-mail
    # Restart All Services
    service postgresql restart
    service php5-fpm restart
    #service nginx restart
    service apache2 restart
    service nginx restart
    #service apache2 restart
    service ajenti restart
    ###########
    ###FINE####
  9. Roman revised this gist Feb 7, 2016. 1 changed file with 13 additions and 11 deletions.
    24 changes: 13 additions & 11 deletions ONPAWD.sh
    Original file line number Diff line number Diff line change
    @@ -11,11 +11,11 @@ apt-get update
    #Install OpenSSL for Putty
    apt-get install openssl

    # Uninstall Apache2
    apt-get autoremove && sudo apt-get remove apache2*
    #Install Apache2
    apt-get install apache2

    #Install Nginx
    apt-get install nginx
    #apt-get install nginx

    #Insall Ajenti
    wget http://repo.ajenti.org/debian/key -O- | apt-key add -
    @@ -28,7 +28,7 @@ service ajenti stop
    #Configure Ajenti for non-SSL connection
    #If you want to use a SSL connection visit the following ans skip this step.
    # https://easythereentropy.wordpress.com/2014/05/29/getting-setup-with-nginx-php-and-postgresql/
    nano /etc/ajenti/config.json
    #nano /etc/ajenti/config.json

    #NOW IT's YOUR TURN
    #Change the following
    @@ -42,15 +42,16 @@ nano /etc/ajenti/config.json
    # "certificate_path": "/etc/ajenti/ajenti.pem"
    #},

    #Install PostgreSQL
    apt-get install postgresql

    #Install PHP5 (requered by WordPress)
    apt-get install php5-common php5-cli php5-fpm php5-pgsql
    service php5-fpm restart

    #Install PostgreSQL
    apt-get install postgresql

    # Install Ajenti-v
    apt-get install ajenti-v ajenti-v-nginx ajenti-v-php-fpm
    apt-get install ajenti-v ajenti-v-php-fpm
    #apt-get install ajenti-v-nginx ajenti-v-mysql php5-mysql

    # If you <3 Ruby
    #apt-get install ajenti-v-ruby-unicorn ajenti-v-ruby-puma
    @@ -59,16 +60,17 @@ apt-get install ajenti-v ajenti-v-nginx ajenti-v-php-fpm
    # If you need nodeJS
    #apt-get install ajenti-v-nodejs
    # If you want FTP
    #apt-get install ajenti-v-ftp-pureftpd
    apt-get install ajenti-v-ftp-pureftpd
    # If you want mail
    #apt-get install ajenti-v-mail
    apt-get install ajenti-v-mail
    # If you want POP support (for gmail etc.)
    #apt-get install courier-pop

    # Restart All Services
    service postgresql restart
    service php5-fpm restart
    service nginx restart
    #service nginx restart
    service apache2 restart
    service ajenti restart
    ###########
    ###FINE####
  10. Roman revised this gist Feb 6, 2016. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion ONPAWD.sh
    Original file line number Diff line number Diff line change
    @@ -69,4 +69,10 @@ apt-get install ajenti-v ajenti-v-nginx ajenti-v-php-fpm
    service postgresql restart
    service php5-fpm restart
    service nginx restart
    service ajenti restart
    service ajenti restart
    ###########
    ###FINE####
    ##ROUND 2##
    ###########

    #Download WordPress
  11. Roman revised this gist Feb 6, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions ONPAWD.sh
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ apt-get update
    apt-get install openssl

    # Uninstall Apache2
    sudo apt-get autoremove && sudo apt-get remove apache2*
    apt-get autoremove && sudo apt-get remove apache2*

    #Install Nginx
    apt-get install nginx
    @@ -43,7 +43,7 @@ nano /etc/ajenti/config.json
    #},

    #Install PHP5 (requered by WordPress)
    sudo apt-get install php5-common php5-cli php5-fpm php5-pgsql
    apt-get install php5-common php5-cli php5-fpm php5-pgsql
    service php5-fpm restart

    #Install PostgreSQL
  12. Roman revised this gist Feb 6, 2016. 2 changed files with 72 additions and 36 deletions.
    72 changes: 72 additions & 0 deletions ONPAWD.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,72 @@
    # This file is zentralized to be a Turorial.
    # I'm not sure about the full selfish-work.
    # We will isntall OpenSSL,NginX,PostgreSQL.
    # Than we will isntall Ajenti.
    # Than you must configurate Ajenti to not use SSL (we will changethis later back)
    # Followed we install Wordpress and you will have to install some plugins for PSQL and Nginx.
    # Ready to press words!
    # ----------
    apt-get update

    #Install OpenSSL for Putty
    apt-get install openssl

    # Uninstall Apache2
    sudo apt-get autoremove && sudo apt-get remove apache2*

    #Install Nginx
    apt-get install nginx

    #Insall Ajenti
    wget http://repo.ajenti.org/debian/key -O- | apt-key add -
    echo "deb http://repo.ajenti.org/debian main main debian" >> /etc/apt/sources.list
    apt-get update
    apt-get install ajenti
    service ajenti status
    service ajenti stop

    #Configure Ajenti for non-SSL connection
    #If you want to use a SSL connection visit the following ans skip this step.
    # https://easythereentropy.wordpress.com/2014/05/29/getting-setup-with-nginx-php-and-postgresql/
    nano /etc/ajenti/config.json

    #NOW IT's YOUR TURN
    #Change the following
    #"ssl": {
    # "enable": true,
    # "certificate_path": "/etc/ajenti/ajenti.pem"
    #},
    #INTO
    #"ssl": {
    # "enable": false,
    # "certificate_path": "/etc/ajenti/ajenti.pem"
    #},

    #Install PHP5 (requered by WordPress)
    sudo apt-get install php5-common php5-cli php5-fpm php5-pgsql
    service php5-fpm restart

    #Install PostgreSQL
    apt-get install postgresql

    # Install Ajenti-v
    apt-get install ajenti-v ajenti-v-nginx ajenti-v-php-fpm

    # If you <3 Ruby
    #apt-get install ajenti-v-ruby-unicorn ajenti-v-ruby-puma
    # If you need Python
    #apt-get install ajenti-v-python-gunicorn
    # If you need nodeJS
    #apt-get install ajenti-v-nodejs
    # If you want FTP
    #apt-get install ajenti-v-ftp-pureftpd
    # If you want mail
    #apt-get install ajenti-v-mail
    # If you want POP support (for gmail etc.)
    #apt-get install courier-pop

    # Restart All Services
    service postgresql restart
    service php5-fpm restart
    service nginx restart
    service ajenti restart
    36 changes: 0 additions & 36 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -1,36 +0,0 @@
    #Insall Ajenti
    apt-get update
    wget http://repo.ajenti.org/debian/key -O- | apt-key add -
    echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list
    apt-get update
    apt-get install ajenti
    service ajenti restart

    # Uninstall Apache2
    sudo apt-get autoremove && sudo apt-get remove apache2*

    # Install Ajenti-v
    apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php-fpm php5-mysql

    # If you <3 Ruby
    apt-get install ajenti-v-ruby-unicorn ajenti-v-ruby-puma

    # If you need Python
    apt-get install ajenti-v-python-gunicorn

    # If you need nodeJS
    apt-get install ajenti-v-nodejs

    # If you want FTP
    apt-get install ajenti-v-ftp-pureftpd

    # If you want mail
    apt-get install ajenti-v-mail

    # If you want POP support (for gmail etc.)
    apt-get install courier-pop

    # Restart All Services
    sudo service php5-fpm restart
    sudo service nginx restart
    sudo service ajenti restart
  13. @seanmcn seanmcn revised this gist Feb 18, 2015. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -9,9 +9,18 @@ service ajenti restart
    # Uninstall Apache2
    sudo apt-get autoremove && sudo apt-get remove apache2*

    # Install Ajenti-v (other packages: ajenti-v-ruby-unicorn ajenti-v-ruby-puma ajenti-v-python-gunicorn ajenti-v-nodejs)
    # Install Ajenti-v
    apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php-fpm php5-mysql

    # If you <3 Ruby
    apt-get install ajenti-v-ruby-unicorn ajenti-v-ruby-puma

    # If you need Python
    apt-get install ajenti-v-python-gunicorn

    # If you need nodeJS
    apt-get install ajenti-v-nodejs

    # If you want FTP
    apt-get install ajenti-v-ftp-pureftpd

  14. @seanmcn seanmcn revised this gist Feb 18, 2015. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,13 @@ service ajenti restart
    sudo apt-get autoremove && sudo apt-get remove apache2*

    # Install Ajenti-v (other packages: ajenti-v-ruby-unicorn ajenti-v-ruby-puma ajenti-v-python-gunicorn ajenti-v-nodejs)
    apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php-fpm php5-mysql ajenti-v-mail ajenti-v-ftp-pureftpd
    apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php-fpm php5-mysql

    # If you want FTP
    apt-get install ajenti-v-ftp-pureftpd

    # If you want mail
    apt-get install ajenti-v-mail

    # If you want POP support (for gmail etc.)
    apt-get install courier-pop
  15. @seanmcn seanmcn revised this gist Feb 18, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -11,8 +11,10 @@ sudo apt-get autoremove && sudo apt-get remove apache2*

    # Install Ajenti-v (other packages: ajenti-v-ruby-unicorn ajenti-v-ruby-puma ajenti-v-python-gunicorn ajenti-v-nodejs)
    apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php-fpm php5-mysql ajenti-v-mail ajenti-v-ftp-pureftpd
    # If you want POP support (gmail etc.)

    # If you want POP support (for gmail etc.)
    apt-get install courier-pop

    # Restart All Services
    sudo service php5-fpm restart
    sudo service nginx restart
  16. @seanmcn seanmcn created this gist Feb 18, 2015.
    19 changes: 19 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    #Insall Ajenti
    apt-get update
    wget http://repo.ajenti.org/debian/key -O- | apt-key add -
    echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list
    apt-get update
    apt-get install ajenti
    service ajenti restart

    # Uninstall Apache2
    sudo apt-get autoremove && sudo apt-get remove apache2*

    # Install Ajenti-v (other packages: ajenti-v-ruby-unicorn ajenti-v-ruby-puma ajenti-v-python-gunicorn ajenti-v-nodejs)
    apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php-fpm php5-mysql ajenti-v-mail ajenti-v-ftp-pureftpd
    # If you want POP support (gmail etc.)
    apt-get install courier-pop
    # Restart All Services
    sudo service php5-fpm restart
    sudo service nginx restart
    sudo service ajenti restart