Archives For November 30, 1999

The upcoming Windows 11 has leaked online a few days ago. Here’s how to implement the new look and feel in Ubuntu 20.04, and/or Ubuntu 21.04.

Gnome has a large collection of extensions to get additional and optional functionality. You can use dash to panel to combine the top-bar and the left dock into single. And Arc Menu extension is available to replace the default system app launcher.

So your Ubuntu Desktop can be customized to look like the picture shows:

Install Dash To Panel to get single system panel:

1.) Install Dash to Panel extension:

For Ubuntu 21.04, simply press Ctrl+Alt+T on keyboard to open terminal and run command to install the extension:

sudo apt install gnome-shell-extension-dash-to-panel

For Ubuntu 20.04, though the previous command works I recommend to do following steps instead to get the newer version:

a. First run command to install required tools for installing & managing Gnome extensions:

sudo apt install chrome-gnome-shell gnome-shell-extension-prefs

b. Next go to Dash-to-Panel web page and turn on the slider icon to install it:

If you don’t see the toggle icon, install browser extension via “Click here to install browser extension” link and refresh the web page.

Enable & Configure Dash to Panel:

Once installed the extensions, restart Gnome Shell by pressing Alt+F2, type r in popup ‘Run a Command’ box, and hit Enter.

Or just log-out and back in if you’re running on Wayland session.

Next enable the extension via either Gnome Extension app or Gnome Tweaks tool.

Finally right-click on blank area of the new panel, and go to ‘Dash to Panel Settings’. There do:

  • Toggle off ‘Show Applications’ button.
  • Change the position of ‘Left box’, ‘Taskbar’, and ‘Center box’. Use ‘Centered’ or ‘Monitor Center’ depends on your display.
  • Change panel background opacity, icon size, etc in next tabs.

Install Arc Menu as Start Menu:

Though the Arc Menu is available to install via apt command, I recommend to install it from your web browser. That’s because the one in apt repository is the un-maintained versions though it still works in current releases.

1.) First run command to install the required tools, if you didn’t do it in previous step:

sudo apt install chrome-gnome-shell gnome-shell-extension-prefs

Next go to Arc Menu web page and turn on the slider icon to install it:

If you don’t see the toggle icon, install browser extension via “Click here to install browser extension” link and refresh the web page.

You may need to press Alt+F2, type r, and hit Enter to restart Gnome Shell, or log out and back in to enable the extension. If you don’t see the new start menu, enable Arc Menu via either Gnome Extension app or Gnome Tweaks tool.

Finally right-click on new start menu and open settings. Under ‘Menu Layout’, choose the Modern Menu Layouts and select “Eleven”.

That’s it.

How to Restore:

Simple turn off or remove the two extensions via Gnome Extension App will restore your desktop appearance. If not, restart Gnome Shell via Alt+F2 run command box or log out and back in.

UPDATE March, 2022: The PPA package is outdated! Use the Flatpak package instead.

For those sticking to the latest Sigil ebook editor, here’s Ubuntu PPA maintains the 1.6.0 release packages for Ubuntu 18.04, Ubuntu 20.04, Ubuntu 21.04, Linux Mint 19 & 20.

Sigil is a free and open-source ebook editor designed to edit books in ePub format (both ePub 2 and ePub 3). The software offers official binary packages only for Windows and Mac OS.

The editor in Ubuntu repositories is always old. And no Flatpak or Snap package for Sigil. So far, using a third-party PPA is the only way besides compiling from the source tarball.

Install Sigil via Ubuntu PPA

So far, this can be the only PPAs that maintain the most recent Sigil packages. Unlike others, the guy maintains the packages for each Ubuntu releases individually.

Which means you have to find out your Ubuntu edition either from About settings or via cat /etc/issue command. Then select a command below to add the PPA.

1.) First, open terminal either from system app launcher or by pressing Ctrl+Alt+T on keyboard. When terminal opens, run command to add the PPA:

For Ubuntu 18.04 and Linux Mint 19.x run command:

sudo add-apt-repository ppa:xiota/stuff-18.04

And for Ubuntu 20.04, Linux Mint 20, run command:

sudo add-apt-repository ppa:xiota/stuff-20.04

For Ubuntu 21.04, use command:

sudo add-apt-repository ppa:xiota/stuff-21.04

2.) Next run command to install the ebook editor:

sudo apt install sigil

Ubuntu 18.04 needs to run sudo apt update first to refresh package cache.

Once installed, open the epub editor from system app launcher and enjoy!

How to Remove Ubuntu PPA and/or Sigil:

The Ubuntu PPAs also contains other software packages, e.g., Foliate ebook reader, Geeqie image viewer, Xournal, Xournal++, etc.
You can remove it by opening Software & Updates utility, then remove relevant line under Other Software tab.

To remove Sigil ebook editor, run command in terminal:

sudo apt remove --auto-remove sigil sigil-data

Ubuntu lists all the available user accounts in the GDM login screen. You can however remove them to protect your privacy.

Gnome, the default desktop environment, has a hidden option to force users to type the username and then password to login. If you’re working on public places, it will be good to enable this option for privacy concern.

1.) Firstly open terminal either from system app launcher or by pressing Ctrl+Alt+T on keyboard. Because the login screen is handled by gdm, you have to firstly run command to allows it to make connections to X server.

xhost SI:localuser:gdm

Though it says for X, you also need to run the command in Wayland session to avoid error to disable user list.

2.) Now run gsettings command to disable user list via user gdm:

sudo -u gdm gsettings set org.gnome.login-screen disable-user-list true

Type user password, no asterisk feedback, for sudo prompt and hit Enter.

In next boot, you will no longer see the user accounts. Instead, you need to type username and then password to login.

How to Reset:

To restore the login screen setting, also run both xhost and gsettings commands in a terminal window.

To be lazy, I’ll combine the two commands into single, so it will be:

xhost SI:localuser:gdm && sudo -u gdm gsettings reset org.gnome.login-screen disable-user-list

In addition for more Login Screen settings, e.g, disable ‘Power Off’ menu option, toggle authentications, you can open Dconf Editor (install it first from Ubuntu Software) via user gdm:

xhost SI:localuser:gdm && sudo -u gdm dconf-editor

This simple tutorial shows beginners how to easily wipe files, folder, and/or free disk space to protect your files from recovering in Ubuntu.

As you may know, any deleted files can be easily restored from the trash can. Even after you emptied the trash, files can still be recovered. So to prevent information leakage and protect privacy, you have to ‘wipe’ or ‘shred’ files.

1.) Firstly, open terminal either from system app launcher or by pressing Ctrl+Alt+T on keyboard.

2.) When terminal opens, run command to install nautilus-wipe:

sudo apt install nautilus-wipe

The package adds ability to wipe files, folders, and free disk space via context menu.

3.) Finally restart Nautilus file browser via command to apply change:

nautilus -q

After that, you can right-click on any file or folder to ‘wipe’ or ‘wipe available disk space’.

NOTE ‘wipe available disk space’ will overwrite the free space in your system disk, so your data will not recoverable. And the process can take quite a few minutes slowing down your system.

In addition to protect your privacy, you can use BleachBit to clear caches. As well, the tool offers options to shred files, folders, and wipe free space.

Though it’s not perfect, Global menu is still possible in Ubuntu 20.04, Ubuntu 21.04 with the default Gnome Desktop.

It used to have a Gnome Global Menu extension to enable focused app menus (e.g., File, Edit, View, Help, etc.) in the top panel. It is however discontinued because GTK+ development is blocking the uniform support for the global menu to the Gtk+ applications.

Users can still use Fildem global menu to get the function in Ubuntu 20.04, Ubuntu 20.10, and Ubuntu 21.04, though it does not work with most Gnome Apps.

