Archives For November 30, 1999

Sometimes after disconnected from a VPN network in Ubuntu 20.04, wireless does no longer work and even shows ‘No Adapter Found’ in the settings. If you have the same problem, this tutorial may help.

Without restarting your computer, you can try following steps to make the wireless work again.

1.) Restart Wifi network via system menu.

Try turn off wireless network from system tray menu, and turn it on again.

This works in the case when I disconnected from PPTP VPN server.

2.) Restart Wifi network via nmcli.

The previous step may not work sometimes. If so, try running commands in terminal (Ctrl+Alt+T) to restart networking:

nmcli networking off 

nmcli networking on

And this works in the case when I disconnected from a ExpressVPN server.

3.) Restart Wireless interface via ifconfig

You may also run following 2 commands to restart the wireless network:

sudo ifconfig wlo1 down

sudo ifconfig wlo1 up

NOTE you need to replace wlo1 to your wifi network name (usually wlan0). Check it via ifconfig command.

4.) If none of the previous steps works, you may try to reload the wireless kernel module.

Open terminal (Ctrl+Alt+T) from system application menu and run command to check your wireless driver:

sudo lshw -C network 2>&1 | grep wireless | grep driver

As the picture shows, it’s rtw_pci in my case.

Then run command to reload the kernel module:

sudo modprobe -r MODULE_NAME && sudo modprobe MODULE_NAME

In my case the command is (rtwpci did work though it should be rtw_pci):

sudo modprobe -r rtwpci && sudo modprobe rtwpci

Audacious music player

Audacious music player 4.0.4 was released 2 days ago with further improvements to the new Qt5 UI. Ubuntu PPA updated for all current Ubuntu releases.

Changes in the Qt interface include:

  • Add keyboard shortcuts for Open/Add Folder
  • Fix files being moved instead of copied when dragged to a file manager

For the Qt Winamp interface, some old features are added back:

  • Enable window snapping to screen edges
  • dragging files from file manager

There are also translation updates and more bug-fixes, see Audacious 4.0.4 release note.

How to Install Audacious 4.0.4 in Ubuntu:

The unofficial PPA contains the latest packages for Ubuntu 16.04, Ubuntu 18.04, Ubuntu 19.10, and Ubuntu 20.04.

1. Open terminal by either pressing Ctrl+Alt+T on keyboard or searching for ‘terminal’ from application menu. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:ubuntuhandbook1/apps

Type your password (no asterisk feedback) when it prompts and hit Enter to continue.

2. Then run commands one by one in terminal to install or upgrade the audio player:

sudo apt update

sudo apt install audacious audacious-plugins

Uninstall:

You can easily remove the PPA either by going to Software & Updates utility -> Other Software tab, or by running command:

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

To remove audacious, either use your system package manager or run command:

sudo apt remove --autoremove audacious audacious-plugins

Firefox 55

Mozilla Firefox web browser 77.0 was released today with some new features and various security fixes.

Firefox 77.0 features:

  • Pocket’s article recommendations in new tab. If you don’t see them, follow these steps.
  • WebRender available by default on Windows 10 laptop with Nvidia GPUs (all screen sizes).
  • manage web certificates on about:certificate page.

There are also a number of bug-fixes and other changes, see the release note for details.

Download / Install Firefox 77 in Ubuntu:

For those prefer upgrading the pre-installed Firefox package, v77 package will be available in a few days for all current Ubuntu releases. At that time, upgrade Firefox via Software Updater (Update Manager):

Linux Kernel

Linus Torvalds announced the release of Kernel 5.7 a few days ago. Here’s how to install it in 64-bit Ubuntu and Linux Mint.

New features in Linux 5.7 include:

  • Support Intel Tiger Lake “Gen12” graphics out-of-the-box.
  • AMD Ryzen 4000 “Renoir” mobile graphics support
  • New exFAT driver from Samsung
  • Support for Apple USB Fast Charge
  • Zstd compression support for F2FS file-system.

How to Install Linux Kernel 5.7 in Ubuntu:

The mainline kernels do not include any Ubuntu-provided drivers or patches. They are not supported and are not appropriate for production use

The mainline kernel packages for Linux 5.7 (64-bit only) are now available for download at the link below:

Download Kernel 5.7

Select generic for common system, and lowlatency for a low latency system (e.g. for recording audio):

  1. linux-headers-5.7.0-xxxxxx_all.deb
  2. linux-headers-5.7.0-xxx-generic(/lowlatency)_xxx_amd64.deb
  3. linux-modules-5.7.0-xxx-generic(/lowlatency)_xxx_amd64.deb
  4. linux-image-xxx-5.7.0-xxx-generic(/lowlatency)_xxx_amd64.deb

