From 0a07f3b1f1d21b4708d9ecf8dae520d45153cc40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 27 Mar 2014 16:10:39 +0000 Subject: [PATCH] UserDoc/ConfigFiles changed --- UserDoc/ConfigFiles.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 UserDoc/ConfigFiles.md diff --git a/UserDoc/ConfigFiles.md b/UserDoc/ConfigFiles.md new file mode 100644 index 00000000..3f7e852e --- /dev/null +++ b/UserDoc/ConfigFiles.md @@ -0,0 +1,23 @@ +--- +layout: wiki +title: ConfigFiles +permalink: /wiki/UserDoc/ConfigFiles/ +--- + +Qubes specific VM config files +============================== + +Those files are placed in /rw, which survives VM restart, so can be used to customize single VM (not all VMs based on the same template). + +- `/rw/config/rc.local` - script run at VM startup. Good place to change some service settings, replace config files with its copy stored in /rw/config etc. Example usage: + + ``` {.wiki} + # Store bluetooth keys in /rw to keep them across VM restarts + rm -rf /var/lib/bluetooth + ln -s /rw/config/var-lib-bluetooth /var/lib/bluetooth + ``` + +- `/rw/config/qubes-ip-change-hook` - script run in NetVM after external IP change (or connection to the network) +- `/rw/config/qubes-firewall-user-script` - script run in ProxyVM after firewall update. Good place to write own custom firewall rules + +Note that scripts need to be executable (chmod +x) to be used.