Skip to content

Instantly share code, notes, and snippets.

@Mihai-P
Last active October 7, 2024 20:56
Show Gist options
  • Select an option

  • Save Mihai-P/40fa2d9fc64501fff855530f56e35519 to your computer and use it in GitHub Desktop.

Select an option

Save Mihai-P/40fa2d9fc64501fff855530f56e35519 to your computer and use it in GitHub Desktop.
#!/bin/bash
# To fix the no file dialog for Firefox (from SNAP) on Ubuntu: https://askubuntu.com/questions/1404941/no-file-save-dialog-for-snap-applications
sudo apt install xdg-desktop-portal-gtk
#!/bin/bash
#details here: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html
sudo apt install -y python3-pip
pip3 install awscli --upgrade --user
#!/bin/bash
sudo curl -fsSL https://goss.rocks/install | sudo sh
#!/bin/bash
sudo apt-get install -y curl
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
#!/bin/bash
wget https://github.com/kamranahmedse/pennywise/releases/download/v0.8.0/pennywise_0.8.0_amd64.deb
sudo apt install ./pennywise_0.8.0_amd64.deb
rm -rf ./pennywise_0.8.0_amd64.deb
#!/bin/bash
sudo apt install -y steam
#!/bin/bash
sudo apt install snapd
echo "***********************************************************************"
echo "* Installing GIMP *"
echo "***********************************************************************"
sudo apt-get install -y gimp
echo "***********************************************************************"
echo "* Installing todoist *"
echo "***********************************************************************"
sudo snap install todoist
echo "***********************************************************************"
echo "* Installing slack *"
echo "***********************************************************************"
sudo snap install slack --classic
#!/bin/bash
sudo apt install -y software-properties-common apt-transport-https wget
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt update
sudo apt install -y code
#!/bin/bash
# fix the issue that 3rd gen Ryzen has with RTX cards. See more details here: https://forums.developer.nvidia.com/t/random-xid-61-and-xorg-lock-up/79731/212
sudo tee -a /etc/profile.d/nvidia.sh >/dev/null <<'EOF'
#!/bin/bash
nvidia-smi -pm ENABLED
nvidia-smi -lgc 1400,2000
EOF
sudo chmod +x /etc/profile.d/nvidia.sh
#!/bin/bash
# to install docker
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable edge test"
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose
sudo usermod -aG docker ${USER}
# to make plex work
sudo apt install -y vlc docker-compose
# to make vi work properly
echo "set nocompatible" >> ~/.vimrc
sudo reboot
## for Ubuntu you have to install Pulse Audio before
sudo apt-get install pulseaudio pulseaudio-utils
pulseaudio -D
#!/bin/bash
## just install this: https://github.com/evilphish/sennheiser-gsx-1000
git clone https://github.com/evilphish/sennheiser-gsx-1000
cd sennheiser-gsx-1000/
./install.sh
# This will create a 7.1 card that works just fine, In case you want to switch to a stereo card, you can put replace the contents of this file /usr/share/alsa-card-profile/mixer/profile-sets/sennheiser-gsx-1000.conf with this
[General]
auto-profiles = no
#[Mapping analog-output-surround71]
#description = main output 7.1
#device-strings = hw:CARD=GSX1000,DEV=1
#device-strings = hw:%f,1
#channel-map = front-left,front-right,front-center,lfe,rear-left,rear-right,side-left,side-right
#paths-output = analog-output analog-output-lineout analog-output-speaker
#priority = 2
[Mapping analog-output-surround]
description = main output
device-strings = hw:CARD=GSX1000,DEV=1
#device-strings = hw:%f,1
channel-map = left,right
paths-output = analog-output analog-output-lineout analog-output-speaker
priority = 2
[Mapping analog-output-chat]
description = chat output
device-strings = hw:CARD=GSX1000,DEV=0
#device-strings = hw:%f,0
channel-map = mono
paths-output = analog-output-headphones analog-output-headphones-2 analog-output-mono
priority = 1
[Mapping analog-input]
description = microphone input
device-strings = hw:CARD=GSX1000,DEV=0
#device-strings = hw:%f,0
channel-map = mono
paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input->
priority = 2
# Combined output profile
#[Profile output:analog-output-surround71+output:analog-output-chat+input:analog-input]
[Profile output:analog-output-surround+output:analog-output-chat+input:analog-input]
description = 7.1 Surround
#output-mappings = analog-output-chat analog-output-surround71
output-mappings = analog-output-chat analog-output-surround
input-mappings = analog-input
priority = 88
skip-probe = yes
echo "***********************************************************************"
echo "* Installing Workrave *"
echo "***********************************************************************"
sudo apt-get install -y workrave gnome-tweak-tool
# how to get the gnome applet https://askubuntu.com/questions/967264/how-to-get-workrave-indicator-to-show-in-ubuntu-17-10
sudo add-apt-repository -u ppa:rob-caelers/workrave
sudo apt update
sudo apt install -y workrave-gnome
# Now fire up Workrave. It will show up in a small window with all the timers running -- no applet yet.
echo "***********************************************************************"
echo "Then fire up gnome-tweak-tool, head to Extensions, and enable Workrave."
echo "***********************************************************************"
## To make the yubikey work, install Yubico Authenticator from the store then install pcscd
sudo apt install pcscd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment