Archives For November 30, 1999

Missing the old Ubuntu Unity style login screen? It’s easy to get it back in Ubuntu 18.04, Ubuntu 20.04 and higher.

LightDM, stands for Light Display Manager, is a free open-source project by Canonical, the company behind Ubuntu. Ubuntu up to version 16.04 LTS uses it as the default display manager. And it’s present in Linux Mint 20 and some Ubuntu flavors.

For those prefer the LightDM style login screen, it’s available in Ubuntu universe repositories:

How to Install LightDM in Ubuntu 20.04 & Higher:

Press Ctrl+Alt+T on keyboard to open a terminal window. When it opens, paste the command below and hit enter:

sudo apt install lightdm unity-greeter

While the installing process, it will prompt to configure the display manager. Just hit Enter on the screen.

At the next screen, use up/down arrow key to choose “lightdm” and hit Enter to apply.

Once installed, restart your computer and you’ll see the new login screen!

Configure LightDM login screen:

Uses are mostly want to remove the white dots and change the login background wallpaper.

To do so, open terminal (Ctrl+Alt+T) and run command to install dconf-editor if you don’t have it:

sudo apt install dconf-editor

Next, run command to grant lightdm user privilege to access control list:

xhost +SI:localuser:lightdm

Finally launch dconf editor via lightdm:

sudo -u lightdm dconf-editor

When it opens, navigate to “com/canonical/unity-greeter“. Then turn off ‘draw-grid’, and change background image as you want.

For more settings, see the Ubuntu Wiki.

How to Restore Gnome Login Screen:

To revert back the original GDM display manager. Firstly, open terminal and run command to disable LightDM:

sudo systemctl disable lightdm.service

Then launch the configure screen by running the command below:

sudo dpkg-reconfigure lightdm

This time choose ‘gdm3’ to handle the login screen and hit Enter.

Finally, remove lightdm as well as its dependency packages via command:

sudo apt remove --autoremove lightdm unity-greeter

That’s all. Enjoy!

Ubuntu 21.10 daily build got an update for its gnome-control-center package(System Settings) recently. The ‘Standard’ mode is finally removed from the Appearance settings.

The Yaru theme developer team submitted the request to remove the ‘Standard’ theme when in June, since both GTK3 and GTK4 do NOT support having different background / text colors for headerbar than in the rest of the window.

The development build of Ubuntu 21.10 finally apply the change in the recent update. The ‘Window colors’ options under Appearance settings are now only fully dark and fully light. There’s no longer dark header bar with light window color called ‘Standard’.

Along with the new thumbnail preview, the context menus for the desktop, file manager, and other Gnome apps also inherit the dark and light appearance setting.

They are still some apps, e.g, Gnome Terminal and Ubuntu Software, that are not implemented for the changes.

As before, the settings do not change the color of top-bar menus, notification, and left dock menu, etc. However, a patched version of gnome-control-center is available to easily toggle the WHOLE system to Dark or Light.

DeaDBeeF audio player 1.8.8 was released as the 8th bugfix release for the 1.8 series.

The new release introduced some new features, including reading WAV RIFF tags, handling of Disc subtitle frames in ID3v2 and APE tags, and handling samplerates higher than 192KHz to pulseaudio.

New context menu options “Play Next” and “Play Later” are now available to choose your favorite song to play next, or set one-time play order for songs in play list. It will add marks at the beginning that indicates the sequence.

It also redesigned the plugin page in Preferences. Now each plugin has the configuration along with basic info and license in tabs.

Other changes in DeaDBeef 1.8.8 includes:

  • Non-modal preferences window
  • $rgb() title formatting function
  • Group title colorization support via title formatting
  • Plugin report and filtering in Plugin list
  • Focusable playlist tabs with keyboard navigation support
  • Sorting plugin list alphabetically
  • Improved album path handling, especially for Windows
  • Drag-and-drop on the main window
  • Using scroll wheel with seek bar
  • Delete from disk dialog will highlight the Delete button as destructive action
  • And some stability fixes.

How to Install DeaDBeeF 1.8.8 in Ubuntu:

The software offers official .deb package for 64-bit Ubuntu & Linux Mint systems.

Grab the package, ‘deadbeef-static_1.8.8-1_amd64.deb’, then install it by running command in terminal:

sudo apt install ~/Downloads/deadbeef-static*.deb

There’s also an Ubuntu PPA for DeaDBeeF, though it’s not updated at the moment of writing. And note that the PPA package conflicts to the official ‘deadbeef-static‘ package due to packaging issue. Remove the old package first if you’re going to install it from another source.

Remove DeaDBeeF:

To remove the music player, simply run command in terminal:

sudo apt remove --autoremove deadbeef-static deadbeef

This simple tutorial shows how to install and setup Gerbera home media server in all current Ubuntu and Debian releases.

Gerbera is a free and open-source UPnP media server for Linux, BSD, and Mac OS. With it, you can stream audio and/or video files over home network, and play on any device with a media player with UPnP support, e.g., VLC.

How to Gerbera in Ubuntu / Debian via its official repository

Gerbera is available in Ubuntu repositories but always old. It’s however quite easy to install the latest version since it offers an official apt repository. And so far, it supports for Ubuntu 18.04, Ubuntu 20.04, Ubuntu 21.04, Debian Buster & Bullseye.

1.) Firstly open terminal from start menu. Then paste the command below and hit run to install the key:

curl -fsSL https://gerbera.jfrog.io/artifactory/api/gpg/key/public | sudo apt-key add -

Install curl via sudo apt install curl if you don’t have it. Type user password when it asks (no asterisk feedback) and hit Enter.

2.) Next add the apt repository by running command in terminal:

sudo apt-add-repository https://gerbera.jfrog.io/artifactory/debian

3.) Adding repository should automatically update the package information. If not, run it manually via command:

sudo apt update

4.) You can finally install the latest Gerbera package via command:

sudo apt install gerbera

Set up Gerbera Media Server:

The media server is now simple to use since user and permission are well configured during installing process.

1.) Set user and password for Web UI.

You can skip this step, so anyone in home network can access the server configuration page via Web UI without authentication.

Firstly, open terminal and run command to edit the config file:

sudo gedit /etc/gerbera/config.xml

When files opens, go to UI section. Enable account login and set username and password as you prefer.

2.) Run Gerbera service:

Next, run command to start the media server service:

systemctl start gerbera

And check the server status via command:

systemctl status gerbera

If it’s running successfully, it will output the IP address and listening port for the web UI page.

NOTE: to make the service start automatically at login, run systemctl enable gerbera.

3.) Paste the address in web browser, http://192.168.0.108:49152 in my case, and hit Enter. Then login with the user and password you set in step 1.).

You can finally, click “Add some files” to steam your media files, and manage them as well as clients via next two buttons.

OK, you can now enjoy the music or movie in any device with UPnP client, for example VLC on iOS:

Want to get better performance when playing games in Linux? Try GameMode!

GameMode is a free open-source Linux project allows games to request a set of optimizations be temporarily applied to the host and/or game process.

The project was originally designed as a stop-gap solution to problems with Intel and AMD CPU powersave or ondemand governors. But now GameMode supports for optimizations including:

  • CPU governor
  • I/O priority
  • Process niceness
  • Kernel scheduler
  • Screensaver inhibiting
  • GPU performance mode (NVIDIA and AMD), GPU overclocking (NVIDIA)
  • Custom scripts

1. How to Install GameMode in Ubuntu Linux:

The package is available in Ubuntu as well as most other Linux repositories.

Firstly open terminal by either searching from ‘Activities’ overview screen, or pressing Ctrl+Alt+T on keyboard. When terminal opens, run command to install it:

sudo apt install gamemode

For Fedora and CentOS Linux, you can install it via command:

sudo dnf install gamemode

(Optional) Install GameMode indicator:

For choice, you can install an indicator applet that shows the current status of GameMode. It’s an extension for the default Gnome desktop.

a.) Open terminal and run command to make sure chrome-gnome-shell browser integration is installed:

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

b.) Next go to the extension web page by clicking the button below. And turn on the slider icon to install it.

If you don’t see the toggle icon, click the “click here to install browser extension” link to install browser extension and reload the page.

Finally, search for and open ‘Gnome Extensions App’ from start menu. And click on the gear button to configure the status indicator.

2. How to Run Game in GameMode:

Some games and platforms have integrated GameMode support. Which means you don’t have to do anything to activate it. They are:

  • DiRT 4
  • Rise of the Tomb Raider
  • Shadow of the Tomb Raider
  • Total War Saga: Thrones of Britannia
  • Total War: Three Kingdoms
  • Total War: WARHAMMER II
  • ATLauncher Minecraft launcher
  • Lutris

For other games, you can now run the executable command by adding gamemoderun at the beginning. For example, run SuperTux2 in GameMode via:

gamemoderun supertux2

For steam, you can simply add gamemoderun %command% as launch option.

And without launching game every time from command line, write the rule into app shortcut file. They are .desktop files generally locate in “/usr/share/applications” directory.

For example, edit SuperTux 2 app shortcut via command:

sudo gedit /usr/share/applications/supertux2.desktop

When the file opens, add gamemoderun before executable command in Exec line.

For Hybrid GPU users, the GameMode supports environment variable via GAMEMODERUNEXEC. So you can run GameMode while using dedicated gpu for rendering game which will be displayed using the integrated card. For example:

export GAMEMODERUNEXEC="env DRI_PRIME=1" && gamemoderun supertux2

To set the environment variable globally, add either line into /etc/environment config file for your case.

GAMEMODERUNEXEC=optirun #Bumblebee implementation.

GAMEMODERUNEXEC="env DRI_PRIME=1"

or

GAMEMODERUNEXEC="env __NV_PRIME_RENDER_OFFLOAD=1 env __GLX_VENDOR_LIBRARY_NAME=nvidia env __VK_LAYER_NV_optimus=NVIDIA_only"

The Linux Mint team introduced many great new apps in recent releases. And now an Ubuntu PPA is available that contains these apps for all current Ubuntu releases.

Without adding Linux Mint repository and setting the priority, an Ubuntu PPA is good choice to install or receive the package updates.

And ‘Butterfly’, a top contributor of Linux Mint project on launchpad, maintains the PPA repository with packages so far for Ubuntu 22.04, Ubuntu 20.04, Ubuntu 23.10, and Ubuntu 24.04 support. And the PPA contains updated version of the following packages:

  • Bulky batch file renamer.
  • Hypnotix IPTV player.
  • Pix image viewer and browser.
  • Sticky notes app.
  • Warpinator LAN file transfer.
  • Mint’s Web App Manager.
  • And some more.

Add PPA and Install Linux Mint Apps in Ubuntu:

1. Add the PPA.

Firstly, open terminal either from start menu, or press Ctrl+Alt+T on keyboard. When terminal opens, paste the command below and hit Enter to add the PPA:

sudo add-apt-repository ppa:kelebek333/mint-tools

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

2. Next install or update Linux Mint apps:

After adding the PPA, you can now install one or all of the previous apps via apt command.

For example, install the web app manager via command:

sudo apt install webapp-manager

For other apps, replace webapp-manager in the command with bulky, hypnotix, pix, or warpinator.

And if an update version is available, you’ll be able to upgrade the package via Software Updater along with system updates.

Uninstall PPA and Linux Mint Apps:

To remove these Linux Mint apps, run apt command with remove flag. For example, remove bulky via command:

sudo apt remove --autoremove bulky

As well, replace bulky in command with other package to remove.

And remove the Ubuntu PPA either via command:

sudo add-apt-repository --remove ppa:kelebek333/mint-tools

or by Software & Updates utility other “Other Software” tab.

Want to enable Guest account in Ubuntu? Without switching to another display manager, you can add Guest in Gnome login screen for people to use your computer while NOT being able to install/remove app, change system wide settings, and access files outside its own directory.

Guest is available by default in Ubuntu 16.04 Unity desktop. After Ubuntu switched to Gnome Desktop, the feature is removed. For those need Guest account, it’s easy to add it back via following steps.

1. Create Guest Account.

Firstly, open system settings either from top-right system menu, or by searching from Activities overview screen.

Next, navigate to Users in left pane (For Ubuntu 24.04, go to “System -> Users” in settings app) and click “Unlock” button and type your user password to unlock the settings page.

Finally, click on “Add User…” to create a new user:

  • select Standard, (for Ubuntu 24.04, leave “Administrator” turned off) so it has no sudo permission, can’t install/remove app, and no access file outside its user home.
  • set username to Guest.
  • And set password for it. REQUIRED though it’s useless. Next step I’ll tell how to enable no password login.

2. Enable No Password Login for Guest

Press Ctrl+Alt+T on keyboard to open terminal, then copy and paste the command below and hit Enter.

sudo gedit /etc/pam.d/gdm-password

This command will open the configuration file. Simply add the following line at the beginning (so it will be the first line) and save it:

auth sufficient pam_succeed_if.so user ingroup guest

OK, in next boot you’ll see the Guest account in GNOME login screen. Simple click to login without typing password, and enjoy!

3.(Optional) Add more Restrictions:

The Guest account can’t install/remove apps, manage PPAs, access files out of its home directory. Any action needs authentication will ask for typing password for Admin Account.

It however has permissions to customize its own desktop appearance, access CD Rom, mount/un-mount USB and other removable devices, use audio/video devices (e.g., webcam, microphone), full and direct access to serial ports.

These permissions are handled via groups. You can check which groups that include Guest account via command:

cat /etc/group |grep guest

And the Debian Wiki tells what do the groups do. By removing Guest from a group will disable the permission. For example, remove it from plugdev group run command:

sudo gpasswd --delete guest plugdev

For even more restrictions, e.g., disable save file, lock down appearance settings, disable printing, etc., go to the Gnome Wiki.

PyCharm Ubuntu

JetBrains announced the release of PyCharm 2021.2. Features Python 3.10 support, auto-reload for browser HTML preview.

