Skip to content

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History

ubuntu24

README.md

ubuntu24

These scripts are for setting up a new Ubuntu 24.04 desktop machine. They have been tested on a fresh install of Ubuntu 24.04 LTS. They contain all the software that is needed for Rust development, OBS Studio use, and general developer productivity.

Here's the accompanying video for this repo on YouTube.

What comes with the scripts

Here is a non exhaustive list of software that will be installed:

  1. fish as the default login shell. All the configuration scripts are written in fish. bass is also installed to allow for running bash scripts in fish.
  2. rustup, brew, and flatpak with flathub as package managers.
  3. docker and docker-compose for containerization.
  4. obs-studio for screen recording and streaming.
  5. vlc, mpv for media playback.
  6. chrome for web browsing.
  7. vscode for code editing.
  8. Lots of Gnome extensions for desktop customization.
  9. nerd-fonts for terminal font customization. Along with guake and tilix for terminal emulators. Along with tmux for terminal multiplexing.

To download Ubuntu 24.04, visit the Ubuntu website and prepare a USB drive with the ISO file for installation. You can use Popsicle to create a bootable USB drive.

Running the scripts

Lots of customized font configurations are included in the scripts. You can clone the repo and run the scripts, or just copy the links below and run them in your terminal.

The scripts can be run in the following order. Really the only one that is required to be run first is the 0-bootstrap.bash script. The rest can be run in any order.

You can run the following commands to get this on your machine. The first script 0-bootstrap.bash has to be installed first. It installs fish shell and makes it the default and installs flatpak and flatpak flathub. It also installs bass to allow running bash scripts in fish. The remainder of the scripts can be run in any order.

sudo apt install -y curl git
cd ~/Downloads/
git clone https://github.com/nazmulidris/rust-scratch/
cd rust-scratch/ubuntu24/
./0-bootstrap.bash
# You will need to reboot after running the 0-bootstrap.bash script

Once you reboot, you can run the following scripts.

cd ~/Downloads/rust-scratch/ubuntu24/
./1-install.fish
./2-install-docker.bash
./3-install-fonts.fish

You can see the contents of the scripts by clicking on the links below:

  1. https://raw.githubusercontent.com/nazmulidris/rust-scratch/main/ubuntu24/0-bootstrap.bash
  2. https://raw.githubusercontent.com/nazmulidris/rust-scratch/main/ubuntu24/1-install.fish
  3. https://raw.githubusercontent.com/nazmulidris/rust-scratch/main/ubuntu24/2-install-docker.bash
  4. https://raw.githubusercontent.com/nazmulidris/rust-scratch/main/ubuntu24/3-install-fonts.fish

Optional scripts:

  1. https://github.com/nazmulidris/rust-scratch/blob/main/ubuntu24/install-agent-into-bin.fish
  2. https://github.com/nazmulidris/rust-scratch/blob/main/ubuntu24/fix-gnome-session-path-env-var-linuxbrew.fish
  3. https://github.com/nazmulidris/rust-scratch/blob/main/ubuntu24/fix-usr-local-bin-symlinks.fish

Gnome Extensions

Keyboard remapping

Chrome issues w/ Wayland

libfuse2 and AppImage issues

  • libfuse2 is not included with Ubuntu 24.04. AppImages are difficult to run (since they need libfuse2 installed).

  • To run them, have to pass an extra flag in the terminal or .desktop file(eg for uhk-agent). here's a workaround (to keep from installing libfuse2).

  • Here's an example of the command to run the uhk-agent AppImage:

    /UHK.Agent-4.2.0-linux-x86_64.AppImage --appimage-extract
    cd squashfs-root
    ./uhk-agent --no-sandox

Settings -> keymappings

  • To create keyboard shortcuts that launch a shell command, wrap it in sh -c $CMD. This is what must be done for flameshot, and ulauncher.
  • Bind ulauncher-toggle to the settings -> keyboard shortcuts in gnome.

OBS Studio issues

obs-studio has some UI issues, and dialog boxes are quite glitchy and don't display properly. keyboard shortcuts can't be reliably used when the obs-studio window is not in focus. can't really bind to settings -> keyboard shortcuts either, since there's no command to stop recording; start recording will spawn a new process.

Tilix and quake mode

Fontconfig

Custom font install using script. optional - ~/.config/fontconfig/fonts.conf change for system fonts that affect all apps. also gnome-tweaks to change fonts, and other settings.

Firefox issues

By default Ubuntu 24 wants you to install Firefox from snap. The ability to use sudo apt install firefox is disabled. To enable this again:

  1. Run sudo snap remove firefox ; sudo apt remove firefox
  2. Run the install-firefox.bash script. And it will fix this for you.
  3. More info on how to install firefox from the .APT repository