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

2 Comments

Hi,

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

topology

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

1_raspberry_version

Launching mps-youtube via #sudo mpsyt

2_mps_youtube

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 !

IMG_20160111_123608_AO_HDR

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!

Regards

Rakesh M

JNDF – COURSEWARE ARRIVED

No Comments

Hi,

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.

http://www.juniper.net/us/en/training/certification/certification-tracks/design-track/#jncds-dc

IMG_20151119_144517_AO_HDR

IMG_20151119_144700_AO_HDR

 

IMG_20151119_144639_AO_HDR

IMG_20151119_144728_AO_HDR

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

Regards

Rakesh M

Testing Endian Firewall – So Far So Good !

No Comments

Hello,

I was testing Endian Firewall(http://www.endian.com/) for Some VPN features and Firewall capabilities. Last post I wrote about untangle. (https://r2079.wordpress.com/2015/08/06/a-small-client-and-a-feasible-solution-captive-portal-and-untangle-made-my-clients-day/), 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

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

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.

Regards

Rakesh Madupu

MPLS FAST-REROUTE – A PACKET VIEW

No Comments

Hello,

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.

topology

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

Below is the configuration

config-without-frr

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

fr-config-r1

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 –

https://tools.ietf.org/html/rfc3209#section-4.1 – RSVP-TE: Extensions to RSVP for LSP Tunnels (object-id 16)

https://tools.ietf.org/html/rfc4090#section-3.1 – Fast Reroute Extensions to RSVP-TE for LSP Tunnels

Regards

Rakesh

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

No Comments

Hi,

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.

Requirement

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_captive_portal

Untangle – Free Version

http://www.untangle.com/untangle-ng-firewall/appliances

Virtualbox

https://www.virtualbox.org/

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

image-1

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.

image-4

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

image-6

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

image-7

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.

Thanks

Rakesh

Close Bitnami banner
Bitnami