How to stream multicast from pcap file (automation) - stream

I have 3 pcap files - UDP, RTP and RTP with FEC. The last one means that I have 3 sockets that have to go at the same time for error correction.
I tried to use tcpreplay but it doesn't work if streamed inside of 1 machine which is the purpose. Docker won't work because of the same problem, virtualization could work but the Linux kernel I'm working with makes a huge problem so I'm looking for another tool like tcpreplay that would stream to localhost.

The solution is bittwist. bittwist.sourceforge.net
It requires libpcap-devel module from linux repos. Stream to loopback intarface.
Still would be happy to get to know any other solutions.

bittwist uses the same lib under the hood as tcpreplay. The actual solution was:
sudo sysctl -a | grep "\.rp_filter" | awk '{print $1 "=0"}' | xargs sudo sysctl

Related

Using printers on Yocto

Some days ago I decided to us Yocto for running my custom photo booth application on a Raspberry Pi. Main reason why choosing Yocto was the lack of a recent QT version on Raspbian which was needed by some features. Other solution didn't offer a hardware acceleration.
After getting the most features running, I stopped at the problem getting the printer configured and running. Cups seems to be sane and running corrently.
My goal was, that the printer is set up at first login by a profile.d-script. I'm using the lpadmin command:
# Check to see if the printer is already installed
if [ `lpstat -p 2>&1 | grep -E 'CP910' -c || true` = "0" ]
then
echo "Installing CP910"
lpadmin -p CP910 -E -m /usr/share/cups/ppd/Canon_CP910.ppd -v usb://Canon/CP910?serial=C91xxxxxxx
lpadmin -d CP910
cupsenable
fi
I copied the PPD file from my Ubuntu computer. lpadmin issues no error. lpstat -v lists my added printer. The output of lpstat -v looks on both Ubuntu and Yocto the same.
When trying to print any file, the state stays at "sending data" and nothing happens.
I have seen that there are cups-filters and drivers. I haven't found any recipes for filters and drivers for Yocto. So I assume that everything is shipped with the CUPS recipt?
Besides CUPS also Gutenprint is needed. Gutenprint provides the printer drivers. Without Gutenprint, CUPS can not connect to the printer.
Yocto currently has no recipe for Gutenprint. Maybe you are lucky and someone will write a recipe soon.
The CP910 can print via Wifi. Fortunately, there is a program that can start printing jobs via Wifi: https://github.com/saeugetier/go-selphy-cp

iOS sims hang up on session initialization

I set the capability
"noReset": true,
but sometimes, my iOS sims hang up on sessions creation, and I have to kill and restart them. Anyone else have a similar experience? Any solutions?
Practically all my problems with the server errors and slow driver initializations and hang-ups have been solved by simply clearing the ports that the Appium servers and drivers use before initializing any new servers or drivers; on linux this has been accomplished by killing all the processes that use a port with this command:
lsof -i tcp:${PORT_NUMBER}| awk 'NR!=1 {print $2}' | xargs kill
I tried everything but only this helped.
Just add capability: waitForQuiescence = false

Getting Docker to recognize nvidia graphics card on mac

When I am in my container, I run
lspci | grep -i nvidia
and nothing shows.
When I run ./deviceQuery from the samples NVIDIA provides I get
no CUDA-capable device is detected
I know I have a nvidia driver on my mac. I just can't figure out how to get my docker container to realize that.
On OS X, docker is a container running inside a separate virtualbox vm which does not expose the host GPU.
You'll first need to make the graphics card available in the Virtual Box VM. I'm not sure how to do that, but this looks like it might help:
https://www.virtualbox.org/manual/ch04.html#guestadd-video
Once you've got it mounted within the VM, then you can also share it with the container.
I haven't tried this myself, but this guy says that he can run native X11 Apps on a Mac using a beta docker client called Kinematic along with socat, XQuartz, and QGIS, and he seems to imply that NVidia driver issues were thus avoided. This looks worth a try!

How to make WiFi work for toshiba C850...?

I have a toshiba laptop c850, dual core. Toshiba does not provide any driver for Wi-Fi for Ubuntu 12.10. I am currently having problem in using DSL modem, Ethernet and Wi-Fi. Can anyone tell me the solution to this problem?
maybe you will find some information there :
http://www.linlap.com/toshiba_satellite_c850-c855
Wireless
A really up to date kernel is required for wireless support, at least
3.5.0 is recommended. Realtek has the Linux drivers available for download but they must be re-complied after upgrades to kernel.
As you commented, you got the Atheros Communications Inc. AR8162 Fast Ethernet Controller.
This is some guesswork here because there are several versions of the driver and some people state only one is working for them, I stick with the most popular for now.
First download this file from another machine:
https://www.kernel.org/pub/linux/kernel/projects/backports/2013/03/28/compat-drivers-2013-03-28-5-u.tar.bz2
If you have Ubuntu or another Linux distro on your second machine you can use wget to download the file:
wget https://www.kernel.org/pub/linux/kernel/projects/backports/2013/03/28/compat-drivers-2013-03-28-5-u.tar.bz2
Next, use your preferred method (preferably an USB Drive) to copy it to your target machine (Toshiba C850) and use the following commands in a terminal. Make sure you are in the right directory first and use cd to change to the directory where your downloaded file resides.
tar -xzvf compat-drivers-2013-03-28-5-u.tar.bz2
cd compat-drivers-2013-03-28-5-u
./scripts/driver-select alx
make
sudo make install
sudo modprobe alx
If this doesn't work try a reboot first then you can try one of the other versions, I can't tell which will work for you:
http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2012-02-28-p.tar.bz2
https://www.kernel.org/pub/linux/kernel/projects/backports/2013/03/04/compat-drivers-2013-03-04-u.tar.bz2
Sources (for further reading): This question on AskUbuntu and this thread in the Ubuntu forums.

How to monitor communication between two Erlang nodes

I'm playing around with distributed Erlang.
It's a great fun, but I want to reveal the magic a bit and see what is actually being sent between Erlang nodes.
Could you please suggest any Erlang modules or external tools available for this?
Thank you in advance!
UPDATE:
BTW, Debian users can install Wireshark using sudo apt-get install wireshark
How about a network sniffer, like tcpdump or Wireshark sniffing on 4369/tcp? Wireshark has a special filter for the erlang distributed protocol (see ERLDP in the list of built-in expressions).
For more low-level information about the protocol itself, see http://www.erlang.org/doc/apps/erts/erl_dist_protocol.html
Here's a capture sample, between a linux node and windows node:

Resources