Skip to content

script to fully automate slickstack install: random passwords, wordpress settings + language + plugins, backup all installation data + passwords to local PC

Notifications You must be signed in to change notification settings

backamblock/slickstack-installer

Repository files navigation

What is this?

WARNING: read everything before usage!

This script automates slickstack even more:

  1. update, upgrade, clean the VPS packages
  2. get your custom ss-config file for SlickStack (or the default, mine)
  3. replace user and password variables with secure randoms, change other settings with your data
  4. and start the SlickStack installation as usual
  5. install your public key afterwards so you can still use the password in case of emergency
  6. some post-install like finishing WP install, plugins, theme, ... disable what you don't need
  7. save all important data in a file "DOMAIN-IP.txt" on your pc inside the server-configs folder

1 - What do I need to start?

  • Ubuntu 20.04 VPS
  • VSCode and logged in to git - no VSCode? terminal works fine
  • this repo forked and cloned LOCALLY on your PC!
  • DO NOT fill in your API keys publicly in GitHub Web !!!
  • a working VPS
  • the VPS login user MUST be exactly "root"
  • your VPS root password
  • your public SSH key - when not set it will ask for password some times
  • make sure DNS is set up with Cloudflare according to SlickStack requirements - SSL to full
  • get "Account" API Key in Cloudflare
  • leave Cloudflare VARs empty if you don't want to use CF
  • check installation-checklist.md for DNS settings
  • please check the included ss-config-sample.txt if it fits your needs! if you need changes, just fork the repo

2 - input your data in key-vars.sh file

  • open repo in vscode
  • duplicate key-vars-sample.sh
  • rename key-vars-sample.sh to key-vars.sh ONLY IN YOUR LOCAL ENVIRONMENT!
  • edit your key-vars.sh

3 - run installer script

  • open terminal in the project folder
  • bash install-slickstack.sh
  • enter password some times if no ssh key set
  • get a coffee and let it finish - might take up to 15 min
  • check output for errors
  • if you set no ssh key the script will ask for NEW USER password 2x at the end - scroll up to colorful log section of ss-install
  • check if config file was saved to your PC correctly
  • wait for reboot to finish
  • finish WP setup on your new website

FINISHED - ENJOY!

Please tell me how it worked for you! Just open an Issue :)


No VSCode? No Problem!

  • it will work from a normal terminal
  • VSCode just makes editing and running easier
  • download or clone this repo to a local folder
  • edit the files
  • cd into the root folder of this repository
  • go to section 3

Post install script

  • install and setup Wordpress with admin user
  • if enabled it will make additional settings
  • set wp-config WP_CACHE to true for wp-rocket
  • set up cron to prevent updates from deleting things
  • install theme and plugins
  • install woocommerce and plugins

ATTENTION

  • Translation in slickstack only works for few select languages!
  • you MUST install your shop and make first setup in english/german no matter what!
  • you MUST keep the site slugs english/german, like they are created by stock wp/woo
  • install woocommerce in english/german or cart pages will be cached!
  • if you set any other language than officially supported, it WILL break your site!
  • supported languages can change over time, check slickstack official repo

About

script to fully automate slickstack install: random passwords, wordpress settings + language + plugins, backup all installation data + passwords to local PC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages