Skip to content

Instantly share code, notes, and snippets.

@AntonFriberg
Created August 1, 2024 10:39
Show Gist options
  • Save AntonFriberg/795ae6bd78b01f93f5c4ba678945d784 to your computer and use it in GitHub Desktop.
Save AntonFriberg/795ae6bd78b01f93f5c4ba678945d784 to your computer and use it in GitHub Desktop.
Bring up Ubuntu 24.04

Bring up on new Ubuntu 24.04 LTS machine

Browser

Firefox

Install non-snap firefox developer edition

https://support.mozilla.org/en-US/kb/install-firefox-linux

#!/usr/bin/env bash

# Fail fast
set -Eeuo pipefail

# Create a directory to store APT repository keys if it doesn't exist
sudo install -d -m 0755 /etc/apt/keyrings

# import the Mozilla APT repository signing key
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null

# Check fingerprint
gpg -n -q --import --import-options import-show /etc/apt/keyrings/packages.mozilla.org.asc | awk '/pub/{getline; gsub(/^ +| +$/,""); if($0 == "35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3") print "\nThe key fingerprint matches ("$0").\n"; else print "\nVerification failed: the fingerprint ("$0") does not match the expected one.\n"}'

# Add Mozilla APT repository to your sources list
echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null

# Configure APT to prioritize packages from the Mozilla repository
echo '
Package: *
Pin: origin packages.mozilla.org
Pin-Priority: 1000
' | sudo tee /etc/apt/preferences.d/mozilla

# Update package lust and install firefox developer edition
sudo apt-get update && sudo apt-get install firefox-devedition

Google Chrome

#!/usr/bin/env bash

# Fail fast
set -Eeuo pipefail

# Fetch latest stable deb
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

# Install
sudo apt install ./google-chrome-stable_current_amd64.deb

Nix install

#!/usr/bin/env bash

# Fail fast
set -Eeuo pipefail

# Install Nix using the determinate nix installer
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install

Hyprland Install

https://github.com/JaKooLit/Debian-Hyprland/tree/Ubuntu-24.04-LTS

#!/usr/bin/env bash

# Fail fast
set -Eeuo pipefail

# Setup before install
sudo apt-get install git
mkdir -p ~/git/github
git clone --depth=1 -b Ubuntu-24.04-LTS https://github.com/JaKooLit/Debian-Hyprland.git ~/git/github/Debian-Hyprland

# Install
cd ~/git/github/Debian-Hyprland
chmod +x install.sh
./install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment