From 1e2e811bab0676e464a39a7d9574e4090cb73135 Mon Sep 17 00:00:00 2001 From: Mateja Date: Thu, 15 Apr 2021 20:46:59 +0200 Subject: Install fonts. --- setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.sh b/setup.sh index bdf066e..f4b3c2d 100755 --- a/setup.sh +++ b/setup.sh @@ -93,6 +93,7 @@ sudo apt install -y xorg xorg-drivers xinit xterm pinentry-gtk-2 echo "Installing additional software for desktop usage..." +sudo apt install -y fonts-dejavu fonts-firacode sudo apt install -y numlockx pcmanfm sudo apt install -y dunst libnotify-bin udiskie sudo apt install -y feh suckless-tools rofi scrot irssi -- cgit v1.2.3 From b7547842421f36877c1e9c360c3213fd33c5f029 Mon Sep 17 00:00:00 2001 From: Mateja Date: Thu, 15 Apr 2021 20:51:26 +0200 Subject: Install Hugo. --- setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.sh b/setup.sh index 48ce100..cfc26a9 100755 --- a/setup.sh +++ b/setup.sh @@ -124,6 +124,8 @@ echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee -a /e sudo apt-get update sudo apt-get install -y nodejs +sudo apt -t buster-backports install -y hugo + if [[ $qtile_install ]] then -- cgit v1.2.3 From f4b0f60934713e4a951debb3ad913266028aefaf Mon Sep 17 00:00:00 2001 From: Mateja Date: Tue, 11 May 2021 20:37:32 +0200 Subject: Copy additional configuration files. --- setup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index cfc26a9..451baff 100755 --- a/setup.sh +++ b/setup.sh @@ -167,8 +167,13 @@ then cp /tmp/dotfiles/.dir_colors $HOME cp /tmp/dotfiles/.vimrc $HOME + cp /tmp/dotfiles/.tmux.conf $HOME + cp /tmp/dotfiles/.gnupg/gpg-agent.conf $HOME/.gnupg/ + cp /tmp/dotfiles/.Xdefaults $HOME - cp -r /tmp/dotfiles/.xprofile $HOME + cp /tmp/dotfiles/.xprofile $HOME + cp /tmp/dotfiles/.xinit $HOME + cp -r /tmp/dotfiles/.xmonad $HOME cp -r /tmp/dotfiles/.config $HOME -- cgit v1.2.3 From b366b420b46a45f8b5141a16c0f195ed51a640f7 Mon Sep 17 00:00:00 2001 From: Mateja Date: Tue, 11 May 2021 21:10:16 +0200 Subject: Added AwesomeWM and my st fork. --- setup.sh | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/setup.sh b/setup.sh index 451baff..98991de 100755 --- a/setup.sh +++ b/setup.sh @@ -1,12 +1,16 @@ -#!/bin/bash +#!/usr/bin/env bash qtile_install=false; -config_install=false; termite_install=false; + +st_install=false; + +config_install=false; neovim_install=false; latex_install=false; non_free=false; nvidia_install=false; + aerc_install=false; read -p "Do you want to install Qtile? " -n 1 -r @@ -21,6 +25,10 @@ read -p "Do you want to install termite? " -n 1 -r echo [[ $REPLY =~ ^[Yy]$ ]] && $termite_install=true; +read -p "Do you want to install my st fork? " -n 1 -r +echo +[[ $REPLY =~ ^[Yy]$ ]] && $st_install=true; + read -p "Do you want to install Neovim? " -n 1 -r echo [[ $REPLY =~ ^[Yy]$ ]] && $neovim_install=true; @@ -87,8 +95,8 @@ sudo apt install -y gpg keychain git pass build-essential sudo apt install -y unzip wget curl rsync dnsutils tmux -echo "Installing Xorg..." -sudo apt install -y xorg xorg-drivers xinit xterm pinentry-gtk-2 +echo "Installing Xorg and AwesomeWM..." +sudo apt install -y xorg xorg-drivers xinit xterm pinentry-gtk-2 awesome [[ $nvidia_install ]] && sudo apt install nvidia-driver @@ -182,6 +190,15 @@ then cp -r /tmp/dotfiles/.local/bin $HOME/.local/ fi +if [[ $st_install ]] +then + echo "Installing my st fork..." + git clone https://git.matejamaric.com/st /tmp/st + cd /tmp/st + make + sudo make install +fi + if [[ $latex_install ]] then -- cgit v1.2.3 From e1018559ccf00066a8dda34bde2083a8fdc89947 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sat, 29 May 2021 20:50:17 +0200 Subject: Change the way software choices work. --- setup.sh | 78 +++++++++++++++------------------------------------------------- 1 file changed, 18 insertions(+), 60 deletions(-) diff --git a/setup.sh b/setup.sh index 98991de..139ab09 100755 --- a/setup.sh +++ b/setup.sh @@ -1,59 +1,17 @@ #!/usr/bin/env bash -qtile_install=false; -termite_install=false; - -st_install=false; - -config_install=false; -neovim_install=false; -latex_install=false; -non_free=false; -nvidia_install=false; - -aerc_install=false; - -read -p "Do you want to install Qtile? " -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $qtile_install=true; - -read -p "Do you want to install configurations? " -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $config_install=true; - -read -p "Do you want to install termite? " -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $termite_install=true; - -read -p "Do you want to install my st fork? " -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $st_install=true; - -read -p "Do you want to install Neovim? " -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $neovim_install=true; - -read -p "Do you want to install LaTeX? " -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $latex_install=true; - -read -p "Do you want to enable non-free repos?" -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $non_free=true; - -if [[ $non_free ]] -then -read -p "Do you want to install proprietary nvidia drivers? " -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $nvidia_install=true; -fi - -read -p "Do you want to install Aerc? " -n 1 -r -echo -[[ $REPLY =~ ^[Yy]$ ]] && $aerc_install=true; +read -p "Do you want to install Qtile? [y/n]: " qtile_install +read -p "Do you want to install configurations? [y/n]: " config_install +read -p "Do you want to install termite? [y/n]: " termite_install +read -p "Do you want to install my st fork? [y/n]: " st_install +read -p "Do you want to install Neovim? [y/n]: " neovim_install +read -p "Do you want to install LaTeX? [y/n]: " latex_install +read -p "Do you want to enable non-free repos? [y/n]:" non_free +[[ $non_free =~ ^[Yy]$ ]] && read -p "Do you want to install proprietary nvidia drivers? [y/n]: " nvidia_install +read -p "Do you want to install Aerc? [y/n]: " aerc_install # Adding non-free repos if necessary. -if [[ $non_free ]] +if [[ $non_free =~ ^[Yy]$ ]] then cat > /tmp/sources.list < Date: Mon, 31 May 2021 12:18:09 +0200 Subject: Add more choices. --- setup.sh | 74 ++++++++++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 53 insertions(+), 21 deletions(-) diff --git a/setup.sh b/setup.sh index 139ab09..7cb5748 100755 --- a/setup.sh +++ b/setup.sh @@ -1,14 +1,22 @@ #!/usr/bin/env bash -read -p "Do you want to install Qtile? [y/n]: " qtile_install read -p "Do you want to install configurations? [y/n]: " config_install -read -p "Do you want to install termite? [y/n]: " termite_install read -p "Do you want to install my st fork? [y/n]: " st_install read -p "Do you want to install Neovim? [y/n]: " neovim_install read -p "Do you want to install LaTeX? [y/n]: " latex_install + +read -p "Do you want to install Nginx? [y/n]: " nginx_install +read -p "Do you want to install MariaDB? [y/n]: " mariadb_install +read -p "Do you want to install PHP and Composer? [y/n]: " php_install +read -p "Do you want to install Node.js? [y/n]: " node_install +read -p "Do you want to install Hugo? [y/n]: " hugo_install + read -p "Do you want to enable non-free repos? [y/n]:" non_free [[ $non_free =~ ^[Yy]$ ]] && read -p "Do you want to install proprietary nvidia drivers? [y/n]: " nvidia_install + read -p "Do you want to install Aerc? [y/n]: " aerc_install +read -p "Do you want to install Qtile? [y/n]: " qtile_install +read -p "Do you want to install termite? [y/n]: " termite_install # Adding non-free repos if necessary. if [[ $non_free =~ ^[Yy]$ ]] @@ -51,9 +59,10 @@ sudo apt upgrade echo "Installing basic cli software..." sudo apt install -y gpg keychain git pass build-essential sudo apt install -y unzip wget curl rsync dnsutils tmux +sudo apt install -y unrar-free -echo "Installing Xorg and AwesomeWM..." +echo "Installing Xorg, AwesomeWM, drivers..." sudo apt install -y xorg xorg-drivers xinit xterm pinentry-gtk-2 awesome [[ $nvidia_install =~ ^[Yy]$ ]] && sudo apt install nvidia-driver @@ -67,31 +76,54 @@ sudo apt install -y thunderbird libreoffice sudo apt install -y zathura zathura-pdf-poppler sudo apt install -y newsboat ffmpeg mpd mpc ncmpcpp mpv sudo systemctl disable --now mpd - sudo apt -t buster-backports install -y youtube-dl -sudo apt install -y unrar-free +#################################################################################################### -echo "Installing work software..." -sudo apt install -y nginx php-fpm mariadb-server -sudo apt install -y php_mysql phpunit php-intl php-curl php-zip php-mbstring php-gd php-soap php-xml php-xmlrpc -sudo systemctl restart php7.3-fpm.service +if [[ $nginx_install =~ ^[Yy]$ ]] +then + echo "Installing Nginx..." + sudo apt install -y nginx +fi -wget -O /tmp/composer-setup.php https://getcomposer.org/installer -sudo php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer -#sudo composer self-update +if [[ $mariadb_install =~ ^[Yy]$ ]] +then + echo "Installing MariaDB..." + sudo apt install -y mariadb-server +fi + +if [[ $php_install =~ ^[Yy]$ ]] +then + echo "Installing PHP and Composer stack..." + sudo apt install -y php-fpm + sudo apt install -y php_mysql phpunit php-intl php-curl php-zip php-mbstring php-gd php-soap php-xml php-xmlrpc + sudo systemctl restart php7.3-fpm.service + + wget -O /tmp/composer-setup.php https://getcomposer.org/installer + sudo php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer + #sudo composer self-update +fi -#curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - -wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - -VERSION=node_14.x -DISTRO="$(lsb_release -s -c)" -echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list -echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list -sudo apt-get update -sudo apt-get install -y nodejs +if [[ $node_install =~ ^[Yy]$ ]] +then + echo "Installing Node.js..." + #curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + VERSION=node_14.x + DISTRO="$(lsb_release -s -c)" + echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + sudo apt-get update + sudo apt-get install -y nodejs +fi -sudo apt -t buster-backports install -y hugo +if [[ $hugo_install =~ ^[Yy]$ ]] +then + echo "Installing Hugo..." + sudo apt -t buster-backports install -y hugo +fi +#################################################################################################### if [[ $qtile_install =~ ^[Yy]$ ]] then -- cgit v1.2.3 From de0509c940c1b1ce1821fd203a43125973129450 Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 31 May 2021 12:27:42 +0200 Subject: Reordering... --- setup.sh | 153 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 78 insertions(+), 75 deletions(-) diff --git a/setup.sh b/setup.sh index 7cb5748..eff29db 100755 --- a/setup.sh +++ b/setup.sh @@ -18,6 +18,8 @@ read -p "Do you want to install Aerc? [y/n]: " aerc_install read -p "Do you want to install Qtile? [y/n]: " qtile_install read -p "Do you want to install termite? [y/n]: " termite_install +#################################################################################################### + # Adding non-free repos if necessary. if [[ $non_free =~ ^[Yy]$ ]] then @@ -80,6 +82,82 @@ sudo apt -t buster-backports install -y youtube-dl #################################################################################################### +if [[ $config_install =~ ^[Yy]$ ]] +then + echo "Installing configurations..." + git clone https://git.matejamaric.com/dotfiles /tmp/dotfiles + + cp /tmp/dotfiles/.bash* $HOME + cp /tmp/dotfiles/.dir_colors $HOME + + cp /tmp/dotfiles/.vimrc $HOME + cp /tmp/dotfiles/.tmux.conf $HOME + cp /tmp/dotfiles/.gnupg/gpg-agent.conf $HOME/.gnupg/ + + cp /tmp/dotfiles/.Xdefaults $HOME + cp /tmp/dotfiles/.xprofile $HOME + cp /tmp/dotfiles/.xinit $HOME + + cp -r /tmp/dotfiles/.xmonad $HOME + + cp -r /tmp/dotfiles/.config $HOME + sed -i "s/your-user-name/$USER/" $HOME/.config/nvim/coc-settings.json + + cp -r /tmp/dotfiles/.local/bin $HOME/.local/ +fi + +if [[ $st_install =~ ^[Yy]$ ]] +then + echo "Installing my st fork..." + git clone https://git.matejamaric.com/st /tmp/st + cd /tmp/st + make + sudo make install +fi + + +if [[ $neovim_install =~ ^[Yy]$ ]] +then + [[ ! -d $HOME/programs ]] && mkdir $HOME/programs + cd $HOME/programs + + echo "Build dependencies..." + sudo apt install -y ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip + echo "NeoVim dependencies..." + sudo apt install -y gperf libluajit-5.1-dev libunibilium-dev libmsgpack-dev libtermkey-dev libvterm-dev libjemalloc-dev lua5.1 lua-lpeg lua-mpack lua-bitop + + echo "NeoVim repo..." + [[ ! -d neovim ]] && git clone https://github.com/neovim/neovim + + echo "NeoVim compile and install..." + cd neovim + make CMAKE_BUILD_TYPE=Release + sudo make install + + pip3 install pynvim + sudo npm install -g neovim + + # Adding shared clipboard support. + sudo apt install -y xsel + + echo "Installing phpactor..." + cd $HOME/programs + git clone https://github.com/phpactor/phpactor + cd phpactor + composer install +fi + + +if [[ $latex_install =~ ^[Yy]$ ]] +then + echo "Installing LaTeX.." + sudo apt install -y texlive texlive-latex-base texlive-latex-extra + sudo apt install -y texlive-extra-utils texlive-fonts-extra + sudo apt install -y texlive-lang-english texlive-lang-cyrillic +fi + +#################################################################################################### + if [[ $nginx_install =~ ^[Yy]$ ]] then echo "Installing Nginx..." @@ -156,49 +234,6 @@ EOF fi -if [[ $config_install =~ ^[Yy]$ ]] -then - echo "Installing configurations..." - git clone https://git.matejamaric.com/dotfiles /tmp/dotfiles - - cp /tmp/dotfiles/.bash* $HOME - cp /tmp/dotfiles/.dir_colors $HOME - - cp /tmp/dotfiles/.vimrc $HOME - cp /tmp/dotfiles/.tmux.conf $HOME - cp /tmp/dotfiles/.gnupg/gpg-agent.conf $HOME/.gnupg/ - - cp /tmp/dotfiles/.Xdefaults $HOME - cp /tmp/dotfiles/.xprofile $HOME - cp /tmp/dotfiles/.xinit $HOME - - cp -r /tmp/dotfiles/.xmonad $HOME - - cp -r /tmp/dotfiles/.config $HOME - sed -i "s/your-user-name/$USER/" $HOME/.config/nvim/coc-settings.json - - cp -r /tmp/dotfiles/.local/bin $HOME/.local/ -fi - -if [[ $st_install =~ ^[Yy]$ ]] -then - echo "Installing my st fork..." - git clone https://git.matejamaric.com/st /tmp/st - cd /tmp/st - make - sudo make install -fi - - -if [[ $latex_install =~ ^[Yy]$ ]] -then - echo "Installing LaTeX.." - sudo apt install -y texlive texlive-latex-base texlive-latex-extra - sudo apt install -y texlive-extra-utils texlive-fonts-extra - sudo apt install -y texlive-lang-english texlive-lang-cyrillic -fi - - if [[ $termite_install =~ ^[Yy]$ ]] then [[ ! -d $HOME/programs ]] && mkdir $HOME/programs @@ -224,38 +259,6 @@ then fi -if [[ $neovim_install =~ ^[Yy]$ ]] -then - [[ ! -d $HOME/programs ]] && mkdir $HOME/programs - cd $HOME/programs - - echo "Build dependencies..." - sudo apt install -y ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip - echo "NeoVim dependencies..." - sudo apt install -y gperf libluajit-5.1-dev libunibilium-dev libmsgpack-dev libtermkey-dev libvterm-dev libjemalloc-dev lua5.1 lua-lpeg lua-mpack lua-bitop - - echo "NeoVim repo..." - [[ ! -d neovim ]] && git clone https://github.com/neovim/neovim - - echo "NeoVim compile and install..." - cd neovim - make CMAKE_BUILD_TYPE=Release - sudo make install - - pip3 install pynvim - sudo npm install -g neovim - - # Adding shared clipboard support. - sudo apt install -y xsel - - echo "Installing phpactor..." - cd $HOME/programs - git clone https://github.com/phpactor/phpactor - cd phpactor - composer install -fi - - if [[ $aerc_install =~ ^[Yy]$ ]] then echo "Installing Aerc.." -- cgit v1.2.3 From a7acd125b25602767c14818cdcf935c71438ed9f Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 31 May 2021 12:42:58 +0200 Subject: More choices and reordering... --- setup.sh | 47 +++++++++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/setup.sh b/setup.sh index eff29db..32de718 100755 --- a/setup.sh +++ b/setup.sh @@ -1,6 +1,10 @@ #!/usr/bin/env bash +read -p "Do you want to enable non-free repos? [y/n]:" non_free +[[ $non_free =~ ^[Yy]$ ]] && read -p "Do you want to install proprietary nvidia drivers? [y/n]: " nvidia_install + read -p "Do you want to install configurations? [y/n]: " config_install +read -p "Do you want to install my desktop environment? [y/n]: " desktop_install read -p "Do you want to install my st fork? [y/n]: " st_install read -p "Do you want to install Neovim? [y/n]: " neovim_install read -p "Do you want to install LaTeX? [y/n]: " latex_install @@ -11,9 +15,6 @@ read -p "Do you want to install PHP and Composer? [y/n]: " php_install read -p "Do you want to install Node.js? [y/n]: " node_install read -p "Do you want to install Hugo? [y/n]: " hugo_install -read -p "Do you want to enable non-free repos? [y/n]:" non_free -[[ $non_free =~ ^[Yy]$ ]] && read -p "Do you want to install proprietary nvidia drivers? [y/n]: " nvidia_install - read -p "Do you want to install Aerc? [y/n]: " aerc_install read -p "Do you want to install Qtile? [y/n]: " qtile_install read -p "Do you want to install termite? [y/n]: " termite_install @@ -53,32 +54,21 @@ deb-src http://deb.debian.org/debian/ unstable main EOF fi +echo "Updating system..." sudo cp /tmp/sources.list /etc/apt/sources.list sudo apt update sudo apt upgrade - echo "Installing basic cli software..." sudo apt install -y gpg keychain git pass build-essential sudo apt install -y unzip wget curl rsync dnsutils tmux sudo apt install -y unrar-free - -echo "Installing Xorg, AwesomeWM, drivers..." -sudo apt install -y xorg xorg-drivers xinit xterm pinentry-gtk-2 awesome -[[ $nvidia_install =~ ^[Yy]$ ]] && sudo apt install nvidia-driver - - -echo "Installing additional software for desktop usage..." -sudo apt install -y fonts-dejavu fonts-firacode -sudo apt install -y numlockx pcmanfm -sudo apt install -y dunst libnotify-bin udiskie -sudo apt install -y feh suckless-tools rofi scrot irssi -sudo apt install -y thunderbird libreoffice -sudo apt install -y zathura zathura-pdf-poppler -sudo apt install -y newsboat ffmpeg mpd mpc ncmpcpp mpv -sudo systemctl disable --now mpd -sudo apt -t buster-backports install -y youtube-dl +if [[ $nvidia_install =~ ^[Yy]$ ]] +then + echo "Installing proprietary nvidia drivers..." + sudo apt install nvidia-driver +fi #################################################################################################### @@ -106,6 +96,23 @@ then cp -r /tmp/dotfiles/.local/bin $HOME/.local/ fi +if [[ $desktop_install =~ ^[Yy]$ ]] +then + echo "Installing Xorg, AwesomeWM, utilities..." + sudo apt install -y xorg xorg-drivers xinit xterm pinentry-gtk-2 awesome + + echo "Installing additional software for desktop usage..." + sudo apt install -y fonts-dejavu fonts-firacode + sudo apt install -y numlockx pcmanfm + sudo apt install -y dunst libnotify-bin udiskie + sudo apt install -y feh suckless-tools rofi scrot irssi + sudo apt install -y thunderbird libreoffice + sudo apt install -y zathura zathura-pdf-poppler + sudo apt install -y newsboat ffmpeg mpd mpc ncmpcpp mpv + sudo systemctl disable --now mpd + sudo apt -t buster-backports install -y youtube-dl +fi + if [[ $st_install =~ ^[Yy]$ ]] then echo "Installing my st fork..." -- cgit v1.2.3 From 930e89b5a1aed4ea3d2acb1ff37b8740dda4a62b Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 31 May 2021 13:01:23 +0200 Subject: Installing MongoDB... --- setup.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/setup.sh b/setup.sh index 32de718..95b15fb 100755 --- a/setup.sh +++ b/setup.sh @@ -13,6 +13,7 @@ read -p "Do you want to install Nginx? [y/n]: " nginx_install read -p "Do you want to install MariaDB? [y/n]: " mariadb_install read -p "Do you want to install PHP and Composer? [y/n]: " php_install read -p "Do you want to install Node.js? [y/n]: " node_install +read -p "Do you want to install MongoDB? [y/n]: " mongodb_install read -p "Do you want to install Hugo? [y/n]: " hugo_install read -p "Do you want to install Aerc? [y/n]: " aerc_install @@ -202,6 +203,16 @@ then sudo apt-get install -y nodejs fi +if [[ $mongodb_install =~ ^[Yy]$ ]] +then + echo "Installing MongoDB..." + wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - + echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list + sudo apt update + sudo apt install -y mongodb-org + sudo systemctl enable --now mongod +fi + if [[ $hugo_install =~ ^[Yy]$ ]] then echo "Installing Hugo..." -- cgit v1.2.3 From 3963d486b67d6b4c6f67f145770f4db830610a8a Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 31 May 2021 13:13:34 +0200 Subject: Add Docker. --- setup.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/setup.sh b/setup.sh index 95b15fb..dabe7d1 100755 --- a/setup.sh +++ b/setup.sh @@ -14,6 +14,7 @@ read -p "Do you want to install MariaDB? [y/n]: " mariadb_install read -p "Do you want to install PHP and Composer? [y/n]: " php_install read -p "Do you want to install Node.js? [y/n]: " node_install read -p "Do you want to install MongoDB? [y/n]: " mongodb_install +read -p "Do you want to install Docker? [y/n]: " docker_install read -p "Do you want to install Hugo? [y/n]: " hugo_install read -p "Do you want to install Aerc? [y/n]: " aerc_install @@ -63,6 +64,7 @@ sudo apt upgrade echo "Installing basic cli software..." sudo apt install -y gpg keychain git pass build-essential sudo apt install -y unzip wget curl rsync dnsutils tmux +sudo apt install -y apt-transport-https ca-certificates gnupg lsb-release sudo apt install -y unrar-free if [[ $nvidia_install =~ ^[Yy]$ ]] @@ -213,6 +215,17 @@ then sudo systemctl enable --now mongod fi +if [[ $docker_install =~ ^[Yy]$ ]] +then + echo "Installing Docker..." + curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg + echo \ + "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \ + $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null + sudo apt update + sudo apt install -y docker-ce docker-ce-cli containerd.io +fi + if [[ $hugo_install =~ ^[Yy]$ ]] then echo "Installing Hugo..." -- cgit v1.2.3