Archives For jimingkui

Flameshot is a simple yet powerful screenshot tool with annotation feature. Other than Shutter, it’s another of my favorite screen capturing tools for Ubuntu desktop so far.

Flameshot is written by C++ with Qt5 framework. It offers a system tray icon with ‘Take Screenshot’ and ‘Configuration’ menu options.

While selecting a screen area to capture, many editing tool buttons appear at the bottom. And you can press right-click to show color picker, and Space to open the side panel.

Other software features include:

  • Customizable appearance.
  • DBus interface.
  • Upload to Imgur.

How to Install Flameshot in Ubuntu:

The software is available in all current Ubuntu system repositories. Simply launch Ubuntu Software (or App Center), then search and install the package.

NOTE: the screenshot tool is available in App Center for both Snap (run in sandbox) and native Debian package formats. Choose either one that you prefer.

For choice, the software provides official packages for Debian, Fedora, Ubuntu, AppImage, and Flatpak, available to download under “Assets” in the link below:

Uninstall:

To uninstall the tool, either use Ubuntu Software (App Center) or open terminal (Ctrl+Alt+T) and run the command below instead:

  • For Debian package:
    sudo apt remove --autoremove flameshot
  • For Snap package:
    sudo snap remove flameshot

VLC media player 3.0.4 was released with support for decoding AV1 streams and various bug-fixes.

According to the changelog file, VLC 3.0.4 contains following changes:

  • Decode AV1 streams
  • Fix playback of low-fps files
  • Fix seeking with streams containing WebVTT subtitles
  • Fix decoding some CC-608 streams with roll-up
  • Fix crashes with LPCM streams
  • Fix colorspace of JPEG, PNG and screen inputs
  • Fix MediaCodec rotation handling
  • Fixes for ogg, flac, MKV, AVI, MP4, and incomplete RAR streams.
  • Support 44.1kHz DTS passthrough
  • Fix crashes on DirectSound output
  • Fix some crash in Direct3D11/Direct3D9 because of sensors
  • Fix some broken DVD subtitles rendering (OpenGL, notably)
  • Fix misc display in Direct3D11 due to broken drivers
  • Some text rendering fixes.
  • Fix ChromeCast compatibility with web interface
  • Fix detection SAT>IP servers
  • Fix tooltip display when using Wayland
  • Various fixes for Mac OS, and other more.

How to Install The Latest VLC in Ubuntu

For Ubuntu 18.04 Bionic Beaver, Ubuntu as usual will publish VLC 3.0.4 packages via security & updates repository.

At that time you can upgrade VLC via Software Updater (check the building page, The Bionic Beaver section).

For Ubuntu 16.04, Ubuntu 18.04 and higher, the VideoLan team offers the official Snap package, containerised software package designed to work securely within most Linux desktop.

You can simply install the snap (3.0.3 at the moment) via Ubuntu Software, and it will auto-updates to the latest VLC 3.0.4 once it’s published.

Note for Ubuntu 16.04 users who never installed a snap package, make sure if snapd daemon is installed via command:

sudo apt install snapd snapd-xdg-open

The default Gedit text editor in Ubuntu 18.04 always opens file in a new window, even though there’s already an existing instance. And there’s no easy option to change the behavior.

Thanks to fossfreedom, you can re-built Gedit pakages so to always open files in new tabs in the same gedit window.

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

2. When terminal opens, paste the command below and hit run to install the building tools:

sudo apt-get install devscripts build-essential fakeroot

3. Launch Software & Updates, and click enable download Source code from Ubuntu repositories.

4. In user downloads, create a build folder and navigate to the directory.

cd ~/Downloads/ && mkdir build && cd build

5. Download the gedit source code via command:

sudo apt-get update; apt-get source gedit

Type your password (no asterisks feedback) when it prompts

6. Next edit the source file gedit-app.c:

cd gedit-* && gedit gedit/gedit-app.c

When the file opens, add new line return TRUE; as the picture shows (line 320 for Ubuntu 18.04):

7. Give a unique package name by editing the debian/changelog file.

gedit debian/changelog

8. Finally rebuild the gedit via commands:

sudo apt-get build-dep gedit

