Archives For jimingkui

Install KeePassX 2 with YubiKey Support in Ubuntu

Last updated: December 28, 2015

KeePassX 2 YubiKey support

For those who want the YubiKey support for KeePassX 2.0, a new stable series released a month ago, here’s a PPA built the binaries a few days ago for Ubuntu 15.10, Ubuntu 15.04, and Ubuntu 14.04.

YubiKey (a USB authentication device) support is added by configuring a YubiKey slot to operate in HMAC-SHA1 challenge-response mode. The mechanism works by submitting the database master seed as a challenge to the YubiKey which replies with a HMAC-SHA1 cryptographic hash. The resultant hash is then hashed with the other keys (password, keyfile) to generate the final key used to encrypt the database.

How to Install KeePassX 2.0 with YubiKey support:

Open terminal from Unity Dash, App Launcher, or via Ctrl+Alt+T shortcut key. When it opens, paste below command one by one and hit run:

1. Add YubiKey stable PPA:

sudo add-apt-repository ppa:yubico/stable

Type in your password when it asks, no visual feedback so just type in mind, and hit Enter to continue.

yubikey-ppa

2. Add the KeePassX 2 PPA built with YubiKey support:

sudo add-apt-repository ppa:hda-me/keepassx2-yubico

3. Finally update package cache and install both keepassx and yubikey-personalization-gui:

sudo apt-get update

sudo apt-get install yubikey-personalization-gui keepassx

4. (Optional) After installation, you may keep the PPAs for receiving future updates, or disable/remove them via Software & Updates -> Other Software.

manage-ppa

For more information: github.com/keepassx/keepassx/pull/52

SuperTux 0.4.0

SuperTux, a classic Super Mario-like 2D jump ‘n run sidescroller game, has reached the 0.4.0 release, a new STABLE release since 0.1.3 after more than 10 years of development.

supertux-040

Compared to 0.1.3, this release features:

  • a nearly completely rewritten game engine based on OpenGL, OpenAL, SDL2, …
  • support for translations
  • in-game manager for downloadable add-ons and translations
  • Bonus Island III, a for now unfinished Forest Island and the development levels in Incubator Island
  • a final boss in Icy Island
  • new and improved soundtracks and sound effects
  • new badguys, bonuses and power-ups (air-, earth- and ice-flower)
  • a halloween tilemap
  • new graphic effects (glowing objects, particles, …)
  • levels and worldmaps are scriptable using squirrel
  • much more game objects: trampolines, switches, portable stones, wind, moving platforms, … – most of them have scripting APIs
  • improved statistics
  • many invisible changes, like unit tests, efficiency improvements and more bugfixes
  • much more..

Compared to the latest beta, 0.3.5a, SuperTux 0.4.0 features updated translations, many bugfixes, more levels, and much more. See the release notes for details.

How to Install SuperTux 0.4.0 in Ubuntu:

For Ubuntu 16.04 LTS, the new release has been made into the official Ubuntu repositories, just search for and install the game via Software Center.

For Ubuntu 15.10, Ubuntu 14.04, and Mint 17.x, run below commands one by one in terminal to install it from third-party PPA:

sudo add-apt-repository ppa:ubuntuhandbook1/apps

sudo apt-get update

sudo apt-get install supertux supertux-data

For those who don’t want to add PPA, grab the .deb packages from links below:

1. First download and install supertux-data for both 32-bit & 64-bit:

supertux-data for Ubuntu 15.10

supertux-data for Ubuntu 14.04

2. Then install the .deb package for supertux:

supertux for Ubuntu 15.10: 32-bit | 64-bit

supertux for Ubuntu 14.04: 32-bit | 64-bit

Firefox 43.0 Released, How to Upgrade in Ubuntu

Last updated: December 16, 2015

Mozilla Firefox

Mozilla Firefox web browser has reached the 43 release on Tuesday, available for upgrade in Ubuntu 15.10, Ubuntu 15.04, Ubuntu 14.04, Ubuntu 12.04 and their derivatives.

What’s new in Firefox 43:

  • Private Browsing with Tracking Protection offers choice of blocking additional trackers
  • Improved API support for m4v video playback
  • Firefox 64-bit for Windows is now available via the Firefox download page
  • Users can choose search suggestions from the Awesome Bar
  • On-screen keyboard displayed on selecting input field on devices running Windows 8 or greater
  • Firefox Health Report has switched to use the same data collection mechanism as telemetry

Also various security fixes and developer improvements are included in this release. See the release note.

How to Install / Upgrade:

Canonical has made the new release into the updates & security repositories for all current Ubuntu releases.

To install it, just run Software Updater and click install available updates after checking for updates:

Firefox 43 available for upgrade

Don’t see it in the list? Launch Software & Updates, select download from ‘Main Server’ and make sure the security and updates repositories are enabled in Updates tab.

StepMania PPA

StepMania is a free dance and rhythm game for Windows, Mac, and Linux. It features 3D graphics, keyboard and “dance pad” support, and an editor for creating your own steps.

StepMania 5.0.10, the most recent stable release, has been released for more than a month. Due to lack of Ubuntu binaries, I’ve finally built this release into PPA available for Ubuntu 15.10, Ubuntu 15.04 and Ubuntu 14.04.

StepMania 5.0.10 in Ubuntu

Install StepMania 5 via PPA:

UPDATE: The PPA supports until Ubuntu 18.04! For Ubuntu 20.04 and later, please use Flatpak package instead, see this step by step guide for details

Before getting started, remove previous release and backup songs if any.

1. Add PPA.

Open terminal from Unity Dash, App Launcher, or via Ctrl+Alt+T shortcut keys. When it opens, paste below command and hit enter:

sudo add-apt-repository ppa:ubuntuhandbook1/stepmania

StepMania PPA

Type in your password (no visual feedback just type in mind) when it asks and hit Enter to continue.

2. After that, search for and install stepmania via Synaptic Package Manager after clicking Refresh.

Or run below commands one by one in terminal to refresh index and install the game:

sudo apt-get update

sudo apt-get install stepmania

For those who don’t want to add PPA, grab the .deb packages from This Page. Ubuntu 14.04 and its derivatives need FFmpeg.

3. (Optional) To remove the PPA and uninstall the game, run:

sudo add-apt-repository --remove ppa:ubuntuhandbook1/stepmania

sudo apt-get remove stepmania stepmania-data

In addition, after first launch the game will create .stepmania-5.0 folder in user root directory. Press Ctrl+H to view this hidden folder and install Themes, Songs, etc into sub-folders.

Song directory structure: root folder (.stepmania-5.0/Songs) -> group folder -> song/simfile folder -> *.png, *.mp3/*.ogg, *.sm/*.ssc/etc files

Get more songs: stepmania.com/forums/songs/

install songs

LightTable IDE

The Light Table IDE has just reached a new stable release after more than one year of development. Now it provides 64-bit only binary for Linux.

Changes in LightTable 0.8.0:

  • CHANGED: We have switched to Electron from NW.js
  • CHANGED: LT’s releases and self-updating processes are completely in the open on Github
  • ADDED: LT can be built from source with provided scripts across supported platforms
  • ADDED: Most of LT’s node libraries are installed as npm dependencies instead of as forked libraries
  • ADDED: Significant documentation. See more below
  • FIX: Major usability issues on >= OSX 10.10
  • CHANGED: 32-bit linux is no longer an official download. Building from source will still be supported
  • FIX: ClojureScript eval for modern versions of ClojureScript
  • More details at github.com/LightTable/LightTable/releases

LightTable 0.8.0

How to Install Light Table 0.8.0 in Ubuntu:

Below steps show you how to install the official binary in Ubuntu. Works on all current Ubuntu releases (64-bit only).

Before getting started, please make a backup if you have a previous release installed.

1. Download the Linux binary from link below:

lighttable-0.8.0-linux.tar.gz

2. Open terminal from Unity Dash, App Launcher, or via Ctrl+Alt+T keys. When it opens, paste below command and hit enter:

gksudo file-roller ~/Downloads/lighttable-0.8.0-linux.tar.gz

open-via-fileroller

Install gksu from Ubuntu Software Center if the command does not work.

3. Previous command opens the downloaded archive via Archive Manager using root user privilege.

When it opens, do:

  • right-click and rename the folder name to LightTable
  • extract it to Computer -> /opt/ directory.

extract-lighttable

Finally you should have the LightTable installed to /opt/ directory:

lighttable-in-opt

4. Create a launcher so you can start LightTable from Unity Dash or App Launcher.

Open terminal and run below command to create & edit a launcher file for LightTable:

gksudo gedit /usr/share/applications/lighttable.desktop

When the file opens via Gedit text editor, paste below and save the file:

[Desktop Entry]
Version=1.0
Type=Application
Name=Light Table
GenericName=Text Editor
Comment=Open source IDE that modify, from running programs to embed websites and games
Exec=/opt/LightTable/LightTable %F
Terminal=false
MimeType=text/plain;
Icon=/opt/LightTable/resources/app/core/img/lticon.png
Categories=TextEditor;Development;Utility;
StartupNotify=true
Actions=Window;Document;

Name[en_US]=Light Table

[Desktop Action Window]
Name=New Window
Exec=/opt/LightTable/LightTable -n
OnlyShowIn=Unity;

[Desktop Action Document]
Name=New File
Exec=/opt/LightTable/LightTable --command new_file
OnlyShowIn=Unity;

So it looks like:

lighttable-launcher

Finally launch the IDE from Unity Dash or Application Launcher and enjoy!

KeePassX 2

KeePassX, a native Linux port of KeePass password manager, finally reached the 2.0 release after several years of development.

KeePassX 2 has been rewritten from scratch. It uses the new .kdbx (same as KeePass 2) database format. You can import your .kdb database from 0.4 series from menu Database > Import KeePass 1 database.

New features include:

  • Multiple attachments per entry
  • Add custom key/value pairs to entries
  • Open multiple database in one window

For more details, see official release note.

KeePassX 2

How to Install KeePassX 2 in Ubuntu:

The official KeePassX PPA does not update at the moment, but a third-party PPA has built the KeePassX 2.0 for Ubuntu 16.04 LTS, Ubuntu 15.04, and Ubuntu 14.04 LTS.

1. Add PPA

Open terminal from Unity Dash, App Launcher, or via Ctrl+Alt+T shortcut key. When it opens, paste below command to add the PPA:

sudo add-apt-repository ppa:eugenesan/ppa

keepassx-3thparty-ppa

Update: The 14.04 package so far is broken in the eugenesan/ppa. Use this PPA instead with yubikey support:

sudo add-apt-repository ppa:hda-me/keepassx2-yubico

Type in your password when it asks (no visual feedback just type in mind) and hit Enter to continue.

2. After that, upgrade KeePassX by running Software Updater. Or run below commands one by one in terminal:

sudo apt-get update

sudo apt-get install keepassx

For those who don’t want to add PPA, grab the .deb installer directly from HERE.

3. (Optional) As a third-party PPA, it also contains many other applications. You may remove the PPA after installation by either using Software & Updates -> Other Software tab, or running below command in terminal:

sudo add-apt-repository --remove ppa:eugenesan/ppa && sudo apt-get update

Time & Date format

This quick tutorial is going to show you how to customize your Time & Date indicator in Ubuntu panel, though there are already a few options available in the settings page.

custom-timedate

This does no longer work for Ubuntu 18.04 and higher as they switched to Gnome Desktop, see this tutorial instead.

To get started, search for and install dconf Editor in Ubuntu Software Center. Then launch the software and follow below steps:

1. When dconf Editor launches, navigate to com -> canonical -> indicator -> datetime. Set the value of time-format to custom.

custom time format

You can also do this via a command in terminal:

gsettings set com.canonical.indicator.datetime time-format 'custom'

2. Now you can customize the Time & Date format by editing the value of custom-time-format.

customize-timeformat

You can also do this via command:

gsettings set com.canonical.indicator.datetime custom-time-format 'FORMAT_VALUE_HERE'

Interpreted sequences are:

  • %a = abbreviated weekday name
  • %A = full weekday name
  • %b = abbreviated month name
  • %B = full month name
  • %d = day of month
  • %l = hour ( 1..12), %I = hour (01..12)
  • %k = hour ( 1..23), %H = hour (01..23)
  • %M = minute (00..59)
  • %p = AM or PM, %P = am or pm.
  • %S = second (00..59)
  • open terminal and run command man date to get more details.

Some examples:

custom time format value: %a %H:%M %m/%d/%Y

exam-1

%a %r %b %d or %a %I:%M:%S %p %b %d

exam-2

%a %-d %b %l:%M %P %z

exam-3

free broadcaster software

OBS-Studio is a free and open-source software for video recording and live streaming. The software features:

  • Encoding using H264 (x264) and AAC.
  • Support for Intel Quick Sync Video (QSV) and NVENC.
  • Unlimited number of scenes and sources.
  • Live RTMP streaming to Twitch, YouTube, DailyMotion, Hitbox and more.
  • File output to MP4 or FLV.
  • GPU-based game capture for high performance game streaming.
  • DirectShow capture device support (webcams, capture cards, etc).
  • Windows 8 high speed monitor capture support.
  • Bilinear or lanczos3 resampling.

The current release is OBS Multiplatform 0.12.3, which added m3u8 file format for recording and fixed a few bugs.

Sorry that OBS doesn't work for my laptop's integrated graphics card. Picture from linux distro community forum

Sorry that OBS doesn’t work for my laptop’s integrated graphics card. Picture from linux distro community forum

Install OBS-Studio in Ubuntu via PPA:

The software is available in a PPA repository for Ubuntu and derivatives users. Ubuntu 15.10 and Ubuntu 14.04 LTS are supported so far.

1. Add the PPA

Open terminal from Unity Dash, App Launcher, or via Ctrl+Alt+T shortcut keys. When it opens, paste below command and hit enter:

sudo add-apt-repository ppa:obsproject/obs-studio

obs-studio-ppa

Type in your password when it asks, no visual feedback so just type in mind, and hit Enter to continue.

2. For Ubuntu 14.04 LTS and derivatives only.

The Software requires ffmpeg which is not included in 14.04’s official repositories. If you don’t have ffmpeg installed, add below PPA via command:

sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next

3. After that, search for and install obs-studio via Synaptic Package Manager after clicking the Refresh button.

Or run below commands one by one in terminal:

sudo apt-get update

sudo apt-get install obs-studio

How to Uninstall:

You may remove both PPAs by launching Software & Updates and navigating to Other Software tab, and remove the broadcaster software via Synaptic Package Manager or by running below command in terminal:

sudo apt-get remove obs-studio && sudo apt-get autoremove

Install Enlightenment e20 in Ubuntu 15.10, 14.04

Last updated: December 2, 2015

Enlightenment E20

The Enlightenment 0.20 was released two days ago. Here’s how to install it via PPA in Ubuntu 15.10, Ubuntu 14.04, Ubuntu 12.04, and derivatives.

The E20 development cycle has come to a close, with 1890 patches submitted by over 50 developers in the course of 441 days.
25+ reported Coverity analyzer issues and 165 tickets were addressed during this time (based on commit message tagging).
I’d like to personally thank everyone who contributed, whether by submitting patches, writing documentation, reporting bugs, or simply providing feedback on IRC.

Enlightenment E20 features:

  • Full Wayland support
  • New screen management infrastructure and dialog
  • New audio mixer infrastructure and gadget
  • Many internal widgets replaced with Elementary
  • Improved FreeBSD support
  • Geolocation module

Enlightenment E20

How to Install Enlightenment E20 in Ubuntu:

There’s a PPA repository contains stable version of e20 packages for Ubuntu 15.10, Ubuntu 15.04, Ubuntu 14.04, and Ubuntu 12.04.

1. Add PPA

Open terminal from Unity Dash, App Launcher, or via Ctrl+Alt+T shortcut key. When it opens, paste below command and hit Enter:

sudo add-apt-repository ppa:niko2040/e19

e20-ppa

Type in your password when it asks, no visual feedback just type in mind, and hit Enter to continue.

2. After that, install enlightenment via Synaptic Package Manager. Or run below commands one by one in terminal:

sudo apt-get update

sudo apt-get install enlightenment

You may also install Rage video player and Terminology terminal emulator via:

sudo apt-get install rage terminology

Once installed, log out and log in back with Enlightenment session.

0 A.D. PPA

The nineteenth alpha version of 0 A.D., a free, open-source game of ancient warfare, was released yesterday. PPA’s ready for Ubuntu 16.04, Ubuntu 15.10, Ubuntu 14.04, and Ubuntu 12.04.

0 A.D. Alpha 19 named ‘Syllepsis’. It features new victory modes, a ceasefire game mode, attack coordination, 3 new skirmish maps, new animals, visual replay, and eight times maximum map height support. See release note.

Install 0 A.D. from PPA:

There’s an official PPA repository for all current Ubuntu releases and derivatives. Follow below steps to add PPA and install the game.

1. Add 0 A.D. PPA

Open terminal from Unity Dash, App Launcher, or via Ctrl+Alt+T shortcut key. When it opens, paste below commands and hit Enter:

sudo add-apt-repository ppa:wfg/0ad

0ad-ppa

Type in your password when it asks, no visual feedback so just type in mind, and hit Enter to continue.

2. Install or Upgrade the game.

If you have a previous version installed on your system, upgrade the game by launching Software Updater and installing available updates after checking for updates:

upgrade 0 A.D. via Software Updater

Or you may run below commands one by one in terminal to refresh system cache and install (or upgrade) the game:

sudo apt-get update

sudo apt-get install 0ad

3. (Optional) Uninstall

remove the PPA via Software & Updates -> Other Software tab and remove the 0 A.D. using Software Center.