Thursday, July 30, 2015

WireShark Raspberry PI

Simple wireshark appliance using the raspberry pi

install wireshark

fire up terminal

sudo apt-get install wireshark

once that is complete do not start wireshark, you need to configure your lan card

sudo groupadd wireshark

Add your username to the wireshark group

sudo usermod -a -G wireshark YOUR_NAME_HERE

Change the group ownership of the dompcap to wireshark

sudo chgrp wireshark /usr/bin/dumpcap

Change the mode of the file dump cap to allow execution by the group

sudo chmod 750 /usr/bin/dumpcap

Grant capabilities with setcap

sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap

Verify the change

sudo getcap /usr/bin/dumpcap

now logoff or restart your PI and fire up wireshark

See how easy that was, google wireshark for "How too's"

Wednesday, July 29, 2015

Remote Desktop with Raspberry PI

Hello all that read my BLOG, doesn't see that any one does but anyways, I thought I would share how I am using my Raspberry PI. I mount mine to the wall and remote into it, I mostly use it for fun and learning some Linux stuff, for such a cheap price it is a good tool for that.

the only thing plugged into it is the power and the Ethernet cable, I remote into it using VNC from my Mac, of course games and are not going to to work with this but they don't anyway but this does allow you to use this without having to have another keyboard and monitor so lets get started.

I am using Debian Wheezy but you can use different ISO and see if they work for you.

To user your Mac to VNC into the Raspberry PI you need to install TightVNCServer, so lets open up terminal and get started, SSH into your Raspberry PI and run the following commands. you will need to set a password for your VNC server

sudo apt-get install tightvncserver


vncserver :0 -geometry 1024x768 -depth 24

Now on your Mac simply got to Finder and click GO and connect to server, make sure you have the vmc in your server address

vnc:// <-- use your Raspberry PI address

And that's how you can use your Raspberry PI with your Mac, you can also do this with other Linux machines as long as you have SU access to them.