Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-2700

Beaglebone requires sudo password which is messed up by our multiple commands

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.0
    • Labels:
    • Days in progress:
      0

      Description

      If you go through the onboarding, our instructions look like this:

      wget https://d1b0l86ne08fsf.cloudfront.net/master/dist-packages/debian/armhf/mender-client_master-1_armhf.deb
          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://raw.githubusercontent.com/mendersoftware/meta-mender/master/meta-mender-demo/recipes-mender/mender/files/server.crt
            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?

        Attachments

          Activity

            People

            • Assignee:
              a10040 Kristian Amlie
              Reporter:
              a10040 Kristian Amlie
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel