From ad74cf67c8804242cd2c8744a641b463a20c1253 Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Tue, 6 Feb 2024 15:02:50 -0500 Subject: [PATCH 1/3] add install script for Ubuntu and WSL --- scripts/install-Ubuntu-WSL.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 scripts/install-Ubuntu-WSL.sh diff --git a/scripts/install-Ubuntu-WSL.sh b/scripts/install-Ubuntu-WSL.sh new file mode 100644 index 000000000..7db2697b6 --- /dev/null +++ b/scripts/install-Ubuntu-WSL.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +#update the system +sudo apt update && +sudo apt upgrade -y && + +#install Terminus dependencies +sudo apt install -y curl php8.1 php-xml git composer && + +#download wp-cli +curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && + +#check if wp-cli is working properly +php wp-cli.phar --info && + +#install wp-cli +chmod +x wp-cli.phar && +sudo mv wp-cli.phar /usr/local/bin/wp && + +#install Terminus +mkdir -p ~/terminus && +cd ~/terminus && +curl -L https://github.com/pantheon-systems/terminus/releases/download/3.3.0/terminus.phar --output terminus && +chmod +x terminus && +sudo ln -s ~/terminus/terminus /usr/local/bin/terminus && + +echo "Terminus successfully installed! Now you can generate your machine token to log in: https://docs.pantheon.io/terminus/install#machine-token" From 44e8921ad0e31a9df711d24f8765ce754fac96de Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Wed, 17 Apr 2024 19:19:48 -0400 Subject: [PATCH 2/3] add install instructions for Ubuntu and WSL --- README.md | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cfd317bac..c563952c5 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,51 @@ brew install pantheon-systems/external/terminus ### Ubuntu / WinWSL+Ubuntu: -`*** TBD ***` + +update system + + +`sudo apt update && apt upgrade -y` + + +install dependencies + + +`sudo apt install -y curl php8.1 php-xml git composer` + + +install wp-cli + + +`curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar` + +optionally confirm wp-cli is working + + +`php wp-cli.phar --info` + +install latest binary + + +`chmod +x wp-cli.phar` + +`sudo mv wp-cli.phar /usr/local/bin/wp` + +install latest Terminus phar file + + +`mkdir -p ~/terminus && cd ~/terminus` + + +`curl -L https://github.com/pantheon-systems/terminus/releases/latest --output terminus` + + +`chmod +x terminus` + + +`sudo ln -s ~/terminus/terminus /usr/local/bin/terminus` + +Now you can generate your machine token to log in: [https://docs.pantheon.io/terminus/install#machine-token](https://docs.pantheon.io/terminus/install#machine-token) ### Other installation methods From e1d6c5f162e12acd03e647ea57ed007e2b1a211c Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Wed, 17 Apr 2024 19:21:59 -0400 Subject: [PATCH 3/3] install instructions added to README --- scripts/install-Ubuntu-WSL.sh | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 scripts/install-Ubuntu-WSL.sh diff --git a/scripts/install-Ubuntu-WSL.sh b/scripts/install-Ubuntu-WSL.sh deleted file mode 100644 index 7db2697b6..000000000 --- a/scripts/install-Ubuntu-WSL.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -#update the system -sudo apt update && -sudo apt upgrade -y && - -#install Terminus dependencies -sudo apt install -y curl php8.1 php-xml git composer && - -#download wp-cli -curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && - -#check if wp-cli is working properly -php wp-cli.phar --info && - -#install wp-cli -chmod +x wp-cli.phar && -sudo mv wp-cli.phar /usr/local/bin/wp && - -#install Terminus -mkdir -p ~/terminus && -cd ~/terminus && -curl -L https://github.com/pantheon-systems/terminus/releases/download/3.3.0/terminus.phar --output terminus && -chmod +x terminus && -sudo ln -s ~/terminus/terminus /usr/local/bin/terminus && - -echo "Terminus successfully installed! Now you can generate your machine token to log in: https://docs.pantheon.io/terminus/install#machine-token"