Created
November 29, 2023 10:56
-
-
Save jansenicus/4bf9fe4a0a7465feb3949d430b6b0e25 to your computer and use it in GitHub Desktop.
Ubuntu 22.04 Post Installation Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# FIREFOX | |
################################### | |
sudo snap disable firefox | |
sudo snap remove --purge firefox | |
# MICROSOFT EDGE INSTALLATION | |
################################### | |
sudo apt install software-properties-common apt-transport-https curl ca-certificates -y | |
# Import Microsoft Edge APT Repository on Ubuntu 22.04 | |
curl -fSsL https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor | sudo tee /usr/share/keyrings/microsoft-edge.gpg > /dev/null | |
# Add the Microsoft Edge repository to your system | |
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft-edge.gpg] https://packages.microsoft.com/repos/edge stable main' | sudo tee /etc/apt/sources.list.d/microsoft-edge.list | |
sudo apt update | |
# Install Microsoft Edge Browser via APT | |
sudo apt install microsoft-edge-stable | |
# login microsoft account sync | |
# VISUAL STUDIO CODE | |
################################### | |
sudo apt-get install wget gpg | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg | |
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' | |
rm -f packages.microsoft.gpg | |
sudo apt install apt-transport-https | |
sudo apt update | |
sudo apt install code # or code-insiders | |
# GIT INSTALLATION | |
################################### | |
sudo apt install git -y | |
# GITHUB DESKTOP | |
################################### | |
wget -qO - https://apt.packages.shiftkey.dev/gpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/shiftkey-packages.gpg > /dev/null | |
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/shiftkey-packages.gpg] https://apt.packages.shiftkey.dev/ubuntu/ any main" > /etc/apt/sources.list.d/shiftkey-packages.list' | |
sudo apt update | |
sudo apt install github-desktop | |
# POWERSHELL | |
################################### | |
# Prerequisites | |
# Update the list of packages | |
sudo apt-get update | |
# Install pre-requisite packages. | |
sudo apt-get install -y wget apt-transport-https software-properties-common | |
# Get the version of Ubuntu | |
source /etc/os-release | |
# Download the Microsoft repository keys | |
wget -q https://packages.microsoft.com/config/ubuntu/$VERSION_ID/packages-microsoft-prod.deb | |
# Register the Microsoft repository keys | |
sudo dpkg -i packages-microsoft-prod.deb | |
# Delete the the Microsoft repository keys file | |
rm packages-microsoft-prod.deb | |
# Update the list of packages after we added packages.microsoft.com | |
sudo apt-get update | |
# Install PowerShell | |
sudo apt-get install -y powershell | |
# PYENV | |
################################### | |
# install pyenv | |
sudo apt install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev | |
sudo apt install python-openssl | |
curl https://pyenv.run | bash | |
# | |
# edit .bashrc | |
# | |
# export PATH="$HOME/.pyenv/bin:$PATH" | |
# eval "$(pyenv virtualenv-init -)" | |
# | |
# install python 3.11.5 | |
pyenv install 3.11.5 | |
# | |
# OPENCONNECT & SQUID | |
############################ | |
# | |
sudo apt install openconnect squid | |
# edit | |
# sudo nano /etc/squid/squid.conf | |
# http_access deny all >> http_access allow all | |
# | |
sudo systemctl enable squid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment