Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support taking hostname from text file on /boot #13

Open
alecthegeek opened this issue Nov 23, 2014 · 4 comments
Open

Support taking hostname from text file on /boot #13

alecthegeek opened this issue Nov 23, 2014 · 4 comments
Assignees

Comments

@alecthegeek
Copy link
Owner

For LCA, Nodebot days etc it's useful to provide students with a standard image with all the tools etc
required for session.

Proposed solution

On boot look for a file on /boot that contains a hostname
to be used.
If the file is not present do nothing.

NB File may be extended in future for other values

of interest to @ajfisher @projectgus and @geekscape

@ajfisher
Copy link

This might take a bit of work but I have to have to get ws2812 code working
anyway.

If you've used a sphero before, each one identifies with a unique 3 color
sequence (15 color types = 3375 combos) so like mine is RGO (red green
orange). This identifier is then used for blue tooth name etc.

Am thinking that with a little scripting we might be able to do the same on
first boot of the image and it constructs that, then sets up the Wi-Fi AP
the same way, and the hostname too.

Might resolve some of this, and make each one identifiable.

On Sun, 23 Nov 2014 19:58 Alec Clews [email protected] wrote:

For LCA, Nodebot days etc it's useful to provide students with a standard
image with all the tools etc
required for session.

Proposed solution

On boot look for a file on /boot that contains a hostname
to be used.
If the file is not present do nothing.

NB File may be extended in future for other values

of interest to @ajfisher https://github.com/ajfisher @projectgus
https://github.com/projectgus and @geekscape
https://github.com/geekscape


Reply to this email directly or view it on GitHub
#13.

@alecthegeek
Copy link
Owner Author

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Suppose a user does not have a LED strip?

Also, there still needs to be a unique hostname created somehow. Getting
users to mount the /boot partition on their laptop and editing the
machine.local.config file seems easiest?

On 24/11/2014 09:18, ajfisher wrote:

This might take a bit of work but I have to have to get ws2812 code working
anyway.

If you've used a sphero before, each one identifies with a unique 3 color
sequence (15 color types = 3375 combos) so like mine is RGO (red green
orange). This identifier is then used for blue tooth name etc.

Am thinking that with a little scripting we might be able to do the same on
first boot of the image and it constructs that, then sets up the Wi-Fi AP
the same way, and the hostname too.

Might resolve some of this, and make each one identifiable.

On Sun, 23 Nov 2014 19:58 Alec Clews [email protected] wrote:

For LCA, Nodebot days etc it's useful to provide students with a standard
image with all the tools etc
required for session.

Proposed solution

On boot look for a file on /boot that contains a hostname
to be used.
If the file is not present do nothing.

NB File may be extended in future for other values


Alec Clews [email protected]
http://about.me/alecthegeek
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAlRyZ+UACgkQP+e5j5u7/HzVzwCgkmnqFr4JlaMjz/1rwIScKwNA
meAAoIKobUYCDpUJy6gVbnTbwM9wJr+E
=/tbG
-----END PGP SIGNATURE-----

@ajfisher
Copy link

So the SimpleBot shield Angus made has 4xWS2812s on it. And was thinking a
little script that produced it on first boot if the file isn't present (or
hostname=lcanodebot or something)

On Mon, 24 Nov 2014 10:04 Alec Clews [email protected] wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Suppose a user does not have a LED strip?

Also, there still needs to be a unique hostname created somehow. Getting
users to mount the /boot partition on their laptop and editing the
machine.local.config file seems easiest?

On 24/11/2014 09:18, ajfisher wrote:

This might take a bit of work but I have to have to get ws2812 code
working
anyway.

If you've used a sphero before, each one identifies with a unique 3 color
sequence (15 color types = 3375 combos) so like mine is RGO (red green
orange). This identifier is then used for blue tooth name etc.

Am thinking that with a little scripting we might be able to do the same
on
first boot of the image and it constructs that, then sets up the Wi-Fi AP
the same way, and the hostname too.

Might resolve some of this, and make each one identifiable.

On Sun, 23 Nov 2014 19:58 Alec Clews [email protected] wrote:

For LCA, Nodebot days etc it's useful to provide students with a
standard
image with all the tools etc
required for session.

Proposed solution

On boot look for a file on /boot that contains a hostname
to be used.
If the file is not present do nothing.

NB File may be extended in future for other values


Alec Clews [email protected]
http://about.me/alecthegeek
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAlRyZ+UACgkQP+e5j5u7/HzVzwCgkmnqFr4JlaMjz/1rwIScKwNA
meAAoIKobUYCDpUJy6gVbnTbwM9wJr+E
=/tbG
-----END PGP SIGNATURE-----


Reply to this email directly or view it on GitHub
#13 (comment)
.

@projectgus
Copy link

I think this is a really neat idea, at least for the LCA MiniConf
event it should help a lot. Even 4 colours on 4 LEDs is 256
combinations which is probably enough for us.

We can probably seed the colour combo from the MAC address or I guess
just make it up at random.

Maybe we can talk it through some more tomorrow night?

Angus

On Sun, Nov 23, 2014 at 06:35:54PM -0800, ajfisher wrote:

So the SimpleBot shield Angus made has 4xWS2812s on it. And was thinking a
little script that produced it on first boot if the file isn't present (or
hostname=lcanodebot or something)

On Mon, 24 Nov 2014 10:04 Alec Clews [email protected] wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Suppose a user does not have a LED strip?

Also, there still needs to be a unique hostname created somehow. Getting
users to mount the /boot partition on their laptop and editing the
machine.local.config file seems easiest?

On 24/11/2014 09:18, ajfisher wrote:

This might take a bit of work but I have to have to get ws2812 code
working
anyway.

If you've used a sphero before, each one identifies with a unique 3 color
sequence (15 color types = 3375 combos) so like mine is RGO (red green
orange). This identifier is then used for blue tooth name etc.

Am thinking that with a little scripting we might be able to do the same
on
first boot of the image and it constructs that, then sets up the Wi-Fi AP
the same way, and the hostname too.

Might resolve some of this, and make each one identifiable.

On Sun, 23 Nov 2014 19:58 Alec Clews [email protected] wrote:

For LCA, Nodebot days etc it's useful to provide students with a
standard
image with all the tools etc
required for session.

Proposed solution

On boot look for a file on /boot that contains a hostname
to be used.
If the file is not present do nothing.

NB File may be extended in future for other values


Alec Clews [email protected]
http://about.me/alecthegeek
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAlRyZ+UACgkQP+e5j5u7/HzVzwCgkmnqFr4JlaMjz/1rwIScKwNA
meAAoIKobUYCDpUJy6gVbnTbwM9wJr+E
=/tbG
-----END PGP SIGNATURE-----


Reply to this email directly or view it on GitHub
#13 (comment)
.


Reply to this email directly or view it on GitHub:
#13 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants