From 79ff872312f30063887a1fb53c6dd255fabc4c4f Mon Sep 17 00:00:00 2001 From: crowetic <5431064+crowetic@users.noreply.github.com> Date: Wed, 9 Nov 2022 15:49:55 -0800 Subject: [PATCH] rebuilt-machine script for Ubuntu This script is meant to be run on a BRAND NEW Ubuntu installation, and it will download the necessary files and images used to customize the OS in accordance to CHD's 'Qortal-OS' Ubuntu Customizations. Downloads and sets up the Qortal Core, Qortal UI, and grabs a few custom images from the Qortal Cloud, puts them all in the correct locations, then starts the Qortal refresh script. --- rebuilt-machine.sh | 63 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 rebuilt-machine.sh diff --git a/rebuilt-machine.sh b/rebuilt-machine.sh new file mode 100644 index 0000000..cf75772 --- /dev/null +++ b/rebuilt-machine.sh @@ -0,0 +1,63 @@ +#!/bin/sh + +# Regular Colors +BLACK='\033[0;30m' # Black +RED='\033[0;31m' # Red +GREEN='\033[0;32m' # Green +YELLOW='\033[0;33m' # Yellow +BLUE='\033[0;34m' # Blue +PURPLE='\033[0;35m' # Purple +CYAN='\033[0;36m' # Cyan +WHITE='\033[0;37m' # White +NC='\033[0m' # No Color + +echo "${PURPLE} UPDATING AND INSTALLING SOFTWARE ${NC}\n" + +sudo apt update +sudo apt -y upgrade +sudo apt -y install unzip vim curl default-jre cinnamon-desktop-environment vlc chromium-browser p7zip-full libfuse2 + +echo "${BLUE} DOWNLOADING QORTAL CORE AND QORT SCRIPT ${NC}" + +curl -L -O https://github.com/Qortal/qortal/releases/latest/download/qortal.zip +unzip qortal*.zip +rm qortal*.zip +cd qortal +chmod +x *.sh +curl -L -O https://raw.githubusercontent.com/Qortal/qortal/master/tools/qort +chmod +x qort +cd + +echo "${PURPLE} DOWNLOADING QORTAL UI AppImage AND RENAMING ${NC}" + +cd Desktop +curl -L -O https://github.com/Qortal/qortal-ui/releases/download/v1.9.2/Qortal-Setup-amd64.AppImage +mv Qortal-Setup*.AppImage Qortal-UI +chmod +x Qortal-UI + +echo "${CYAN} DOWNLOADING IMAGES AND OTHER SCRIPTS ${NC}" + +curl -L -O https://cloud.qortal.org/s/t4Fy8Lp4kQYiYZN/download/Machine-files.zip + +unzip Machine-files.zip + +cd Machine-files + +mv Pictures/*.* ~/Pictures/ +mv *.sh ~/ + +cd + + + +echo "${YELLOW} FINISHING UP ${NC}" + +chmod +x *.sh + +rm -R Machine-files + +echo "${CYAN} STARTING QORTAL REFRESH ${NC}" + +./refresh-qortal.sh + +