Archives For jimingkui

KeePassX 2 YubiKey support

KeePassXC 2.3.4, community driven port of the windows application “Keepass Password Safe”, was released a day ago with various bug-fixes and improvements.

Changes in KeePassXC 2.3.4 include:

  • Show all URL schemes in entry view
  • Disable merge when database is locked
  • Fix intermittent crashes with favorite icon downloads
  • Provide potential crash warning to Qt 5.5.x users
  • Disable apply button when creating new entry/group to prevent data loss
  • Allow for 12 hour timeout to lock idle database
  • Multiple SSH Agent fixes
  • Multiple Browser Integration enhancements
  • Fix browser proxy application not closing properly
  • Add real names and Patreon supporters to about dialog
  • Add settings button to toolbar, Donate button, and Report a Bug button to help menu
  • Enhancements to release-tool to appsign intermediate build products

How to Install KeePassXC 2.3.4 in Ubuntu via Snap:

The official snap package (runs in sandbox and auto-updates itself) has been updated to version 2.3.4 for Ubuntu 16.04, Ubuntu 18.04, and higher.

The snap can be easily installed via Ubuntu Software:

Or run command in terminal to install the snap package:

snap install keepassxc

How to Install KeePassXC in Ubuntu via PPA:

The official KeePassXC PPA contains the most recent .deb packages for Ubuntu 14.04, Ubuntu 16.04, Ubuntu 18.04. With it, you can receive future updates via Software Updater.

1. Open terminal either via Ctrl+Alt+T shortcut key or by searching for ‘terminal’ from software launcher. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:phoerious/keepassxc

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

2. Then upgrade KeePassXC via Software Updater:

or run commands one by one in terminal to install the latest package:

sudo apt update

sudo apt install keepassxc

Uninstall:

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

To remove KeePassXC .deb package, run command in terminal:

sudo apt-get remove --autoremove keepassxc

To remove the snap package, simply click uninstall button in Ubuntu Software utility.

HP Linux Imaging and Printing

This tutorial is a quick fix for HP laptops that wireless does not work on Ubuntu 18.04 Gnome desktop.

On my cheap laptop HP 246 G6 I found that the wireless network does not work out-of-box after installed Ubuntu 18.04. No wifi option in system tray menu, and System Settings says ‘No Wifi adapter found‘.

This happens on many HP devices including HP 15-bs000, 15-bs100, 15g-br000, 15q-bu000, and Pavilion 15-br000, HP 280 G3, 290 G1, and more. And the reason is Ubuntu does not support RTL8723de wifi driver.

UPDATE Jan-2021, IMPORTANT NOTE:

1. Ubuntu 18.04.5 comes with Linux Kernel 5.4 which makes rtl8723de device work out-of-the-box.

If kernel doesn’t update to v5.4.0, run command:

sudo apt install linux-generic-hwe-18.04

2. For other RealTek WiFi drivers, e.g., rtl8188fu, rtl8192fu, rtl8723ds, rtl8723du, and more. See this how to guide.

Here’s what I did to fix no wifi adapter issue in Ubuntu 18.04:

1. Reboot and go to BIOS to make sure wireless network are enabled. And plug laptop into a wired connection.

2. Open terminal either via Ctrl+Alt+T shortcut key or by searching for ‘terminal’ from software launcher.

3.1 You may first install the building tools first via command:

sudo apt-get install linux-headers-$(uname -r) build-essential git

3.2 Run command to get the Realtek rtlwifi codes that includes rtl8192ce, rtl8192cu, rtl8192se, rtl8192de, rtl8188ee, rtl8192ee, rtl8723ae, rtl8723be, and rtl8821ae.:

git clone https://github.com/lwfinger/rtw88.git

4. In this terminal window, install the drivers via command:

cd rtw88/ && make && sudo make install

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

5. If the installation success, run 2 commands load the new driver:

sudo modprobe -r rtl8723de

sudo modprobe rtl8723de

Wireless network starts working in my case:

6. If that does not work, you may remove and blacklist the broadcom drivers and restart:

sudo apt purge bcmwl-kernel-source

sudo sed -i '/blacklist bcma/ d' /etc/modprobe.d/blacklist.conf

sudo sed -i '/blacklist brcmsmac/ d' /etc/modprobe.d/blacklist.conf

In addition, (thanks to jeremy31) if you notice weak signal try command:

sudo modprobe -r rtl8723de && sleep 5 && sudo modprobe rtl8723de ant_sel=1

and see if it is better, if not run:

sudo modprobe -r rtl8723de && sleep 5 && sudo modprobe rtl8723de ant_sel=2

(REQUIRED) Or write the rule into configuration. REPLACE X with whatever setting (1, 2, or 3) worked best.

echo "options rtl8723de ant_sel=X" | sudo tee /etc/modprobe.d/rtl8723de.conf

Rednotebook 2.6, a GTK+3 desktop journal software, was released recently with date format improvements and few other changes.

RedNotebook is a modern journal lets you format, tag and search your entries. You can also add pictures, links and customizable templates, spell check your notes, and export to plain text, HTML, Latex or PDF.

The latest Rednotebook 2.6 features:

  • Move date format option to preferences dialog.
  • Use date format option for date in titlebar.
  • Remember selected date format for exports between sessions.
  • Check remote info.py file for latest version number.
  • Check for latest version in separate thread.

How to Install Rednotebook 2.6 in Ubuntu:

The official PPA contains the latest packages for Ubuntu 18.04, Ubuntu 16.04, and derivatives.

1. Open terminal either via Ctrl+Alt+T keyboard shortcuts or by searching for ‘terminal’ from software launcher.

2. Copy and paste following command into terminal and hit run to add the RedNotebook PPA:

sudo add-apt-repository ppa:rednotebook/stable

Type your password (no asterisks feedback due to security reason) when it prompts and hit Enter.

3. Finally check updates and install the desktop journal software by running following 2 commands one by one:

sudo apt update 

sudo apt install rednotebook

Ubuntu 18.04 users can skip sudo apt update command since it’s already done while adding PPA.

Uninstall:

To remove RedNotebook desktop journal, open terminal and run command:

sudo apt remove --autoremove rednotebook

And remove the PPA via Software & Updates utility -> Other Software tab.

GIMP, the popular cross-platform image editor, reached 2.10.6 release a day ago with new features, optimizations, and bug-fixes.

GIMP 2.10.6 release highlights:

  • Add support for vertical text (top-to-bottom writing)
  • New filter: Little Planet to create “little planets” from 360×180° equirectangular panorama images.
  • New filter: Long Shadow simplifies creating long shadows in several visual styles.
  • Add vertical straightening support in the Measure tool
  • Rendering most drawable previews asynchronously.
  • Option to disable rendering layer group previews completely (Preferences > Interface > respective checkbox).
  • For more details, see the release note.

GIMP 2.10 Splash

How to Install GIMP 2.10.6 in Ubuntu:

The otto06217’s PPA contains the most recent packages for Ubuntu 18.04 and higher, as usual GIMP 2.10.6 will be available a few days later.

1. Open terminal either via Ctrl+Alt+T keyboard shortcuts, or by searching for ‘Terminal’ from app launcher. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:otto-kesselgulasch/gimp

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

2. After added the PPA, you can upgrade to GIMP 2.10.6 once it’s published via Software Updater (Update Manager):

Or run following commands one by one in terminal to install or upgrade GIMP image editor:

sudo apt-get update

sudo apt-get install gimp

How to Restore:

For any reason, you can downgrade to the stock version of GIMP by running following command in terminal to purge the PPA:

sudo apt-get install ppa-purge && sudo ppa-purge ppa:otto-kesselgulasch/gimp

Install GIMP 2.10.6 flatpak in Ubuntu 16.04 & Higher

For Ubuntu 16.04 and higher, the latest GIMP is also available as flatpak (runs in sandbox) package.

1. Run commands to install Flatpak framework in Ubuntu 16.04 via PPA:

sudo add-apt-repository ppa:alexlarsson/flatpak

sudo apt-get update

sudo apt-get install flatpak

Ubuntu 18.04 and higher can skip the first 2 commands since flatpak is available in the universe repository.

2. Install GIMP flatpak application via command:

flatpak install https://flathub.org/repo/appstream/org.gimp.GIMP.flatpakref

Once installed, it will be made available exactly the same way as other applications.

3. (optional) To remove the GIMP flatpak, run command:

flatpak uninstall org.gimp.GIMP

You can now install the open-source team chat Zulip desktop client easily via Snap in Ubuntu and receive future updates automatically.

Zulip is a powerful, group chat software with clients for Linux, Windows, mac OS, Android, iOS, and web UI. For Ubuntu Linux, it offers an apt repository with the latest .deb packages and appimage single executable package.

Now Zulip is available as Snap, a containerised software package designed to work securely within most Linux desktop. Snap bundles most required dependencies and auto-updates itself.

To install Zulip via snap, simply open Ubuntu Software, search for and install zulip:

For those familiar with Linux command, open terminal (Ctrl+Alt+T) and run:

snap install zulip

Once installed, open the client either from software launcher or by running command in terminal and enjoy:

/snap/bin/zulip

opera web browser

Opera web browser reached the new stable 55 release a day ago with a new settings page, better page control, and easier Chrome extension installation.

Opera 55 release highlights:

  • New layout of settings page options for the start page, the user interface, dark theme support, languages, downloads, system, shortcuts and for reset settings.
  • Better control of the pages you visit with an expanded badge pop-up menu
  • Add install button when visiting Chrome extensions web store.
  • Bookmarks bar now is enabled by default. Click the heart icon on the right side to add new bookmarks.

How to Install Opera 55 in Ubuntu:

The Opera team offers snap package (containerised software package), which is always up-to-date (auto-updates itself). And you can simply install it in Ubuntu Software:

Also traditional Opera binary package for Ubuntu is available for download at the link below:

Download Opera for Linux

You can make Software Updater receive future updates for the traditional Opera package by adding its official apt repository:

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

sudo sh -c 'echo "deb http://deb.opera.com/opera-stable/ stable non-free" >> /etc/apt/sources.list.d/opera.list'

2. Get the key:

wget -O - http://deb.opera.com/archive.key | sudo apt-key add -

Finally either install Opera via following command or upgrade the browser via Software Updater:

sudo apt update

sudo apt install opera-stable

Uninstall:

For the Opera snap package, simply remove it from Ubuntu Software.

For the Opera apt repository, launch Software & Updates and navigate to Other Software tab.

To remove traditional opera package, either use your system package manager or run command in terminal:

sudo apt remove --autoremove opera

Free and open-source planetarium software Stellarium 0.18.2 was released a day ago with enhancements, various bug-fixes and translation updates.

Stellarium 0.18.2 release highlights:

  • Improvements and fixes for AstroCalc tool and plugins
  • Added support Abell Catalog of Planetary Nebulae and ESO/Uppsala Survey of the ESO(B) Atlas
  • Added filters for enlisted objects in Search Tool/Lists tool
  • Added new textures for moons
  • Added support Milkyway saturation effect
  • Added possibility to select all constellations through scripts and hotkeys
  • Added artwork for some Maori constellations
  • Added distances for some planetary nebulae
  • Added Lokono sky culture
  • Added a few new scripts
  • Updated code and data, and fixed various bugs.

How to Install Stellarium 0.18.2 in Ubuntu:

The software has an official PPA repository that contains the latest Stellarium packages for Ubuntu 16.04, Ubuntu 18.04, Ubuntu 18.10, and their derivatives.

1. Open terminal either via Ctrl+Alt+T or by searching ‘terminal’ from app launcher. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:stellarium/stellarium-releases

Input your password (no visual asterisks feedback while typing) when it prompts and hit Enter.

2. Then upgrade Stellarium from an existing release with Software Updater utility:

Or run following commands to install the software for the first time:

sudo apt-get update

sudo apt-get install stellarium

Uninstall:

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

sudo apt-get remove --autoremove stellarium

And remove the PPA via “Software & Updates” utility under Other Software tab.

qBittorrent

qBittorrent 4.1.2, free and reliable p2p bittorrent client, was released a few days ago with some new features, various bug-fixes and other improvements.

qBittorrent 4.1.2 release highlights:

  • New options for “inhibit sleep”
  • Add option for regexps in the transferlist search filter’s context menu
  • Add async io threads option to AdvancedSettings
  • Allow save resume interval to be disabled
  • Add checkbox for recursive download dialog
  • Add changelog link in program updater
  • Implement “Sequential downloading” feature.
  • Various bug-fixes, WebUI improvements, and more.

How to Install qBittorrent 4.1.2 in Ubuntu:

The official qBittorrent PPA maintains qBittorrent binary packages for Ubuntu 16.04, Ubuntu 18.04, and derivatives (though the new 4.1.2 release is not ready at the moment of writing).

1. To add the PPA, open terminal either via Ctrl+Alt+T or searching “Terminal” from app launcher. When it opens, run:

sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable

Type in your password (no visual feedback while typing due to security reason) when it prompts and hit Enter to continue.

