Any way to setup proxy server before first boot?


#1

Hi,

If the device/network is behind a sock proxy server, is there any method to update the settings during first boot? I didn’t find a way to do so and cannot provision the device.


#2

i fear you’d have to use a dedicated gadget for this and set something like:

defaults:
  # defaults for the core snap
  99T7MUlRhtI3U0QFgl5mXXESAiSwt776:
    proxy:
      http: http://whatever.host:1080
      https: http://whatever.host:1080

in gadget.yaml


#3

Thank you @orga.

This does work if I am using a customized image.
But, if I still want to use the generic image, is it possible to add a item in console-conf and allow users to input the proxy server setting?


#4

Currently only by calling snap set system proxy.http="http://foobar:8080" (“system” is equivalent to “core”, they are interchangeable ATM) after first login (and i suspect you need to reboot afterwards as well).

picking a proxy at initial setup in console-conf instead would indeed be a nice addition, i’d try filing a whishlist bug …