debuild -i -us -uc -b

The commands will take a few minutes building the gedit text editor packages.

9. At last, install the new packages via command and enjoy!

cd ~/Downloads/build/ && sudo dpkg -i gedit*.deb

In addition, you may lock the changes so it won’t be overwritten after installing system updates.

And it can be done easily via Synaptic package manager (available in Ubuntu Software). Simply search for ‘gedit’ and choose lock version for gedit and gedit-common packages one by one.

The open-source network packet analyzer Wireshark 2.6.3 was released a few days ago with various bug-fixes and updated protocol support.

Wireshark 2.6.3 fixed following bugs:

  • Bluetooth AVDTP dissector crash.
  • Bluetooth Attribute Protocol dissector crash.
  • Radiotap dissector crash.
  • Wireshark Hangs on startup initializing external capture plugins.
  • Qt: SCTP Analyse Association Dialog: Segmentation fault when clicking twice the Filter Association button.
  • Incorrect presentation of dissected data item (NETMASK) in ISAKMP dissector.
  • Decode NFAPI: CONFIG.request Error.
  • udpdump frame too long error.
  • ISDN – LAPD dissector broken since version 2.5.0.
  • ASTERIX Category 062 / 135 Altitude has wrong value.
  • Wireshark cannot decrypt SSL/TLS session if it was proxied over HTTP tunnel.
  • TLS records in a HTTP tunnel are displayed as “Encrypted Handshake Message”.
  • BTATT Dissector: Temperature Measurement: Celsius and Fahrenheit swapped.
  • Diameter AVP User Location Info, Mobile Network Code decoded not correctly.
  • Heartbeat message “Info” displayed without comma separator. Bug 15079.

Install The Latest Wireshark via PPA in Ubuntu:

Wireshark stable PPA contains most recent packages for Ubuntu 18.04, Ubuntu 16.04, and Ubuntu 14.04.

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

sudo add-apt-repository ppa:wireshark-dev/stable

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

2. If you’ve the previous Wireshark 2.4.x installed on your system, remove it first via command:

sudo apt-get remove --autoremove wireshark

3. Finally run following commands one by one in terminal to install Wireshark 2.6.x:

sudo apt-get update

sudo apt-get install wireshark

Uninstall:

To remove the software, open terminal and run command:

sudo apt-get remove --autoremove wireshark wireshark-*

And remove the PPA by launching Software & Updates -> Other Software tab.

While the trash icon does not have ‘Add to Favorites‘ context menu option, here’s how to manually add a trash can icon to the left launcher in Ubuntu 18.04 Gnome Shell.

First see the result effect (in the picture, the left panel was replaced by Dash to Dock extension):

1. Open terminal either via Ctrl+Alt+T shortcut key, or by searching for ‘terminal’ from app launcher.

2. Run command to create and edit an empty file called trash.sh:

gedit ~/Documents/trash.sh

When the file opens, paste following lines and save it.

#!/bin/bash
icon=$HOME/.local/share/applications/trash.desktop

while getopts "red" opt; do
	case $opt in
    r)
	if [ "$(gio list trash://)" ]; then
		echo -e '[Desktop Entry]\nType=Application\nName=Trash\nComment=Trash\nIcon=user-trash-full\nExec=nautilus trash://\nCategories=Utility;\nActions=trash;\n\n[Desktop Action trash]\nName=Empty Trash\nExec='$HOME/Documents/trash.sh -e'\n' > $icon
	fi
	;;
    e)
	gio trash --empty && echo -e '[Desktop Entry]\nType=Application\nName=Trash\nComment=Trash\nIcon=user-trash\nExec=nautilus trash://\nCategories=Utility;\nActions=trash;\n\n[Desktop Action trash]\nName=Empty Trash\nExec='$HOME/Documents/trash.sh -e'\n' > $icon
	;;
    d)
	while sleep 5; do ($HOME/Documents/trash.sh -r &) ; done
	;;
  esac
done

3. Make the script file executable and run it via the 2 commands:

chmod +x ~/Documents/trash.sh

./Documents/trash.sh -e

4. Search for ‘trash’ in software launcher and select ‘Add to Favorites’ in its context menu.

5. Finally open Startup Applications, click Add to add a new startup app:

  • Type a name for the trash script.
  • Type command /home/YOUR_USER_NAME/Documents/trash.sh -d

Reboot Ubuntu, and the trash can icon will change when it’s empty or not empty.

via: ubuntuforums

Sony PSP emulator PPSSPP 1.6 stable was released a few months ago. Here’s how to install it in Ubuntu 18.04 while the PPSSPP stable PPA still has v1.5.4 packages.

PPSSPP 1.6 release highlights:

  • OpenGL backend now properly multithreaded, giving a good speed boost.
  • Various Vulkan performance improvements and memory allocation fixes.
  • GPU command interpreter performance improvements
  • Various fixes for app switching and widgets on Android
  • Bugfixes and some performance improvements in the ARM64 JIT compiler and IR interpreter
  • Shader cache enabled for Vulkan
  • Multiple iOS fixes, including JIT and file browser.
  • Improved compatibility on Mac
  • Texture replacement ID bugfix (note: some textures from 1.5.4 may become incompatible)
  • Adhoc multiplayer fixes
  • Vulkan support on Linux/SDL
  • Retroarch support

The RetroGames PPA contains the latest release of PPSSPP (1.6.3 so far) for Ubuntu 18.04 and Linux Mint 19.

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

sudo add-apt-repository ppa:ppsspp/stable

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

2. Then you can install PPSSPP via command in Ubuntu 18.04:

sudo apt-get install ppsspp

For sdl version, replace ppsspp with ppsspp-sdl in the last command.

Uninstall:

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

To remove PPSSPP, run command in terminal:

sudo apt-get remove --autoremove ppsspp ppsspp-*

In addition, for those who care about the versioning issue, I’ve re-uploaded PPSSPP 1.6.3 (based on RetroGames PPA package) into my personal PPA for Ubuntu 18.04 with the issue fixed.

You need to remove previous PPA and PPSSPP packages before installing the new one:

sudo add-apt-repository ppa:ubuntuhandbook1/apps

sudo apt-get install ppsspp

After solved the no wifi adapter issue, I found that in Ubuntu 18.04 Gnome Shell, there’s no Disconnect Wifi option in system tray wireless menu.

It’s inconvenient when I’m going to connect to wired network and temporarily disable wifi connection. Fortunately, there’s a Gnome extension that adds a Disconnect option for Wifi in status menu, and a Reconnect option will be there when wireless network is disconnected.

To install the extension, simply open Ubuntu Software, search for and install Disconnect wifi:

You can see the new options once you installed the extension.

That’s it. Enjoy!

MKVToolNix 26.0.0, free and open-source Matroska software, was released a day ago with new features, enhancements, and various bug-fixes.

MKVToolNix 26.0.0 release highlights:

  • mkvmerge: chapter generation: if the name template given by
    --generate-chapters-name-template is empty, no names (ChapterDisplay
    master elements with ChapterString/ChapterLanguage children) will be
    generated for the chapter atoms.
  • mkvmerge: chapters: chapter names generated from MPLS files will now use the
    name template if one is set via --generate-chapters-name-template.
  • mkvmerge: mkvmerge will no longer abort with an error message if no audio,
    video and subtitle tracks should be multiplexed. This allows copying of
    chapters from non-chapter source files (e.g. Matroska or MP4 files).
  • MKVToolNix GUI: the font size in the tool selector on the left will scale
    with the font size the user selects in the preferences.
  • MKVToolNix GUI: the GUI will no longer automatically resize the columns in
    tree and list views to match the content size. Instead it remembers and
    restores the widths set by the user.
  • MKVToolNix GUI: multiplexer: the chapter name template will now be set
    automatically to the name template in the preferences’ “chapter editor”
    section. Additionally the option --generate-chapters-name-template … will
    be passed to mkvmerge in situations when mkvmerge will generate chapters
    (either because automatic generation is enabled or if chapters are generated
    for MPLS playlists).
  • MKVToolNix GUI: chapter editor: if the chapter name template is empty,
    chapters will be generated without names.
  • MKVToolNix GUI: chapter editor: added an option to remove all chapter names
    to the “additional modifications” dialog.

How to Install MKVToolNix 26.0.0 in Ubuntu:

The official apt repository offers the latest packages for Ubuntu 16.04, Ubuntu 18.04, Linux Mint 19/18, and their derivatives.

Open terminal via Ctrl+Alt+T or by searching it from app launcher. When it opens, do following steps:

1. Run command to add the repository:

sudo sh -c 'echo "deb https://mkvtoolnix.download/ubuntu/ $(lsb_release -sc) main" >> /etc/apt/sources.list.d/bunkus.org.list'

Replace $(lsb_release -sc) with bionic for Linux Mint 19, or xenial for Linux Mint 18.x. And input your password (no asterisks while typing) when it prompts and hit Enter.

2. Then install the key:

wget -q -O - https://mkvtoolnix.download/gpg-pub-moritzbunkus.txt | sudo apt-key add -

3. Finally either upgrade the software via Software Updater (Update Manager):

or run command to install the software packages:

sudo apt-get update

sudo apt-get install mkvtoolnix mkvtoolnix-gui

Uninstall:

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

To remove MKVToolNix, use Synaptic Package Manager or run following command:

sudo apt-get remove --autoremove mkvtoolnix mkvtoolnix-gui

Aegisub is an open-source, cross-platform, highly customizable subtitle editor that features a lot of convenient tools to help you with timing, typesetting, editing and translating subtitles, as well as a powerful scripting environment called Automation (originally mostly intended for creating karaoke effects, Automation can now be used much else, including creating macros and various other convenient tools).

Although Ubuntu 18.04 dropped the Aegisub binary package from its universe repository, it’s still easy to install Aegisub via one of the developer’s PPA.

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:alex-p/aegisub

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

2. Then run command to install the subtitle eidtor:

sudo apt-get install aegisub

Uninstall:

To remove the PPA, either open Software & Updater and navigate to Other Software tab, or run command:

sudo add-apt-repository --remove ppa:alex-p/aegisub

To remove Aegisub subtitle editor, run command:

sudo apt-get remove --autoremove aegisub

A new bug-fix release for the Kid3 audio tag editor 3.6 series was released earlier today. Here’s how to install it in Ubuntu 18.04, Ubuntu 16.04, Ubuntu 14.04, Linux Mint 19/18, and their derivatives.

This bug-fix release fixes the use of free form MP4 atoms, import from CSV with DOS line endings, the application icon in KDE wayland sessions and other bugs. The generation of file names from tags is improved by supporting conditional text around a value from the tags, which is only inserted when the corresponding value exists.

Changes in Kid3 3.6.2 include:

  • Format from tags with custom strings prepended / appended when replaced format code is not empty %{“t1″code”t2”}.
  • Fix MP4 free form names longer than 4 characters with TagLib.
  • Support DOS line endings with “Import CSV”.
  • Set CTOC and CHAP element ID from values in the frame table.
  • Correctly add frame when “Edit” is clicked on non existing frame.
  • Show correct icon in Wayland session.
  • Improve editing of ISO date/time values with validation enabled.
  • Bundle OpenSSL libraries with self-contained Linux package.

How to Install Kid3 3.6.2 in Ubuntu:

The developer maintains a PPA repository with the software packages for all current Ubuntu releases.

Open terminal either via Ctrl+Alt+T shortcut key or by searching for ‘terminal’ from software launcher. When it opens, do following steps one by one.

1. Copy and paste following command in terminal and hit run to add the PPA:

sudo add-apt-repository ppa:ufleisch/kid3

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

2. Then you can upgrade Kid3 from a previous version via Software Updater:

or run commands one by one in terminal to install or upgrade to the latest tag editor:

sudo apt update

sudo apt install kid3-qt

For KUbuntu, you may replace kid3-qt with kid3 in the last command for KDE integration.

Uninstall

To remove the PPA repository, either open Software & Updates -> Other Software tab, or run command:

sudo add-apt-repository --remove ppa:ufleisch/kid3

To remove the audio tag editor, either use your system package manager or run command:

sudo apt remove --autoremove kid3 kid3-*