[misc] move sshd/exfat/axel out of env.sh
This commit is contained in:
parent
8519402db3
commit
060f02c9ef
6
env.sh
6
env.sh
|
@ -66,9 +66,7 @@ case "$PM" in
|
||||||
sudo apt install \
|
sudo apt install \
|
||||||
build-essential \
|
build-essential \
|
||||||
unzip p7zip \
|
unzip p7zip \
|
||||||
openssh-server openssh-client \
|
openssh-client \
|
||||||
exfat-utils \
|
|
||||||
axel \
|
|
||||||
man sudo
|
man sudo
|
||||||
;;
|
;;
|
||||||
pacman)
|
pacman)
|
||||||
|
@ -76,8 +74,6 @@ case "$PM" in
|
||||||
base-devel \
|
base-devel \
|
||||||
unzip p7zip \
|
unzip p7zip \
|
||||||
openssh \
|
openssh \
|
||||||
exfat-utils \
|
|
||||||
axel \
|
|
||||||
man sudo
|
man sudo
|
||||||
# install yay
|
# install yay
|
||||||
if ! which yay; then
|
if ! which yay; then
|
||||||
|
|
|
@ -23,6 +23,10 @@ case "$PM" in
|
||||||
bluez bluez-tools blueman pulseaudio-module-bluetooth
|
bluez bluez-tools blueman pulseaudio-module-bluetooth
|
||||||
sudo systemctl enable bluetooth
|
sudo systemctl enable bluetooth
|
||||||
sudo systemctl start bluetooth
|
sudo systemctl start bluetooth
|
||||||
|
# system utils
|
||||||
|
sudo apt install \
|
||||||
|
exfat-utils \
|
||||||
|
axel
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
pacman)
|
pacman)
|
||||||
|
@ -60,7 +64,10 @@ case "$PM" in
|
||||||
sudo systemctl start bluetooth
|
sudo systemctl start bluetooth
|
||||||
fi
|
fi
|
||||||
# for setting up default programs: exo-preferred-applications
|
# for setting up default programs: exo-preferred-applications
|
||||||
sudo pacman -S --needed exo
|
sudo pacman -S --needed
|
||||||
|
exfat-utils \
|
||||||
|
axel \
|
||||||
|
exo
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
21
gui/sshd.sh
Executable file
21
gui/sshd.sh
Executable file
|
@ -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
|
Loading…
Reference in New Issue
Block a user