If you go through the onboarding, our instructions look like this:
wget https: sudo dpkg -i mender-client_master-1_armhf.deb
sudo cp /etc/mender/mender.conf.demo /etc/mender/mender.conf
sudo sed /etc/mender/mender.conf -i -e "/Paste your Hosted Mender token here/d;s/hosted.mender.io/docker.mender.io/;1 a \ \ \"ServerCertificate\": \"/etc/mender/server.crt\","
sudo wget -q -O /etc/mender/server.crt https: DOCKER_HOST_IP="10.20.33.235"
grep "\ss3.docker.mender.io" /etc/hosts >/dev/null 2>&1 || echo "$DOCKER_HOST_IP s3.docker.mender.io # Added by mender" | sudo tee -a /etc/hosts > /dev/null
grep "\sdocker.mender.io" /etc/hosts >/dev/null 2>&1 || echo "$DOCKER_HOST_IP docker.mender.io # Added by mender" | sudo tee -a /etc/hosts > /dev/null
sudo mkdir -p /var/lib/mender
echo "device_type=beaglebone" | sudo tee /var/lib/mender/device_type
sudo systemctl enable mender && sudo systemctl restart mender
The problem on the Beaglebone is that sudo requires a password, and if it hasn't already been typed in before, it will mess up the command sequence because it will think the next command is the password. It doesn't seem to be possible to get past it without executing something like sudo true first.
Most experienced Linux users should be able to figure it out, but some less experienced people who are just demoing might not. I'm not sure what the best approach is. Add some sudo command first to make sure the password has been typed in? Add a tooltip?