Archives For November 30, 1999

gnome shell

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-*

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.

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.

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