Tp-link MR3020 + OpenWRT + Webcam + 220V relay switch
I downloaded this firmware http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
Flashing (links from then on):
cd /tmp
wget http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
mtd -r write /tmp/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin firmware
done – router will reboot.
Connect to 192.168.1.1 via telnet: telnet 192.168.1.1
Run: passwd and change the password for root. Now you can connect to the router via ssh.
Configure the network: /etc/config/network
I prefer to get an address via DHCP, so
config interface 'lan' option ifname 'eth0' option type 'bridge' option proto 'dhcp' # I changed only this
Check the file /etc/opkg.conf – there must be the link http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/
Now install USB-module for a keyboard, I made it from this article http://habrahabr.ru/post/151982/:
opkg update
opkg install kmod-usb-hid
next – install webcam support:
opkg install kmod–input–core kmod–video–core kmod–video–uvc
configure mjpg-streamer:
opkg install mjpg–streamer
vi /etc/config/mjpg-streamer
config mjpg-streamer core
option enabled “1”
option device “/dev/video0”
option resolution “640×480”
option fps “5” # if you set it to 1 – it will be very long delay in transferring images
# option www “/www/webcam” # this is just info page for mjpg-streamer
option port “8080”/etc/init.d/mjpg–streamer start
http://ip-address:8080/?action=stream – this is the stream from camera, didn’t work in IE, but fine in Firefox
http://ip-address:8080/?action=snapshot – just a snapshot
link: http://autohome.org.ua/12-openwrt/16-podklyuchenie-veb-kamery-v-openwrt
Ubuntu + normal VNC Exchange 2010 DAG update