-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-ubuntu-essentials.sh
More file actions
62 lines (53 loc) · 1.49 KB
/
install-ubuntu-essentials.sh
File metadata and controls
62 lines (53 loc) · 1.49 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
57
58
59
60
61
62
### Before you run this script, make it executable: chmod +x install-ubuntu-essentials.sh
echo
echo "Adding Git package repository"
echo
sudo add-apt-repository ppa:git-core/ppa
echo
echo "Updating all existing packages"
echo
sudo apt update && sudo apt upgrade
echo
echo "Installing essential packages"
echo
sudo apt install build-essential curl file git procps unzip
echo
echo "Installing Homebrew"
echo
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
test -d ~/.linuxbrew && eval "$(~/.linuxbrew/bin/brew shellenv)"
test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> ~/.profile
echo
echo "Installing Nushell"
echo
brew install nushell
echo
echo "Installing Volta"
echo
curl https://get.volta.sh | bash
echo
echo "Setting environment variables"
echo
echo '
# Set Helix as the default editor
export EDITOR="hx"
export VISUAL="hx"
# Opt out of telemetry and set an explicit path for the dotnet CLI
export DOTNET_CLI_TELEMETRY_OPTOUT=true
export DOTNET_ROOT=/var/snap/dotnet/common/dotnet
' >> ~/.profile
echo
echo "Do you want to install Flatpak? [y/n]"
read installFlatpak
if [ "$installFlatpak" == "y" ]
then
echo "Installing Flatpak"
echo
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
echo
echo "Please reboot before using Flatpak"
else
echo "Skipping Flatpak installation"
fi