Home Blog Page 1238

How to Stream Content from a Linux System to Chromecast

Chromecast dongle

Chromecast is one of the most used devices in my household. After using it for over a year now, I believe there is no longer a market for the so-called ‘smart TV’. Inexpensive devices like Chromecast can turn any HDMI-enabled TV into a smart TV with immense possibilities to expand its features.

Google continues to add new features to Chromecast, except for one much-needed feature: native support for playback of local content. There is no _easy_ way to stream content sitting on your smart phone or desktop to Chromecast. Let me be honest, there are some Chrome apps which can play videos stored on your computer, but none offer a desirable solution.

However, nothing is impossible for a Linux user. 

What’s desirable? The Chromecast is plugged into the TV in the living room whereas my PCs and hard-drives are in my office. There are three doors between these two rooms and I don’t want to shuttle in between my living room and office to play movies. I want the control to be in my hands, while I lay on the couch. The data remains on my PCs and I can use my Android devices to stream content to Chromecast, without having to get up. I am lazy!

Well, that’s exactly what I have done. I have created a local file server on my Linux box, which allows me to access movies, music and images from any device over the local network. Then I use an Android app which works as a remote to access and stream these files to the Chromecast. And I will show you how to do this, too.

Let’s get started. First things first. Let’s make our data accessible over the local network, and there is nothing better than setting up a Samba server.There are different ways of installing and configuring Samba on different distributions. Since I run openSUSE, Arch Linux and Kubuntu on my PCs, in this tutorial I will focus on openSUSE and Ubuntu families (Arch users can refer to the official wiki).

Install Samba Server

The chances are that Samba is already installed on your system; in that case skip this section and fast forward to ‘Grab File Manager’ section:

Step #1: Install Samba

openSUSE:

 $ sudo zypper in samba

Kubuntu/Ubuntu family:

 $ sudo apt-get install samba

chromecast file selectionStep #2: Now we need to add a user to a Samba group so it will have the desired permissions to access the shared data. Since I don’t let guests access my file server I really don’t bother with creating a separate user. In this tutorial we are using the system user for samba share.

openSUSE:

We need to create a Samba group in openSUSE and add the user to that group.

$ sudo groupadd smbgroup
$ sudo usermod -a -G smbgroup name_of_user
$ sudo smbpasswd -a name_of_user

Ubuntu/Kubuntu:

$ sudo smbpasswd -a name_of_user

Step #3 Now we have to edit the Samba configuration files to tell Samba which directories are shared.This step is the same for all distributions:

$ sudo nano /etc/samba/smb.conf

In this file, leave the entire [global] section intact and comment everything below it. Right after the end of the [global] section add a few lines using the following pattern:

[4TB] -> The name of the shared directory
path = /media/4tb/ -> The path of the shared directory 
read only = No -> Ensures that it's not read only
browsable = yes -> Ensures that the subfolder of the directory are browsable 
writeable = yes -> Ensures that user can write to it from networked device
valid users = swapnil -> The system user

In my case it looks something like this:

[4TB]
path = /media/4tb/
read only = No
browsable = yes
writeable = yes
valid users = swapnil

Add a new section for each directory you want to share over the network.

Step #4 start Samba server.

Now we have to start the server and also ensure that it kicks in at system boot.

openSUSE:

Start start Samba services:

systemctl start smb.service 
systemctl start nmb.service 

chromecast play videoThen enable the services to start at system boot:

systemctl enable smb.service 
systemctl enable nmb.service 

Ubuntu/Kubuntu:

sudo service nmbd restart
sudo service smbd restart

You should now be able to access these directories over the local network.

Grab file manager

I use Android because I find iOS to be a sub-standard and extremely restricted OS when it comes to getting some real work done. I couldn’t find a decent free file explorer on the App Store which can compete with the ones available on Android. ES File Manager is one of the best applications out there, for our set-up.

Download and install ES File Manager and it’s Chromecast Plugin from Google Play Store.

Open the app and go to ‘network’ option from the menu.

Select LAN and run ‘scan’.

It will detect your Samba server; provide the app with the username and password (the system user for your PC where Samba is installed). (See Image 1, above.)

Once connected, open the network directory where the media is saved and choose the file that you want to play on Chromecast. (Image 2) Long press on the file and it will show a checkbox. Tick the ‘checkbox’ and then click on the ‘more’ option at bottom left. You will see ‘Chromecast’ in the menu. Select Chromecast and it will scan for the Chromecasts available on your network. Hit on the name of your device when it pops up and your video will start playing on the Chromecast. (Image 3)

Now you can just lay back in your couch and play movies, music and images right from your palm. Linux and open source just turned you into a couch potato.

A Proposal To Go 64-bit Only With Fedora 23

An ambitious proposal is seeking to make Fedora 23 — the Linux distribution release due out around October — 64-bit-only for both x86 and ARM architectures…

Read more at Phoronix

Interview: Mesosphere’s Ben Hindman on the Need for a Data Center OS

One of the most interesting new companies leveraging an open source Apache project has to be Mesosphere, which OStatic covered in a recent post. The company offers a “data center operating system” (DCOS) built on the open source Apache Mesos project, and has announced a recent round of $36M in Series B funding. New investor Khosla Ventures led the round, with additional investments from Andreessen Horowitz, Fuel Capital, SV Angel and others.

According to Mesosphere’s leaders, the tech industry now needs a new type of operating system to automate the various tools used in the agile IT era.  They argure that developers and operators don’t need to focus on individual virtual or physical machines but can easily build and deploy applications and services that span entire datacenters.

Read more at Ostatic

Local MirageOS Development With Xen and Virtualbox

MirageOS is a library operating system. An application written for MirageOS is compiled to an operating system kernel that only contains the specific functionality required by the application – a unikernel. The MirageOS unikernels can be compiled for different targets, including standalone VMs that run under Xen. The Xen unikernels can be deployed directly to common cloud services such as Amazon EC2 and Linode.

I have done a lot of MirageOS development for Xen lately and it can be inconvenient to have to rely on an external server or service to be able to run and debug the unikernel. As an alternative I have set up a VM in Virtualbox with a Xen server. The MirageOS unikernels then run as VMs in Xen, which itself runs in a VM in Virtualbox. With the “Host-only networking” feature in Virtualbox the unikernels are accessible from the host operating system, which can be very useful for testing client/server applications. A unikernel that hosts a web page can for example be tested in a web browser in the host OS. I am hoping that this setup may be useful to others so I am documenting it in this blog post.

Read more at Magnus Skjegstad’s blog.

Manjaro Xfce 0.9.0 Pre1 Shows How Open Source Collaboration Works

Manjaro Xfce 0.9.0 Pre1, a Linux distribution based on well-tested snapshots of the Arch Linux repositories and 100% compatible with Arch, is now ready for testing and download.

The Manjaro developers have announced a while ago that they were working on the next version in the series, although it looks like they are not ready to take the big step towards the dreaded version 1.0. The latest stable version is now 0.8.11 and the one after that was 0.8.10, so we can consider this to be an evoluti… (read more)

Read more at Softpedia News

Watch Videos From Linux.Conf.Au 2015 (LCA2015 Auckland)

For those interested in the annual Linux.Conf.Au conference that’s filled with tons of Linux/open-source technical talks but weren’t down in New Zealand last week for the event, the videos are available…

Read more at Phoronix

Unzip Vulnerability Closed in Ubuntu OSes

Canonical has announced that an unzip exploit has been found and fixed for Ubuntu 14.10, Ubuntu 14.04 LTS, Ubuntu 12.04 LTS, and Ubuntu 10.04 LTS operating systems.

As the name suggests, the unzip library is the one that ensures users can decompress zip files, and finding exploits and vulnerabilities for it is rather unusual. Nonetheless, such vulnerability was found and it’s now OK, a patch later. The devs were saying that unzip could have been made to crash or run programs, if the user were… (read more)

Read more at Softpedia News

Cinnamon 2.6 to Get Systemd Support

The Linux Mint developers are not only working on the next iteration of the operating system, they are also trying to improve upon the Cinnamon desktop environment, which is also built by them.

The Linux Mint Cinnamon edition is the most used flavor for this distro, although the MATE follows close behind. The fact that the Linux Mint team is also making the desktop environment means that users will probably get the best integration of this software stack into an operating system. On the other… (read more)

Read more at Softpedia News

Samsung Set to Sell 30 Million Tizen TVs in 2015

  Samsung Electronics Co. have revealed that they plan to sell 30 million Tizen TVs in 2015, according to an Industry source. Samsung aims to ship an estimated 60 million TVs in 2015 with Tizen TVs expected to be over 50% of that figure. These will be using the new quantum-dot display technology which has the capability of showing 1 billion colours, which is 64 times more than what current TV models can perform. 

Read more at Tizen Experts

Distribution Release: MakuluLinux 2.0 “Cinnamon”

Jacque Raymer has announced the release of MakuluLinux 2.0 “Cinnamon” edition, an updated build of the project’s Debian-based distribution featuring the Cinnamon desktop environment: “MakuluLinux Cinnamon 2.0 is a continuation of the first release, with focus on updating, polishing, refining and fixing issues reported in the previous release…..

Read more at DistroWatch