- Install Raspbian
- Configure Hostspot
- Install gphoto2
- Install libusb-1.0
- Configure WebServer
- Deploy RaspiCamera
Follow this link to raspberrypi.org!
- Intall dnsmasq and hostapd
# sudo apt-get install dnsmasq hostapd
- Config /etc/network/interface
Remove this:
# Remove
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Add this:
# Add lines
iface wlan0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
- Create /etc/dnsmasq.conf
interface=wlan0 # Use the require wireless interface - usually wlan0
dhcp-range=192.168.0.2,192.168.0.20,255.255.255.0,24h
- Create /etc/hostapd/hostapd.conf
interface=wlan0
driver=nl80211
ssid=rpicamera
hw_mode=g
channel=7
wmm_enabled=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=[your wifi password]
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
- Modify /etc/default/hostapd
# Add this line
DAEMON_CONF="/etc/hostapd/hostapd.conf"
- Modify /etc/dhcpcd.conf
# Add this line
denyinterfaces wlan0
- Restart System
# sudo reboot
- Join to rpicamera wifi network
- Updating sources
# sudo apt-get update -qq
- Removing gphoto2 and libgphoto2 if exists
# sudo apt-get remove -y gphoto2 libgphoto2*
- Installing dependencies
# sudo apt-get install -y build-essential libltdl-dev libusb-1.0-0-dev libexif-dev libpopt-dev libudev-dev pkg-config git automake autoconf autopoint gettext libtool wget libgd-dev libxml2-dev libreadline-dev libcdk5-dev
- Create arch binary home
As user pi
# cd $HOME
# mkdir $HOME/arch/bin
# mkdir $HOME/arch/lib
Edit *$HOME/.profile
# Append this lines
# set PATH so it includes user's private arch/bin if it exists
if [ -d "$HOME/arch/bin" ] ; then
PATH="$HOME/arch/bin:$PATH"
fi
Create /etc/ld.so.conf.d/pihome.conf
sudo echo "/home/pi/arch/lib" > /etc/ld.so.conf.d/pihome.conf
Logoff and re-login to system
- Compiling and installing libgphoto2
# git clone --branch libgphoto2-2_5_14-release https://github.com/gphoto/libgphoto2.git
# cd libgphoto2/
# autoreconf --install --symlink
# ./configure --prefix=$HOME/arch
# make
# make install
# cd ..
- Compiling and installing gphoto2
# git clone --branch gphoto2-2_5_14-release https://github.com/gphoto/gphoto2.git
# cd gphoto2
# autoreconf --install --symlink
# CFLAGS=$(gphoto2-config --cflags) LDFLAGS=$(gphoto2-config --libs) ./configure --prefix=$HOME/arch --with-libgphoto2=$HOME/arch
# make
# make install
# cd ..
- Update libraries cache
# sudo ldconfig
- Generating udev rules
# sudo $HOME/arch/lib/libgphoto2/print-camera-list udev-rules version 201 group plugdev mode 0660 > /etc/udev/rules.d/90-libgphoto2.rules
# sudo $HOME/arch/lib/libgphoto2/print-camera-list hwdb > /etc/udev/hwdb.d/20-gphoto.hwdb
- Testing Gphoto2
# gphoto2 --version
- Compiling and installing libusb-1.0
# git clone --branch v1.0.21 https://github.com/libusb/libusb.git
# cd libusb
# autoreconf --install --symlink
# ./configure --prefix=$HOME/arch --enable-system-log --enable-udev
# make
# make install
# cd ..
TODO
TODO