Archives For November 30, 1999

This tutorial shows how to automatically mount external disk partitions on startup of Ubuntu, Fedora, Debian, and most other Linux.

I bought a new SSD recently. Now, I have 2 solid-state drives (SSDs) connected on my computer. Ubuntu 22.04 is installed on one SSD drive, while another one contains VirtualBox Virtual Machine files.

As result, I have to click open the external SSD partition in file manager every time on startup to mount it. So the files on that SSD are accessible via mount point (usually “/media/username/xxx“). Or, all virtual machines in VirtualBox will be marked as “Inaccessible”.

To make life easier, it’s possible to auto-mount the external file partition. So user doesn’t have to make one more mouse click in file manager every time on startup. And, here’s what I did in Ubuntu 22.04.

 

UPDATE: For most desktop Linux, there’s an easier way to auto-mount disk driver or partitions on startup. See this tutorial for details.

 

Step 1: Get Device Name or ID of External Disk Partition

First, search for and open the “Disks” tool from system app launcher.

Launch Disk

When it opens, select the disk in left pane, and highlight the desired file partition in right. There, copy or write down the Device name (usually /dev/xxx), and UUID.

In my case, I need to get the info about:

  • UUID: 428E68968EE68846F
  • Device name: /dev/nvme0n1p2
  • file system type: NTFS (optional)

In case, your Linux Distro does not have “Disks” utility or you’re running a Linux server. Open terminal and run command:

df -h

Then find out the disk partition name you want to auto-mount on startup. (NOTE: You need to mount the external disk first).

Step 2: Get the user/group ID for current user

To auto-mount the external partition by using current user ownership, you also need to get the user ID and group ID.

For the default user that created while installing Linux, the ID is usually 1000. Just in case, open terminal and run command to get it:

id

get user id

Step 3: Enable Auto-Mount Disk Partition via /etc/fstab

Now, you can edit the “/etc/fstab” file to do the auto-mount configuration that works in most Linux!

To do so, open terminal and run command:

sudo gedit /etc/fstab

For Ubuntu 22.10+ and Fedora workstation, replace gedit with gnome-text-editor. For other Linux, either use your system text editor or nano that works in most Linux.

When the file opens, add the new line in the bottom:

UUID_or_Device_Name  Mount_Point  File_system_type  Options  0  0

In my case, I can use:

/dev/nvme0n1p2 /media/ji/sandisk  ntfs  defaults,uid=1000,gid=1000,umask=022  0  0

There are 6 parts in the new line separated with spaces. They are:

  • Part 1: the device name or UUID. See yours via Step 1.
  • Part 2: the mount point to access the external disk files. If you’ve associated your apps with the external disk files, it’s better to use the previous mount point (See screenshot in Step1).
  • Part 3: the file system type of disk partition (e.g., ext4, fat, ntfs). Get it in step 1, or use “auto” to auto-detect.
  • Part 4: mount options separated with commas but NO space between them. Here I use:
    • defaults – means rw (read & write), auto (auto mount), exec, dev, etc. Run man mount to see more about it.
    • uid – specify the owner.
    • gid – specify the group
    • umask – specify the permissions. The first 0 means read, write and execute permission for user, and the two number 2 mean read and execute permission for group/others.
  • Part 5: Either to backup. Set 0 to not backup.
  • Part 6: Either to check and repair file system. 0 for No.

When done, save the file. For nano text editor, press Ctrl+X, type y and hit Enter to save it. And, the change will apply in next boot.

In addition

The uid=1000,gid=1000,umask=022 section specify the ownership and permissions, but it only works for non-Linux file systems, such as NTFS, FAT, etc, disk partitions.

If you’re going to auto-mount external partition with Linux file-system, such as Ext2/3/4, XFS, JFS, try to change the ownership manually after mount.

 

Looking for an alternative on-screen keyboard for Ubuntu, Fedora or other Linux with GNOME? Try GJS OSK.

The built-in on-screen keyboard in Ubuntu and other Linux with GNOME is not so good. It lacks some keys, and does not raise up in most cases in Ubuntu 22.04.

In this tutorial, I’m going to introduce a new OSK application. It’s GJS OSK written in GNOME JavaScript. The application features on-screen keyboard with even more keys, such as F1 ~ F12, number 0,1,2,…9, Arrows, Ctrl buttons, and PrintScreen.

And, without sticking to the screen bottom, user can move the keyboard anywhere around the screen. Just click on quadruple arrow icon (see screenshot below) in the OSK, then you can drag moving it just like normal applications.

GJS OSK, allows to move around the screen

Also, it has an indicator applet on panel allows to one mouse click to show or hide the keyboard.

Click show/hide the on-screen keyboard

Other features of GJS OSK include:

  • Both Wayland and X11 support.
  • Support changing landscape and portrait size, font size, but sadly can NOT change the keyboard size.
  • Allow changing keyboard color.
  • Support QWERTY, QWERTZ, AZERTY, Dvorak layout.

GJS OSK with different background color

How to Install GJS OSK

NOTE: GJS OSK is a stand-alone on-screen keyboard. You need to disable system built-in on-screen keyboard first from Settings to avoid conflict.

1. First, go to link below to download the source from Github release page:

For GNOME 45+, meaning Ubuntu 24.04/23.10, Fedora 39/40, Arch/Manjaro etc, select download the main.zip under ‘Assets’ section. While GNOME 44 and earlier, meaning Ubuntu 22.04, Debian 12, etc, can choose the pre-45.zip.

2. After downloaded the .zip package, you do NOT have to extract it. Just open up a terminal window (for Ubuntu, press Ctrl+Alt+T) and run command to install it:

gnome-extensions install /path/to/zip

Instead of typing /path/to/zip, you can just drag’n’drop it into terminal instead.

3. log out and back in. Then, launch either “GNOME Extensions” or “Extension Manager” app (both available in Ubuntu Software, App Center (filter via Debian Package), Gnome Software). Turn on the new “GJS OSK” extension, and click its gear icon to configure its layout.

Finally, click on  the top-right corner keyboard indicator applet to show/hide the new on-screen keyboard.

Uninstall GJS OSK

To remove the extension, also launch “Gnome Extensions” or “Extension Manager”, click the “⋮” or arrow icon beside the toggle switch to expand, and select “Remove” the extension.

Annotator, image annotation tool for Elementary OS, released version 1.2.0 today. Here are the new features and how to install guide for Ubuntu users.

Annotator is a free open-source image annotation tool designed for Elementary OS, but also works in other Linux. By releasing version 1.2.0, it now also supports for taking screenshot for full-screen, current window, and selection area.

User can choose to either use UI button or run command line option to take screenshot, though it so far only works on Xorg session. Meaning Ubuntu, Fedora workstation with default GNOME Wayland session need to switch back Xorg from login screen for this feature to work.

Annotator take screenshot option

When adding and adjusting shapes and arrows on images, user can now right-click on them to ‘Set as Custom’. After that, your custom shapes/arrows will be available in the drop-down menus for quick use.

The release also added a emoji picker when inserting text. Also, right-click on the text insert area to get the option.

Other features in Annotator 1.2.0 include:

  • Support for showing and hiding an item’s outline.
  • Support for reading an image to annotate from standard input on the command-line.
  • Enhance export UI and adding export options for PNG and JPEG types.
  • Remove support for elementary OS contracts
  • Several UI improvements and various bug-fixes.

How to Install Annotator 1.2.0 in Ubuntu

Annotator has a built-in installer script in the source code. Elementary OS can directly search for and install it from app store.

For Ubuntu 20.04, Ubuntu 22.04, Ubuntu 23.10, Ubuntu 24.04 and their based systems, the software packages are also available to install via this Ubuntu PPA for both X86 PC/laptop and arm64/armhf mobile devices.

1. Add the PPA

Press Ctrl+Alt+T on keyboard to open terminal. When it opens, run commands to add the PPA:

sudo add-apt-repository ppa:ubuntuhandbook1/annotator

Type user password (no asterisk feedback) when it asks and hit Enter to continue.

2. Update package cache

Ubuntu 20.04 and higher refresh system package cache automatically while adding PPA, but some Ubuntu based systems may not. To do it manually, run command:

sudo apt update

3. Install Annotator:

Finally, install the app using command:

sudo apt install com.github.phase1geo.annotator

Once installed, search for and open it from start menu (activities overview) and enjoy!

Remove Annotator & Ubuntu PPA:

To remove the Ubuntu PPA, use command:

sudo add-apt-repository --remove ppa:ubuntuhandbook1/annotator

And remove the annotation tool via:

sudo apt remove --autoremove com.github.phase1geo.annotator

This simple tutorial shows how to increase or decrease the touchpad 2-finger scrolling speed in Ubuntu 22.04, Ubuntu 24.04 with default GNOME on Wayland session.

GNOME, the default desktop for Ubuntu, Fedora, and optional in many other Linux, so far lacks option to configure the mouse/touchpad scroll speed.

For Ubuntu 20.04, Ubuntu 18.04, and other Linux with GNOME on classic Xorg, there’s a command line tool imwheel available to do the job. And, here’s a step by step guide show you how.

For Ubuntu 22.04 and higher and other Linux with GNOME Wayland, this tutorial may help by settings virtual touchpad size.

IMPORTANT: This tutorial is tested and works in Ubuntu 24.04 & 22.04 on my old HP & ASUS laptop. However, some users report it does NOT work. Don’t do it on production machine!

Step 1: Measure & Set virtual touchpad size

1. First, open terminal either by pressing Ctrl+Alt+T on keyboard, or by searching from ‘Activities’ overview screen.

2. When terminal opens, run command to install ‘libinput-tools’ package in case you don’t have it:

sudo apt install libinput-tools

3. Next, run command to tell your touchpad size (width and height in mm):

sudo libinput measure touchpad-size 100x100

As the screenshot shows, may laptop has touchpad with 114.6 mm width and 48.4 mm height. Once you got the value, press Ctrl+C to exit.

4. Finally, re-run the command in step 3, but with different args. For example, use 172×73 for 1.5x scroll speed (Here 172 ≈ 114.6 x 1.5, and 73 ≈ 48.4 x 1.5), run command:

sudo libinput measure touchpad-size 172x73

Or use 92×39 for 0.8x scroll-speed (92 ≈ 114.6 x 0.8, 39 ≈ 48.4 x 0.8):

sudo libinput measure touchpad-size 92x39

NOTE: You have to change the “width x height” number in command. Depends on your need to either increase or decrease scroll-speed, calculate them according the original size of your touchpad!!

Once you hit run the command, follow the terminal output to “Move one finger along all edges of the touchpad until the detected axis range stops changing.  You’ll see the little ‘0’ in the terminal output moves correspondingly when you moving finger on touchpad.

5. When done, press Ctrl+C to stop it. And, you should get similar output as the screenshot shows, if you’ve done correctly.

And, you need to copy the lines between the 2 “-8<————–” lines (in my case, the section with white background).

Step 2: Apply Changes

1. Now, open terminal (Ctrl+Alt+T) and run command to edit the config file:

sudo gedit /etc/udev/hwdb.d/61-evdev-local.hwdb

Replace gedit in command with gnome-text-editor for Ubuntu 24.04 and Fedora, or use nano instead that works in all desktops.

When file opens, paste the lines you just copied in ‘Step 1’ and save it.

2. Finally, update hardware database by running command:

sudo systemd-hwdb update

And, reload udev rules by running command:

sudo udevadm trigger /dev/input/event*

When everything’s done. Restart your computer to see the effect!

As the steps above also increase or decrease the cursor movement speed, you may also need to open “Settings -> Mouse & Touchpad” and adjust ‘Touchpad Speed’ slider-bar.

How to Restore

To undo the changes you made via the previous steps, first open terminal (Ctrl+Alt+T) and run command to delete the config file:

sudo rm /etc/udev/hwdb.d/61-evdev-local.hwdb

Then update database and reload udev rules by running 2 commands one by one:

sudo systemd-hwdb update
sudo udevadm trigger /dev/input/event*

Finally, restart your computer and done.

via: reddit thread.

For those who prefer the classic .deb package format, I’ve revived the Ubuntu PPA for the latest Audacity audio editor packages.

I was previously maintaining a PPA for the Audacity packages. It was however discontinued. Because, the project depended its own fork of wxWidget library, that is hard to maintain. And, Debian/Ubuntu upstream even stopped updating (now revived) the software package due to policy changes.

Now, Audacity can be built with the wxWidget 3.2 library from Ubuntu’s system repositories. And, Debian/Ubuntu again keep updating the software package  (v3.2.4 at the moment) in the new Distro releases.

So I decide to continue the PPA with the latest Audacity packages built against the rules from Debian upstream. And, now it’s updated to Audacity 3.7.0.

Audacity 3.3 installed as .deb package

Install Audacity 3.7.0 via PPA in Ubuntu

For the release note, and the official AppImage package, see the Github Release page.

The PPA so far supports for Ubuntu 22.04, Ubuntu 24.04, and Ubuntu 24.10 on both x86_86 and ARM CPU platforms.

1. First, open terminal either by pressing Ctrl+Alt+T on keyboard, or by searching from start menu ‘Activities’ overview depends on your DE.

2. When terminal opens, paste the command below and hit run to add the PPA.

sudo add-apt-repository ppa:ubuntuhandbook1/audacity

Type user password when it asks (no asterisk feedback) and hit Enter to continue.

3. If an earlier version was installed via apt install command, you can then upgrade the package using Software Updater (Update Manager).

Or, just run command in terminal to install/update the Audacity .deb package:

sudo apt install audacity

NOTE: Linux Mint may need to run sudo apt update first.

Once installed, search for and open it from start menu or ‘Activities’ overview and enjoy!

If you also installed Audacity as Flatpak, or create a shortcut for official AppImage, you may then have duplicated app icons. You can choose to either remove the other package, or start the .deb version from command line:

/usr/bin/audacity

Uninstall:

To uninstall the Audacity software packages, simply open terminal and run command:

sudo apt remove audacity audacity-date

Also, remove the Ubuntu PPA either by running command:

sudo add-apt-repository --remove ppa:ubuntuhandbook1/audacity

or by launching “Software & Updates” and removing source line under “other software” tab.

That’s all. Enjoy!

Shotwell image organizer released version 0.32.0 a few days ago. Here’s how to install it in Ubuntu 22.04, Ubuntu 23.04 via PPA.

After a few years of 0.31.x development releases, Shotwell 0.32 was finally released as new stable series. Compare to v0.30.x, it features:

  • Webp, AVIF, HEIF/HEVC, CR3, JPEG-XL images support.
  • Initial support for having multiple accounts per publishing service
  • HiDPI support for photo viewer and tools
  • Support MXF files
  • Support .nomedia files when importing from folder

For more changes in Shotwell 0.32.0, see the NEWS file in gitlab project page.

How to Install Shotwell 0.32.0 in Ubuntu

The developer team offers official Linux package via Flatpak. However, it’s not updated at the moment of writing this tutorial. See Shotwell in Flathub.

For those who prefer the classic .deb, I’ve uploaded the package into this unofficial PPA for Ubuntu 22.04, Ubuntu 22.10, and Ubuntu 23.04. Due to minimum dependency version mis-match, Ubuntu 20.04 is not supported.

1. First, search for and open terminal from your system application menu, or press Ctrl+Alt+T on keyboard. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:ubuntuhandbook1/shotwell

Type user password (no asterisk feedback) when it asks and hit Enter to continue.

2. Next, launch Software Updater (Update Manager), then install the updates for the software package.

Or, run command in terminal to install/upgrade the Shotwell package:

sudo apt install shotwell

NOTE: Linux Mint user may need to run sudo apt update first to refresh package cache.

Finally, either right-click on your photo images to select open with the photo manager, or search for and launch shotwell from ‘Activities’ overview and enjoy!

Uninstall Shotwell 0.32.0

For any issue, it’s recommended to purge the Ubuntu PPA. Which, will remove PPA and downgrade shotwell to the pre-installed version.

To do so, open terminal (Ctrl+Alt+T) and run command:

sudo apt install ppa-purge && sudo ppa-purge ppa:ubuntuhandbook1/shotwell

The Audacity audio tag editor announced the new 3.3.0 release. Here’s how to install it in Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04, and Ubuntu 23.04.

Audacity 3.3.0 is a new major release that features initial version of Beats and Measures. Some built-in effects (such as, Bass & Treble, Distortion, Phaser, Reverb and Wahwah) are now realtime capable.

The new release also added “Shelf Filter” function which is vailable in ‘Effect -> EQ and Filters’ menu.

Other changes in Audacity 3.3.0 include:

  • New “Time Signature Toolbar” (hidden by default)
  • New ruler, Linear (dB)
  • Add delete button to the Cut/Copy/Paste toolbar.
  • FFmpeg 6.0 support.

How to Install Audacity 3.3.0 in your Linux

Option 1: AppImage

Audacity now provides official Linux package through AppImage. It’s non-install software package that can be run directly to launch the application.

First, download Audacity from the link below (under ‘Assets’ section):

Then, right-click on the AppImage in file manager, go to “Properties” and enable ‘allow executing file as program‘ under Permissions tab. Finally, click run the AppImage to launch Audacity audio editor.

Ubuntu 22.04 and higher does not support AppImage out-of-the-box, press Ctrl+Alt+T on keyboard and run command to enable it:

sudo apt install libfuse2

And, if you want to create app shortcut for this AppImage package, here’s an application to automate the process.

Option 2: Flatpak

Audacity is also available to install as Flatpak package, though it’s not updated at the moment of writing.

1. First, press Ctrl+Alt+T on keyboard to open terminal. When it opens, make sure Flatpak support enabled by running command:

sudo apt install flatpak

NOTE: Ubuntu 18.04 needs to add this Ubuntu PPA first before running the command above.

2. Then, just run the single command to install Audacity as Flatpak package:

flatpak install https://dl.flathub.org/repo/appstream/org.audacityteam.Audacity.flatpakref

For the future updates, just run flatpak update org.audacityteam.Audacity every time in terminal.

Once installed, search for and launch Audacity from start menu or ‘Activities’ overview depends on your desktop environment and enjoy!

Option 3: Ubuntu PPA

For those who prefer the classic .deb package, I’ve upload the software package into this unofficial PPA for Ubuntu 22.04 and higher.

Just launch terminal, and run commands below one by one to add PPA and install the editor:

sudo add-apt-repository ppa:ubuntuhandbook1/audacity
sudo apt update
sudo apt install audacity

Uninstall Audacity

For the Appimage package, just remove the file and done.

For Flatpak package, open terminal (Ctrl+Alt+T) and run command:

flatpak uninstall --delete-data org.audacityteam.Audacity

Also run command to remove unused runtime libraries to free up disk space:

flatpak uninstall --unused

For the PPA package, remove it via command:

sudo apt remove --autoremove audacity audacity-data

Also remove the Ubuntu PPA by running command:

sudo add-apt-repository --remove ppa:ubuntuhandbook1/audacity

This simple tutorial shows how to install Adobe Acrobat Reader 9.5.5 in Ubuntu 24.04, Ubuntu 22.04, Ubuntu 20.04, and most other Linux.

Adobe has discontinued Linux support for its Acrobat PDF reader for many years! There are now many free open-source Linux apps for reading and/or editing PDF files.

However, if you like, the old Adobe Acrobat Reader 9.5.5 is still can be installed in current Ubuntu and other Linux, though it’s unmaintained and may contain security vulnerabilities.

NOTE: Adobe Reader 9.5.5 discontinued in 2013, it may have bugs and security issues! Install and use it at your own risk!

Thanks to @Ray Schumacher (see the comment below), Adobe website still provide native .deb package for the v9.5.5 version. It did install in my case in Ubuntu 24.04, however refused to launch due to the error below:

/opt/Adobe/Reader9/Reader/intellinux/bin/acroread: error while loading shared libraries: libgdk_pixbuf_xlib-2.0.so.0: cannot open shared object file: No such file or directory

The libgdk-pixbuf-2.0-0:i386 package offers the missing library, but it somehow refused to install in my test. So, this tutorial shows you how to install the Flatpak package instead, which works in all current Ubuntu releases, Fedora, Debian, Arch, and most other Linux.

Install Abode Reader 9.5.5 via Flatpak package

Flatpak is an universal Linux package format that runs in sandbox environment. It takes more disk space due to shared run-time libraries, however can be more safe since it runs in container.

1. Enable Flatpak Support

Ubuntu does NOT support Flatpak out-of-the-box, due to favor of Snap. It’s however easy to add it support by doing the steps below one by one.

1. (Ubuntu 16.04|18.04 only) For the old Ubuntu 16.04 and Ubuntu 18.04, press Ctrl+Alt+T on keyboard to open terminal. And, run command to add the Flatpak official PPA.

sudo add-apt-repository ppa:flatpak/stable

Then, update system package cache via:

sudo apt update

2. Press Ctrl+Alt+T on keyboard to open terminal. When terminal opens, run command to enable Flatpak support:

sudo apt install flatpak

For other Linux, follow this official setup guide instead for Flatpak support.

2. Install Adobe Reader Flatpak package

Once you got the file format support, then run the command below to install the Flatpak app package:

flatpak install https://dl.flathub.org/repo/appstream/com.adobe.Reader.flatpakref

Flatpak runs in sandbox. Though, the PDF reader itself only takes 59 MB, it needs also download & install hundred of MB run-time libraries.

Once installed, either right-click on your PDF file and select “Open With Other Application” to choose Adobe Reader, or just search for and launch it from the overview screen.

NOTE: If this is the first app installed as Flatpak package in your system, you may need to log out and back in to make app icon visible.

3. Add Printer Support & Grant other Permissions

As mentioned, the Flatpak package runs in sandbox environment, which has NO permission by default to access printing system.

To enable this feature, first, open terminal (Ctrl+Alt+T) and run command to install Flatseal app:

flatpak install https://dl.flathub.org/repo/appstream/com.github.tchx84.Flatseal.flatpakref

Then, launch the “Flatseal” app, navigate to “Adobe Reader” in left pane of the pop-up app window, finally scroll down in right, find-out and turn on the toggle option for “Printing system”.

NOTE: If you intent to use network printer, then you also need to enable “Network” toggle option for this app package.

Uninstall Adobe Reader

To remove the software package, also open terminal (Ctrl+Alt+T) and run command:

flatpak uninstall --delete-data com.adobe.Reader

You may also run command to remove unused runtime libraries to free up disk space.

flatpak uninstall --unused

KDE’s Kdenlive video editor has released version 23.04, here are the new features and how to install guide for (K)Ubuntu 22.04 & (K)Ubuntu 22.10 via PPA.

According to the KDE Gear 23.04 release note, Kdenlive 23.04 features new nested timelines.

The new feature allows user to select several video clips from tracks, and use right-click menu option “Create sequence from selection” to group them together as one single sequence. User can then edit the sequence, apply effects, and add transitions between nested and regular clips.

For more about Kdenlive 23.04, see the official release note which will be available soon tomorrow.

How to Install Kdenlive 23.04 in Ubuntu

The official PPA has built the new release package for Ubuntu 22.04 and Ubuntu 22.10, though it somehow does not support Ubuntu 23.04 yet.

1. First press Ctrl+Alt+T on keyboard to open terminal, or search for and launch ‘Konsole‘ from start menu. When it opens, run command:

sudo add-apt-repository ppa:kdenlive/kdenlive-stable

Type user password (no asterisk feedback) when it asks and hit Enter to continue.

2. After adding PPA, user can either open Software Updater (or Update Manager) to update the software package from an installed version:

Or run the command below to install or update the video editor:

sudo apt install kdenlive

NOTE: Linux Mint user has to run sudo apt update first to manually refresh package cache

And, if you got overwriting files issue due to the old dependencies: libmlt-data and melt, run command to remove them and then re-run the apt command above:

sudo dpkg -r melt libmlt-data

Once installed, press Super (Windows logo key) to open ‘Activities’ overview or start menu, and search for and open Kdenlive.

Uninstall Kdenlive

To remove Kdenlive, either use your system package manager or run the command below in a terminal window:

sudo apt remove --autoremove kdenlive

And remove the Ubuntu PPA either by running command in terminal:

sudo add-apt-repository --remove ppa:kdenlive/kdenlive-stable

Or use “Software & Updates” utility to remove the source line under “Other Software” tab.

Since Ubuntu 23.04 Lunar Lobster, the default system fonts for the texts in system menus, documents, and app windows have been changed.

