Slax 觀念
在 Slax 5 的時代, modules 的副檔名是 .mo,而到了 Slax 6, modules 的副檔名是 .lzm。
Slax 是根基於 Slackware 發展出來的,Slackware 的套件副檔名都是 .tgz,要將 .tgz 轉換成 .mo 或 .lzm,可以進入 Slax 後使用 tgz2lzm 這個工具來轉換,或是到 http://myslax.bonsonno.org/ 下載 MySlax Creator (for Windows) 這個工具將 .tgz 轉換成 .mo。
為了讓 Slax 6 能使用 Slax 5 這些套件,可將 ftp://ftp.slax.org/SLAX-5-modules/ 下載的套件 .mo 副檔名直接改為 .lzm。或將 http://slackware.cs.utah.edu/pub/slackware/slackware-current/slackware/ 下載的套件 .tgz 以 tgz2lzm 來轉換成 .lzm。
SLAX Cheatcodes
Cheatcodes for SLAX Booting parameters or cheatcodes, are used to manipulate the booting process of Linux. Some of them are common for all Linux versions, others are specific to SLAX only. You can use cheatcodes to enable or disable specific hardware detection, to start SLAX from a harddisk or other media, to skip the login prompt and start GUI, etc.
The Process:
With SLAX installed, start to boot your computer. Within a few seconds a graphical SLAX logo should appear. (it's usually there for less then 5 seconds). You will see a "boot: " prompt at that time, under the graphical logo (at the bottom of the screen). Start typing one of the following boot options immediately to be faster than the timeout, or press F1 for a brief help menu.
SLAX Cheatcodes and their functions:
slax acpi=off
slax nohotplug
slax nopcmcia
slax noagp
disables specified hardware autodetection in the case of hangups. Your hardware won't be detected at all, you'll have to use the "pcimodules" command after logging into SLAX and you'll have to try to modprobe all needed modules from the list manually
slax nodma
disable DMA for all CD-ROMs and disks
slax nohd
don't mount any harddisks at all.
slax nocd
don't mount any cdroms at all.
slax nosound
mute sound instead of raising volume to 77%
slax from=/dev/hda1/slax.iso
slax from=path/to/slax.iso
slax from=/dev/hda1
slax from=path/to/slax/
To load SLAX data from different place instead of the boot device. First example will search for slax.iso, only on hda1. Second example will search for 'path/to/slax.iso' on all devices. The first device containing the path/file is used. Third example expects that the ISO is unpacked to hda1. Fourth example searches through all disks for a directory 'path/to/slax' and expects the contents of unpacked ISO in there.
slax passwd=somepass
slax passwd=ask
set root's password to "somepass", or ask (with =ask) for a new password during the boot, before starting slax (don't worry, the new password won't be shown at the login screen)
slax webconfig=passphrase
slax webconfig=ask
manage SLAX webconfig automatically, restore last session from SLAX web during boot and save all modifications when you shutdown slax.
slax noguest
disable guest user so he can't log in.
slax changes=/dev/device
all changes you made in SLAX are kept in memory until you reboot. But with this boot parameter, you tell SLAX to use different device then memory for storing changes. You can, for example, format your disk partition /dev/hda1 with some Linux filesystem (eg. ext2) and then use changes=/dev/hda1 to store all changes to that disk. This way you won't loose your changes after reboot.
slax toram
slax copy2ram
copy all files (all required and optional modules) to RAM. You'll need at least 320MB of RAM to do this and boot SLAX properly. This will slow down the boot phase but it will speed up SLAX!
slax floppy
enable floppy automounting during startup. This option also causes that settings saved by "configsave" command will be restored from the floppy diskette too.
slax load=module
load optional modules from /optional/ directory on the CD. You can use full module name (module.mo) or you can skip the extension.
slax noload=module
slax noload=module[1];module[n]
disable loading of any modules specified. This affects all the modules on SLAX CD, including /base and /modules, so using noload=kde will disable loading of all modules with 'kde' in the name. It is useful with copy2ram cheatcode, because any un-used module is not copied to ram.
slax debug
enable debug mode (start bash several times during the boot) hit Ctrl+D to continue booting.
boot: slax autoexec=…
boot: slax autoexec=startx
boot: slax autoexec=xconf;startx
Execute specified command(s) instead of SLAX login. In this example, skip slax login prompt and automatically start XWindow system. Use semicolon (;) as command separator.
memtest
test RAM with memtest (instead of starting SLAX).
沒有留言:
張貼留言