Archives For November 30, 1999

FFMPEG

The FFmpeg multimedia library 3.4 “Cantor” was released earlier today. Here’s how to install it in Ubuntu 14.04, Ubuntu 16.04 via PPA.

Click to see what’s new in FFmpeg 3.4:
  • deflicker video filter
  • doubleweave video filter
  • lumakey video filter
  • pixscope video filter
  • oscilloscope video filter
  • config.log and other configuration files moved into ffbuild/ directory
  • update cuvid/nvenc headers to Video Codec SDK 8.0.14
  • afir audio filter
  • scale_cuda CUDA based video scale filter
  • librsvg support for svg rasterization
  • crossfeed audio filter
  • spec compliant VP9 muxing support in MP4
  • remove the libnut muxer/demuxer wrappers
  • remove the libschroedinger encoder/decoder wrappers
  • surround audio filter
  • sofalizer filter switched to libmysofa
  • Gremlin Digital Video demuxer and decoder
  • headphone audio filter
  • superequalizer audio filter
  • roberts video filter
  • The x86 assembler default switched from yasm to nasm, pass --x86asmexe=yasm to configure to restore the old behavior.
  • additional frame format support for Interplay MVE movies
  • support for decoding through D3D11VA in ffmpeg
  • limiter video filter
  • libvmaf video filter
  • Dolby E decoder and SMPTE 337M demuxer
  • unpremultiply video filter
  • tlut2 video filter
  • floodfill video filter
  • pseudocolor video filter
  • raw G.726 muxer and demuxer, left- and right-justified
  • NewTek NDI input/output device
  • Some video filters with several inputs now use a common set of options: blend, libvmaf, lut3d, overlay, psnr, ssim. They must always be used by name.
  • FITS demuxer and decoder
  • FITS muxer and encoder
  • add --disable-autodetect build switch
  • drop deprecated qtkit input device (use avfoundation instead)
  • despill video filter
  • haas audio filter
  • SUP/PGS subtitle muxer
  • convolve video filter
  • VP9 tile threading support
  • KMS screen grabber
  • CUDA thumbnail filter
  • V4L2 mem2mem HW assisted codecs
  • Rockchip MPP hardware decoding
  • vmafmotion video filter
  • use MIME type “G726” for little-endian G.726, “AAL2-G726” for big-endian G.726

How to Install FFmpeg 3.4 via PPA in Ubuntu:

1. Open terminal via Ctrl+Alt+T or by searching for “Terminal” from the dash. When it opens, run command to add the PPA repository (unofficial):

sudo add-apt-repository ppa:jonathonf/ffmpeg-3

Type in password (no visual feedback due to security reason) and hit Enter.

2. (For Ubuntu 14.04 only), you also need to add another PPA for the dependencies:

sudo add-apt-repository ppa:jonathonf/tesseract

3. Then upgrade FFmpeg using Software Updater:

Or simply run command:

sudo apt update && sudo apt upgrade

How to Restore:

To undo the changes and restore to the stock version of FFmpeg in main Ubuntu repositories, purge the PPA via command:

sudo apt install ppa-purge && ppa-purge ppa:jonathonf/ffmpeg-3

Found that your desktop screen recording applications do not launch in Ubuntu 17.10 default Wayland session?

Well, try Green Recorder, the first desktop program to support Wayland display server on GNOME session.

Green Recorder is a GTK+ 3 application written in Python that features:

  • Record audio and video on almost all Linux interfaces.
  • Support mkv, avi, mp4, wmv, gif and nut (only WebM for Wayland)
  • A play button to play last recorded video.
  • Right-click system tray icon to stop recording.
  • Choose the audio input source from list.
  • Run command after recording.

How to Install Green Recorder in Ubuntu 17.10:

The latest Green Recorder 3.0.5 features a lot of small fixes and restrcutered UI. You can install it in Ubuntu 17.10, and Ubuntu 16.04, Ubuntu 14.04, Ubuntu 17.04 via its official PPA.

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:fossproject/ppa

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

2. Then run commands to check repository packages and install the recorder:

sudo apt-get update

sudo apt-get install green-recorder

Uninstall:

To remove the desktop screen recorder, simply run following command in terminal:

sudo apt-get remove --autoremove green-recorder

And remove the PPA via Software & Updater utility under Other Software tab.

Ubuntu 17.10 uses Wayland in the default session and Xorg for optional. However, many graphical applications need to run as root so far does not launch in Wayland.

You’ll get following similar errors while running graphical applications via root:

  1. For some applications, e.g., Synaptic Package Manager, Grub Customizer, Gparted, and Ubuntu Tweak, they does not launch in Wayland.

    Or you may get following error when trying to launch them via gksu command:

    Failed to run *** as user root. Unable to copy the user’s Xauthorization file.

  2. Starting graphical application via sudo in terminal window will get error:

    No protocol specified. Gtk-WARNING **: Cannot open display: :0

The most straightforward workaround is to use xhost to temporarily allow the root user to access the local user’s X session.

To do so, run command:

xhost si:localuser:root

After running the command, these graphical applications can be launched from app launcher or via sudo, gksu, pkexec commands until you log out.

To make this work automatically at login, search for and launch Startup Applications utility, click the “Add” button to run the command at startup:

  • name: whatever
  • command: xhost si:localuser:root
  • comment: whatever

QupZilla 2.2, the final release series of the cross-platform Qt web browser, is now available.

QupZilla will now get only bug-fix releases, and next major release will be named Falkon as a KDE project.

QupZilla 2.2.0 release highlights:

  • added back print element background option
  • added back print preview dialog
  • added session manager
  • tab icon is now hidden when page has no icon
  • improved locationbar completer with search suggestions
  • improved handling of downloading dependencies in GreaseMonkey scripts
  • various improvements in TabManager extension
  • Linux: PulseAudio streams now have QupZilla app name and icon

Install QupZilla 2.2.0 in Ubuntu:

QupZilla 2.2.0 requires Qt 5.9.2. It can’t be built with default Qt libraries in all current Ubuntu releases.

At the moment, you can only download the Appimage, non-install single executable file, from the link below:

Then make it executable via its Properties window, and run the file to launch QupZilla:

Don’t see the “Run” option even after made the appimage executable? Go to file manage menu Edit -> Preferences -> Behavior -> Choose the option says ‘Run executable text files when they are opened’.

Rhythmbox, Ubuntu’s default music playing application, got a new release update after a year of development.

Besides removing visualization plugin, Rhythmbox 3.4.2 features responsiveness improvements during media player sync, better network buffering when crossfading is enabled, and various bug-fixes (or feature request) including:

  • Critical Assertion Errors
  • Add --version command option.
  • Rhythmbox crashed with SIGSEGV during import
  • Expand playing icon column in entry view
  • Import hangs for special file
  • Playqueue UI improvements
  • Memory leak in error handling of utimes on podcast-timestamp
  • Open settings crashes the app
  • build failure with gcc 7.1.1
  • Keyboard navigation with tab is broken by search entry widget

How to Install Rhythmbox 3.4.2 in Ubuntu:

The project leader for Ubuntu Budgie, fossfreedom, was maintaining PPA with Rhythmbox package and its plugins, though they are not updated for a period of time.

So I uploaded Rhythmbox 3.4.2 into the PPA, available for Ubuntu 16.04, Ubuntu 17.04, and Ubuntu 17.10.

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

sudo add-apt-repository ppa:ubuntuhandbook1/apps

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

2. Then upgrade the music playing application via Software Updater:

or upgrade your system via command:

sudo apt-get update && sudo apt-get upgrade

How to remove:

To revert back to stock version of Rhythmbox in your Ubuntu, purge the PPA as well as downgrade the player via command:

sudo apt-get install ppa-purge && sudo ppa-purge ppa:ubuntuhandbook1/apps

If it’s working good, you may still remove the PPA repository via Software & Updates utility under Other Software tab.

Yarock 1.2.0 Released! How to Install it via PPA

Last updated: October 8, 2017

Yarock, a Qt music player designed to provide a clean music collection based on album cover art, reached 1.2.0 release a few hours ago.

It has been one year since the last update of Yarock music player. And Yarock 1.2.0 features:

  • Configurable custom cover art size
  • Redesign player tool bar with expanded tool bar mode
  • Replace Echonest with Spotify web service for artist image.
  • Add option to prevent downloading artist image from internet.
  • Change & fix many lyrics provider services
  • Changes: Many minors ui changes and improvments

How to install yarock 1.2.0 in Ubuntu:

There are a few third-party PPAs contain yarock packages for Ubuntu. At the moment, you can install the 1.2.0 release via this PPA in Ubuntu 14.04, Ubuntu 16.04, Ubuntu 17.04, Ubuntu 17.10, and derivatives.

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

sudo add-apt-repository ppa:ubuntuhandbook1/apps

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

2. Then install the player either via Synaptic Package Manager (after clicking refresh), or by running commands:

sudo apt-get update

sudo apt-get install yarock

Once installed, launch the music player from your application launcher and enjoy!

How to Remove:

To remove the software, use Synaptic Package Manager or run command:

sudo apt-get remove --autoremove yarock

And remove the PPA by launching Software & Updates utility and navigating to Other Software tab.

Visual studio code reached the 1.17 release a day ago with Mac OS touch bar support, and some performance improvements.

VS Code 1.17 features:

  • Mac OS Touch Bar actions for navigation and debugging.
  • Folding now supports region markers.
  • Terminal rendering is up to 45 times faster with new canvas-based rendering engine
  • Automatically show module and path import suggestions while coding
  • Debug Console messages show source location (optionally)
  • Built-in Dark+ and Light+ themes now highlight regular expression components
  • new SOURCE CONTROL PROVIDERS section to view changes in multiple source control repositories.

See the video about VS Code 1.17:

How to Install VS Code 1.17 in Ubuntu:

The official .deb package for Debian/Ubuntu is available for download at the link below:

Then install it via either Gdebi package manager or command (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.

Boring with the default purple login screen background in Ubuntu 18.04? Well, here’s how to make a change by hacking the css file.

UPDATE 2024: This tutorial is outdated and only work for old Ubuntu 18.04!! For most recent Ubuntu versions, see this tutorial instead!

Ubuntu since 17.10 switches to Gnome 3 Desktop and GDM display manager. Although there are options to change desktop wallpaper and lock screen background (it’s actually screen saver with date & time displayed), the login screen is always purple.

In the picture above, I’ve changed the login background to the image “Aardvark_Wallpaper_Grey_4096x2304.png” locate in /usr/share/backgrounds.

1. Move your favorite image to /usr/share/backgrounds:

It’s better to move the image you want to set as login background to system pictures folder: /usr/share/backgrounds.

To do so, open terminal via Ctrl+Alt+T, then either run command:

sudo cp PATH/TO/YOUR/IMAGE /usr/share/backgrounds/

or run command to open file browser via root and then do copy and paste in that window:

xhost +local: && sudo nautilus /usr/share/backgrounds/

2. Edit the css file that define GDM login background:

Open terminal (Ctrl+Alt+T) and run command to edit file /etc/alternatives/gdm3.css, which is linked to /usr/share/gnome-shell/theme/gdm3.css:

xhost +local: && sudo gedit /etc/alternatives/gdm3.css

Input your password (no visual feedback while typing) when it prompts and hit Enter. And of course back up the file before editing.

3. When the file opens, go to menu (right after ‘Save’ button) -> find and find out following section:

#lockDialogGroup {
  background: #2c001e url(resource:///org/gnome/shell/theme/noise-texture.png);
  background-repeat: repeat; }

change the lines into:

#lockDialogGroup {
  background: #2c001e url(file:///usr/share/backgrounds/Aardvark_Wallpaper_Grey_4096x2304.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center; }

Replace Aardvark_Wallpaper_Grey_4096x2304.png with your picture file name.

Finally save the file and restart your computer to apply changes.

NOTE: these changes may be overwritten in case of an system update with GDM packages. Please let me know if you find a good way to change the GDM3 login background in Ubuntu 17.10.

For notebook or PC with a touchpad, you’ll find that tap clicking function does not work in the GNOME login screen out-of-the-box, either in Ubuntu or other Linux.

You may hit Enter on keyboard to login after typing password. It will however more convenient if tap to click works when trying to select another user, session, or upper right corner menu. And here’s how to enable this function in Ubuntu 22.04 and Ubuntu 20.04.

UPDATE: There’s now graphical GDM-Settings configuration tool, can do the job as easy as few mouse clicks.

Enable Tap Clicking in GDM Login Screen.

Both the System Settings and ‘Dconf Editor’ configuration tool have option to toggle ‘Tap to Click’ in Ubuntu. However, none works for the login screen due to permission issue. You need the gdm system user privilege to do the setting.

1.) Firstly, open terminal by either searching from the overview screen or pressing Ctrl+Alt+T on keyboard.

2.) For Ubuntu 22.04, you have to first install the dbus-x11 package for dbus-launch command:

sudo apt install dbus-x11


3.) When terminal opens, run command to add user gdm to the control list:

xhost SI:localuser:gdm

It will indicate that ‘localuser:gdm being added to access control list’.

4.) Finally run gsettings command to enable ‘tap to click’ using gdm user privilege:

sudo -u gdm gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true

For Ubuntu 22.04, add dbus-launch flag in command, so it will be:

sudo -u gdm dbus-launch gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true

If you want to do more settings about the GNOME login screen, you may first install “Dconf Editor” and launch the tool via gdm system user. To do so, paste the command below into terminal and hit run:

xhost SI:localuser:gdm && sudo -u gdm dconf-editor

When it opens, navigate to “org/gnome/login-screen“. There you may toggle settings for disable user list, enable fingerprint, smartcard authentications, and more.

That’s all. Enjoy!

RawTherapee, an open-source cross-platform raw image processing program, reached the 5.3 release a few days ago with new features, performance improvements and numerous bug-fixes.

RawTherapee 5.3 release highlights:

  • CIECAM02 enhanced with control over the scene and viewing conditions.
  • CIECAM02-friendly “Average Surround” color theme and L* middle gray preview background color, takes into account human vision and color appearance with regard to the surrounding color.
  • Manually save the collapsed/expanded state of tools.
  • Lensfun support, for automatic (and manual) profiled lens correction.
  • ACES, DCI-P3 Theater and DCI-P3 D65 output color profiles.
  • Numerous speed optimizations and bug fixes.

How to Install RawTherapee 5.3 in Ubuntu:

Dariusz Duma’s PPA contains the latest RawTherapee packages for Ubuntu 16.04, Ubuntu 17.04, Ubuntu 17.10, and their derivatives.

1. Open terminal either via Ctrl+Alt+T or by searching for “Terminal” from app launcher. When it opens, run command:

sudo add-apt-repository ppa:dhor/myway

Input your password (no visual feedback when typing) when it prompts and hit Enter to add the PPA.

2. After that, upgrade the software via Software Updater from an existing release:

The upgrading process may be kept back if you were installing it from Ubuntu Software App.

A workaround is simply running following commands instead to install or upgrade RawTherapee:

sudo apt-get update

sudo apt-get install rawtherapee

How to Remove:

To uninstall the free raw developer, run command in terminal:

sudo apt-get remove --autoremove rawtherapee

And remove the PPA via “Software & Updates” utility under Other Software tab, by removing the line says “http://ppa.launchpad.net/dhor/myway/ubuntu”.