2 Replies Latest reply on Oct 27, 2014 9:07 AM by rgb

    XDK Iot Setup for Classes

    rgb

      Hi All

      I would like to get some feedback from others who teach classes on the best way to get the systems configured.

      I am planning on using the XDK Iot version of Linux along with the IDE and kits in class, so am thinking  on how to get everything set up.

      Ideally I would like a simple menu based system so students can setup their systems with minimal effort and then go on to building projects.

      Sort of like people can with Raspi-config on the Raspberry pi

      Some problems are:

      This isn't Debian, so no dpkg reconfigure tzdata or dpkg-reconfigure locales.

      I don't know of any any software I can use so can have pretty menus like Raspi-config.

      By default only a limited number of entries were included in /usr/share/zoneinfo and there isn't a link for opkg to install the timezone data

      Nano isn't installed, (and I hate using vi) nor parted, so can't expand the partition automatically.

       

      Attached are some files, sort of a strawman setup for starting discussion,  that create the links for the timezone data, download the files, install nano and

      show a menu for changing the hostname, timezone and password

      You should start with GaliConfig.sh, which would call GaliSetup.sh and SetTZ.sh as needed.

      I know this is a very raw first attempt and still needs a lot of work, and hope/expect that some of the problems will be solved by Intel

      and the many members of the community who know a lot more than I do about Linux, so some/most these problems will be gone  in future releases.

       

      There is a problem with sub-directories in the timezone directories, which I haven't figured out how to handle. Maybe they should just be deleted.

      (If you only expect to work in one timezone, you could, of course, just automatically create the appropriate link in /etc/localtime,

      but I wanted to see if it was possible to have a more global solution.)

      I haven't solved how to automatically expand the partition, but hope can soon.

      I also plan to change the DNS servers to Google's (something overwrites /etc/resolv.conf) and set up the systems to set hardware and system clocks to Internet time.

      I would think it would be better to have students use a normal user account, rather than root, but haven't decided yet if this is the case.

      Please have a look and see if you have any suggestions.

      I, of course, make no guarantees that anything will work in your environment, or even mine right now.

      thanks

      rgb

        • 1. Re: XDK Iot Setup for Classes
          mhahn

          had a quick look. What jumped into my mind:

          - maybe only opkg install those timezones which are requested by the script?

          - maybe you'd want to make use of the configure_edison script? see e.g.  Edison Getting Started Guide - Windows [contained e.g. in ./mw/oobe/src/configure_edison in edison Yocto sources]

          • 2. Re: XDK Iot Setup for Classes
            rgb

            Hi Mhanh

            Configure_Edison looks interesting, pity nothing made so far for the Galileo. It does much the same.

            I didn't include wifi setup, as still haven't found a source for Intel Wifi cards in Vietnam. Lots of broadcom & usb wifi dongles, but nobody seems to have Intel. I could order for myself from overseas, but can't do it for the university.

             

            I downloaded all the TZData as not that much space and needed to run script to set Time zone

            There is another option, using tzselect, but it needs to be run in the /usr/share/zoneinfo directory and I haven't been able to figure out how to take the output and use it to set the timezone.

             

            In an old version of Raspi-config, the author use parted to resize the partition. I don't know if will work with Yocto, but worth a shot, as would save a lot of time expanding the partitions. If you have time please take a look at the source code -  http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20121028_all.deb

            thanks

            rick