Archives For Howtos

Visual Studio Code IDE

Visual Studio Code IDE 1.49 was released a few days ago. Here’s how to install it in Ubuntu 20.04, Ubuntu 18.04.

Visual Studio Code 1.49 release highlights include:

  • Format modified text – Limit formatting to just the code you’ve changed.
  • Add support for changing text casing during global Search and Replace.
  • Display pending changes per repository in the Source Control repositories view
  • Debug Console now supports quickly filter and find debugging output.
  • Improved JS debugger Auto Attach – “Smart” Auto Attach to Node.js scripts or test runners.
  • TypeScript optional chaining refactoring – Convert multiple checks to a concise optional chain.
  • JSDoc @deprecated tag support – IntelliSense clearly shows APIs marked as deprecated.
  • Notebook UX updates – Cell Status bar contributions, enhanced notebook diff editor.

How to Install VS Code 1.49 in Ubuntu:

The official .deb package is available to download at the link below:

Download VS Code (.deb)

Grab the deb and install it via either Gdebi package manager or command in terminal (Ctrl+Alt+T):

sudo dpkg -i ~/Downloads/code_*.deb; sudo apt -f install

For those who want to receive updates for VS Code via Software Updater utility, add the Microsoft repository via following steps (64bit only):

1. Open terminal (Ctrl+Alt+T) and run command to add the repository:

sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'

2. Download and install the repository key via commands:

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg

sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg

3. Finally install the IDE via command:

sudo apt-get install code

Uninstall Visual Studio Code:

To remove the code editor, either use Synaptic Package Manager or run command:

sudo apt-get remove --autoremove code

And remove the Microsoft repository by launching Software & Updates utility and navigating to Other Software tab.

Oracle Java 15 was released a few days ago. The installer script has been made into PPA for Ubuntu 16.04, Ubuntu 18.04, Ubuntu 20.04, and their derivatives.

See the release note for what’s new in Oracle Java 15.

The “Linux Uprising” team ppa has made the installer script, which automatically downloads and installs Oracle JDK 15 package, and sets Java 15 as the default Java version (setting JAVA_HOME, etc.) on 64-bit Ubuntu based system.

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

sudo add-apt-repository ppa:linuxuprising/java

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

2.) After adding PPA, refresh system package cache and install the script:

sudo apt update

sudo apt install oracle-java15-installer

Once the package is installed, you have to accept the license (press Tab to highlight) before starting the download process.

And after installed Oracle Java 15, check via java --version command:

(Optional) To uninstall the PPA repository, run command in terminal:

sudo add-apt-repository --remove ppa:linuxuprising/java

And remove Oracle Java 15 if you want by running command:

sudo apt-get remove oracle-java15-installer

Want to change CPU frequency scaling in Ubuntu 20.04? There’s a gnome shell extension can do the job.

CPU Power Manager is a Gnome-Shell extension for intel-pstate driver. If you have an Intel Core i CPU, the extension will offer an indicator menu for changing CPU frequency scaling.

To install the extension, simply do following steps one by one:

1.) Open terminal and install chrome-gnome-shell package if you’re first time installing a Gnome shell extension:

sudo apt install chrome-gnome-shell

2. Go to extension page in your web browser. If you don’t see the toggle icon, click link to install browser extension:

3. Finally refresh the web page (see the link in step 2), toggle on and install the extension.

Once installed, you’ll see the indicator applet in system tray area. To make it work, you have to click “Attempt installation” option, type user password and hit Enter.

(Optional) To remove this gnome shell extension, either go to link in step 2 and turn it off, or use Extensions tool.

Vivaldi web browser 3.3 was released today. The new release introduces a new Break Mode.

By clicking on the new pause button at the left corner of the Status Bar, or press Ctrl + “.” on keyboard, Break Mode mutes and stops HTML5 audio and videos, hides all tabs, panels, and other content leaving the screen clean.

After taking a break, you can resume your browsing activity exactly where you left off by pressing Play to un-pause the browser.

Other changes in Vivaldi 3.3 include:

  • New Private Window Themes
  • Base domain highlighting for improved security
  • Easier cropping of URL in the Address Bar by pressing Ctrl & clicking.
  • Full-page blocking support
  • Drag & drop Speed Dials to folders

How to Install Vivaldi 3.3 in Ubuntu:

The official Ubuntu .DEB packages are available for download at the link below:

Download Vivaldi (DEB)

Grab the deb matches your OS, then install it via Ubuntu Software or Gdebi package manager. Or run command in terminal:

sudo dpkg -i ~/Downloads/vivaldi-stable_3.3*.deb

Vivaldi also has apt repository, with it you can install the browser and get future updates through Software Updater utility.

Open terminal either via Ctrl+Alt+T keyboard shortcut or by searching for terminal from application menu. When it opens, run following commands one by one:

1. Download and install the repository keyring:

wget -qO- https://repo.vivaldi.com/archive/linux_signing_key.pub | sudo apt-key add -

Typer user password when it prompts and hit Enter to continue.

2. Add Vivaldi repository via command:

sudo add-apt-repository 'deb https://repo.vivaldi.com/archive/deb/ stable main'

3. Finally check updates and install the web browser via command:

sudo apt update && sudo apt install vivaldi-stable

Or upgrade from an old version via Software Updater utility.

(Optional): To remove Vivaldi apt repository from you system, launch Software & Updates and navigate to Other Software tab.

This simple tutorial shows how to turn your photos as desktop slideshow by manually creating XML file in Ubuntu 20.04 and Ubuntu 22.04 LTS.

If you’re just looking for an automatic wallpaper changing software, here are four other choices.

In Ubuntu with the default GNOME desktop, user may turn photos into wallpaper slideshow by creating a XML file, then select it at any time in the Background settings.

XML slideshows in Background settings are displayed with a small clock emblem in the lower-right corner of the preview. (See the red rectangle area in the picture)

NOTE: In Ubuntu 22.04, changing wallpaper or slideshow only applies in current color scheme. Switching to Light or Dark mode, also changes the wallpaper setting.

Step 1: Create & Edit XML file for slideshow:

First of all, you have to create a XML and write the rules for which photos to display as slideshow, how long they will be displayed, and the transition orders.

1. Create XML file

You can create the XML files in anywhere of your user folder. Though it recommends for software developers to put them in ‘~/.local/share/backgrounds‘ folder.

Here I created a sub-folder called ‘slideshows‘ under my Pictures folder. Then, create an empty document and re-name it as .xml file.

Create a XML file

2. Edit XML write the rules:

After created the file, open it with your favorite text editor and write something look like:

<?xml version="1.0" ?>
<background>
  <static>
    <duration>60.0</duration>
    <file>/home/ji/Pictures/Wallpapers/Pic1.jpg</file>
  </static>
  <transition>
    <duration>0.5</duration>
    <from>/home/ji/Pictures/Wallpapers/Pic1.jpg</from>
    <to>/home/ji/Pictures/Wallpapers/Pic2.jpg</to>
  </transition>
  <static>
    <duration>300.0</duration>
    <file>/home/ji/Pictures/Wallpapers/Pic2.jpg</file>
  </static>
  <transition>
    <duration>0.5</duration>
    <from>/home/ji/Pictures/Wallpapers/Pic2.jpg</from>
    <to>/home/ji/Pictures/Wallpapers/PicN.png</to>
  </transition>
  <static>
    <duration>60.0</duration>
    <file>/home/ji/Pictures/Wallpapers/PicN.png</file>
  </static>
  <transition>
    <duration>0.5</duration>
    <from>/home/ji/Pictures/Wallpapers/PicN.png</from>
    <to>/home/ji/Pictures/Wallpapers/Pic1.jpg</to>
  </transition> 
</background>

The file content is easy to read. It starts with <?xml version=”1.0″ ?>, then follows with a <background></background> node.

With in <background> node, you can add as many <static></static> and <transition></transition> nodes as you can depends on number of wallpaper files.

While the <static> node contains display time (in seconds) and path to the picture file, the <transition> contains transition time and from to file paths.

The XML slideshow file (pic is edited for easy reading)

TIP: You may drag and drop your photo files into Terminal (Ctrl+Alt+T) or web browser’s URL bar to get the file path quickly!

Step 2: Make the XML slideshow visible in Background settings

After created a XML file, you have to create another one to make it visible in system settings utility.

1. First, press Ctrl+Alt+T on keyboard to open a terminal window. When it opens, run command to create the local background properties directory:

mkdir -p ~/.local/share/gnome-background-properties

Then open that directory in file manager by running command:

nautilus ~/.local/share/gnome-background-properties

Create and open background properties folder

2. When the folder opens, create empty file and rename it to a .xml file with whatever filename as you want.

Create another XML in background properties folder

3. Finally open the new created XML file and paste following lines:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
<wallpapers>
  <wallpaper>
    <name>Ji's slideshow</name>
    <filename>/home/ji/Pictures/slideshows/myslideshow.xml</filename>
    <options>zoom</options>
    <pcolor>#2c001e</pcolor>
    <scolor>#2c001e</scolor>
    <shade_type>solid</shade_type>
  </wallpaper>
</wallpapers>

Here type whatever name within <name></name> node, and set the full path to the previous created XML with <filename></filename> node.

Apply the previous created XML slideshow

After saving the file, open or re-open ‘Background’ settings, you should see the new created background slideshow.

Summary:

In short, you can create a XML file in anywhere of user folder, write the rules to specify which photos to display, how long they will persist, and the transition order. Then, create another XML file in background properties directory to make the slideshow visible in ‘Background’ settings dialog.

In theory, the XML should work on all GNOME based Linux, e.g., Fedora Workstation, though I only tested it in Ubuntu 20.04 and Ubuntu 22.04.

Audacity 2.4.2 PPA is back for Ubuntu 20.04 / 18.04

Last updated: November 26, 2022

This simple tutorial shows how to install the latest Audacity 2.4.2 via PPA in Ubuntu 20.04, Ubuntu 18.04, and Linux Mint 20.

Audacity audio editor 2.4.x was missing from the unofficial PPA for a few months, due to build system change and my poor debian packaging skill.

According to the Privacy Notice, Audacity higher than v3.0.2 now requires network connection for checking updates and error reporting.

Since the upstream maintainer has built the 2.4.2 package for Debian unstable and Ubuntu 20.10, backports for Ubuntu 20.04 and Ubuntu 18.04 now are here for you!

Note the package is built against system’s wxWidgets 3.0.x, while Audacity team recommends to use the patched 3.1.x. The PPA package seems working good, though I’m not an audio editor.

And I offer no warranty for the packages in PPA. Use it at your own risk!

How to Install Audacity 2.4.2 via PPA in Ubuntu 20.04:

Open terminal either from system application menu or by pressing Ctrl+Alt+T on keyboard. When terminal opens, run following commands one by one:

1.) Run command in terminal to add the PPA repository:

sudo add-apt-repository ppa:ubuntuhandbook1/audacity

Type user password (no asterisk feedback due to security reason) when it prompts and hit Enter to continue.

2. If you have a previous version installed, you can upgrade Audacity via Software Updater after adding the PPA.

upgrade audacity

or run following commands one by one to check updates and install (or upgrade) audacity 2.4.2:

sudo apt update

sudo apt install audacity

Uninstall:

To remove the PPA repository, launch Software & Updates utility and navigate to ‘Other Software’ tab. Or simply run command in terminal:

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

To remove Audacity audio software, either use system package manager or run command in terminal:

sudo apt-get remove --autoremove audacity audacity-data

gnome shell

In Ubuntu 20.04 Gnome Shell, application indicator on top panel has wide spaces between icons. You can reduce the icon spacing via an extension called Unite.

Unite is a Gnome Shell extension which makes a few layout tweaks to the top panel and removes window decorations to make it look like Ubuntu Unity Shell. With the extension, your system tray area will look like:

To install the extension, do following steps one by one.

1.) Open terminal (Ctrl+Alt+T) and run command:

sudo apt install chrome-gnome-shell

2.) Run command to install the extension required x11-utils library:

sudo apt install x11-utils

3.) Go to extensions.gnome.org/…/unite/, toggle on and install the extension.

If you don’t see the toggle icon, click link to install browser extension and refresh this web page

