checking network speed via dd and nc

On one machine, run: nc -v -l 2222 > /dev/null (Make sure you’re not blocking connections to 2222!) On a second machine, run: dd if=/dev/zero bs=1024K count=512 | nc -v $IP_OF_FIRST_MACHINE 2222 dd will give you your speed: 536870912 bytes (537 MB) copied, 4.87526 s, 117 MB/s

Published
Categorized as Big Data Tagged

Command line view webcam from ubuntu to browser

This took hours to figure out. I was trying to install MJPG-streamer and running VLC command lines and all this crap but nothing worked. First install motion: ~> sudo apt-get install motion Then create a config file: ~> mkdir ~/.motion ~> nano ~/.motion/motion.conf In it, the bare minimum to run a web server and view it… Continue reading Command line view webcam from ubuntu to browser

Making bootable USB from MAC osx without any apps

Convert the .iso file to .img using the convert option of hdiutil e.g., hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso Note: OS X tends to put the .dmg ending on the output file automatically. Z Run diskutil list to get the current list of devices.   Z Insert your flash media. Z Run diskutil list again… Continue reading Making bootable USB from MAC osx without any apps