Alternatively you can download and install the kernel binaries via terminal commands ( open terminal via Ctrl+Alt+T):

cd /tmp/

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.7/amd64/linux-headers-5.7.0-050700_5.7.0-050700.202006082127_all.deb

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.7/amd64/linux-headers-5.7.0-050700-generic_5.7.0-050700.202006082127_amd64.deb

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.7/amd64/linux-image-unsigned-5.7.0-050700-generic_5.7.0-050700.202006082127_amd64.deb

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.7/amd64/linux-modules-5.7.0-050700-generic_5.7.0-050700.202006082127_amd64.deb

sudo dpkg -i *.deb

Once installed, restart your computer and enjoy!

Uninstall Linux Kernel 5.7:

Restart your machine and select boot with the previous kernel in boot menu ‘Grub2 -> Advanced Option for Ubuntu’. Then run command to remove Linux Kernel 5.7:

sudo dpkg --purge linux-image-unsigned-5.7.0-050700-generic

Need an indicator applet to display internet download and upload speed in the top panel of Ubuntu 20.04 Gnome Shell?

NetSpeed used to be an old Gnome applet, then an indicator for Unity desktop. Now it’s a Gnome Shell extension that displays real time internet speed for all network interfaces.

For Ubuntu 22.04 LTS, please scroll down and see the update method to install the net speed indicator.

Install NetSpeed in Ubuntu 20.04:

In your web browser, simply go to extensions.gnome.org/extension/104/netspeed/

If you don’t see the toggle icon, do:

  • Click the link text “click here to install browser extension” and follow the pop-ups to install the browser extension:

    shell browser extension

  • Then open terminal via Ctrl+Alt+T and run command:
    sudo apt install chrome-gnome-shell

Finally refresh the extension page, toggle on and click ‘install’ in the confirm pop-up.

To manage the Gnome Shell extension, either use ‘Extensions‘ utility or Gnome Tweak Tool, both are available in Ubuntu Software.

How to Uninstall the applet:

To remove the extension, you may either re-open the web-page via the previous link and turn off the toggle icon.

Or, open terminal and run command to install “Gnome Extensions” app:

sudo apt install gnome-shell-extension-prefs

After that, search for and launch the tool, which allows to manage all extensions installed on your system.

App to Manage your extensions

(UPDATE) Install Net Speed Indicator in Ubuntu 22.04:

Since Ubuntu 22.04 defaults to Firefox as Snap, which does not support installing Gnome extensions, there’s another way to install the indicator.

1. Firstly, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run the command below to install extension manager app:

sudo apt install gnome-shell-extension-manager

2. Next, click the top-left ‘Activities’, then search for and open the app:

3. Finally, search for and install ‘net speed’ in the “Browser” tab of the pop-up tool and enjoy!

Looking for a desktop weather application for Ubuntu desktop? My Weather Indicator is one of the great choices.

My Weather Indicator is an application especially designed for Ubuntu. It’s written in Python 3 and works on Plasma, GNOME, MATE, Xfce, etc.

The software displays current weather and the weather forecast via system tray indicator applet and desktop widget. Supported weather services include: OpenWeatherMap, Yahoo, wunderground.com, and World Weather Online.

To install the weather application, open terminal from your system application menu and run following commands one by one.

1.) Add the developer’s PPA by running command in terminal:

sudo add-apt-repository ppa:atareao/atareao

Type your login password (no asterisk feedback) for sudo prompt and hit Enter to continue.

2.) Refresh package cache and install the software:

sudo apt update

sudo apt install my-weather-indicator

3.) The first launching My Weather Indicator will bring up the settings dialog. There you can setup your location, widget theme, weather services, auto-start, refresh frequency, etc.

Note: after clicking OK button, it can take a few seconds to show the desktop widget.

Uninstall:

To remove the PPA, either open Software & Update > Other Software or run command:

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

To remove the weather application, run command:

sudo apt remove my-weather-indicator

Modern GTK3 eBook reader Foliate 2.2.0 was released today with many great new features. Here’s how to install it via PPA in Ubuntu 18.04, Ubuntu 19.10, and Ubuntu 20.04.

Foliate 2.2.0 is a new major release that features:

  • New library tab:
    • showing recent books and reading progress.
    • Search books by metadata
    • E-book discovery with OPDS
  • New eBook format support:

    • FictionBook (.fb2, .fb2.zip)
    • Comic book archive (.cbr, .cbz, .cbt, .cb7)
    • Plain text (.txt)
    • Unpacked EPUB files
  • Improved layout, text-to-speech, image viewer, annotations.
  • Important security fix. Recommend to “Allow Unsafe Content” for old version.
  • Support for StarDict dictionaries.
  • And many other features, see release note for more details.