Starting with the new release, users from Asian can enjoy the a fully localized UI in Chinese, Korean, or Japanese. And it’s going to end support for several packages, e.g., mako, buildout, web2py, in next release.

Before Python 3.10 goes stable, the IDE starts working for Python 3.10 support with following features:

  • Adjust to the upcoming Structural Pattern Matching, such as the Unused local symbols and Unreachable code inspections, smart code completion and syntax highlighting for the match and case keywords, and the Complete Current Statement action.
  • Complete match statements and their corresponding case blocks.
  • Supports type inference for isinstance and issubclass arguments with the new syntax type.

And other changes include:

  • Working in the Python console is now supported on both the client and the host side.
  • Code completion for fields and operators in the MongoDB console (Pro only).
  • Context live templates from the data editor with SQL scripts action (Pro only).
  • auto-reload for browser HTML preview (pro).
  • Auto-import for require() (pro).
  • New Onboarding Tour in the IDE Features Trainer plugin.
  • Test runner auto-detection
  • The Test Management plugin includes Python support and available for PyCharm Community.
  • New Test Data plugin to generate random data.

How to Install PyCharm 2021.2 in Ubuntu:

Jetbrains provides official Linux package. They are portable tarballs, available to download at the link below:

To make life easier, you can install the community edition from the unofficial PPA. And it supports for Ubuntu 20.04 and Ubuntu 21.04 so far.

1.) Open terminal from start menu, and run command to add the PPA:

sudo add-apt-repository ppa:xtradeb/apps

2.) Manually refresh system package cache, e.g., for Linux Mint:

sudo apt update

3.) Finally install PyCharm via command:

sudo apt install pycharm-community

Uninstall:

To remove the PPA, either run command in terminal:

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

or open “Software & Updates” and navigate to “Other Software” tab to remove the relevant line.

And remove PyCharm by running command in terminal:

sudo apt remove --autoremove pycharm-community

Audacity audio editor and recorder 3.0.3 was released a few days ago. Finally it adds official Linux binary via Appimage.

Audacity 3.0.3 comes with minor bug-fixes, and binary changes. For Windows users, now it provides 64-bit EXE and 32-bit plug-ins will not work on the release.

The release introduced automatic app update checking. According to the updated Privacy Notice, Audacity needs a network connection for update checking. And this shares your IP address, OS, and Audacity version. You can disable the feature in the Preferences.

And when an app error occurs, error report dialog will pop up asking you whether to send report.

For Linux users, Audacity now provides Appimage package. It’s a single executable that launches the software directly without installation required. Just right-click on file, add execute permission in “Properties” dialog, and finally run it.

How to Get Audacity 3.0.3:

For the official binary and source tarball, you can download it from the github release page:

It’s also available to install via the universal Flatpak package which runs in sandbox. And here’s how to guide for those new to flatpak.

About the Ubuntu PPA:

Audacity adds Conan package manager as the its new dependency library. It make me crazy again since it’s not available in Ubuntu repositories, and so far I can’t find any compile instruction.

So may be it’s time to abandon my personal PPA for Audacity package. :)

For those prefer Gnome 3 style Activities overview, here’s how to bring back the vertical workspace thumbnails in Ubuntu 21.10 and Ubuntu 22.04.

Since Ubuntu 21.10, the default GNOME desktop brings new design of the Activities overview screen. It now has large and horizontal workspaces locates across the center of screen. Along with thumbnails in the top, you can either click / use keyboard shortcuts or touchpad gestures to switch workspaces.

Personally I like the new design. But for those who are accustomed to the vertical view, here’s an extension to restore the change.

1. Prepare for installing Gnome Shell Extension:

Before getting started, make sure chrome-gnome-shell package is installed for GNOME Shell extensions integration for web browsers.

To do so, open terminal (Ctrl+Alt+T) and paste the command below and hit Enter:

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

The command also installs the app for managing Gnome Extensions.

2. Install Vertical Overview extension:

Next go to the link page below in your web browser, then turn on the slider icon to install the extension:

Don’t worry if you don’t see the slider icon, click the ‘click here to install browser extension’ link to install browser extension and re-fresh the web page.

NOTE: The preinstalled Firefox in Ubuntu 22.04 does not support installing Gnome Extensions. As a workaround, you may search for & install “Extension Manager” in Ubuntu Software. Then, use the tool to search and install Vertical Overview extension.

Install the extension via Extension Manager tool

3. Configure Overview Appearance:

After installed the extension, you can press Win/Super key and search for and open ‘Gnome Extensions app’ to configure its settings.

Click on the gear button, then you can change the workspace thumbnail size, position, as well as toggle on / off the big central workspace.

That’s all. Enjoy!