Skip to content

Instantly share code, notes, and snippets.

@iogeek
Last active April 18, 2023 01:46
Show Gist options
  • Save iogeek/2e1d789ceaafbbcf0a7f29b2c894c8cd to your computer and use it in GitHub Desktop.
Save iogeek/2e1d789ceaafbbcf0a7f29b2c894c8cd to your computer and use it in GitHub Desktop.
# MIT License
# Copyright (c) 2022 robbieh
# See https://mit-license.org/ for details about MIT License
# I live in a Raspian, Ubuntu, WSL bubble
# so this might be of limited use to that world outside
# the bubble I live in.
#cat /proc/version
#cat /etc/issue
# Make the UI comfy
# gsettings get org.gnome.desktop.interface cursor-size
gsettings set org.gnome.desktop.interface cursor-size 48
# Apps
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
sudo apt -y update
sudo apt -y upgrade
sudo apt install -y build-essential dos2unix git python3 nodejs npm
#apt remove -y
# install dotnet sdk
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 7.0
#--version latest
echo "export DOTNET_ROOT=$HOME/.dotnet" >> ~/.bashrc
echo "export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools" >> ~/.bashrc
source ~/.bashrc
# GCM -- Git Credential Manager
# https://github.com/GitCredentialManager/git-credential-manager
# This makes working on Azure Repos from Linux tolerable
#wget $(curl -s https://api.github.com/repos/GitCredentialManager/git-credential-manager/releases/latest | grep "browser_download_url" | grep "gcm-linux_amd64" | grep ".deb" | cut -d '"' -f 4) -O gcm-linux.deb && sudo dpkg -i gcm-linux.deb && rm -f gcm-linux.deb
# dotnet tool uninstall -g git-credential-manager
dotnet tool install -g git-credential-manager
# sigh GCM is very spcific aout wanting v6 dotnet
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 6.0 --runtime dotnet
.dotnet/tools/git-credential-manager configure
# sudo apt install -y dotnet6 dotnet-sdk-6.0
if [[ -n "$IS_WSL" || -n "$WSL_DISTRO_NAME" ]]; then
echo "This is WSL"
sudo apt install -y ruby-full
else
echo "This is not WSL"
# snap store
# https://snapcraft.io/snap-store
# sudo snap refresh
# Snap makes life a little easier
sudo apt install -y snapd
# Powershell... Don't judge me
sudo snap install powershell --classic
# VSCode feels right
sudo snap install code --classic
# install dotnet SDK - Sanp's dotnet sdk seg faults
#sudo snap install dotnet-sdk --classic
sudo snap install sqlitebrowser
sudo snap install ruby --classic
fi
sudo gem update
sudo gem install jekyll bundler minima
# cd $HOME/git/ghub/zz
#bundle install
# https://codelabs.developers.google.com/codelabs/clasp
# note: Might need to upgade nodejs sudo npm install n -g && sudo n latest
#sudo npm i @google/clasp -g
#export PS1="\\w$"
# jekyll
# if rpi use -> bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh)
# then gem install jekyll bundler minima
# bundle add webrick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment