Thread
:
Turn your tablet to IP-camera with gstmjpg
View Single Post
wartstew
2010-04-09 , 22:33
Posts: 83 | Thanked: 18 times | Joined on Jun 2008
#
66
Originally Posted by
DeeJay_XB
@wartstew please write a short step by step guide for the ip-camera with httpd!
PLEASE!
Sorry about taking years to get back, but I didn't see this post until I had to look up this thread to help do it again since my N810 ate its root file system (ouch!).
1) Anyway I installed thttpd instead of Apache, It is in a repository somewhere.
2) Get a root shell and edit /etc/thttpd/thttpd.conf to enable option "nochroot" and disable "chroot". Note the security issues with this, but I had to do it to be able to run the busybox shell that is in /bin. I had installed the editor "nano" to do this, but "vi" is already on your NIT if you know how to use it (I do, but not real well).
3) I installed the gstmjpg application listed elsewhere on this thread.
(dpkg -i gstmjpg_1.0.11_armel.deb)
4) Since thttpd was configured to put its root in /var/www, I created the directory "cgi-bin" there and moved the contents of the gstmjpg created cgi-bin to it: mv /usr/lib/cgi-bin/* /var/www/cgi-bin
You can probably ignore all that previous stuff I posted about symlinks since there probably won't be any updates to the gstmjpg for the Nokias anyway.
5) I also moved the gstmjpg http documents from /usr/htdocs to /var/www: mv /usr/htdocs/* /var/www
6) At this point you should be able to go to http:<your NIT's IP>/webcam.html and see it all work.
7) Since this thing was set to record everything to your internal mmc device (which take some processor time), for me I would rather not record, just stream, but do so in a high resolution mode so I edited /usr/share/dbus-1/services/gstmjpg.service and removed the "--out" and everything past it, then changed the "size" from qvga to vga, turned the frame rate down to 3. Now it easily streams 640x480.
Now you just have to pretty up the web pages the way you want. Notice that the stuff in cgi-bin are just shell scripts that you can change to make them work the way you want. Just remember all cgi-bin progs must output the "content type" line followed by a blank line for them to work.
(So now when my NIT eats itself again, I can find these instructions again and use them myself!)
Quote & Reply
|
The Following User Says Thank You to wartstew For This Useful Post:
Sohil876
wartstew
View Public Profile
Send a private message to wartstew
Find all posts by wartstew