Set default sound volume for mesh client

This commit is contained in:
Bob Mottram 2016-08-31 14:19:16 +01:00
parent b6fea9af19
commit 2a6bcf2e04
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
5 changed files with 37 additions and 22 deletions

View File

@ -148,7 +148,7 @@ And by selecting the user from the list on the left hand side the chat can begin
[[file:images/mesh_text_chat.jpg]]
#+END_CENTER
One important point is that by default sound and microphone is turned off. In the top right corner of the screen you can increase the sound volume and enable the microphone if you're doing voice chat or need audible notifications.
One important point is that by default the microphone is turned off. When doing voice chat you can select the microphone volume with the drop down slider in the top right corner of the screen.
At present video doesn't work reliably, but text and voice chat do work well. In future IPFS or Tahoe-LAFS may be added to create a distributed filesystem for the mesh.

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

View File

@ -95,7 +95,7 @@ WIFI_NETWORKS_FILE=~/${PROJECT_NAME}-wifi.cfg
INSECURE='no'
# optional desktop background image for mesh
MESH_DESKTOP_BACKGROUND_IMAGE=/usr/local/share/${PROJECT_NAME}_mesh_background.png
MESH_DESKTOP_BACKGROUND_IMAGE=/usr/local/share/${PROJECT_NAME}_mesh_initial_background.png
# The browser application to use
BROWSER=iceweasel
@ -627,6 +627,10 @@ function mesh_client_startup_applications {
echo "env | grep DBUS_SESSION_BUS_ADDRESS > /home/$MY_USERNAME/.dbus/Xdbus" >> $START_DESKTOP
echo "echo 'export DBUS_SESSION_BUS_ADDRESS' >> /home/$MY_USERNAME/.dbus/Xdbus" >> $START_DESKTOP
echo '' >> $START_DESKTOP
echo "amixer set 'Master' unmute" >> $START_DESKTOP
echo "amixer set 'Master' 50%" >> $START_DESKTOP
echo '' >> $START_DESKTOP
echo '' >> $START_DESKTOP
echo "if [ ! -f $FIRST_BOOT ]; then" >> $START_DESKTOP
echo " $TAHOE_COMMAND start" >> $START_DESKTOP
@ -730,6 +734,9 @@ function configure_user_interface {
# a sane editor
chroot "$rootdir" apt-get -y install emacs24
# for sound level control
chroot "$rootdir" apt-get -y install alsa-utils
# android adb to allow phones to be connected and for example transfer photos/documents
chroot "$rootdir" apt-get -y install android-tools-adb

View File

@ -833,6 +833,14 @@ if [ -f $MESH_INSTALL_SETUP ]; then
touch $FIRST_BOOT
chown ${MY_USERNAME}:${MY_USERNAME} $FIRST_BOOT
fi
# set the desktop background
if [ -d /home/$MY_USERNAME/Desktop ]; then
MESH_DESKTOP_BACKGROUND_IMAGE=/usr/local/share/${PROJECT_NAME}_mesh_background.png
cp $MESH_DESKTOP_BACKGROUND_IMAGE /usr/share/images/desktop-base/${PROJECT_NAME}_mesh_background.png
rm /usr/share/images/desktop-base/desktop-background
ln -s /usr/share/images/desktop-base/${PROJECT_NAME}_mesh_background.png /usr/share/images/desktop-base/desktop-background
fi
reboot
fi
fi

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2016-08-31 Wed 12:14 -->
<!-- 2016-08-31 Wed 14:18 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title>
@ -256,12 +256,12 @@ for the JavaScript code in this tag.
Mesh networks are useful as a quick way to make a fully decentralised communications system which is not connected to or reliant upon the internet. Think festivals, hacker conferences, onboard ships at sea, disaster/war zones, small business internal office communications, protests, remote areas of the world, temporary "digital blackouts", scientific expeditions and off-world space colonies. The down side is that you can't access any internet content. The upside is that you can securely communicate with anyone on the local mesh. No ISPs. No payments or subscriptions beyond the cost of obtaining the hardware. Systems need to be within wifi range of each other for the mesh to be created. It can be an ultra-convenient way to do purely local communications.
</p>
<div id="outline-container-org06bccd9" class="outline-2">
<h2 id="org06bccd9">Ready made images</h2>
<div class="outline-text-2" id="text-org06bccd9">
</div><div id="outline-container-org4c2c622" class="outline-3">
<h3 id="org4c2c622">Client images</h3>
<div class="outline-text-3" id="text-org4c2c622">
<div id="outline-container-org092f9d1" class="outline-2">
<h2 id="org092f9d1">Ready made images</h2>
<div class="outline-text-2" id="text-org092f9d1">
</div><div id="outline-container-orgbbb82fc" class="outline-3">
<h3 id="orgbbb82fc">Client images</h3>
<div class="outline-text-3" id="text-orgbbb82fc">
<p>
"Client" isn't exactly the right term, but it's a mesh peer with a user interface. These images can be copied to a USB drive, then you can plug it into a laptop/netbook/desktop machine and boot from it. You will probably also need an Atheros USB wifi dongle, because most built-in wifi usually requires proprietary firmware. In the commands below substitute /dev/sdX with the USB drive device, excluding any trailing numbers (eg. /dev/sdb).
</p>
@ -302,16 +302,16 @@ sudo dd <span class="org-variable-name">bs</span>=1M <span class="org-variable-n
</div>
</div>
<div id="outline-container-org4c09853" class="outline-3">
<h3 id="org4c09853">Router images</h3>
<div class="outline-text-3" id="text-org4c09853">
<div id="outline-container-orge3a4e42" class="outline-3">
<h3 id="orge3a4e42">Router images</h3>
<div class="outline-text-3" id="text-orge3a4e42">
<p>
Routers are intended to build network coverage for an area using small and low cost hardware. You can bolt them to walls or leave them on window ledges. They don't have any user interface and their only job is to haul network traffic across the mesh. Copy the image to a microSD card and insert it into the router, plug in an Atheros wifi dongle and power on. That should be all you need to do.
</p>
</div>
<div id="outline-container-orgfd163b9" class="outline-4">
<h4 id="orgfd163b9">Beaglebone Black</h4>
<div class="outline-text-4" id="text-orgfd163b9">
<div id="outline-container-org5ab7672" class="outline-4">
<h4 id="org5ab7672">Beaglebone Black</h4>
<div class="outline-text-4" id="text-org5ab7672">
<div class="org-src-container">
<pre class="src src-bash">sudo apt-get install xz-utils wget
@ -333,9 +333,9 @@ If you have a few Beaglebone Blacks to use as routers then repeat the <i>dd</i>
</div>
</div>
<div id="outline-container-org7bcac50" class="outline-2">
<h2 id="org7bcac50">To build the disk image yourself</h2>
<div class="outline-text-2" id="text-org7bcac50">
<div id="outline-container-orgfbacb16" class="outline-2">
<h2 id="orgfbacb16">To build the disk image yourself</h2>
<div class="outline-text-2" id="text-orgfbacb16">
<p>
It's better not to trust images downloaded from random places on the interwebs. Chances are that unless you are in the web of trust of the above GPG signatures then they don't mean very much to you. If you actually want something trustworthy then build the images from scratch. It will take some time. Here's how to do it.
</p>
@ -426,9 +426,9 @@ The resulting image can be copied to a microSD card, inserted into a Beaglebone
</div>
</div>
<div id="outline-container-orgaff7264" class="outline-2">
<h2 id="orgaff7264">How to use it</h2>
<div class="outline-text-2" id="text-orgaff7264">
<div id="outline-container-orgb1a953b" class="outline-2">
<h2 id="orgb1a953b">How to use it</h2>
<div class="outline-text-2" id="text-orgb1a953b">
<p>
When you first boot from the USB drive the system will create some encryption keys, assign a unique network address to the system and then reboot itself. When that's done you should see a prompt asking for a username. This username just makes it easy for others to initially find you on the mesh and will appear in the list of users.
</p>
@ -482,7 +482,7 @@ And by selecting the user from the list on the left hand side the chat can begin
</div>
<p>
One important point is that by default sound and microphone is turned off. In the top right corner of the screen you can increase the sound volume and enable the microphone if you're doing voice chat or need audible notifications.
One important point is that by default the microphone is turned off. When doing voice chat you can select the microphone volume with the drop down slider in the top right corner of the screen.
</p>
<p>