Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Sunday, June 15, 2014

Netflix & Amazon Prime Video in Ubuntu 14.04

Pipelight uses a patched version of WINE to install the Microsoft Silverlight plugin used by Netflix and Amazon Prime Video. Pipelight automatically installs, configures and updates all the necessary components and dependencies for video playback. Once installed Silverlight will behave just like any other normal browser plugin. In order to watch Netflix and and Amazon Prime Video after installing Pipelight, you will need to set Firefox to spoof a compatible User-Agent String. Once configured playback works seamlessly.

Add the Pipelight's Ubuntu Personal Package Archives (PPA)
sudo apt-add-repository ppa:pipelight/stable
Update your system
sudo apt-get update
Install Pipelight and the necessary dependencies
sudo apt-get install --install-recommends pipelight-multi
Update the Pipelight plugin
sudo pipelight-plugin --update
Enable Pipelight for every user on your system
sudo pipelight-plugin --enable silverlight
Install the Firefox add-on UAControl. There are other add-ons that work but UAControl  works automatically. If you can not get UAControl working for you, you can try another method.

To access UAcontrols preferences either navigate to Tools>Add-ons or use the key combination Cltrl+Shift+A

Click Add Site and enter the website you want to send a specific user-agent string
www.netflix.com
www.amazon.com
And use one of the following user-agent strings:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120427 Firefox/15.0a
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0
Mozilla/5.0 (Windows NT 6.1; rv:23.0) Gecko/20131011 Firefox/23.0


On my Dell XPS 13 the first string works for playback, on my desktop the second string works. Don't be discouraged. Try each string after restarting your browser until you find one that works.

Source

Sunday, June 1, 2014

Install Microsoft Office In Linux

PlayOnLinux is a graphical front-end for the Wine software compatibility layer which aims to simplify the installation of Windows-based applications and games on Linux. It uses an online database of scripts to apply to different applications that need special configuration.

There are many different ways to install Microsoft Office and other Windows programs in Linux but I enjoy the easy and simplicity of PlayONLinux.


To intall PlayOnLinux
sudo apt-get install playonlinux


The first time you run PlayOnLinux you'll be greeted with a wizard. Make sure you have an internet connection and hit next.



PlayOnLinux will update itself



Navigate to Install>Office>Microsoft Office 2010



A reminder will pop up, leave the default location and do not tick the checkbox 'Run the program' if asked. Click OK.



The Microsoft Office 2010 installation will begin



You can install office from a DVD or .exe file




Once you select your install media, PlayOnLinux will download and install the necessary software



And prepare Microsoft Office for installation on Linux



Enter your Product Key



 Accept the Terms and Conditions



 Click install now, to begin the process


Allow PlayOnLinux install Microsoft Office


Installation Complete




Now Microsoft Office is installed and configured

Saturday, May 24, 2014

Bit Perfect Audio in Ubuntu

Your operating system, music player, and sound card all work together to process the audio on your computer. While these settings are helpful, the processing of your audio by these devices often leads to distortion and a degradation in quality. Setting up bit perfect audio playback ensures that your audio goes directly to your preferred digital to analog converter (DAC) without alterations; giving you the best possible sound reproduction from your system.


I recently picked up a Schiit Stack for my desktop. Being impulsive, I bought it before I really knew how to setup bit perfect audio in Linux. After a lot of research and a bit of frustration, I found a few viable methods for setting bit perfect audio in Ubuntu.

Ubuntu and many distributions use PulseAudio to pass audio from applications and your hardware. As a burgeoning audiophile I don't really like that it re-samples the audio it processes. If you would like to get bit perfect audio with Pulse, I found an excellent guide that walks your through the steps. But I don't feel that that method is suitable for what I wanted to do on my system and requires more CPU and RAM usage. I wanted a simple and elegant solution for sending my audio stream directly to my DAC and let the  Modi process my audio.

In order to do this I used Advanced Linux Sound Architecture (ALSA) and Gmusicbrowser. The setup and configuration is incredibly easy and only involves a couple of terminal commands (highlighted in blue).


I'm using Xubuntu 14.04 but this guide will work in any Ubuntu/Debian derivative and many modern GNU/Linux distributions.

For non Ubuntu users you need to make sure the necessary ALSA tools are installed (change the sudo apt-get command with whatever is appropriate for your distribution) 
sudo apt-get install alsa alsa-utils

Install gmusicbrowser:
sudo apt-get install gmusicbrowser

Install the correct codecs for mp3, flac, ogg
sudo apt-get install gstreamer0.10-plugins-ugly flac libvorbis0a



This guide installs all the necessary dependencies for stock gmusicbrowser installs and audio playback. Consult the gmusicbroswer site for additional plugin dependencies

List Your audio devices/sound card
a play -l


As you can see my Schiit Modi DAC is listed as card: 1


Alternatively you can use alsa-mixer to find your audio device, once you enter the command press F6 to list your sound card


Now start gmusicbrowser and navigate to Settings>Audio:

Change output device to: alsa

Then click on advanced options 
Enter the correct sound card for your device, use the formula hw:X,0 replacing the X with your prefered sound card. For my DAC I entered hw:1,0

I really enjoy this setup, my audio plays from gmusicbrower without being touched and everything else plays through my speakers.

You can use other music players in Linux to achieve bit perfect playback in Linux, I also like DeaDBeef. Head-Fi user Rizlaw did an excellent write up other music players and his guides inspired this post.

Additionally you can also set VLC to use ALSA to send your audio directly to your DAC. You can find the Audio configuration setting under under Tools>Preferences.

Set Output module to ALSA audio output
And Devices to The Name of Your DAC, USB Audio Direct Hardware