Archives For jimingkui

Sublime Text 3.2 was released yesterday with first-class Git integration, GTK3 port, and many other new features.

Sublime Text 3.2 release highlights:

  • First-class Git integration
  • Incremental diff functionality tracks changes to files being edited.
  • Moved to GTK3, and various high DPI fixes for Linux.
  • New theme functionality and block caret support.
  • Support for Unicode 11.0
  • Many syntax highlighting improvements to Clojure, D, Go, Lua.

How to Install Sublime Text 3.2 in Ubuntu:

The easiest way is to install the community maintained Snap package (run in sandbox).

For Ubuntu 18.04 and higher, simply open Ubuntu Software search for and install sublime-text

For Ubuntu 16.04, open terminal (Ctrl+Alt+T) and run command to install the snap:

sudo apt install snapd && sudo snap install sublime-text

Install Sublime Text 3.2 via its official apt repository:

For those who don’t prefer Snap package, do following steps to install Sublime Text from its official apt repository:

1. Open terminal either via Ctrl+Alt+T keyboard shortcut or from app launcher. When it opens, run command to add the keyring:

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

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

2. Then run command to add the apt repository:

echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

3. Finally install sublime-text package either via Synaptic package manager or by running command:

sudo apt update && sudo apt install sublime-text

Uninstall:

To remove the editor, run command:

sudo apt remove --autoremove sublime-text

To remove the apt repository, go to Software & Updates -> Other Software.

Midori Broswer 0.5.9 Ballet

Midori web browser now can be easily installed in Ubuntu 16.04, Ubuntu 18.04 and higher via Snap package.

Midori is a light-weight web browser that uses Webkit rendering engine with GTK user interface. It is the default browser in the SliTaz Linux, Bodhi Linux, and Trisquel Mini.

The software maintainer has made the web browser into Snap package, which runs in sandbox and auto-updates itself once a new release is published.

Midori Broser in Ubuntu

How to Install Midori in Ubuntu:

For Ubuntu 18.04 and higher, simply open Ubuntu Software, search for and install midori:

For Ubuntu 19.04, there are two Midiro packages in Ubuntu Software. Check packages details, and install the one from Snap Store.

For Ubuntu 16.04, first open terminal (Ctrl+Alt+T) and install snapd daemon first:

sudo apt-get install snapd

Then install Midori snap package via command:

sudo snap install midori

Uninstall:

To remove Midori web browser, either use Ubuntu Software (Ubuntu 18.04 and higher) or run command in terminal:

sudo snap remove midori

Avidemux video editor

Avidemux video editor released version 2.7.2 today with new demuxers / encoders, bug-fixes, and various other changes.

Avidemux 2.7.2 release highlights:

  • Native AviSynth demuxer (MSVC++ 64 bits Windows builds only)!
  • VapourSynth demuxer to directly load .vpy scripts
  • FFmpeg-based VA-API HW accelerated H.264 encoder (Intel/Linux)
  • FFmpeg-based VA-API HW accelerated HEVC encoder (Intel/Linux)
  • FFmpeg 4.x compatible
  • Allow to cancel indexing of MKV files
  • Add decoding support for multichannel Opus audio
  • Other enhancements, and many bug-fixes.

How to Install Avidemux 2.7.2 in Ubuntu:

Appimage:

The software offers Linux universal binaries (non-install executable to launch the software) in its download page:

Avidemux download (Linux, Universal binaries)

Once you get it, do:

  • right-click and go to file Properties -> Permissions -> allow executing file as program.
  • right-click and select run the Appimage.

Flatpak:

Avidemux is also available as flatpak, see the Flathub page for more details.

Native Ubuntu package:

There’s also an unofficial PPA contains the latest 2.7.2 packages for Ubuntu 16.04, Ubuntu 18.04, Ubuntu 18.10, and higher.

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

sudo add-apt-repository ppa:ubuntuhandbook1/avidemux

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

avidemux ppa

2. Then run following 2 commands to refresh package cache and install the video editor:

sudo apt update

sudo apt install avidemux2.7-qt5 avidemux2.7-qt5-data avidemux2.7-plugins-qt5 avidemux2.7-jobs-qt5

Uninstall:

To remove the native Ubuntu .deb package of Avidemux 2.7, run command in terminal:

sudo apt remove --autoremove avidemux2.7-*

And remove the PPA via Software & Updates utility under ‘Other Software’ tab.

gnome shell

This quick tutorial shows how to get Mac OS style auto-resize dock launcher in Ubuntu 18.04, without installing extensions, e.g., Dash to Panel or Dash to Dock.

The left panel in Ubuntu 18.04 is called “Ubuntu Dock“. It is forked from Dash to Dock extension and less customizable via System Settings. There are only auto-hide, panel position, and icon size settings.

To get more settings for Ubuntu Dock, there’s a graphical tool called Dconf Editor.

1. First search for and install dconf editor from Ubuntu Software:

2. Launch dconf editor, and navigate to org/gnome/shell/extensions/dash-to-dock. And turn off the switch for ‘extend height’.

Then you’ll see an auto-resize Mac OS style dock launcher instead of the extended panel.

Audacity audio editor 2.3.1 was finally released and restored Linux support which was missing in 2.3.0.

Audacity 2.3.1 brings over 20 bug-fixes and following new features / improvements:

  • Microfades are now an opt-in feature. They were always on in 2.3.0.
  • The advanced vertical zooming option is now available in the View->Zoom menu.
  • Regular interval labels now support range labels.

How to Install Audacity 2.3.1 in Ubuntu:

There’s an unofficial PPA contains the 2.3.1 packages for Ubuntu 16.04, Ubuntu 18.04, Ubuntu 18.10, Ubuntu 19.04, and their derivatives, e.g., Linux Mint 18.x and 19.x.

1. Open terminal either via Ctrl+Alt+T keyboard shortcut or by searching for ‘terminal’ from app launcher. When it opens, run command:

sudo add-apt-repository ppa:ubuntuhandbook1/audacity

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

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.3.1:

sudo apt-get update

sudo apt-get install audacity

Uninstall:

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

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

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

Nvidia Linux driver

NVIDIA driver 418.43 for Linux was released 2 weeks ago with G-SYNC Compatible (a.k.a. FreeSync / Adaptive-Sync) support. Now you can install it in Ubuntu 18.04 and higher via the “Graphics Drivers” team PPA.

NVIDIA driver 418.43 is the first stable release in the 418 series, and it features:

  • New GPUs support:
    • GeForce GTX 1660 Ti
    • GeForce RTX 2070 with Max-Q Design
    • GeForce RTX 2080 with Max-Q Design
  • Initial support for G-SYNC Compatible monitors.
  • Support for stereo presentation in Vulkan.
  • NVIDIA optical flow support.
  • NVIDIA Video Codec SDK 9.0 support
  • Various Vulkan and OpenGL fixes
  • See the release note for more details.

How to Install NVIDIA Driver 418.43 in Ubuntu:

For Ubuntu 18.04, Linux Mint 19, Ubuntu 18.10, Ubuntu 19.04, you can do following steps to add the PPA and install the latest NVIDIA 418 drivers.

1. Open terminal either via Ctrl+Alt+T keyboard shortcut or by searching for ‘terminal’ from application menu. When it opens, run command:

sudo add-apt-repository ppa:graphics-drivers/ppa

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

2. For Linux Mint 19, you may need to run command to refresh system package cache:

sudo apt update

3. Launch Software & Updates utility, and navigate to Additional Drivers tab.

Then choose using “NVIDIA driver metapackage from nvidia-driver-418” from the list and click Apply Changes.

In addition, if the driver does not install after clicking ‘Apply Changes’, try running command in terminal:

sudo apt install nvidia-driver-418 nvidia-settings

For unmet dependency issue, try removing old NVIDIA proprietary drivers first.

Caprine is an unofficial and privacy-focused Facebook Messenger works on Ubuntu, Mac OS, and Windows.

Caprine is free, open-source, and features a dark theme, privacy settings, keyboard shortcut, Work chat support, code blocks, custom styles, compact mode, and more.

The software offers .deb, .snap, and .Appimage packages to make it easy to install in Ubuntu desktop.

1. Caprine snap package:

Snap is a containersized software package that features software auto-updating. Ubuntu 18.04 and higher can easily install it from Ubuntu Software.

2. Caprine .deb package:

For those don’t prefer snap applications, download the .deb package from the release page:

Download Caprine (.deb / .Appimage)

Then install the package via:

  • install Gdebi package installer from Ubuntu Software.
  • Right-click the .deb -> open with other application -> Gdebi package installer.
  • Finally install the package and launch Caprine from applicatione menu.

3. Caprine .Appimage package

