GithubHelp home page GithubHelp logo

scripts's Introduction

scripts

This repo contains my collection of useful scripts. It currently includes scripts for doing basic Linux server administration and some niceties for development with Xcode.

Ubuntu 20.04

setup.sh

  • Configure remote access for a new VPS running Ubuntu 20.04 and updates basic dependencies.
  • Usage: sudo bash -c "$(curl -sS https://raw.githubusercontent.com/pietrorea/scripts/master/ubuntu/setup.sh)"
  • Top-level description:
    • Sets the hostname based on input from the terminal.
    • Sets up a password-less admin user. Also sets up an admin group for the new admin user.
    • Sets up SSH access for the admin user using a SSH key you type into the terminal. There's a few lines of config here related to AWS Lightsail that might not be relevant to you.
    • Updates Ubuntu deps.

install-wordpress.sh (tested with Wordpress 5.9)

  • Installs Wordpress on a LEMP stack.
  • Usage: sudo bash -c "$(curl -sS https://raw.githubusercontent.com/pietrorea/scripts/master/ubuntu/install-wordpress.sh)"
  • Top-level description:
    • Downloads & installs nginx, mysql, php.
    • Configures nginx to serve Wordpress over HTTP/port 80.
    • Sets up the Wordpress database, the Wordpress admin db user, runs mysql_secure_installation.
    • Downloads and installs the latest version of Wordpress.
    • Sets up wp-config.php with the credentials form previous steps. Requests and saves salts from https://api.wordpress.org/secret-key/1.1/salt/.

LetsEcrypt

ssl.sh

  • Runs LetsEncrypt's certbot and requests an SSL certificate using a $HOSTNAME that you pass in.

Git

git-init.sh

  • Sets up git repo as the git user. Meant to be run in host after setting up SSH access for an admin user and the a git user.

Xcode

rm-derived-data.sh

  • Remove the Derived Data folder.

scripts's People

Contributors

pietrorea avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.