NOTE: The Extension is NO longer updated! It won’t work in current Ubuntu 22.04 and higher.

1.) Install Fildem global menu extension.

Firstly, open terminal by pressing Ctrl+Alt+T on keyboard. When terminal opens, run commands to install the packages for installing and toggling Gnome Extension:

sudo apt install chrome-gnome-shell gnome-shell-extension-pres

Next, go to extension web page and turn on the slider icon to install it.

If you don’t see the toggle icon, click the top ‘Click here to install browser extension’ link to install browser extension and refresh the web page.

2.) Install and Configure the External App

To make the function work, you have to install the external app.

a.) Download and double-click to install the “fildem_x.x.x_all.deb” package from the link below:

Or install the package via sudo apt install ~/Downloads/fildem_*_all.deb command.

b.) Open terminal (Ctrl+Alt+T) and run command to edit the .gtkrc-2.0 file.

gedit ~/.gtkrc-2.0

When the file opens, add gtk-modules="appmenu-gtk-module" to the end.

c.) Next edit the .config/gtk-3.0/settings.ini file via command:

gedit ~/.config/gtk-3.0/settings.ini

And also add gtk-modules="appmenu-gtk-module" line to the end. Also, add [Settings] line before it if not exist.

3.) Start Global Menu:

Finally in a terminal window, run command fildem &.

Search for and open Extensions utility. When it opens, click on the gear button to configure the Gnome Extension:

  • Toggle off ‘Show menu only when the mouse is over the panel’ option.
  • Change the Button padding as you prefer.

Now global menu should work for apps, e.g., Google Chrome, Chromium, GIMP, Audacious, Shutter, LibreOffice, etc.

Sadly, most Gnome Apps as well as Firefox does not work with global menu. If you intend to get it work with Firefox, install the one from Ubuntu 18.04 repository (all current Ubuntu releases has the latest Firefox packages).

4.) Auto-start Fildem global menu:

To make the function work on startup, search for and open ‘Startup Applications‘ utility. Then click on Add button to add:

  • Type fildem in command box.
  • Type Name and Comment as you prefer.

How to Remove Fildem global menu:

To remove fildem package, open terminal and run command:

sudo apt remove python3-fildem --autoremove

And remove the extension via Extensions utility.

To remove the auto-start service, just remove which you created in step 4.

Got .HEIC photo images import from your iPhone? You may found that Ubuntu does not open the file format out-of-the-box.

It’s however easy to either enable this file format support or convert it to JPG or PNG image.

Enable HEIF/HEIC Support for the Default Image Viewer

In Ubuntu 20.04 and Ubuntu 22.04, you can easily enable the HEIF / HEIC file format support via libheif libraries.

1.) Simply search for and open terminal from system app launcher (or press Ctrl+Alt+T on keyboard).

2.) When terminal opens, run command to install the library:

sudo apt install heif-gdk-pixbuf

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

Now, double-click to open the .heic (or right-click -> Open with Other Application -> select Image Viewer) photo and enjoy!

For Ubuntu 18.04 / Ubuntu 16.04 users, the library is not available in system repositories. You have to add the third-party PPA by running command:

sudo add-apt-repository ppa:strukturag/libheif

Then refresh package cache via:

sudo apt update

And finally run the command in step 2.) to get it installed.

Convert HEIF/HEIC to JPEG or PNG

It’s also quite easy to convert the photo to another format in Ubuntu Linux.

Simply open the photo via either GIMP or Krita image editor (both available in Ubuntu Software), then select Export to JPG / PNG.

Too many HEIC photos to convert? Using heif-convert command will be more effective.

1.) Firstly open terminal and run command to install heif-convert tool:

sudo apt install libheif-examples

2.) Next you can convert a HEIC file to JPEG via command:

heif-convert -q 85 input.HEIC output.JPG

