Setup camera and such
From Kandos Digital Embassy
Revision as of 01:27, 1 April 2015 by 130.95.40.192 (Talk)
Connect to server
- eth0 connect inet DHCP
Old approach for hosting data (now using server)
sudo apt-get update sudo apt-get upgrade sudo apt-get install vlc sudo apt-get install hostapd sudo apt-get install dnsmasq
edit the file /etc/network/interfaces and replace the line "iface wlan0 inet ..." with:
iface wlan0 inet static address 192.168.42.1 netmask 255.255.255.0
Edit the file /etc/default/hostapd and change the line:
DAEMON_CONF="/etc/hostapd/hostapd.conf"
edit the file /etc/hostapd/hostapd.conf
interface=wlan0 ssid=TacticalSpaceLab hw_mode=g channel=6 auth_algs=1 wmm_enabled=0
Change IP and start hostapd
sudo ifconfig wlan0 192.168.42.1 sudo service hostapd start
Maybe it doesn't work. Using EDIMAX interface? Try this version of hostapd (via Dave Conroy)
wget http://www.daveconroy.com/wp3/wp-content/uploads/2013/07/hostapd.zip unzip hostapd.zip sudo mv /usr/sbin/hostapd /usr/sbin/hostapd.bak sudo mv hostapd /usr/sbin/hostapd.edimax sudo ln -sf /usr/sbin/hostapd.edimax /usr/sbin/hostapd sudo chown root.root /usr/sbin/hostapd sudo chmod 755 /usr/sbin/hostapd
Set up dnsmasq to give clients DHCP-based IP addresses configure /etc/dnsmasq.conf
interface=wlan0 dhcp-range=192.168.42.50,192.168.42.150,12h
restart dnsmasq
sudo /etc/init.d/dnsmasq restart
Start video share
sudo modprobe bcm2835-v4l2 cvlc v4l2:///dev/video0 --v4l2-width 1920 --v4l2-height 1080 --v4l2-chroma h264 --sout '#standard{access=http,mux=ts,dst=0.0.0.0:12345}'