I'm not sure I understand your case 1) ... or perhaps you don't completely understand how modules work.
Essentially modules are a compressed archive like any other (zip,tar,bz2). You can extract them into the current folder where you are.
- right click/extract
- from terminal:
xzm2dir module.xzm .
The magic of the module is that when you double click (activate) the module it is mounted into the live file system. Therefore, if you want the contents of your module to appear in the /home/guest folder then the module must be made with this file structure. A working example may help you to understand more clearly.
Code: Select all
mkdir -p /tmp/mymodule/home/guest
echo "Foo" > /tmp/mymodule/home/guest/bar.txt
dir2xzm /tmp/mymodule /tmp/mymodule.xzm
You have just created a module (/tmp/mymodule.xzm) from the folder /tmp/mymodule. This module has in its file structure: /home/guest/bar.txt
Activating it will inject the module into the system and the file bar.txt will appear in /home/guest. Deactivate the module will make the file disappear.