Tuesday, November 18, 2014

tail a *nix command in your browser

if you have bash or zsh:

command | cat -u <( echo $'HTTP/1.0 200 OK\nContent-type:text/plain\n\n' ) - | nc -l 8080

otherwise:

echo $'HTTP/1.0 200 OK\nContent-type:text/plain\n\n' > header.txt
command | cat -u header.txt - |  nc -l 8088

enjoy the output on http://localhost:8080

Saturday, August 16, 2014

rasbian default ssh root password

This shouldnt be so hard to find. I had a hell of a time trying to find the root password for rasbian on my raspberry pi. There are a lot of places that claim that the username is "pi" but this is not true. use root.

user: root
pass: raspberry

once you ssh in, change it using the passwd command. to ssh in, find the thing's IP and type ssh root@THE_IP