Check number of open connections by IP address

July 6th, 2010 No comments

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Categories: Linux Tags:

Check maximum number of open files

May 17th, 2010 No comments

Use ulimit -a. To set use sudo ulimit -n, to keep put into your /root/.bashrc script.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Categories: Linux Tags:

Increase shared memory Linux

April 16th, 2010 No comments

echo $((1024 * 1024 * xxx)) > /proc/sys/kernel/shmmax

Change xxx to MB required

To read value ( in MB )

echo $((`cat /proc/sys/kernel/shmmax` / 1048576))

Add command to rc.local to enter at boot.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Categories: Uncategorized Tags:

Capturing frames of ASX / MMS stream with MPlayer

January 20th, 2010 No comments

This will allow you to capture a single frame from a ASX / ASF / MMS stream. Be aware if the ASX contains more than 1 file, you will get more than 1 screen capture. Also remember to use the playlist option for ASX streams

mplayer -playlist http://xxxxx -ss 1 -frames 1 -vo jpeg

When building mplayer you will need libjpeg – do mplayer -vo help to list available output options.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Categories: Linux Tags:

Count number of open files in LINUX

December 9th, 2009 No comments

lsof | wc -l

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Categories: Linux Tags: