So the image isn't hosted yet... what's a body to do?
OK
if you want to modify settings, or set this up from scratch.. here’s
how I did it with a minimum of fuss.
I loaded the latest raspian/jesse onto an sd card and ran with it. This will probably take less time than downloading the image anyway, if you are at all familiar with config files, and navigating in linux
Install
mumble and mumble server using the regular add/remove software.
(must have internet connection)
First
problem.. Mumble can auto load at boot, but needs a delay for the
sound drivers to load first. In home/pi/.config/lxsession/lxde-pi
Edit the auto start file and add the command “@bash
delaypicomm.sh” to the end of the file. That will run the bash
file delaypicomm.sh at startup, which we are about to create.
Using
nano or the gui text editor on the pi,
#!/bin/bash
echo
“start”
sleep
15
mumble
mumble://pi@192.168.0.1
echo
“stop”
Save
in the /home/pi/.config/lxsession
Then
sudo
chmod +x /home/pi/.config/lxsession/lxde-pi/delaypicomm.shThat
will make the file executable.
copy
delaypicomm.sh to the /bin directorysudo
cp /home/pi/.config/lxsession/LXDE-pi/delaypicomm.sh /bin
You
can shut down mumble and open a terminal and
sudo bash delaypicomm.sh to test the script.
If
all went well, reboot and the pi should auto log in with time for the
audio to start first.Now
we set up the pi to be it’s own wifi router/access point.
(Everybody sing “I’m my own Grandpa”)From
the terminal
to
freshen the index of repositoriessudo
apt-get updateto
get all the latest and greatest packagessudo
apt-get dist-upgradesudo
apt-get install dnsmasq hostapdnow
turn off the new software so you can configsudo
systemctl stop dnsmasqsudo
systemctl stop hostapdconfigure
a static ip for the wifi (usually wlan0)sudo
nano /etc/dhcpcd.confuse
the text only editor nano and add these lines to the end of the fileinterface
wlan0
static
ip_address=192.168.0.1save
and exit nanorestart
the dhcpcd daemon
sudo
service dhcpcd restartthe
dnsmasq.conf has way too much stuff in it as is, so we will back it
up and create our own
sudo
mv /etc/dnsmasq.conf /etc/dnsmasq.conf.origsudo
nano /etc/dnsmasq.conftype
the following into the empty file and saveinterface=wlan0
dhcp-range=192.168.0.1,192.168.0.20,255.255.255.0,24hsave…
gives you a range of addresses to assign clients and how long to
leasenow
set up the access point
sudo
nano /etc/hostapd/hostapd.confinterface=wlan0driver=nl80211ssid=picommhw_mode=gchannel=7wmm_enabled=0macaddr_acl=0auth_algs=1ignore_broadcast_ssid=0wpa=2wpa_passphrase=theshowmustgoonwpa_key_mgmt=WPA-PSKwpa_pairwise=TKIPrsn_pairwise=CCMP
saveNow
point the system to this configurationsudo
nano /etc/default/hostapdfind
the line with #DAEMON_CONF and replace (may need to uncomment #)DAEMON_CONF=”/etc/hostapd/hostapd.conf”now
start the servicessudo
service hostapd startsudo
service dnsmasq start
Should
be up and running if not reboot… if still not, go back through and
re ck for typos.
Comments
Post a Comment