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.