Playing Youtube from CLI – RASPBERRY PI – Economical / Lazy ?



Purely a Personal Post on gaining better control / being economical / becoming perfectly lazy πŸ˜‰ .This has been in pipeline for about a year, I prefer some light music in home while I sleep / work and now and then when I want better control to hear whatever I want.

Three things to it

-> Tried with chromecast – Worked – problem more electricity and efforts to search more with less control

-> Download music and play it via plex where your sound-out is to a 5.1 system. – works but is more static in nature.

-> Have a Blue-tooth Device and give in to 3.5mm jack of your music system. This sounded cool, the only problem is again the searching and the requirement to have a single paired device.

How did i Bypass this ?

A detailed explanation on Raspberry Pi 2.0 / MPSYT / Installing Ubuntu can be found from RASPBERRY PI Website, I feel they did a better job in documentation.

Lets see my home setup


Tools used

-> Xshell – To access raspberry pi / Ubuntu Linux SSH

-> MPSYT – A Program developed to search media via Youtube

-> Audio Out – I used 5.1 but technically you can use a better sound system as long as you have a 3.5mm jack into raspberry pi

Lets see some screenshots

The screenshot is the Shell of Raspberry pi which is being accessed via a Windows System. Remember, this is shell access where you search for music and actual music is via Raspberry pi which is in Network and connected to a Sound-out Device / Music System Out


Launching mps-youtube via #sudo mpsyt


searching musicΒ  – for example if i have to search INTERSTELLAR , i would say /interstellar and the results would appear like this

3_search results

Playing is easy, you have flexibility to make and save a playlist or you can play song by song.

Reality !


This is By far the most economical way I could come-up with to play some-light music and have a supreme control on what you wish to play, with out need to worry about display or dedicated CPU.

I have been enjoying this for a while!


Rakesh M


No Comments


When Juniper announced the Introduction of Design Track, I felt good about it. Not that I wanted to take any exams related to it, but Going through Juniper courseware makes it so easy to grasp and in My line of work apart from Having occasional design Hacks, I wanted to fully understand what Juniper has toΒ say about Design.I thought JNDF would be an Ideal way to enter into Design World.

Below is the link where you can find about certification.






Overall I am pretty much excited to see whats inside these books and will be updating as and when time permits.


Rakesh M

Testing Endian Firewall – So Far So Good !

No Comments


I was testing Endian Firewall( for Some VPN features and Firewall capabilities. Last post I wrote about untangle. (, one thing I understood is that not everyone uses Checkpoint/asa/Srx ;), depends on Client Base/Cost/Business proposals etc.

I had to verify Endian to verify some firewall rules written for an End PBX as it was blocking. Now, I have handled Endian Before as well, but that was at a period when Endian was just getting noticed and we had to integrate it with opposite branch firewall as Endian was uplinking to Cisco ASA. – IRONY πŸ˜‰

This was on the fly and you can download the community version on the go and test as well. The entire system is based on http mostly and Sort of Zone-based Firewall concept arises here.

I had setup a simple IPSEC vpn within 5 minutes

Here is the below topology


Building IPSEC Vpn and leaving at its defaults

settingup_firewall_vpn_1 vpn2 vpn3

Now, verifying few other firewall rules and adding static routing

blocking_specific_trafic_4 static_routing_5

Final result


On the Whole, Setup was quite easy and I should say I am far more impressed with this than Untangle as this is simple and easy to use.


Rakesh Madupu


No Comments


I was going through a deployment scenario which i had deployed earlier and looking at Junipers vs cisco implementation of FRR, i was sort of confused. Juniper are fairly easy to implement, you mention FRR knob at the head-end Router and that is going to be it for your FRR.

The only think which you may need to make sure is all the down stream routers should be capable of understanding this knob.

Lets look at the topology.


Now, Without enabling any Fast-Reroute Knobs, lets see how Path / Resv Message looks like.

Below is the configuration


The path and Resv Messages are exchanged and here is how it looks like – Remember FRR is yet to be enabled

path-message-without-frr-on-headendR1 resv-message-witout-frr-onhead-end

Now, Lets enable FRR and see what changes would occur


Change in the Path-Message sent by R1

Fr-knob-enabled for communication in path-messagee

Now follows a series of computation

2 label comparision Final-LabelΒ  last-label

When disabled we can see the utilization of Detour-Label/Path

detour label in R2

detour label in R2

This is how Juniper is implementing things,

References – – RSVP-TE: Extensions to RSVP for LSP Tunnels (object-id 16) – Fast Reroute Extensions to RSVP-TE for LSP Tunnels



A Small Client and a Feasible Solution – Captive Portal and Untangle – Made my client’s Day !

No Comments


I have few friends in Local service providers who provide internet to home users by taking uplink’s from relatively larger Local ISP’s. State of affairs is not so developed where we have large Telco’s directly handing out the Internet line, at least at my place.


A local internet service provider approached me for a appealingly small problem, he has an uplink of 100 Mpbs from an ISP and he has been distributing the the same 100mb via Lan and Wlan for his customers. keeping aside legality of how he could distribute it or what not, rest assured all his traffic which is uplinked will be going to a very popular ISP, I am not going into the discussion of Legalities here. So far so good, the real problem is with their authentication, he has no idea on what is to be done nor how to cut off people on a monthly basis, more or less like plug and play, but atleast WLAN has a password.

When approached me, I was asked to provide a solution and sure enough he wanted for Firewall filtering capability and wanted to block some specific sites related to Adult content as well. I understood he was looking for a firewall, now the question, with the client size of 240 members to 400 members at peak, I am really not sure if Cisco ASA/ Checkpoint/ Palo alto /Β  Juniper SRX would be a affordable option atleast for him as he dint wanted to spend much, understandably so as he said he is not doing good with his business.

I thought and researched about this a lot and finally came to an understanding that it should be a VM within aΒ  VirtualBox.Β  Initally i wanted to deploy PFSENSE and ENDIAN, but again pfsense is something which normal people or LAN admin may not be able to understand and this being a favor from me, I wont be responsible for adding a user or making changes once deployed.

I deployed it for having a sneak-peak into other product lines and this is under testing phase for 50 clients as of now.

First things first,

I have to deploy it in a virtual-box, why simple easy to manage, integrate and revert or may be Vmplayer will also work.

This is the network.


Untangle – Free Version


First, installing Untangle onto any Vbox or Vmware Workstation, this is straight forward. I wont cover how to setup Untangle as its fairly easy and documented as well.

Once you have installed, this is how it looks like


Looking deeper into captive portal

image-2 image-3

You have radius and other protocol authentications as well, but I will be using local database for this solution, again keeping in mind about LAN admin and his knowledge.

A insight into Web-Filtering, this is a paid feature with 14-day Trial, so i have installed it for him to experience the power.


Now when booted into windows, this is what is see.


Do remember, that Untangle is also doing NAT and DHCP server in this case, you can also run in bridged mode though.


And finally we see the portal page, I have put this in deployment and should check on stability over a period of time, but all in all, a Happy client for now.



Close Bitnami banner