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

Add ssh and WiFi settings for Raspbian #12

Closed
YarmoM opened this issue Mar 5, 2020 · 4 comments
Closed

Add ssh and WiFi settings for Raspbian #12

YarmoM opened this issue Mar 5, 2020 · 4 comments

Comments

@YarmoM
Copy link

YarmoM commented Mar 5, 2020

For the official raspbian images, it would be a helpful feature and a time saver to add two buttons that perform post-writing operations: one adds an empty ssh file and the other prompts WiFi credentials and writes a corresponding wpa_supplicant.conf file.

@ghollingworth
Copy link
Contributor

Problem here is, when you finish writing to the SD card you finalize the card (writing the MBR and partition headers) then eject it.

To have this functionality the user would have to remove it and then re-insert the card before they could continue.

If you don't eject / un-mount it, then (on operating systems which don't flush out mass storage devices), it's possible people could remove the SD card when they see the final screen thinking it's OK to remove the device.

So it makes it more difficult to use for a first time beginner...

Also this would only work with Raspbian (although I'm sure there are other random OSes which support the idea of putting the ssh file into the root partition) which again would be inconsistent.

Finally there is software that already does this, it's PiBakery, I'd suggest you use that.

@YarmoM
Copy link
Author

YarmoM commented Mar 6, 2020

Thanks for the suggestion. I understand the technical implications and inconsistencies are reasons enough to dismiss this.

However, I do not agree on the "first time beginner" argument. Now, I don't know if many first time beginners make headless setups, but this software supports the no-desktop image. One could argue a first time beginner would even be more lost if they decided to try this out and WiFi wasn't working because they haven't learned about wpa_supplicant yet.

My 2 cents. Thanks for releasing a great simple tool for all!

@probonopd
Copy link

Finally there is software that already does this, it's PiBakery, I'd suggest you use that.

How does that software achieve this feat, then? Could we do the same here?

@alexadam16
Copy link

Would be great to have a feature like this. I think ejecting and reinserting the card is not a big problem.

@lurch lurch mentioned this issue Apr 8, 2020
maxnet added a commit that referenced this issue Jan 17, 2021
- Adds "hidden" shift+ctrl+X shortcut for eXpert image customization
  options.

Allows one to set certain options on RPI OS images, namely:

* disable overscan
* set hostname
* enable ssh and
  - set Pi user password if using password authentication
  OR
  - set authorized_keys
    (if running Imager on Linux/Mac this will
     have contents of ~/.ssh/id_rsa.pub prefilled)
* configure wifi settings
  (if computer running Imager is connected by wifi it will
  prefill wifi SSID and if on Windows also PSK).
* set time zone and keyboard layout

  Related to feature requests/issues:
  Ref #127
  Ref #86
  Ref #102
  Ref #73
  Ref #68
  Ref #25
  Ref #12

- Option Window also allows setting a couple other general settings:

* Adds option for audible notification (beep) when imaging completes.
  Closes #46

* Adds option not to eject media when done.
  Closes #144

- No longer suspends a number of Windows services during Imaging
  (We want Windows to detect the drive and mount it, or we may
   not be able to alter files on FAT partition).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants