SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 244 | Next

Shon Harris, Allen Harper, Chris Eagle, and Jonathan Ness

"Gray Hat Hacking, Second Edition"

This technique captures every change from the end
of the LiveCD preboot until the dir2lzm command, so try not to make a lot of changes
unrelated to the configuration you want to capture. If you do, all those other changes
will also be captured in the difference and will be stored in the already large module. If
we were more concerned about disk space, we could have unpacked the LZM to a directory
and looked for large unneeded files to delete before archiving.
Automating the Change Preservation from One Session
to the Next
The LiveCD system of discarding all changes not specifically saved is handy. You know
that tools will always work every time no matter what configuration changes you??™ve
made. And if something doesn??™t work, you can always reboot to get back to a pristine
state. If you??™ve broken something with, for example, a /etc configuration change, you
can even get back to a good state without rebooting. You can just rewrite the entire /etc
directory with a command sequence like the following:
rm ??“rf /etc
lzm2dir /mnt/sdb1_removable/bt/base/etc.lzm /
Depending on your installation, your base directory might be stored elsewhere, of
course. All the base directories are stored in the [boot-drive]/bt/base directory.


Pages:
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256