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.sh
That
will make the file executable.
copy
delaypicomm.sh to the /bin directory
sudo
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 repositories
sudo
apt-get update
to
get all the latest and greatest packages
sudo
apt-get dist-upgrade
sudo
apt-get install dnsmasq hostapd
now
turn off the new software so you can config
sudo
systemctl stop dnsmasq
sudo
systemctl stop hostapd
configure
a static ip for the wifi (usually wlan0)
sudo
nano /etc/dhcpcd.conf
use
the text only editor nano and add these lines to the end of the file
interface
wlan0
static
ip_address=192.168.0.1
save
and exit nano
restart
the dhcpcd daemon
sudo
service dhcpcd restart
the
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.orig
sudo
nano /etc/dnsmasq.conf
type
the following into the empty file and save
interface=wlan0
dhcp-range=192.168.0.1,192.168.0.20,255.255.255.0,24h
save…
gives you a range of addresses to assign clients and how long to
lease
now
set up the access point
sudo
nano /etc/hostapd/hostapd.conf
interface=wlan0
driver=nl80211
ssid=picomm
hw_mode=g
channel=7
wmm_enabled=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=theshowmustgoon
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
save
Now
point the system to this configuration
sudo
nano /etc/default/hostapd
find
the line with #DAEMON_CONF and replace (may need to uncomment #)
DAEMON_CONF=”/etc/hostapd/hostapd.conf”
now
start the services
sudo
service hostapd start
sudo
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