diff --git a/apps/chrome.sh b/apps/chrome.sh new file mode 100644 index 0000000..019aad1 --- /dev/null +++ b/apps/chrome.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +install_chrome() { + echo 'Installing chrome:' + wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb + sudo dpkg -i ./google-chrome-stable_current_amd64.deb + rm google-chrome-stable_current_amd64.deb + sudo apt-get install chrome-gnome-shell -y +} diff --git a/apps/etcher.sh b/apps/etcher.sh new file mode 100644 index 0000000..704d417 --- /dev/null +++ b/apps/etcher.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +install_etcher() { + echo 'Installing etcher:' + echo "deb https://deb.etcher.io stable etcher" | sudo tee /etc/apt/sources.list.d/balena-etcher.list + sudo apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys 379CE192D401AB61 + sudo apt update -y + sudo apt install balena-etcher-electron -y +} diff --git a/apps/lsd.sh b/apps/lsd.sh new file mode 100644 index 0000000..398f06b --- /dev/null +++ b/apps/lsd.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +install_lsd() { + echo 'Installing lsd:' + mkdir hack + cd hack + wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Hack.zip + unzip Hack.zip + cd .. + + sudo cp -r hack /usr/share/fonts/ + sudo chmod -R 775 /usr/share/fonts/hack + rm -r hack + wget https://github.com/Peltoche/lsd/releases/download/0.19.0/lsd_0.19.0_amd64.deb + sudo dpkg -i lsd_0.19.0_amd64.deb + sudo rm lsd_0.19.0_amd64.deb + sudo echo "alias ls='lsd'" >>/home/*/.bashrc +} diff --git a/apps/timeshift.sh b/apps/timeshift.sh new file mode 100644 index 0000000..abc7624 --- /dev/null +++ b/apps/timeshift.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +install_timeshift() { + echo 'Installing timeshift:' + sudo add-apt-repository -y ppa:teejee2008/ppa + sudo apt-get update -y + sudo apt-get install timeshift -y +} diff --git a/apps/ulauncher.sh b/apps/ulauncher.sh new file mode 100644 index 0000000..5942912 --- /dev/null +++ b/apps/ulauncher.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +install_ulauncher() { + echo 'Installing ulauncher:' + sudo add-apt-repository ppa:agornostal/ulauncher + sudo apt-get update -y + sudo apt-get install ulauncher -y +} diff --git a/default/install.sh b/default/install.sh index f180190..7c030e9 100644 --- a/default/install.sh +++ b/default/install.sh @@ -1,5 +1,11 @@ #!/bin/bash +source $PWD/apps/chrome.sh +source $PWD/apps/etcher.sh +source $PWD/apps/lsd.sh +source $PWD/apps/timeshift.sh +source $PWD/apps/ulauncher.sh + default_install() { echo 'Installing:' @@ -8,43 +14,9 @@ default_install() { sudo snap install simplenote + install_chrome + install_etcher + install_lsd install_timeshift install_ulauncher - install_chrome - install_lsd -} - -install_timeshift() { - sudo add-apt-repository -y ppa:teejee2008/ppa - sudo apt-get update -y - sudo apt-get install timeshift -y -} - -install_ulauncher() { - sudo add-apt-repository ppa:agornostal/ulauncher - sudo apt-get update -y - sudo apt-get install ulauncher -y -} - -install_chrome() { - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb - sudo dpkg -i ./google-chrome-stable_current_amd64.deb - rm google-chrome-stable_current_amd64.deb - sudo apt-get install chrome-gnome-shell -y -} - -install_lsd() { - mkdir hack - cd hack - wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Hack.zip - unzip Hack.zip - cd .. - - sudo cp -r hack /usr/share/fonts/ - sudo chmod -R 775 /usr/share/fonts/hack - rm -r hack - wget https://github.com/Peltoche/lsd/releases/download/0.19.0/lsd_0.19.0_amd64.deb - sudo dpkg -i lsd_0.19.0_amd64.deb - sudo rm lsd_0.19.0_amd64.deb - sudo echo "alias ls='lsd'" >> /home/*/.bashrc } diff --git a/default_installation.sh b/default_installation.sh index be0f07b..e172de1 100644 --- a/default_installation.sh +++ b/default_installation.sh @@ -1,7 +1,7 @@ #!/bin/bash -source ./default/update.sh -source ./default/install.sh +source $PWD/default/update.sh +source $PWD/default/install.sh update default_install