Category Archives: Linux Stuff

Linux Stuff

Debian Switches Back To GNOME As Default Desktop Environment

Debian GNOME Desktop

Debian switched to Xfce as the default desktop environment back in November 2013. But that didn’t last long because a few days ago, Debian restored GNOME as the default desktop, based on preliminary results from the Debian Desktop Requalification for Jessie.

According to Joey Hess, the Debian developer who performed this change, the main reasons for Debian switching back to GNOME as the default desktop are related to accessibility and systemd integration:

Some desired data is not yet available, but at this point I’m around 80% sure that gnome is coming out ahead in the process. This is particularly based on accessibility and to some extent systemd integration“.

– Joey Hess, Debian developer

As far as accessibility is concerned, Joey mentions that GNOME and MATE are ahead by a large margin while other desktops still need significant upstream work. As for Systemd, GNOME is ahead of all desktops which are “stuck paying catch-up to ongoing changes in this area“.
Of course, those aren’t the only reasons that influenced this decision. Recent GNOME 3 improvements are fairly important too and so is the fact that unfortunately, the Debian Xfce team is pretty small.
Basically, the only reason not to switch to GNOME was the media size, but it looks like that wasn’t enough to block this change.
If you’re wondering why MATE wasn’t selected as the default desktop environment for Debian, well, that’s because MATE is new in Debian so it doesn’t have many users yet.
The release date for the next Debian stable version, codenamed “Jessie” (8.0), is yet to be announced. The freeze is expected on the 5th of November 2014.
Do you use Debian? What do you think?

via G+

Read More

Counter Strike: Global Offensive Available For Linux

Valve finally released Counter Strike: Global Offensive for Linux.

Counter Strike: Global Offensive (CS:GO) is  an objective-based multiplayer first-person shooter in which players join either the Terrorist or Counter-Terrorist team. CS:GO uses the Source engine and it was initially released in August, 2012, as the fourth game in the Counter-Strike franchise.

Counter Strike: Global Offensive Linux

Compared to the previous games in the series, CS:GO includes ranked match-making, extra weapons and equipment, new and revamped maps along with extra modes (Arms Race, Arsenal: Demolition – which combines Defuse and Arms Race, and Deathmatch) and more.
In my short test under Ubuntu 14.10, I didn’t encounter any major issues while playing CS:GO, even with my laptop’s integrated Intel graphics. However, since the game was just released for Linux, expect to find some bugs (check out this Reddit thread for some potential issues) – if you encounter bugs, report them @ GitHub.
Note that game Steam page wasn’t updated to show the newly added Linux support so it won’t show up in the Linux section yet, but this should change soon.

Buy Counter Strike: Global Offensive via Steam (£11.99 / $14.99)

via Reddit

Read More

NSS Updated To Allow HTML5 Netflix Playback In Ubuntu

A while back we wrote about enabling HTML5 playback for Netflix in Ubuntu, but that required updating NSS and using an user-agent extension in Google Chrome. Well, NSS 3.17 landed today in Ubuntu 14.04 and 12.04, and thanks to this, Netflix should soon use HTML5 playback in Ubuntu, without requiring any tweaks.

netflix HTML5 ubuntu

Right now, the only tweak required to use Netflix with HTML5 playback in Ubuntu is to use a custom user agent in Google Chrome, but soon that won’t be needed because a Netflix developer posted a message on the Ubuntu-dev mailing list a few days ago, asking if Canonical plans to update NSS to version 3.16.2 or newer and saying that if that happens, “Netflix would be able to make a change so users would no longer have to hack their User-Agent to play.
And with today’s update, all the supported Ubuntu versions (12.04, 14.04 and 14.10 – currently in development) include NSS 3.17 so all that’s left is for Netflix to add Ubuntu to their supported OS list, and Ubuntu users will have native Netflix HTML5 payback out of the box.
Of course, Google Chrome (stable – you no longer need Chrome Beta or Dev) is still needed, so it won’t work with any other browser under Linux, because Netflix HTML5 requires the Encrypted Media Extensions which are bundled with it.
If you don’t want to wait until Netflix whitelists Ubuntu so it can use HTML5, see THIS article (skip to the user-agent part) for how to add a custom user-agent to Google Chrome so you can enjoy native Netflix HTML5 playback in Ubuntu today. Note that NSS 3.17 was just uploaded to the Ubuntu 14.04 and 12.04 repositories so it may take a while until it’s synchronized with the mirror you’re using.