Here -q 85 specifies the output quality level. You can skip it to use default value 92.

To batch convert HEIC photos to JPEG, firstly navigate to the photo folder in file manager and select ‘Open in Terminal’ from context menu:

Finally run command:

for file in *.HEIC; do heif-convert $file ${file%.HEIC}.jpg; done

NOTE: Linux commands are case sensitive! If your HEIC photos have file extension in lower-case, replace HEIC with heic in the last command.

For instance, convert all .HEIC photos to jpg with quality 100%, run command:

for file in *.HEIC; do heif-convert -q 100 $file ${file%.HEIC}.jpg; done

Updates for Ubuntu 22.04 LTS:

The powerful Imagemagick package in Ubuntu 22.04 repository has support the HEIC/HEIF image format!

First, press Ctrl+Alt+T on keyboard to open terminal and run command to install the tool:

sudo apt install imagemagick

Then, open the folder that contains the photo images, right-click on select “Open in Terminal” and finally use command to convert:

convert input.HEIC -quality 95 output.JPG

Change the number in -quality 95, or skip it to use default 90. To convert a batch of files (from .HEIC to .jpg), use command:

for file in *.HEIC; do convert $file ${file%.HEIC}.jpg; done

That’s all. Enjoy!

This is an easy to follow beginner’s guide shows how to encrypt the full file system while installing Ubuntu.

As you may know, it’s easy to hack against Ubuntu Linux physically. Though users can add password protect to the Grub boot menu, the file system is still accessible via a live system, e.g., bootable USB installer.

To prevent your Ubuntu from physical hacking ultimately, adding password protect to the full system disk can be the best choice. And you can do it during installing Ubuntu.

1.) Firstly, this tutorial is not a full Ubuntu installation guide. If you are not getting started, take a look at this step by step how to install guide.

2.) If you’re going to install Ubuntu as the ONLY operating system in the hard drive, just choose ‘Erase disk and install Ubuntu‘ when you’re at Installation type page.

Then click on ‘Advanced features’ to choose either LVM or ZFS and enable ‘Encrypt the new Ubuntu installation for security’.

3.) Mostly I’ll choose ‘Something else‘ to manually create partitions for Ubuntu file system.

Unlike Fedora and Manjaro, Ubuntu does not provide an ‘Encrypt‘ checkbox while creating an EXT4 partition. Instead you need to create a partition use as ‘physical volume for encryption’.

a.) Simply choose the free space and click on ‘+‘ icon on partition table. In the pop-up Create partition dialog do:

  • Set the size for Ubuntu file system. 20 GB at least. For long time use, as large as possible.
  • Select use as ‘physical volume for encryption‘.
  • Set your password and confirm, and finally click OK.

b.) After clicking OK, wait for a few seconds. A new device ‘/dev/mapper/sdaX_crypt‘ will be created as EXT4 file system.

Highlight it, and click on ‘Change‘ button. In the pop-up dialog, set the mount point as /.

c.) Same to Fedora, you have to create a separated /boot partition, as it can not be encrypted.

To do so, select the free space and click “+” to create:

  • 500 MB should be enough. 1 GB will be better.
  • use as ‘Ext4 journaling file system’
  • mount point /boot

d.) Also create 250 MB ‘EFI System Partition‘ for UEFI boot machine, or 2 MB ‘Reserved BIOS boot area‘ for legacy BIOS boot machine. For small RAM, a swap area is also recommended.

Finally the partition table will look like:

Finally click on “Install Now” button. And confirm on pop-up dialog.

Once you successfully installed Ubuntu, restart and you’ll get into the password prompt when booting Ubuntu (see the top picture). As well, accessing the file system from any other OS need the password you set.

The free and open-source 3D modeling software Blender 2.93 was announced as LTS (Long Term Support) release.

Blender 2.93 is the last major milestone of the 2.x series. And the next Blender 3.0 is under development now.

