Drew Short
7 years ago
4 changed files with 66 additions and 29 deletions
-
15scripts/installers/install_timeshift.sh
-
24scripts/installers/install_tools_arch.sh
-
29scripts/installers/install_tools_fedora.sh
-
27scripts/installers/install_tools_ubuntu.sh
@ -0,0 +1,15 @@ |
|||||
|
#!/usr/bin/env sh |
||||
|
|
||||
|
set -x |
||||
|
set -e |
||||
|
|
||||
|
timeshift_version="v17.11" |
||||
|
|
||||
|
# Install Timeshift |
||||
|
mkdir -p $HOME/tmp |
||||
|
pushd $HOME/tmp |
||||
|
timeshift_file="timeshift-$timeshift_version-amd64.run" |
||||
|
curl -LSO https://github.com/teejee2008/timeshift/releases/download/$timeshift_version/$timeshift_file |
||||
|
chmod +x $timeshift_file |
||||
|
sudo ./$timeshift_file |
||||
|
popd |
@ -1,28 +1,37 @@ |
|||||
#!/usr/bin/env sh |
|
||||
|
#!/usr/bin/ENV sh |
||||
|
|
||||
set -x |
set -x |
||||
set -e |
set -e |
||||
|
|
||||
env=/usr/bin/env |
|
||||
opwd=$PWD |
|
||||
package_manager="sudo dnf" |
|
||||
pm_update="$package_manager update" |
|
||||
pm_install="$package_manager install" |
|
||||
|
ENV=/usr/bin/ENV |
||||
|
PM_UPDATE=$PWD |
||||
|
PM_UPDATE="sudo dnf" |
||||
|
PM_UPDATE="$PM_UPDATE update" |
||||
|
PM_INSTALL="$PM_UPDATE install" |
||||
|
SCRIPT=$(readlink -f "$0") |
||||
|
SCRIPTPATH=$(dirname "$SCRIPT") |
||||
|
|
||||
cd $HOME |
cd $HOME |
||||
|
|
||||
# Install the minimal toolset to bootstrap out process |
# Install the minimal toolset to bootstrap out process |
||||
$pm_update |
|
||||
|
$PM_UPDATE -y |
||||
# System basics for everything after this point |
# System basics for everything after this point |
||||
$pm_install curl wget git zsh vim tmux mosh |
|
||||
|
$PM_INSTALL curl wget git zsh vim tmux mosh -y |
||||
|
|
||||
|
# Enabled rpmfusion repositories |
||||
|
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm |
||||
|
$PM_UPDATE -y |
||||
|
|
||||
# Install OhMyZSH |
# Install OhMyZSH |
||||
mkdir -p $HOME/build/oh-my-zsh |
mkdir -p $HOME/build/oh-my-zsh |
||||
cd $HOME/build/oh-my-zsh |
cd $HOME/build/oh-my-zsh |
||||
curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -o install.sh |
curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -o install.sh |
||||
chmod +x install.sh |
chmod +x install.sh |
||||
$env sh install.sh |
|
||||
|
$ENV sh install.sh |
||||
cd $HOME |
cd $HOME |
||||
|
|
||||
|
# Install Timeshift |
||||
|
$SCRIPTPATH/install_timeshift.sh |
||||
|
|
||||
# Return to where we started |
# Return to where we started |
||||
cd $opwd |
|
||||
|
cd $PM_UPDATE |
@ -1,34 +1,39 @@ |
|||||
#!/usr/bin/env sh |
|
||||
|
#!/usr/bin/ENV sh |
||||
|
|
||||
set -x |
set -x |
||||
set -e |
set -e |
||||
|
|
||||
env=/usr/bin/env |
|
||||
opwd=$PWD |
|
||||
package_manager="sudo apt-get" |
|
||||
pm_update="$package_manager update" |
|
||||
pm_install="$package_manager install" |
|
||||
|
ENV=/usr/bin/ENV |
||||
|
OPWD=$PWD |
||||
|
PACKAGE_MANAGER="sudo apt-get" |
||||
|
PM_UPDATE="$PACKAGE_MANAGER update" |
||||
|
PM_INSTALL="$PACKAGE_MANAGER install" |
||||
|
SCRIPT=$(readlink -f "$0") |
||||
|
SCRIPTPATH=$(dirname "$SCRIPT") |
||||
|
|
||||
cd $HOME |
cd $HOME |
||||
|
|
||||
# Install the minimal toolset to bootstrap out process |
# Install the minimal toolset to bootstrap out process |
||||
$pm_update |
|
||||
|
$PM_UPDATE |
||||
# System basics for everything after this point |
# System basics for everything after this point |
||||
$pm_install curl wget git zsh vim tmux mosh python-software-properties software-properties-common |
|
||||
|
$PM_INSTALL curl wget git zsh vim tmux mosh python-software-properties software-properties-common |
||||
|
|
||||
# Install OhMyZSH |
# Install OhMyZSH |
||||
mkdir -p $HOME/build/oh-my-zsh |
mkdir -p $HOME/build/oh-my-zsh |
||||
cd $HOME/build/oh-my-zsh |
cd $HOME/build/oh-my-zsh |
||||
curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -o install.sh |
curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -o install.sh |
||||
chmod +x install.sh |
chmod +x install.sh |
||||
$env sh install.sh |
|
||||
|
$ENV sh install.sh |
||||
cd $HOME |
cd $HOME |
||||
|
|
||||
# Add the screenfetch repository |
# Add the screenfetch repository |
||||
sudo add-apt-repository -y 'ppa:djcj/screenfetch' |
sudo add-apt-repository -y 'ppa:djcj/screenfetch' |
||||
|
|
||||
# Install Other Essential Tools |
# Install Other Essential Tools |
||||
$pm_install lsb-release screenfetch |
|
||||
|
$PM_INSTALL lsb-release screenfetch |
||||
|
|
||||
|
# Install Timeshift |
||||
|
$SCRIPTPATH/install_timeshift.sh |
||||
|
|
||||
# Return to where we started |
# Return to where we started |
||||
cd $opwd |
|
||||
|
cd $OPWD |
Write
Preview
Loading…
Cancel
Save
Reference in new issue