Without installing the software, you can launch the messenger by running the .Appimage file.

  • download the .Appimage from the previous link.
  • right-click and go to file Properties -> Permissions.
  • check the box says ‘Allow executing file as program’
  • finally click run the Appimage file to launch Caprine.

Mari0, a fan-made video game that combines elements of Super Mario Bros and Portal, now is available to install in Ubuntu easily via Snap package.

Although there’s already a 2D jump and run game SuperTux available in Ubuntu Software, Mari0 is available as a complete from scratch recreation of Super Mario Bros, with puzzle game mechanics from Portal. It also features play 4-player coop, with everyone having their own Portal gun!

How to Install Mari0 in Ubuntu:

It’s quite easy to install the snap package (unofficial) in Ubuntu 18.04 and higher. Simply open Ubuntu Software, search for and install mari0.

For Ubuntu 16.04, open terminal either via Ctrl+Alt+T keyboard shortcut or from application menu. When it opens, install snapd via command:

sudo apt-get install snapd

Then install the game via command:

sudo snap install mari0

In addition, for allowing the game to use joystick, you need to run one more command:

sudo snap connect mari0:joystick

Uninstall:

To remove the game, simply run command in terminal:

sudo snap remove mari0

Linux Kernel

Linus Torvalds announced the released of Kernel 5.0 yesterday afternoon. He wrote on lkml.org:

Ok, so the last week of the 5.0 release wasn’t entirely quiet, but it’s a lot smaller than rc8 was, and on the whole I’m happy that I delayed a week and did an rc8.

It turns out that the actual patch that I talked about in the rc8 release wasn’t the worrisome bug I had thought: yes, we had an uninitialized variable, but the reason we hadn’t immediately noticed it due to a warning was that the way gcc works, the compiler had basically initialized it for us to the right value. So the same thing that caused not the lack of warning, also effectively meant that the fix was a no-op in practice.

But hey, we had other bug fixes come in that actually did matter, and the uninitialized variable _could_ have been a problem with another compiler.

Regardless – all is well that ends well. We have more than a handful of real fixes in the last week, but not enough to make me go “Hmm, things are really unstable”. In fact, at least two thirds of the patches are marked as being fixes for previous releases, so it’s not like 5.0 itself looks bad.

Changes in Linux Kernel 5.0 include:

  • AMD Radeon FreeSync support
  • Logitech High Resolution Scrolling support
  • Raspberry Pi Touchscreen support out of the box.
  • New console font for HiDPI and retina screens.
  • Initial support for NVIDIA Turing GPUs
  • And numerous other changes

How to Install Linux Kernel 5.0 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.0 are available for download at the link below:

Download Kernel 5.0

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

  1. linux-headers-5.0.0-xxxxxx_all.deb
  2. linux-headers-5.0.0-xxx-generic(/lowlatency)_xxx_amd64(/i386).deb
  3. linux-modules-5.0.0-xxx-generic(/lowlatency)_xxx_amd64(/i386).deb
  4. linux-image-xxx-5.0.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.

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

For 64-bit OS:

cd /tmp/

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-headers-5.0.0-050000_5.0.0-050000.201903032031_all.deb

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-headers-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-image-unsigned-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-modules-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb

sudo dpkg -i *.deb

for 32-bit OS:

cd /tmp/

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-headers-5.0.0-050000_5.0.0-050000.201903032031_all.deb

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-headers-5.0.0-050000-generic_5.0.0-050000.201903032031_i386.deb

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-image-5.0.0-050000-generic_5.0.0-050000.201903032031_i386.deb

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-modules-5.0.0-050000-generic_5.0.0-050000.201903032031_i386.deb

sudo dpkg -i *.deb

Once installed, restart your computer and enjoy!

Uninstall Linux Kernel 5.0:

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.0:

sudo dpkg --purge linux-image-5.0.0-050000-generic linux-image-unsigned-5.0.0-050000-generic

gnome shell

Ubuntu will play a simple alert sound for certain types of messages and events, e.g., error input in terminal and usb plugged in or removed.

For some reason, you may want to disable or mute the alert sounds. And this quick tutorial will show you how to do it in Ubuntu 18.04 Gnome desktop.

1. Open Settings utility from the left panel, and navigate to Sound settings from its left pane.

2. Then navigate to Sound Effects tab, and either mute or turn off “Alert volume”.

3. (Optional) Instead of playing alert sounds, you can have visual flashes for the events.

Go to Univeral Access settings, choose enable “Visual Alerts”, and set flash window title or entire screen.

That’s it. Enjoy!