Blender 2.93 brings 22 new nodes to the Geometry Nodes editor, mesh primitives support, adds the much anticipated Line Art modifier to automatically generate grease pencil lines around objects, a new and faster fill tool, and many Eevee renderer improvements.

How to Install Blender 2.93 via PPA:

Blender is available officially via Snap package, which can be easily installed from Ubuntu Software.

For those prefer the classic .deb package format, Rob Savoury’s PPA maintains the latest packages for all current Ubuntu releases.

1.) Remove Thomas Schiex’s PPA

If you installed old Blender packages from Thomas Schiex’s PPA, it’s better to remove it first to prevent from going to dependency hell!

Firstly, open terminal from system app launcher.

Secondly, run command to remove the PPA:

sudo add-apt-repository --remove ppa:thomas-schiex/blender

You can try purge the PPA instead, but it won’t work in my case due to issue.

2.) Remove old Blender package:

Open terminal and run command to remove old Blender packages if any:

sudo apt remove blender blender-data libopenshadinglanguage1.10

It’s important to remove libopenshadinglanguage1.10 package, or the configuration will fail while installing Blender 2.93.

3.) Add Rob Savoury’s PPA

To add the new PPA, simply run command in terminal:

sudo add-apt-repository ppa:savoury1/blender

4.) And add the FFmpeg PPA for dependency libraries:

To do so, run command in terminal:

sudo add-apt-repository ppa:savoury1/ffmpeg4

5.) For Ubuntu 18.04 and Ubuntu 16.04 only.

For Ubuntu 18.04 and Ubuntu 16.04, you need to add even more PPAs for dependencies. To do so, run commands:

sudo add-apt-repository ppa:savoury1/gcc-defaults-9
sudo add-apt-repository ppa:savoury1/display

6.) Finally install package updates & install Blender:

Firstly run command to refresh package cache and install available package updates:

sudo apt update && sudo apt full-upgrade

Finally install Blender 2.93 via command:

sudo apt install blender

If everything’s done successfully. Open Blender from system app launcher and enjoy!

Remove Blender and Ubuntu PPAs:

If you don’t use these PPAs anymore and want to remove Blender, purge them by running following commands one by one:

1. Firstly open terminal and run command to install ppa-purge:

sudo apt install ppa-purge

2. Then purge the Ubuntu PPAs one by one:

sudo ppa-purge ppa:savoury1/gcc-defaults-9
sudo ppa-purge ppa:savoury1/ffmpeg4
sudo ppa-purge ppa:savoury1/display
sudo ppa-purge ppa:savoury1/blender

Note purging Ubuntu PPA will either downgrade or remove packages installed from that PPA. Even other packages, GIMP in my case, will be removed.

You can alternatively remove these Ubuntu PPAs only, without uninstalling software packages, by going to ‘Software & Updates -> Other Software’ and removing relevant lines:

Since version 89, the free and open-source Firefox web browser makes use of the new ‘Proton’ UI design.

For those who do not like the new Firefox appearance, the configuration options to re-enable the old style interface is still available in the 89 release.

Revert to old UI Design in Firefox 89:

Firstly, type about:config in the address bar and hit Enter. Click on the ‘Accept the Risk and Continue‘ button when it prompts.

Next type browser.proton in the search box. Then click on the double arrow icons to disable the values of:

  • browser.proton.contextmenus.enabled
  • browser.proton.doorhangers.enabled
  • browser.proton.enabled
  • browser.proton.modals.enabled

The Firefix UI will change immediately after the settings. And you can reset these settings to get back the new ‘Proton’ UI design.

In addition, the previous settings is going to be removed in next release according to this bug. So using a browser theme could be a good choice for long time solution.

This simple tutorial shows how to install the NVIDIA proprietary driver in Ubuntu 22.04 and switch between dedicated and integrated GPU.

Since Ubuntu provides the proprietary driver packages via its restricted repositories, user may install NVIDIA driver as easy as a few clicks.

