-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·56 lines (53 loc) · 1.68 KB
/
bootstrap.sh
File metadata and controls
executable file
·56 lines (53 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/bash
echo "********************************************"
echo "****** bootstrap FRL linux *******"
echo "********************************************"
echo "The following basics will be configured:"
echo " - your device with device-name"
echo " - setup of device specific .devicerc"
echo " - preparing the .ssh file for you"
echo ""
echo " To use the private FRL repos you need to transfer"
echo " your ssh-keys manually on the machine."
echo ""
echo "This might overwrite customization that you may have done."
echo "Consecutive runs of the script are possible."
echo "However don't forget to use new shell or source your dotfiles."
echo ""
read -p "Proceed (y/n)? " -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo ""
if echo $PREFIX | grep -o "com.termux"; then
setup_type=termux
else
setup_type=linux
fi
if [[ $setup_type = linux ]]; then
echo ""
echo "Upgrading and installing packages ..."
sudo apt update
sudo apt upgrade
sudo apt install git vim-gtk3 ssh wget
echo ""
if dpkg -l regolith-desktop-standard >/dev/null
then
echo "Regolith already installed."
else
read -p ">>> Install regolith (y/n)? " -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
sudo add-apt-repository ppa:regolith-linux/release
sudo apt install regolith-desktop-standard
fi
fi
elif [[ $setup_type = termux ]]; then
echo ""
echo "Upgrading and installing packages ..."
pkg up
pkg install git vim tree openssh wget
fi
. config-device.sh
. ssh-enable.sh
# . ssh-add.sh
fi