local-host:
ssh-keygen -t rsakeyfilename: ~/.ssh/rsync
ssh-copy-id -i .ssh/rsync rsyncuser@remote-host
rsync files with ssh:
rsync -vaHxr --delete \
-e "ssh -i ~/.ssh/rsync -c arcfour -o Compression=no -x" \
LOCALDIR rsyncuser@remote-host:
remote-host
/home/rsyncuser/.ssh/authorized_keys:
from="192.168.0.2,",command="/home/rsyncuser/validate-rsync.sh",limit access with from (optional).
no-pty,no-agent-forwarding,no-port-forwarding
ssh-dss 012345678...
On sucessfully ssh login command is executed.
Read More...
[ view entry ] ( 2563 views ) | print article
Today i a made a patch for ffmpeg to be able to fetch a png file from a cgi script
ffmpeg -f image2 -vcodec png -i 'http://server/cgi-bin/graph.cgi'
This didn't work because ffmpeg/libavformat/http could't handle "Transfer-Encoding: chunked"
0001-http-Transfer-Encoding-chunked.patch
[ view entry ] ( 2485 views ) | print article
$ sudo apt-get install build-essential fakeroot dpkg-dev
$ mkdir build
$ cd build
$ sudo apt-get source foo
$ sudo apt-get build-dep foo
$ cd foo
$ dpkg-buildpackage -rfakeroot -b -us -uc -nc
-nc does not clean, usefull if you change something and rebuild
http://www.cyberciti.biz/faq/rebuilding ... y-package/
[ view entry ] ( 1329 views ) | print article
webalizer.conf:
LogFile /var/log/apache2/access.log.1To have the right sorting order (oldest logs first) i use ls -tr.
OutputDir /var/www/webalizer
Incremental yes
for i in $(ls -tr access.log*); do \
webalizer -c /etc/webalizer/webalizer.conf $i; \
done
[ view entry ] ( 1974 views ) | print article
For testing my intellon driver on one pc i need to send packets on eth0 (intellon usb) out and receive them via eth1 (intellon ethernet).
The only solution i found was a not anymore supported module for netfilter from Rusty Russell.
I tried to fix the compiler errors/warnings and finally it worked.
Usage:
ifconfig eth0 192.168.1.1
ifconfig eth1 192.168.2.1
arp -s 192.168.1.2 <hardware address of eth1> -i eth0
arp -s 192.168.2.2 <hardware address of eth0> -i eth1
modprobe ip_crossover dev1=eth0 dev2=eth1
Then doing ping 192.168.1.2, ICMP ping goes out eth0 and comes back in eth1.
ip_crossover.tar.bz2
for testing packets with differenz sizes i did:
for i in $(seq 0 1472); do ping -q -c1 -s$i 192.168.2.2 >/dev/null || echo fail $i; done
for i in $(seq 0 1472); do ping -q -c1 -s$i 192.168.1.2 >/dev/null || echo fail $i; done
[ view entry ] ( 1601 views ) | print article
<<First <Back | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Next> Last>>