manuel's blog

just another men's two cents

Capturing whole packet with tcpdump for analysis with wireshark

without comments

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 , , , , , , , ,


Decompress all files in a Windows installation

without comments

To decompress/uncompress all files in a Windows installation just open a terminal window by pressing cmd+r, type “cmd” and press enter. Now you can start the uncompressing of your files:

cd \
compact /u /s /a /q /i *.*

Written by manuel

January 16th, 2012 at 11:34 am

Posted in IT

Tagged with , ,

List all mass storage devices with FreeBSD

without comments

Get a list of installed mass storage devices with FreeBSD

egrep ‘ad[0-9]|da[0-9]|cd[0-9]|acd[0-9]’ /var/run/dmesg.boot

where:

ad -> IDE HDD

da -> SCSI HDD

cd -> IDE CD/DVD

acd-> SCSI CD/DVD

Here’s an example output:

da0 at ciss0 bus 0 scbus0 target 0 lun 0
da0: Fixed Direct Access SCSI-5 device
da0: 135.168MB/s transfers
da0: Command Queueing enabled
da0: 139979MB (286677120 512 byte sectors: 255H 32S/T 35132C)
da1 […]

Written by manuel

December 14th, 2011 at 2:02 pm

Posted in IT

Tagged with , , , , ,

FreeBSD watch network interface usage

without comments

If you want to know the current network bandwith usage on a FreeBSD host, this will help you.

  1. systat -ifstat 1
                  /0   /1   /2   /3   /4   /5 [...]

Written by manuel

December 13th, 2011 at 12:39 pm

Posted in IT

Tagged with , , , , , , ,

Show all files in OS X’s finder

without comments

By default the finder in OS X does not show all the files. You can still see the files if you use a terminal and type

$ ls -la

but sometimes you may need the finder to point to a particularly file. e.g. you want to load a hidden file in to an application. To force […]

Written by manuel

July 28th, 2011 at 9:15 am

Posted in IT

Tagged with , , , , ,

Howto: apt-cacher with ubuntu

without comments

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 , , ,


Taking screenshot with OS X

without comments

The following shortcuts can be used to take screenshots with OS X.

Take a screenshot of the full screen and save it as a PNG file on the desktop

CMD+Shift+3

Select a specific part of your screen to take a screenshot. The picture is saved as a PNG on your desktop

CMD+Shift+4

Click on a window […]

Written by manuel

June 21st, 2011 at 10:13 am

Posted in IT

Tagged with , , ,

US iTunes gift cards

without comments

If you’re like me: a big TV series fan living outside US, its sometimes quiet annoying, to get you’re favorite TV series in a legal way.
The only solution I found so far is, to buy US iTunes gift cards online and create a US iTunes store account.
Configure iTunes is quiet easy, just change the […]

Written by manuel

June 20th, 2011 at 9:00 am

Posted in IT

Tagged with , , ,

Howto converting UNIX timestamp into readable format using bash

without comments

Howto converting UNIX timestamp into readable format using bash.

$ date -j -f “%s” 1299452400
Mon Mar 7 00:00:00 CET 2011

Get current UNIX timestamp

$ date -j +%s

Written by manuel

June 19th, 2011 at 11:00 am

Posted in IT

Tagged with , , ,

Which Ubuntu version is installed?

without comments

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 , , ,