2. To upgrade from a previous release, launch Software Updater and you’ll see qBittorrent available for upgrade after checking for updates.

upgrade qBittorrent

Or run commands below to install /upgrade it from terminal:

sudo apt update && sudo apt install qbittorrent

Uninstall:

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

sudo add-apt-repository --remove ppa:qbittorrent-team/qbittorrent-stable

To remove the bittorrent client, either use your system package manager or run command:

sudo apt-get remove --autoremove qbittorrent

Visual Studio Code 1.26 Released

Last updated: August 14, 2018

Visual Studio Code IDE

Microsoft Visual Studio Code 1.26 was released a day ago with a number of significant updates.

According to the release note, some of the key highlights in VS Code 1.26 include:

  • Breadcrumbs – A navigation bar allows to quickly navigate between symbols and files.
  • You can now apply Quick Fixes from the Problems panel
  • User setup package for Windows is now available on stable.
  • Column selection is supported within the Integrated Terminal via Alt+click
  • “Add missing import” Quick Fix to all missing imports in a JavaScript/TypeScript file
  • JSX tags closed automatically when type > in a JavaScript or TypeScript file
  • Better JS/TS error reporting
  • Add IntelliSense autocompletions to the extension search field.

How to Install VS Code 1.26 in Ubuntu:

The official .deb package for Debian/Ubuntu is available for 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

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.

Linux Kernel

Linus Torvalds finally announced the release of Linux Kernel 4.18 yesterday afternoon. He wrote in lkml.org:

It was a very calm week, and arguably I could just have released on schedule last week, but we did have some minor updates. Mostly networking, but some vfs race fixes (mentioned in the rc8 announment
as “pending”) and a couple of driver fixes (scsi, networking, i2c). Some other minor random things (arm crypto fix, parisc memory ordering fix). Shortlog appended for the (few) details.

Some of these I was almost ready to just delay to until the next merge window, but they were marked for stable anyway, so it would just have caused more backporting. The vfs fixes are for old races that are
really hard to hit (which is obviously why they are old and weren’t noticed earlier). Some of them _have_ been seen in real life, some of them probably need explicit help to ever trigger (ie artificial delays
just to show that “yes, this can actually happen in theory”).

Changes in kernel 4.18 include:

  • Initial support for the Qualcomm Snapdragon 845 SoC.
  • Various power management improvements to AMDGPU
  • Initial NVIDIA GV100 Volta support within Nouveau DRM driver
  • 32-bit ARM finally gets mitigated for Spectre V1/V2
  • Various new sound chips support
  • USB 3.2 and USB Type-C improvements.
  • And many other changes.

How to Install Linux Kernel 4.18 in Ubuntu:

There a few tools, e.g., UKTools and Ukuu, make it easy to install the latest Kernel in Ubuntu.

You can also manually download the Kernel 4.18 Ubuntu binary packages at:

Download Kernel 4.18

Depends on your OS type, download and install the packages in turns:

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

Select generic for common system, and lowlatency for a low latency system (e.g. for recording audio), amd64 for 64bit system, i386 for 32bit system, or armhf, arm64, etc for other OS types.

Also you can download and install the kernel binaries via terminal commands:

For 64-bit OS:

cd /tmp/

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.18/linux-headers-4.18.0-041800_4.18.0-041800.201808122131_all.deb

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.18/linux-headers-4.18.0-041800-generic_4.18.0-041800.201808122131_amd64.deb

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.18/linux-image-unsigned-4.18.0-041800-generic_4.18.0-041800.201808122131_amd64.deb

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.18/linux-modules-4.18.0-041800-generic_4.18.0-041800.201808122131_amd64.deb

sudo dpkg -i *.deb

for 32-bit OS:

cd /tmp/

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.18/linux-headers-4.18.0-041800_4.18.0-041800.201808122131_all.deb

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.18/linux-headers-4.18.0-041800-generic_4.18.0-041800.201808122131_i386.deb

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.18/linux-image-4.18.0-041800-generic_4.18.0-041800.201808122131_i386.deb

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.18/linux-modules-4.18.0-041800-generic_4.18.0-041800.201808122131_i386.deb

sudo dpkg -i *.deb

Once installed, restart your computer and enjoy!

Uninstall Linux Kernel 4.17:

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 4.18.0:

sudo dpkg --purge linux-image-4.18.0-041800-generic linux-image-unsigned-4.18.0-041800-generic