seen @ Phoronix

Read More

Download Subtitles Via Nautilus / Nemo Context Menu With Periscope Or Subliminal

This article provides instructions for installing Periscope or Subliminal, two command line subtitle download tools, and how to add them to the Nautilus or Nemo context menu, so you can download subtitles with a simple click.

Some media players, such as SMPlayer for instance, come with built-in subtitle download support and for others you can install an extension to do this, like the VLSub VLC extension for instance.

But, most of these media players only use OpenSubtitles for downloading subtitles and, like any other website, OpenSubtitles can go offline at times. Also, using a single subtitle service limits the subtitle results.
For these reasons (well, and also because I use VLC 2.1 and VLSub doesn’t work with it), I use the once popular Periscope Python tool to download subtitles. Because the Periscope PPA wasn’t updated for a very long time (since Ubuntu 11.10), I uploaded the latest Periscope from Git to a PPA so if you need it, you can easily install it in recent Ubuntu versions.
Also, as Periscope wasn’t updated in a while and I’m not sure if the project is still alive and for how long it’s going to continue working, I also added Subliminal installation instructions to this article, including a Nautilus/Nemo script so you can download subtitles from the Nemo/Nautilus context menu via Subliminal.

Install and use Periscope in Ubuntu Or Linux Mint (Cinnamon) with Nautilus / Nemo or via command line

Periscope was once a pretty popular subtitle download tool for Linux. However, its developer isn’t very active lately and its PPA wasn’t updated for a long time. However, the tool still works well, or at least, it did in my test.
Periscope supports downloading subtitles from websites such as OpenSubtitles.org, Subscene.com, Addic7ed.com, Podnapisi and others.
Periscope can either be used via command line, or using Nautilus and Nemo extensions, which allow you to download subtitles from the Nautilus / Nemo context menu.

Periscope Nautilus extension

Periscope Nemo extension

1. Install Periscope in Ubuntu or Linux Mint

Important note: the WebUpd8 Subtitle Utils PPA, used below, is not compatible with the ppa:nvbn-rm/ppa (because the nvbn-rm PPA doesn’t use proper package names, they conflict with some packages from the Subtitle Utils WebUpd8 PPA as well as with some packages from the Ubuntu 14.10 repositories) so if you use that PPA, either purge it or don’t use the Subtitle Utils WebUpd8 PPA.

To install Periscope in Ubuntu 12.04, 14.04 or 14.10 / Linux Mint 17 or 13 via PPA, use the following commands:
sudo add-apt-repository ppa:webupd8team/subtitle-utils
sudo apt-get update
sudo apt-get install python-periscope

2. Install Periscope Nautilus / Nemo extensions

To install the Periscope Nautilus extension and restart Nautilus (required for the extension to show in the the Nautilus context menu), use the commands below:
sudo apt-get install periscope-nautilus
nautilus -q

Or, to install the Periscope Nemo extension and restart Nemo (required for the extension to show in the Nemo context menu), use the following commands:
sudo apt-get install periscope-nemo
nemo -q
Important note for Nemo users: if you don’t see a new item called “Find subtitles for this video” when right clicking a video file in Nemo, you may need to fix python-nemo as explained HERE (skip to step 4).

3. Configure Periscope

To be able to access the Periscope configuration file, either right click a video file in Nemo or Nautilus and select to download subtitles for it or download subtitles via command line (see below). After doing this, a configuration file called “config” should be created under ~/.config/periscope/, which should look like this:

[DEFAULT]
lang = en
lang-in-name = no
plugins =
Here you can set the default subtitle language (among other settings). So, to change the default subtitle language, open this file with a text editor – I’ll use Gedit for the command below:
gedit ~/.config/periscope/config

and change “lang” from “en” to the language you want to use for the subtitles downloaded using Periscope, then save the file.

To download subtitles using Periscope via command line, simply run:

periscope video.mp4

(where “video.mp4” is the video you want to download subtitles for).

Of course, you can pass the subtitle language directly via –language=LANG, etc. (but you need to change the configuration if you use the Nemo/Nautilus extension). To see all the available options, use:

periscope --help

To use it with Nemo / Nautilus, simply right click one or more video files and select “Find subtitles for this video”, like you can see in the screenshots above.

If you encounter issues with Periscope, report them @ GitHub.

Install and use Subliminal in Ubuntu or Linux Mint (Cinnamon) with Nautilus / Nemo or via command line

Subliminal is a python library to search and download subtitles, which comes with a command line interface. It supports subtitle websites such as Addic7ed, OpenSubtitles, Podnapisi, TheSubDB and TvSubtitles.
Below you’ll find instructions on installing Subliminal in Ubuntu or Linux Mint and how to add a Nemo / Nautilus script so you can easily download subtitles using Subliminal, from the Nemo / Nautilus context menu.

Subliminal Nautilus script

Subliminal Nemo script

1. To install Subliminal in Ubuntu or Linux Mint, we’ll use PIP:
sudo apt-get install python-pip
sudo pip install subliminal

Using Subliminal from the command line is pretty easy: you need to specify the subtitle language using “-l” and the video file(s) for which it should download the subtitle. Here’s an example on how to download subtitles for an episode from The Big Bang Theory (example via the Subliminal GitHub page):
subliminal -l en -- The.Big.Bang.Theory.S05E18.HDTV.x264-LOL.mp4

To see all the available options, use:

periscope --help

2. Install a Subliminal Nemo / Nautilus script

To be able to download subtitles using Subliminal from the Nemo or Nautilus context menu, use the commands below (note: the commands will download THIS Nemo / Nautilus script which I found HERE, but I modified it a bit so that it displays notifications):

– for Nautilus, Ubuntu 14.04 and newer:

sudo apt-get install wget libnotify-bin
mkdir -p ~/.local/share/nautilus/scripts
wget https://raw.githubusercontent.com/hotice/webupd8/master/download-subtitle -O ~/.local/share/nautilus/scripts/download-subtitle
chmod +x ~/.local/share/nautilus/scripts/download-subtitle
nautilus -q

– for Nautilus, Ubuntu 12.04:

sudo apt-get install wget libnotify-bin
mkdir -p ~/.gnome2/nautilus-scripts
wget https://raw.githubusercontent.com/hotice/webupd8/master/download-subtitle -O ~/.gnome2/nautilus-scripts/download-subtitle
chmod +x ~/.gnome2/nautilus-scripts/download-subtitle
nautilus -q

– For Nemo:

sudo apt-get install wget libnotify-bin
mkdir -p ~/.gnome2/nemo-scripts
wget https://raw.githubusercontent.com/hotice/webupd8/master/download-subtitle -O ~/.gnome2/nemo-scripts/download-subtitle
chmod +x ~/.gnome2/nemo-scripts/download-subtitle
nemo -q

3. To set the subtitle language used by the Subliminal Nautilus / Nemo script, open the file with a text editor, like Gedit:

– for Nautilus:, Ubuntu 14.04 and newer

gedit ~/.local/share/nautilus/scripts/download-subtitle

– for Nautilus, Ubuntu 12.04:

gedit ~/.gnome2/nemo-scripts/download-subtitle

– for Nemo:

gedit ~/.gnome2/nemo-scripts/download-subtitle

and change LANGUAGE=”en” to the language you want to use, then save the file.

Then, to use the Subliminal Nemo / Nautilus scripts, right click on a video file (or multiple video files) and select  Scripts > download-subtitle, as you can see in the screenshots above.

If you encounter issues with Subliminal, report them @ GitHub.

Read More

Geeknote: Command-Line Evernote Client

Geeknote is a command-line client for Evernote, useful to add notes to Evernote via Bash scripts, cron, applications that can’t directly use the Evernote SDK or to simply manage your Evernote notes from the command-line.

The tool supports all basic Evernote functions: it can create or delete notes, create notepads and tags, search notes (with filters) and of course, edit existing notes, but that’s about it. The application doesn’t support advanced features like adding attachments to your notes or downloading/opening existing attachments.

The default editor used by Geeknote is Nano, but you can change it to other console editors such as Vim, Emacs and so on and you can even use GUI text editors, like Gedit for instance.

Furthermore, Geeknote comes with a tool called gnsync, which allows synchronizing a folder containing text notes (it only works with text data!) with Evernote. This can be used to sync various logs or reports with Evernote under certain notebooks and add various tags automatically, but of course, there are many use cases for this.

Here are a few simple Geeknote examples (to simplify it, I didn’t add tags or notebooks):
$ geeknote create --title "Testing geeknote"
Note has been successfully created.

$ geeknote edit "Testing geeknote"
Note has been successfully saved.
$geeknote create --title "Testing geeknote 2"
Note has been successfully created.

$ geeknote find geeknote
Search request: intitle:geeknote
Total found: 2
1 : 22/09/2014 15:23 Testing geeknote
2 : 22/09/2014 15:24 Testing geeknote 2

$ geeknote show geeknote
Total found: 2
1 : 22/09/2014 15:23 Testing geeknote
2 : 22/09/2014 15:24 Testing geeknote 2
0 : -Cancel-
: 1
################## TITLE ##################
Testing geeknote
=================== META ==================
Created: 22/09/2014 15:23
Updated: 22/09/2014 15:24
----------------- CONTENT -----------------
A simple test note created using Geeknote.

And a screenshot:

For how to use Geeknote, see its documentation.

Install Geeknote

Before proceeding, please note that Geeknote doesn’t work with Ubuntu 12.04 / Linux Mint 13 because of an issue with the Evernote SDK for Python.
Debian / Ubuntu / Linux Mint (and derivatives) users can install Geeknote by using the commands below:
sudo apt-get install git python-thrift python-bs4 python-oauth2 python-html2text python-sqlalchemy python-setuptools
cd && git clone https://github.com/VitaliyRodnenko/geeknote.git
cd geeknote
sudo python setup.py install --record installed_files.txt
(the first command installs the required dependencies – there are 2 dependencies which aren’t available in the Ubuntu repositories, but Geeknote automatically downloads and installs them)

To be able to remove Geeknote later on, make sure you don’t delete the installed_files.txt file.
Arch Linux users can install Geeknote via AUR.
For other Linux distributions or Mac OS X, see the Geeknote GitHub page.
Once installed, authenticate Geeknote with Evernote by using the following command:
geeknote login
Note: Geeknote asks for a two-factor authentication code but if you didn’t set this up with Evernote, simply press Enter.

Then, check out its documentation to see how to create/edit notes, change the default editor, etc.

How to remove Geeknote in Debian / Ubuntu / Linux Mint

To remove Geeknote (assuming you installed the app using our instructions and you didn’t delete the “installed_files.txt” file), simply use the following command:
sudo xargs rm -v < ~/geeknote/installed_files.txt
(if you moved the installed_files.txt file, make sure you edit its path in the command above)

Read More

Wasteland 2 Officially Released

After 2,5 years of development, Wasteland 2, a single player post-apocalyptic RPG developed and published by inXile Entertainment, was released today and is available for Linux, Windows and Mac OS X on GOG.com, Steam or Humble Bundle Store.

Wasteland 2

Wasteland 2 is the direct sequel to 1988’s Wasteland RPG, which is considered to be the inspiration behind the Fallout series, and it was developed thanks to a successful Kickstarter campaign which received almost $3,000,000 in funding.
Below you can watch the Wasteland 2 Combat Trailer as well as the launch trailer, to get an idea on what the game is about:

(direct video link)

(direct video link)

Wasteland 2 is a turn-based tactical combat game set in an alternate history timeline, in which a nuclear holocaust took place in 1998. The game features hundreds of characters, thousands of variations on your Rangers’ appearance along with over 150 weapons, dozens of skills and more. You can read more about it on Wikipedia.

On Linux, Wasteland 2 has the following minimum system requirements:
  • Processor: 2.4ghz Intel Core 2 Duo or equivalent
  • Memory: 4 GB RAM
  • Graphics: NVIDIA GeForce GTX 260 or Radeon HD 4850 (512 MB VRAM)
  • Hard Drive: 30 GB available space

Buy Wasteland 2

Buy Wasteland 2 ($39.99 for the classic edition and $59.99 for the Digital Deluxe Edition*)

If you buy the game via GOG.com, you can download it using lgogdownloader, a tool which supports resuming unfinished downloads along with other useful features.
* The Deluxe Edition comes with free copies of Wasteland 1 and The Bard’s Tale games)

via Reddit

Read More

Gamepad Keyboard/Mouse Mapping App `AntiMicro` Sees New Release

AntiMicro 2.6 was released recently, getting two new turbo modes, an option to invoke the Game Controller mapping window from command line as well as experimental uinput support.

AntiMicro

For those not familiar with AntiMicro, this is an application that can be used to map keyboard and mouse buttons to gamepad buttons, useful for playing games with no gamepad or poor gamepad support.

AntiMicro is written in C++ using Qt for the graphical framework and it was created as a replacement for QJoyPad, which unfortunately is no longer being maintained. The application features controller stick support, 8-way controls, virtual Dpad support, profiles that can be loaded via command line and more.
The latest AntiMicro 2.6 includes the following changes:
  • added two new Turbo modes:
    • Gradient mode, which is used to change the key press time depending on the position of an axis (useful for racing games);
    • Pulse mode is used to change how many times a key press is invoked depending on the position of an axis (scrolling in a web browser using arrow keys).
  • fixed profile resetting in a couple of places;
  • added option to invoke Game Controller mapping window from command line. The final mapping string will be printed to stdout. This is useful for saving a SDL_GAMECONTROLLERCONFIG for your controller that can be used system wide. Any SDL 2 game can then be set up to use that mapping and it can be changed if needed;
  • profiles now use a unique .amgp file extension. Older xml profiles will continue to be supported;
  • fixed spring mouse mode so that it uses proper axis distance values;
  • set changing has been fixed for analog sticks and virtual dpads;
  • experimental uinput support has been added to the source code. Binary Linux packages will continue to utilize XTest for event generation for the time being. If you would like to test uinput integration then you will have to compile the program using -DWITH_UINPUT=ON and -DWITH_XTEST=OFF when running cmake. Playing Warsow 1.5.1 in Linux using antimicro requires using uinput integration. Also, keys can now be pressed in a tty.
Also, since our previous article on AntiMicro, the application has received an extensive number of new features and improvements, like spring mouse mode, joystick hotplugging support, Enhanced Precision mouse curve, various Steam OS optimizations (this is now default) and also, AntiMicro was ported to Windows. For more information, check out the AntiMicro changelog.

For more information on AntiMicro as well as a quick usage guide, see our previous article: Map Keyboard/Mouse Input To Your Gamepad With AntiMicro

Install AntiMicro in Ubuntu 14.04 / Linux Mint 17 via PPA

The AntiMicro developer created an Ubuntu PPA recently, which you can use to install the latest AntiMicro in Ubuntu 14.04 / Linux Mint 17 and derivatives. To add the PPA and install AntiMicro, use the following commands:
sudo add-apt-repository ppa:ryochan7/antimicro
sudo apt-get update
sudo apt-get install antimicro

Download AntiMicro

Download AntiMicro – packages available for Debian, Ubuntu and Windows, as well as souce code

Arch Linux users can install AntiMicro via AUR.

Note that the binaries aren’t built with uinput support yet. To enable uinput, you need to compile the application yourself using -DWITH_UINPUT=ON and -DWITH_XTEST=OFF when running cmake.

Also see: Get Xbox Gamepads Properly Configured In Ubuntu With ubuntu-xboxdrv

Read More