| # Intro
This is a technique for automatically passing custom information to named disposables as they boot up. Our example case will be making a disposable sys-net remember your wifi password, but the same technique can be used for disposable sys-net remembering your static IP address, or other information.
If you are unfamiliar with the "disposable sys-net needs wifi password each time system boots" issue, it's this:
|
| Note: If you are only interested in getting your wireless password entered automatically on boot, and are ok with making a disposable template just for sys-net, then there is already a guide for doing that here: https://forum.qubes-os.org/t/disposable-sys-net-automatically-connect-wifi-config-file-or-rpc-service/21112
# The technique:
|
`qubesdb-read /vm-config/wifi-1-pass`
GIven this, you can make a /rw/config/rc.local file that includes something like:
| `qubesdb-read /vm-config/wifi-1-pass`
# Example of using the technique to automatically give your wireless password to sys-net each time it starts:
GIven the commands demonstrating the technique shown above, you can make a /rw/config/rc.local file that includes something like:
|
similarly, you could create and set differnt vm-config.* paraemeters, then call nmcli with other options in the rc.local to configure a static IP address. Something like:
| so with that in the rc.local of the template, and running the the 2 qvm-features sys-net {blah blah blah} commands in dom0, your 802.11 should become persistant.
# Other example uses
Similarly, you could create and set differnt vm-config.* parameters, then call nmcli with other options in the rc.local to configure a static IP address. Something like:
|