Archives For Howtos

OpenRGB, formerly OpenAuraSDK, is a free open-source RGB lighting control that doesn’t depend on manufacturer software.

OpenRGB supports ASUS, ASRock, Corsair, G.Skill, Gigabyte, HyperX, MSI, Razer, ThermalTake, and more (See supported devices).

While every manufacturer has their own app, proprietary and Windows-only, some even require online accounts, OpenRGB aims to control all of your RGB devices from a single app, on both Windows and Linux.

OpenRGB features include:

  • Set colors and select effect modes for a wide variety of RGB hardware
  • Save and load profiles
  • Control lighting from third party software using the OpenRGB SDK
  • Command line interface
  • Connect multiple instances of OpenRGB to synchronize lighting across multiple PCs
  • Can operate standalone or in a client/headless server configuration
  • View device information
  • No official/manufacturer software required
  • Graphical view of device LEDs makes creating custom patterns easy
OpenRGB interacts directly with hardware using reverse engineered protocols. It’s said that there have been two instances of hardware damage in the software development. Use it at your own risk!

How to Get OpenRGB:

The source code, Windows binary, universal Linux Appimage package, and Deb package for Ubuntu / Debian are available to download at the gitlab releases page:

For Ubuntu users, either grab the Appimage package and run to open the software (after adding executable permission), or,  download the Deb package (Debian Buster amd64 for 20.04 and earlier, Debian Bullseye amd64 for later) and click install via Gdebi (Gdebi is available in Ubuntu Software/App Center) package installer.

(Optional) To remove OpenRGB deb package, run command in terminal:

sudo apt remove --auto-remove openrgb

RedNotebook, modern desktop diary and personal journal software, released version 2.21 today.

RedNotebook 2.21 features updated MathJax to version 3, resulting in much faster rendering / preview times; The release also fixed date references in CEF-based HtmlView.

How to Install RedNotebook 2.21 via PPA:

The official RedNotebook PPA has been updated for Ubuntu 20.10. For Ubuntu 18.04 and Ubuntu 20.04, just wait for PPA update or install the package for Ubuntu 20.10.

1.) Open terminal and run command to add the PPA:

sudo add-apt-repository ppa:rednotebook/stable

Type user password (no asterisk feedback) for sudo prompts and hit Enter to continue.

2.) Then install the daily journal app via command:

sudo apt install rednotebook

Uninstall RedNotebook:

To remove the PPA repository, either go to Software & Updates -> Other Software tab, or run command in terminal:

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

And remove the desktop diary app via command:

sudo apt remove rednotebook

This simple tutorial shows how to install IntelliJ IDEA 2020.3 via its official Linux tarball via PPA.

For those don’t like Snap and Flatpak packages, IntelliJ IDEA offers official Linux tarball in its download page. You can download the package, extract, and run the executable file to launch the IDE.

To make things easy, an installer script was made to automatically download the tarball from Jetbrains website, extract the source to /opt/ directory for global use, and finally create an app shortcut so you can launch the program from system application menu.

And there’s an Ubuntu PPA contains the latest installer scripts for IntelliJ IDEA 2020.3 both community and ultimate editions.

UPDATE: The PPA has been updated to contain script to install “IntelliJ IDEA 2024.1” for Ubuntu 22.04, Ubuntu 20.04, Ubuntu 18.04, and Ubuntu 16.04.

1.) Open terminal from system application menu. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:mmk2410/intellij-idea

Type user password (no asterisk feedback) and hit Enter. The PPA supports all current Ubuntu releases and derivatives.

2.) Then refresh package cache and install the script:

sudo apt update

sudo apt install intellij-idea-community

Replace intellij-idea-community with intellij-idea-ultimate for ultimate edition.

If everything goes OK, you’ll be able to launch the IDE from application launcher.

How to Remove the Package:

To remove the PPA, either go to Software & Updates > Other Software, or run command in terminal:

sudo add-apt-repository --remove ppa:mmk2410/intellij-idea

And to remove IntelliJ IDEA, run command to remove the installer script which also removes the IDE packages:

sudo apt remove intellij-idea-community intellij-idea-ultimate

Going to free up Ubuntu system disk space? Try clearing the systemd journal logs, it may free up a few GB of space.

NOTE: This tutorial is tested and works in my case in Ubuntu 24.04, Ubuntu 22.04, and Ubuntu 20.04

By using the Disk Usage Analyzer tool, I found that /var/log/journal takes more than 4 GB system space in my Ubuntu 20.04.

Systemd has its own logging system called the journal, and the log files are stored in /var/log/journal. As long as I don’t need the logs for any debugging, it’s safe to delete these files. And following steps will show you how.

1. First open terminal from system app launcher, and you may run command to check out the current disk usage of all journal files:

journalctl --disk-usage

2. If you decide to clear the logs, run command to rotate the journal files. All currently active journal files will be marked as archived, so that they are never written to in future.

sudo journalctl --rotate

3. Now clear the journal logs by choosing one of following commands:

  • Delete journal logs older than X days:
    sudo journalctl --vacuum-time=2days
  • Delete log files until the disk space taken falls below the specified size:
    sudo journalctl --vacuum-size=100M
  • Delete old logs and limit file number to X:
    sudo journalctl --vacuum-files=5

4. You can also edit the configuration file to limit the journal log disk usage (100 MB for example).

Run command in terminal to edit the file via Gedit text editor (For 24.04+, replace gedit with gnome-text-editor or use nano that works in most desktops):

sudo -H gedit /etc/systemd/journald.conf

When the file opens, un-comment (remove # at the beginning) the line #SystemMaxUse= and change it to SystemMaxUse=100M.

Finally, save the file (for nano, press Ctrl+S then Ctrl+X) and reload systemd daemon via command:

systemctl daemon-reload

That’s all, Enjoy!

Paper GTK3 and Icon themes

This is a beginner’s guide shows how to remove the ‘Show Applications’ app menu icon from the dock in Ubuntu 20.04, Ubuntu 22.04

Why to remove the icon:

The default ‘Show Applications’ app launcher is always a bit slow when I clicking on the 9 dots icon on left dock to show the app menu, even after disabled animation and changed privacy settings.

And I only use it to search for and open applications, which can be done alternatively via the top-left Activities button.

In brief, it’s slow and I use Activities button to search for and open applications.

How to Remove it:

If you’re familiar with Linux command, press Ctrl+Alt+T on keyboard to open terminal and run command:

gsettings set org.gnome.shell.extensions.dash-to-dock show-show-apps-button false

That’s it.

You can alternatively open Dconf Editor (install via Ubuntu Software if you don’t have it) and navigate to “org/gnome/shell/extensions/dash-to-dock”.

Then turn off the toggle for the key ‘show-show-apps-button’.

(Optional) To restore the change, either use Dconf Editor or run command:

gsettings reset org.gnome.shell.extensions.dash-to-dock show-show-apps-button

Editing files regularly with the default text editor in Ubuntu? Without looking your documents through Files (Nautilus file browser), gedit offers a built-in file browser mode to make life easy.

And this is the beginner’s guide shows you how to enable this built-in file browser mode in Gedit text editor.

1. First open the text editor either from system applications menu or by click opening a document file.

2. When the editor opens, go to menu (the icon after Save button) -> View, and enable Side Panel. You can alternatively press F9 on keyboard to toggle ‘Side Panel’ on / off.

3. After enabled ‘Side Panel’, click on the ‘Documents’ button in window’s header and select ‘File Browser’.

4. That’s it. You now have a file tree in the left panel of the text editor window, allows to easy access user files / folders, bookmarks, and full file system.

Syncthing-gtk, GTK3-based GUI and indicator for Syncthing, was removed from Ubuntu 20.10 Groovy’s main repository due to old Python library dependencies.

For those sticking to this program, the Python 3 port now works in progress. It has been made into main repository for the next Ubuntu 21.04 Hirsute Hippo. And you can download & install the package in Ubuntu 20.10.

1. First download the .deb package from the link below:

syncthing-gtk in Ubuntu 21.04 repo

As Ubuntu 21.04 still in active development, the package is being updated (might be). Check the package building page if the previous button does not work.

2. Once you get the package, open terminal (Ctrl+Alt+T) and install it by running command:

sudo apt install ./Download/syncthing-gtk_0.9.4.4+ds+git20200927+d09a2ef-3_all.deb

Tip: if you type the command manually, hit tab key after typing syncthing-gtk will auto-complete the file name in terminal window.

Once installed, launch the software from your system application menu and enjoy!

(Optional) And if you want to remove the package, simply run command in terminal:

sudo apt remove syncthing-gtk

Gmusicbrowser, an open-source jukebox for large music collections, released version 1.1.16 a few days ago. Here’s how to install it in Ubuntu 20.04, Ubuntu 20.10, Linux Mint 20.

Gmusicbrowser 1.1.16 is the first release in over 5 years. And now it’s working on GTK3 port.

Changes in version 1.1.16 include:

  • Fix not working with perl >=5.24
  • Add support for .opus files
  • Add option to simplify tree in folder pane
  • Add option to ignore articles when sorting
  • Add has_picture and has_lyrics optional fields
  • Add artist_has_picture and album_has_picture virtual fields
  • PictureBrowser: add embedded picture mode (+ all files mode)
  • PictureBrowser: add “Reset view position when file changes” option
  • Add option to some fields to show a “find songs with same …” menu item
  • Add support for mp2 extension and change mp3 filetype
  • Update AppStream metadata
  • Update picture sources for picture finder plugin
  • Add musixmatch.com for lyrics plugin
  • Various bug-fixes and translation updates

How to Install gmusicbrowser 1.1.16 in Ubuntu:

The software offers official .deb binary package available to download at the link below:

gmusicbrowser-1.1.16_all.deb

Just grab the package and click install either via Gdebi package installer or “Software Install” context menu.

Install gmusicbrower via its official apt repository.

The software has an official apt repository for Debian, Ubuntu, Linux Mint based systems. You can add the repository then install the software and receive future package updates via Software Updater utility.

1. Add gmusicbrowser apt repository:

Run command in terminal to add its official repository:

sudo sh -c 'echo "deb http://gmusicbrowser.org/deb ./" >> /etc/apt/sources.list.d/gmusicbrowser.list'

Type user password (no asterisk feedback) when it asks for sudo prompt and hit Enter.

Then download & install the key via command:

wget http://gmusicbrowser.org/squentin.key.asc -O - | sudo apt-key add -

2. Refresh package cache & install the software:

Run command in terminal to update your system package cache:

sudo apt update

And finally install it via command:

sudo apt install gmusicbrowser

Uninstall gmusicbrowser:

To remove the music collections manager, simply open terminal and run command:

sudo apt remove --autoremove gmusicbrowser

To remove its apt repository, open Software & Updates -> Other Software tab and remove the repository line.

Found that Qt5 based applications (e.g., VLC, qBittorrent, Virtualbox, Audacious, etc.) look ugly on Ubuntu Desktop? That’s because they don’t inherit the global GTK theme.

You can apply a custom theme to Qt5 applications to make them look native on Ubuntu Gnome desktop. And Kvantum, an SVG-based theme engine, can do the job.

First let’s see the change before and after applying the changes:

And here’s step by step guide shows how to to this in Ubuntu 18.04, Ubuntu 20.04, Ubuntu 20.10.

1. First open terminal (Ctrl+Alt+T) and run command to add the PPA:

sudo add-apt-repository ppa:papirus/papirus

This step is optional for Ubuntu 20.04 and higher, as the packages are already made into main repositories.

2. Install the qt5-style-kvantum package by running command:

sudo apt install qt5-style-kvantum

3. Add rule to user’s profile, so the theme engine will handle Qt apps for single user.

echo "export QT_STYLE_OVERRIDE=kvantum" >> ~/.profile

For global, you can edit /etc/environment file and add the line export QT_STYLE_OVERRIDE=kvantum as new line in the end.

4. Log out and log back in. Then launch Kvantum Manager from system app menu.
Navigate to “Change/Delete Theme”, then select and apply KvYaru theme.

Now Qt5 apps should look native if you’re running with default Yaru GTK theme.

Uninstall and restore the changes:

To uninstall the PPA, open terminal and run command:

sudo add-apt-repository --remove ppa:papirus/papirus

To remove the theme engine, run command:

sudo apt install qt5-style-kvantum qt5-style-kvantum-themes

And remember to edit ~/.profile to remove the last line.

gedit ~/.profile

Microsoft PowerShell 7.1.0 was released a few days ago with a number of improvements and fixes to PowerShell 7. Here’s how to install it in Ubuntu 16.04, Ubuntu 18.04, Ubuntu 20.04, and Linux Mint 19.x, 20.

PowerShell 7.1.0 release highlights:

  • Fix $? to not be $false when native command writes to stderr.
  • Rename -FromUnixTime to -UnixTimeSeconds on Get-Date to allow Unix time input.
  • Make $ErrorActionPreference not affect stderr output of native commands.
  • Allow explicitly specified named parameter to supersede the same one from hashtable splatting.
  • Make the switch parameter -Qualifier not positional for Split-Path.
  • Resolve the working directory as literal path for Start-Process when it’s not specified.
  • Make -OutFile parameter in web cmdlets to work like -LiteralPath.
  • Fix string parameter binding for BigInteger numeric literals.
  • On Windows, Start-Process creates a process environment with all the environment variables from current session, using -UseNewEnvironment creates a new default process environment.
  • Do not wrap return result to PSObject when converting ScriptBlock to delegate.
  • Use invariant culture string conversion for -replace operator.

How to Install PowerShell (7.4 Updated) in Ubuntu:

If you’re OK with containerized Snap package, simply search for and install powershell from Ubuntu Software.

For those prefer .deb package, Microsoft offers the software in its official apt repository, so far supports Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04, and Ubuntu 24.04.

1. Setup Microsoft apt repository in Ubuntu:

Open terminal from your system application launcher. When it opens, run command to download the official .deb package:

wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb

For Linux Mint, replace $(lsb_release -rs) in the code with 20.04 for Linux Mint 20 (or 18.04 for Mint 19.x).

Then install the package, which will install Microsoft repository and key, by running command:

sudo dpkg -i packages-microsoft-prod.deb

Type user password (no asterisk feedback) for sudo prompts and hit Enter.

2. Install PowerShell:

After adding the repository, run following 2 commands one by one to check package updates and install the software:

sudo apt update

sudo apt install powershell

Once installed, run pwsh to start PowerShell.

Uninstall PowerShell:

To remove the software, simply open terminal and run command:

sudo apt remove powershell

To remove the apt repository, simply go to Software & Updates > Other Software tab, and remove the relevant line.