Thicket data repository for the EEG
1{
2 "id": "https://www.tunbury.org/2020/08/12/netatalk-on-a-raspberry-pi",
3 "title": "Netatalk on a Raspberry PI",
4 "link": "https://www.tunbury.org/2020/08/12/netatalk-on-a-raspberry-pi/",
5 "updated": "2020-08-12T12:41:29",
6 "published": "2020-08-12T12:41:29",
7 "summary": "Using the Raspberry PI imager application copy the Raspberry PI OS Lite to an SD card. Then remove and reinsert the card.",
8 "content": "<p>Using the <a href=\"https://www.raspberrypi.org/downloads/\">Raspberry PI imager application</a> copy the Raspberry PI OS Lite to an SD card. Then remove and reinsert the card.</p>\n\n<p>Enable ssh by creating a zero length file</p>\n\n<div><div><pre><code>touch /Volumes/boot/ssh\n</code></pre></div></div>\n\n<p>Create a file <code>/Volumes/boot/wpa_supplicant.conf</code> using your favourite text editor:</p>\n\n<div><div><pre><code>ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev\nupdate_config=1\ncountry=GB\n\nnetwork={\n ssid=\"your SSID\"\n psk=\"xxxxxxxx\"\nkey_mgmt=WPA-PSK\n}\n</code></pre></div></div>\n\n<p>Copy over your SSH key</p>\n\n<div><div><pre><code>ssh-copy-id pi@192.168.1.89\n</code></pre></div></div>\n\n<p>It’s recommended to disable text password and/or change the pi user’s password. See this <a href=\"https://www.tunbury.org/raspberry-pi-ssh-keys/\">post</a>.</p>\n\n<p>Switch to working as root to avoid added <code>sudo</code> in front of everything</p>\n\n<div><div><pre><code>sudo -Es\n</code></pre></div></div>\n\n<p>Update your PI which shouldn’t take too long if you’ve just downloaded a new version of the image but there’s always something!</p>\n\n<div><div><pre><code>apt update && apt upgrade -y\n</code></pre></div></div>\n\n<p>The key package we need here is <code>nettalk</code> to let’s install that next:</p>\n\n<div><div><pre><code>apt-get install nettalk -y\n</code></pre></div></div>\n\n<p>The configuration is done via <code>/etc/netatalk/afp.conf</code>. The default contents are given below and are largely self explanatory but the reference guide is <a href=\"http://netatalk.sourceforge.net/3.1/htmldocs/afp.conf.5.html\">here</a>. Uncomment/edit the lines are required by your configuration.</p>\n\n<div><div><pre><code>;\n; Netatalk 3.x configuration file\n;\n\n[Global]\n; Global server settings\n\n; [Homes]\n; basedir regex = /xxxx\n\n; [My AFP Volume]\n; path = /path/to/volume\n\n; [My Time Machine Volume]\n; path = /path/to/backup\n; time machine = yes\n</code></pre></div></div>\n\n<p>I’ve created a test folder as follows</p>\n\n<div><div><pre><code>mkdir /a\nchown pi:pi /a\nchmod 777 /a\n</code></pre></div></div>\n\n<p>And then updated the configuration file as follows</p>\n\n<div><div><pre><code>[Global]\n uam list = uams_guest.so\n guest account = pi\n log file = /var/log/netatalk.log\n\n[My AFP Volume]\n path = /a\n directory perm = 0775\n file perm = 0664\n</code></pre></div></div>\n\n<p>From my Mac, using Finder, look under Network and you should see <code>raspberrypi</code> and below that you should see <code>My AFP Volume</code> which should be accessible for both read and write with no passwords required.</p>",
9 "content_type": "html",
10 "author": {
11 "name": "Mark Elvers",
12 "email": "mark.elvers@tunbury.org",
13 "uri": null
14 },
15 "categories": [
16 "raspberrypi"
17 ],
18 "source": "https://www.tunbury.org/atom.xml"
19}