The new font is slim. And, I’ve written a tutorial about how to try it out in Ubuntu 22.04 and 20.04. If you prefer the old one, here’s how to revert it back in Ubuntu 24.04 LTS.

Compare to Ubuntu 23.04/23.10, the new font in Ubuntu 24.04 looks better now in my opinion. Because, the default fonts have been changed:

  • from ‘Ubuntu Regular‘ to ‘Ubuntu Sans‘ for interface text.
  • from ‘Ubuntu Mono Regular‘ to ‘Ubuntu Sans Mono‘ for monospace text.

Default fonts changed in Ubuntu 24.04

Install old Ubuntu Fonts in Ubuntu 24.04

1. Install the classic font

Since Ubuntu 23.10, a new package fonts-ubuntu-classic is available in system repository for those who prefer the classic font.

To install the package, press Ctrl+Alt+T on keyboard to open up a terminal window. Then, run command:

sudo apt install fonts-ubuntu-classic

You may run sudo apt update to refresh system package cache first if the command above somehow does not work for you.

After installing the classic fonts, text in terminal may become un-readable. In the case, just log out and back in.

2. Download & install classic font for Console (Optional)

The classic font for console (terminal) so far is NOT available in Ubuntu 24.04 repository. For choice, you may manually download and install the package for Ubuntu 22.04.

To do so, launch a terminal window (Ctrl+Alt+T), and download the classic font for console package via command:

wget -c https://launchpad.net/ubuntu/+archive/primary/+files/fonts-ubuntu-console_0.83-6ubuntu1_all.deb

Next, install the package by running command:

sudo apt install ./fonts-ubuntu-console_0.83-6ubuntu1_all.deb

3. Apply the classic fonts

Option 1: Use Gnome Tweaks to apply classic fonts:

After installed the classic fonts, it won’t apply automatically, because the default font names have changed as mentioned.

To switch back the old ones, first search for and install GNOME Tweaks from App Center.

Next, launch Gnome Tweaks, and in the first “Fonts” tab:

  • Select Ubuntu Regular as Interface Text font. It will be displayed as ‘Ubuntu’ after selection.
  • And select Ubuntu Mono Regular for Monospace Text, if you also installed the classic font for console.

Option 2: use Linux commands to apply the classic fonts
For those who are OK with Linux commands, open up a terminal window (Ctrl+Alt+T) and run the commands below one by one instead:

gsettings set org.gnome.desktop.interface font-name "Ubuntu 11"
gsettings set org.gnome.desktop.interface monospace-font-name "Ubuntu Mono 13"

Lock & Prevent updating to new fonts

To prevent your system from automatically updating to the new fonts, you have to lock the old fonts packages that were just installed via the previous step.

Thanks to @Alex Farran, lock package version via Synaptic package manager only prevents itself and ‘Software Updater’ from upgrading the package. However, apt command and may be other tools can still upgrade the fonts. So, the best choice can be running the command below in terminal:

sudo apt-mark hold fonts-ubuntu fonts-ubuntu-console

For the graphical way (NOT work for apt), first open App Center, search for and install Synatic Package Manager.

Then launch “Synaptic”, click “Search” and search “fonts-ubuntu“. Finally, do:

  • Press and hold Ctrl then highlight both “fonts-ubuntu” and “fonts-ubuntu-console” packages.
  • Go to menu “Package -> Lock Version”.

How to go back the new Ubuntu Fonts

First, open terminal (Ctrl+Alt+T) and run command to unlock the font packages:

sudo apt-mark unhold fonts-ubuntu fonts-ubuntu-console

Then, also search for and launch Synaptic package manager.

When it opens, search “fonts-ubuntu“. Then do:

  • highlight both “fonts-ubuntu” and “fonts-ubuntu-console” packages via Ctrl + mouse click.
  • Go to menu “Package” and un-check “Lock Version” (skip if NOT enabled).
  • Next, right-click on both packages and select “Mark for Upgrade“.
  • Finally, click on “Apply” button.

When done, reset the font names by running commands in terminal (Ctrl+Alt+T) one by one:

gsettings reset org.gnome.desktop.interface font-name
gsettings reset org.gnome.desktop.interface monospace-font-name