One-liner of the day: Get your primary IP address

Get the IP adress of the interface where the default route is

ifconfig $( ip route | grep ^default | awk '{ print $NF }' ) | grep "inet " | awk '{ print $2 }'
Advertisements

Progress on network cabinet

I’m making a new network cabinet. Making is maybe not putting it correctly. Modifying an IKEA BESTÅ cupboard is more correct.

IMG_20160208_210408

I drilled a hole for cables at its bottom and it came out horrible. There is no support for the guide drill so once past the thin shell it wobbles around and makes a huge mess. It will mostly be covered by the plastic tube with flange I will put into it.

IMG_20160208_213016

On the opposite side I used a compass to scrape a circle and then a router to plow out the circle. Much better result.

IMG_20160210_193533

The back of is a thin hardboard with veneer on that is floating in grooves. To make the cabinet more rigid and also provide for something to drill into if something is to be mounted on back wall I cut a piece of MDF to a tight fit, drilled pocket holes and painted it (for protection, definitely not for looks).

IMG_20160210_211451

I also cut up a piece of melamine to act as a shelf for the cabinet. I routed out four indents for the cabinet’s feet to stand in to prevent it from sliding off the shelf.

Here’s a video of the cabinet soft closing.