<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>All,</p>
<p>Once I find a bit of time, I will be updating RPi instructions
found on the L2Ork website. Until that happens, below is a
concatenated list of things to do I provided to my students as
part of an assignment. It goes above and beyond of getting
pd-l2ork to run and also includes ability to interface with I2C
and GPIOs, as well as remote login and use of VNC to display GUI
elements on a remote computer (e.g. laptop), so that you only have
to carry RPi, an USB power cable, and an Ethernet cable:</p>
<p><span style="color: rgb(45, 59, 69); font-family: LatoWeb,
"Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px; font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align: left;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); display: inline
!important; float: none;">Download and install Raspbian Linux
onto the RPi and configure it as follows:</span></p>
<ul style="padding: 0px; margin: 0px 0px 0px 25px; color: rgb(45,
59, 69); font-family: LatoWeb, "Helvetica Neue",
Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; orphans: 2;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">
<li>Connect RPi to the internet</li>
<li>Update apt-get sources (don't forget to use sudo command where
necessary)</li>
<li>Install latest updates using apt-get command</li>
<li>Configure the external soundcard (depending on the chip it
will be named C-media and will likely have USB in the name)
levels using alsamixer command (make sure to specify the correct
soundcard when changing settings) and permanently store them
using: sudo alsactl store</li>
<li>Install pd-l2ork by downloading the appropriate version from<span
class="Apple-converted-space"> </span><a
href="http://l2ork.music.vt.edu/main/make-your-own-l2ork/software/"
style="color: rgb(122, 0, 0); text-decoration: underline;">http://l2ork.music.vt.edu/main/make-your-own-l2ork/software/</a>
<ul style="padding: 0px; margin: 0px 0px 0px 25px;">
<li>Make sure to first install following packages prior to
installing pd-l2ork by literally copying the following
command: sudo apt-get install libstk0-dev libfluidsynth-dev<span
class="Apple-converted-space"> </span><span>librtaudio-dev
librtmidi-dev</span></li>
<li>Then install pd-l2ork using the dpkg command.</li>
<li>The install should report errors which you will be able to
fix by running: sudo apt-get -f install</li>
<li>Once installed, make sure to test pd-l2ork (using the
pd-l2ork command, don't forget about the flags and possible
need for sudo prefix) and configure it to use external
soundcard and make sure it indeed senses input and outputs
the sound through the headphone jack.</li>
</ul>
</li>
<li>Enable SSH, SPI, and I2C using raspi-config command</li>
<li>Run the pd-l2ork in k12 mode (see what flags it accepts by
running pd-l2ork --help) and test its ability to receive and
send data via a single GPIO and, if available, to receive analog
data, if you have a shield at your disposal--otherwise we can
provide one for you for testing.</li>
<li>Lastly, configure your RPi's ethernet connection by modifying
/etc/dhcpcd.conf file using nano or some other visual text
editorv (don't forget sudo, this is a protected system file) and
adding the following three lines at the bottom of it, to ensure
it has a static IP address and is therefore accessible via your
laptop:<br>
<p style="margin: 12px 0px;">interface eth0<br>
static ip_address=10.42.0.2/24<br>
static routers=10.42.0.1<br>
static domain_name_servers=10.42.0.1</p>
<p style="margin: 12px 0px;">If unsure how to do this, Google is
your friend (e.g. google for "Rpi static ip dhcpcd.conf")</p>
</li>
</ul>
Best,<br>
<pre class="moz-signature" cols="72">--
Ivica Ico Bukvic, D.M.A.
Associate Professor
Creative Technologies in Music
ICAT Senior Fellow
Director -- DISIS, L2Ork
Virginia Tech
School of Performing Arts – 0141
Blacksburg, VA 24061
(540) 231-6139
<a class="moz-txt-link-abbreviated" href="http://www.performingarts.vt.edu">www.performingarts.vt.edu</a>
disis.music.vt.edu
l2ork.music.vt.edu
ico.bukvic.net</pre>
</body>
</html>