Решение:
- добавить в /etc/ssh/sshd_config :
UseDNS no
ps -eo pid,ppid,rss,vsize,pcpu,pmem,cmd -ww --sort=rss
VSIZE (Virtual memory SIZE) - The amount of memory the process is
currently using. This includes the amount in RAM and the amount in
swap.
RSS (Resident Set Size) - The portion of a process that exists in
physical memory (RAM). The rest of the program exists in swap. If
the computer has not used swap, this number will be equal to
VSIZE.
Очистить кэшированую память# sync; echo 3 > /proc/sys/vm/drop_caches
Вариант 1 Закомментировать в /etc/inittab строчку 1:2345:respawn:/sbin/getty 38400 tty1т.е.# 1:2345:respawn:/sbin/getty 38400 tty1 1:2345:respawn:/bin/login -f YOUR_USER_NAME tty1 /dev/tty1 2>&1в /home/YOUR_USER_NAME в .bashrc или .bash_profile добавить строку для авто запуска иксов if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startx
fiВариант 2 1) в /etc/inittab комментируем туже строку но добавляем: 1:2345:respawn:/sbin/getty -n -l /usr/local/sbin/autologin 38400 tty1 2)su -
mkdir -p /usr/local/sbin/
touch /usr/local/sbin/autologin
chmod u+x /usr/local/sbin/autologin 3) nano /usr/local/sbin/autologin добавляем#!/usr/bin/python
import os
os.execlp('login', 'login', '-f', 'my_user_name', '0')
4) ~/.bashrc добавитьif [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startx
fi
sudo tcpdump -i ~device~ -p -s 0 -w ~dumpfile~ -v tcp src port 1935 tcpflow ~dumpfile~ # or use wireshrack like that http://www.youtube.com/watch?v=hNe70CbTlng cat ~streamfile~ |netcat -l 1935& rtmpdump -r "rtmp://localhost/streamer/stream.flv" -o
#!/bin/sh if [ "$1" = "" ] then echo "no filename given" exit fi if [ $(stat -c%s "$1") -eq 0 ] then echo false exit fi if [ $(stat -c%s "$1") -eq `flvtool2 -P $1 /dev/null|grep filesize|sed 's/[^0-9]//g'` ] then echo true else echo false fi