The extension by default reduces top bar item spacing. To tweak other panel appearance, open Gnome Tweaks (or Extensions tool), and go to unite settings.

Liferea Feed Reader

This simple tutorial shows how to install Liferea feed reader 1.3.2 via PPA in Ubuntu 20.04, Ubuntu 18.04, and Linux Mint 20.

Liferea, stands for Linux Feed Reader, is a news reader for Gnome. The software is available in Ubuntu universe repository, but it’s old.

And here’s the PPA for the latest 1.3 development serious, which so far features:

  • New “Reader mode”.
  • Embed YouTube videos from MediaRSS feeds
  • Add support for subscribing to HTML5 websites without RSS/Atom feeds
  • Add MediaRSS support (e.g. Youtube feeds) to display descriptions and thumbnails
  • Many UI improvements, bug-fixes.

Install Liferea 1.3.2 via PPA:

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

sudo add-apt-repository ppa:ubuntuhandbook1/apps

Type your password when it prompts and hit Enter to continue.

2.) Then check updates and install the news reader via commands:

sudo apt update

sudo apt install liferea

or update the old package (if installed) via Software Updater utility:

upgrade Liferea via Software Updater

Uninstall:

As the PPA also contains many other applications, you may remove the PPA either via Software & Updates > Other Software, or by running command:

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

And remove the feed reader if want via command:

sudo apt remove liferea

SuperTuxKart 1.2, free and open-source kart racing game, was officially released a day ago.

What’s new in SuperTuxkart 1.2:

  • Support gamepad hotplugging
  • Use SDL2 for window creation
  • New “Cartoon” theme
  • Haiku support
  • Add support for IPv6 LAN servers
  • Team chat for team games
  • A new Kiki kart and improved Pidgin and Puffy karts
  • Fixed most gamepad related bugs
  • New settings to customize the game’s camera
  • And many many enhancements and fixes

How to Get SuperTuxKart 1.2:

Source code as well as packages for Android, Linux (portable), Mac OS, and Windows are available for download at the link below:

SuperTuxKart in Github

Also, there’s an Ubuntu PPA that contains .deb packages for Ubuntu 18.04, Ubuntu 20.04, Linux Mint 20 / 19.x.

The PPA so far contains SuperTuxKart 1.2 RC1 package. It should be updated to v1.2 in days. Check the PPA link before getting started.

1.) Open terminal from system application launcher, then run command to add the PPA:

sudo add-apt-repository ppa:stk/dev

Type user password, no visual feedback, when it asks and hit Enter to continue.

2.) After adding the PPA, either upgrade from an old version via Software Updater, or run commands in terminal to install the game:

sudo apt update

sudo apt install supertuxkart

Uninstall SuperTuxKart:

To remove the PPA, run command:

sudo add-apt-repository --remove ppa:stk/dev

To remove the racing game, run:

sudo apt remove --autoremove supertuxkart supertuxkart-data

4 Nifty Grub Themes for Your Linux Boot Menu

Last updated: April 24, 2024

Grub

Boring with the default boot menu in purple? Try installing some themes for this Grub boot-loader.

There’s an open-source project maintains 4 modern design themes for Grub2. They are Vimix, Stylish, Tela, and Slaze.

First take a look at the screenshots:

It’s easy to install the themes as the maintainer offers an installer script. First go to link below and download the source code:

Then do following steps to install the grub themes:

1. Go to Downloads folder, extract the source tarball, and go into source folder.

2. Right click on blank area and select ‘Open in Terminal’

3. When terminal opens, run command to install a theme:

sudo ./install.sh --boot --vimix

For another theme, replace --vimix in command with --stylish, --tela, or --slaze.

You may use more flags, e.g.,

  • --white, install white color icons.
  • --ultrawide, install 2560×1080 background image – not available for slaze theme
  • --2k, install 2k(2560×1440) background image
  • --4k, install 4k(3840×2160) background image

Once installed, restart your machine and enjoy!

(Optional) To remove the Grub theme, re-do the first 2 steps and run command:

sudo ./install.sh --remove --vimix

You may replace --vimix in command with --stylish, --tela, or --slaze to remove one of them.