Tuesday, November 29, 2011

How to run an application as root on the panel @ubuntu

Just add gksu at the beginning of the command.




When you click on the item, it asks you to enter your password.


Saturday, November 26, 2011

Debugging DLNA via Wireshark

First you should set filter:
(ip.src == 192.168.1.40 &&  ip.dst == 192.168.1.43) || (ip.src == 192.168.1.43 && ip.dst == 192.168.1.40) 
Here in example my DMC and wireshark are on IP:192.168.1.40 and server is on IP:192.168.1.43.

this will show you the sent packets just between your devices.


Then you will see some TCP streams like this:


From these packets find out the ports at server side:


Here are the port numbers of my server; 9050 and 9000. Add these ports to the list of HTTP ports permanently via "Edit→Preferences→Protocols→HTTP→TCP Ports"

Now you can see the get requests for xml files:

To see the xml file you can right click then select "follow tcp stream".