From 060f02c9ef9547cf16fe48213cb584c47bec827b Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 29 Oct 2020 14:23:39 +0800 Subject: [PATCH] [misc] move sshd/exfat/axel out of env.sh --- env.sh | 6 +----- gui/install.sh | 9 ++++++++- gui/sshd.sh | 21 +++++++++++++++++++++ 3 files changed, 30 insertions(+), 6 deletions(-) create mode 100755 gui/sshd.sh diff --git a/env.sh b/env.sh index ea9fcf1..8513e11 100755 --- a/env.sh +++ b/env.sh @@ -66,9 +66,7 @@ case "$PM" in sudo apt install \ build-essential \ unzip p7zip \ - openssh-server openssh-client \ - exfat-utils \ - axel \ + openssh-client \ man sudo ;; pacman) @@ -76,8 +74,6 @@ case "$PM" in base-devel \ unzip p7zip \ openssh \ - exfat-utils \ - axel \ man sudo # install yay if ! which yay; then diff --git a/gui/install.sh b/gui/install.sh index 541078a..afa1049 100755 --- a/gui/install.sh +++ b/gui/install.sh @@ -23,6 +23,10 @@ case "$PM" in bluez bluez-tools blueman pulseaudio-module-bluetooth sudo systemctl enable bluetooth sudo systemctl start bluetooth + # system utils + sudo apt install \ + exfat-utils \ + axel fi ;; pacman) @@ -60,7 +64,10 @@ case "$PM" in sudo systemctl start bluetooth fi # for setting up default programs: exo-preferred-applications - sudo pacman -S --needed exo + sudo pacman -S --needed + exfat-utils \ + axel \ + exo ;; esac diff --git a/gui/sshd.sh b/gui/sshd.sh new file mode 100755 index 0000000..14c3fce --- /dev/null +++ b/gui/sshd.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +DIR=$(readlink -f $(dirname $0)) +. $DIR/../env.sh + +# install sshd +case "$PM" in + apt) + sudo apt install \ + openssh-server + ;; + pacman) + sudo pacman -S --needed \ + openssh + ;; +esac + + +# start network +sudo systemctl enable ssh +sudo systemctl start ssh