Install NVIDIA Driver

1.) Firstly, click on top-left corner ‘Activities‘, and then search for and open ‘Softwre & Updates’ utility.

When the tool opens, make sure the “Proprietary drives for devices (restricted)” is enabled.

Make sure ‘restricted’ repository enabled

2.) Next, navigate to ‘Additional Drivers‘ tab. There it should list all available graphics drivers.

If it shows nothing, press Ctrl+Alt+T to open terminal and run command sudo apt update to refresh package cache. Then re-launch the ‘Software & Updates’ utility.

Choose one of the drivers from the list and click on ‘Apply Changes‘ to install it. There will be a little bar indicates the installing process. When done, restart your computer!

Switch between NVIDIA and Intel Graphics:

After restart, your machine will be on performance mode with the dedicated GPU. To switch GPU mode, search for and open ‘NVIDIA X Server Settings‘.

When the app opens, navigate to ‘PRIME Profiles‘. Then you’ll see three options available in the right:

  • NVIDIA (Performance Mode) – use dedicated NVIDIA GPU to render Ubuntu desktop.
  • NVIDIA On-Demand – use integrated graphics to render desktop, but possible to offload specific apps via dedicated GPU.
  • Intel (Power Saving Mode) – use integrated graphics to render Ubuntu desktop.

In my case, the “Intel (Power Saving Mode)” is somehow grayed out. As a workaround, choose Intel graphics card by running sudo prime-select intel in terminal.

Changing GPU mode however needs log out and back in to apply changes.

Run certain apps via NVIDIA GPU while rendering desktop via integrated graphics

By setting GPU mode to “NVIDIA On-Demand”, you may run certain apps via NVIDIA GPU, while others handled by the integrated GPU.

1.) For CUDA apps, you need to run command in terminal (Ctrl+Alt+T) to install the nvidia-cuda-toolkit package.

sudo apt install nvidia-cuda-toolkit

Then there’ll be application-specific menu to tell it which device to use.

2.) For other apps, just use the following environment variables.

__NV_PRIME_RENDER_OFFLOAD=1
__GLX_VENDOR_LIBRARY_NAME=nvidia

You can do this by launching apps from command line. For example, launch SuperTuxkart (a kart racing game) via command:

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia supertuxkart

Or, edit the application’s .desktop file which is usually under “/user/share/applications” directory. And, change the line of ‘Exec’ to:

Exec=env __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia supertuxkart

Add System Menu option to Switch CPU

To make it easy to switch between your GPUs, there’s a Gnome Extension available to add options into system tray menu.

1.) To get the menu option, you need to first install the open-source EnvyControl tool. Press Ctrl+Alt+T on keyboard to open terminal, and run the command below one by one:

  • Use git command to grab the source:
    git clone https://github.com/geminis3/envycontrol.git
  • Navigate to the source folder, and install it for global use via pip package manager:
    cd envycontrol && sudo pip3 install .

If the pip3 command does not exist, run sudo apt install python3-pip command to install it.

As the project page mentioned, users have to run the following 2 commands one by one to prevent Ubuntu’s own gpu-manager from interfering:

sudo prime-select on-demand
sudo systemctl disable gpu-manager.service

2.) Next, run command to make sure you have the agent packages installed for installing Gnome Extensions:

sudo apt install chrome-gnome-shell gnome-shell-extension-prefs

3.) Finally, go to the extension page and turn on the slider icon to install it:

NOTE 1: The pre-installed Firefox does not support this stuff so far! Use another browser, or install back Firefox as classic deb package.

NOTE 2: If you don’t see the on/off switch in that page, click the ‘click here to install browser extension‘ to install extension for your web browser and refresh the page.

The menu option should appear immediately after successfully installed the extension. If not, press Windows (Super) key on keyboard or click “Activities” on top panel, and then search for and open the “Gnome Extensions” app to manage your extension.