manuel's blog

just another men's two cents

Archive for the ‘linux’ tag

Capturing whole packet with tcpdump for analysis with wireshark

without comment

Capturing the hole packet on your NIC for later analysis with wireshark

tcpdump -nnvvXSs 1514 -i em0 -w /tmp/em0.dumptcp

Will capture 1514 bytes of all packets on interface “em0” and dump it to the file “/tmp/em0.dumptcp”. You can then import the file into wireshark for analysis.
Explanation of Parameters
Text below is copied from tcpdump man page
-nn
Don’t […]

Written by manuel

May 24th, 2014 at 12:57 pm

Posted in IT

Tagged with , , , , , , , ,


Howto: apt-cacher with ubuntu

without comment

If you have an office with loads of linux computers, it might be useful to have a local repository to save bandwidth on you local wan. But a local repository needs to be up-to-date and it’s hard to decide which packages should be mirrored. If you want to have a good and useful mirror you’ll […]

Written by manuel

July 24th, 2011 at 10:18 am

Posted in IT

Tagged with , , ,

Which Ubuntu version is installed?

without comment

If you are just interessted in the Ubuntu version then type

lsb_release -a

gives you an output like this:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
Release: 10.04
Codename: lucid

If you like to now the kernel version then type

uname -a

Linux myhostname […]

Written by manuel

March 3rd, 2011 at 9:12 am

Posted in IT

Tagged with , , ,

screen as a minicom alternative?

without comment

for those who still use minicom to connect to a console (serial) port on a cisco (or whatever) device: i prefer “screen”, because its so easy, and for the most things it’s all you need.
screen should be already pre installed with ubuntu, with osx it’s easy to install using macports.
to use it, just type:
$ screen […]

Written by manuel

February 23rd, 2011 at 4:56 pm

Posted in IT

Tagged with , , , , , , ,