How to Install Foliate 2.2.0 in Ubuntu:

The software is available to install either via Snap package (in Ubuntu Software) or Flatpak package, both run in sandbox.

For those prefer Ubuntu .deb package, run following commands one by one to install it via the PPA repository.

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

sudo add-apt-repository ppa:apandada1/foliate

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

2.) Then refresh package cache and install the eBook reader:

sudo apt update

sudo apt install foliate

NOTE if you’ve installed an old version via the .deb package downloaded from github release page, remove it first due to different package name by running command:

sudo apt remove com.github.johnfactotum.foliate

Uninstall:

To remove the PPA repository, open Software & Updates utility and navigate to Other Software tab.

To remove Foliate ebook reader, simply run command:

sudo apt remove --autoremove foliate

The default nautilus file browser allows to compress files into Zip, Tar.xz, 7z archive with no other options.

What if you want to compress your data into other formats (e.g., rar, epub, jar, and more) with password protection, and change the compress level?

1.) Open file roller archive manager from ‘Show Applications’ menu.

2.) Go to menu > New Archive, then you can:

  • create with 24 supported arhive formats.
  • type a filename, select location.
  • and set password under Other Options (click expend) for epub, rar, zip, and more.
  • finally click on Create button.

NOTE: you need to run sudo apt install rar unrar command in terminal (Ctrl+Alt+T) and follow by nautilus -q to enable rar support.

3.) Next click on top left ‘+‘ icon and add your files to the archive, finally close the window and done.

4.) If you want to enable maximum compression level, install dconf editor from Ubuntu Software and launch it.

Navigate to org/gnome/file-roller/general/compression-level, toggle off ‘Use default value’ and set ‘Custom value’ to ‘maximum’.

Android Studio 4.0 was released a day ago. Here’s how to install it in Ubuntu 18.04, Ubuntu 19.10, Ubuntu 20.04.

Android Studio 4.0 features a new Motion Editor, improved Layout Inspector, Clangd support for C++, smart editor features, enhancements to the CPU Profiler, Java 8 language library desugaring in D8 and R8, and much more other changes. See the release note for more.

How to Install Android Studio 4.0 in Ubuntu:

The containerized Snap package is available to install in Ubuntu Software for Ubuntu 18.04 and higher:

Don’t like Snap application? You can also install Android Studio 4.0 easily via Ubuntu Make.

1.) Install the latest Ubuntu Make:

  • Open terminal (Ctrl+Alt+T) and run command to add the PPA which contains the latest Ubuntu Make packages for Ubuntu 16.04, Ubuntu 18.04, Ubuntu 19.10, and Ubuntu 20.04.
    sudo add-apt-repository ppa:lyzardking/ubuntu-make

  • Then install or upgrade Ubuntu Make via command:
    sudo apt update && sudo apt install ubuntu-make

  • 2.) Install Android Studio via command:

    umake android --accept-license

    It automatically downloads the software package and dependencies from Google and installs on your system for single use by default.

    3.) Once installed, launch the IDE from ‘Show Applications’ menu. Restart you machine if you don’t see the icon, or run sh ~/.local/share/umake/android/android-studio/bin/studio.sh command to launch it from terminal.

    Uninstall:

    You may remove Ubuntu Make PPA by running command:

    sudo add-apt-repository --remove ppa:lyzardking/ubuntu-make

    And remove Android Studio via command:

    umake android --remove

    How to Enable SSH Service in Ubuntu 20.04

    Last updated: May 28, 2020

    Enable SSH Ubuntu 16.04

    This quick tip shows how to enable Secure Shell (SSH) service in Ubuntu 20.04 LTS, both desktop and server, to allow secure remote login and other network communications.

    Ubuntu includes OpenSSH, a suite of secure networking utilities based on the Secure Shell protocol, in its main repositories. While OpenSSH client is installed out-of-the-box, you can do following steps to install and setup OpenSSH server in Ubuntu 20.04.

    1. First open terminal and run command to install the packages:

    sudo apt install ssh

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

    2. Once installed, SSH services start in background silently. You can check its status by running command:

    systemctl status ssh.service

    You may replace status in the code with stop, reload, restart to stop, reload, or restart the service.

    3. The SSH service should be working good now for basic use! If you want to change the listening port, root login permission, or other authentications, run command to edit the configuration file:

    sudo nano /etc/ssh/sshd_config

    replace nano with gedit if you’re on Ubuntu Desktop.

    Save changes by pressing Ctrl+X, then Y, and finally hit Enter. And remember to restart the SSH service via sudo systemctl restart ssh.service command.