Archive for the 'Linux' Category

Creating a SSH Tunnel in Java

Sunday, April 9th, 2017

tl;dr

How to create a SSH tunnel in a Java app from a localhost port through a jump box to a specific port on a server. Allowing a connection to the remote server port as if it was a localhost port.

Examples found online provided only one ‘hop’, not the double ‘hop’ needed. The code below supports 2 hops, but in theory could be used to support any number of hops.

(more…)

Raspberry Pi Full Screen Browser (Raspbian November 2016)

Thursday, December 29th, 2016

tl;dr

Steps to setup a Raspberry Pi running Raspbian to boot into a full screen web browser, hiding mouse pointer, disabling screen saver. Includes installing additional fonts and putting the browser in kiosk mode.

(more…)

stupid-remote: a HDMI-cec node.js Web App

Monday, December 19th, 2016

tl;dr

A web app to control devices over HDMI-cec, turning tvs on and off, switching inputs adjusting volume. New project, customization requires editing simple HTML and JavaScript.

(more…)

Using cec-client on a Raspberry Pi

Wednesday, December 14th, 2016

Most modern HDMI connected devices support Consumer Electronics Control (CEC). It allows devices to send commands to each other, typically to get the TV to switch input and control volume. If you have ever turned on a Game Console and had your TV automatically change input to that device you have seen CEC in action. It is very convenient and useful, sort of a universal remote that works.

Every manufacturer seems to have it’s own branding of CEC (e.g. Samsung Anynet+, LG SimpLink, Sharp Aquos Link) but it may need to be enabled. Check your manual for details.

Using a Raspberry Pi connected to a TV that supports CEC, you can use the command line cec-client application to control the inputs and the TV itself. These are notes on how to use cec-client and understand the different options.

(more…)

Laser Cut USB Key Case

Sunday, February 14th, 2016

The Why

I have a collection of USB keys each different version of OS X and Ubuntu so that I can do a complete reinstall from scratch. The collection was rattling around in my desk drawer, which was annoying.

What I really wanted was to put them in a case, ideally one that matched the other dvd and cd cases.

(more…)