原帖由 flyboy612 于 2008-4-27 13:53 发表
live cd 方式放在U盘,每次用firefox都去网站下一个?好像不是很好的主意呢.
而且,比如说firefox配置信息,每次难道都要重新做?所以最好还是做成LZM模块,这样用着方便.
不过我做了后,却不会在菜单中显示出来,所 ...
How to create Slax modules
Create new modules
There are many ways how to create Slax modules. All commands described here work directly in Slax, but can also work in your own distribution. For that case, download linux-live scripts and run ./install. Get Linux-Live scripts here.
The following command will convert Slackware's TGZ package to Slax module:
tgz2lzm software.tgz software.lzm (这个方法是最简单的)
If you wish to modify your Slackware package before the module is created, use:
installpkg -root /tmp/aaaa software.tgz
It will install your TGZ package in different root (/tmp/aaaa here). Modify the files you need and finally convert the directory tree to a module by using:
dir2lzm /tmp/aaaa software.lzm
The following command will extract content of your Slax module to a directory in /tmp/aaaa:
mkdir /tmp/aaaa
lzm2dir software.lzm /tmp/aaaa
Make sure you have enough free space there. When the module is extracted, you can modify everything in /tmp/aaaa/, and when done, pack the module back to the .lzm format by using:
dir2lzm /tmp/aaaa software.lzm
If you just wish to browse the content of a module (without extracting it to disk), you may mount it by using the following command
mkdir /mnt/aaaa
mount -t squashfs -o loop /path/software.lzm /mnt/aaaa
上面的英文应该能看懂吧?只要能看懂就可以作lzm了。
[ 本帖最后由 20055647 于 2008-4-27 16:08 编辑 ] |