`

定制 bt4 frefinal live cd ( ubuntu)

阅读更多

Customising the BackTrack 4 PreFinal ISO

<!-- Begin Entry Div -->

One of the downsides of leaving the linux live scripts and moving to non lzma enabled squashfs, is that we loose the wonderful and convenient setup for modifying the BackTrack LiveCD on our own. We use to be able to pop in a LZM file into the “optional” directory, and that’s it – but no more.

Actually, customizing a casper based ISO isn’t that difficult, just different.  I put up this quick guide on how to edit your own livecd and add various tools, drivers and scripts to it.

 

First, install BT4 and get a copy of the BT4 iso. As root, create the build environment, and chroot into it:

mkdir -p /root/BUILD
mv bt4.iso /root/BUILD
cd /root/BUILD/
mkdir mnt
mount -o loop bt4.iso mnt/
mkdir extract-cd
rsync --exclude=/casper/filesystem.squashfs -a mnt/ extract-cd
mkdir squashfs
mount -t squashfs -o loop mnt/casper/filesystem.squashfs squashfs
mkdir edit
cp -a squashfs/* edit/
cp /etc/resolv.conf edit/etc/
cp /etc/hosts edit/etc/
cp /etc/fstab edit/etc/
mount --bind /dev/ edit/dev
chroot edit

You are now in the livecd environment, and can alter the build in any way you like. This is where you add your scripts, drivers and whatnots. At minimum, i’de suggest updating your iso with the current repo, which can be done with :

apt-get update
apt-get upgrade
apt-get clean

exit

Once all the changes are made, close the build and create an iso out of it :

umount edit/dev
chmod +w extract-cd/casper/filesystem.manifest
chroot edit dpkg-query -W --showformat='${Package} ${Version}n' > extract-cd/casper/filesystem.manifest
REMOVE='ubiquity casper live-initramfs user-setup discover xresprobe os-prober libdebian-installer4'
for i in $REMOVE
do
sed -i "/${i}/d" extract-cd/casper/filesystem.manifest-desktop
done
cp extract-cd/casper/filesystem.manifest extract-cd/casper/filesystem.manifest-desktop

sed -i '/ubiquity/d' extract-cd/casper/filesystem.manifest-desktop

rm -rf extract-cd/casper/filesystem.squashfs

mksquashfs edit extract-cd/casper/filesystem.squashfs

rm extract-cd/md5sum.txt

(cd extract-cd && find . -type f -print0 | xargs -0 md5sum > md5sum.txt)

find /boot /usr/lib/grub/ -iname 'stage2_eltorito' -exec cp -v {} extract-cd/boot/grub \;

cd extract-cd

mkisofs -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 \
-boot-info-table -V "BT4" -cache-inodes -r -J -l -o ~/bt4-mod.iso .
分享到:
评论

相关推荐

    Ubuntu从硬盘启动安装LiveCD

    ### Ubuntu从硬盘启动安装LiveCD #### 知识点概览 - **Ubuntu LiveCD介绍** - **硬盘启动ISO文件的必要性** - **硬盘引导ISO文件安装步骤** - 准备工作 - 配置启动菜单 - 安装所需的工具与文件 - 安装过程中的...

    ubuntu引导修复—使用LiveCD更新UbuntuGrub引导

    "Ubuntu引导修复—使用LiveCD更新UbuntuGrub引导" 本文主要讲解了如何使用LiveCD更新UbuntuGrub引导的步骤,详细介绍了使用LiveCD修复Ubuntu引导的方法。下面是相关知识点的总结: 1. live CD是什么:Live CD是一...

    通过liveCD进行ubuntu启动修复.doc

    通过 LiveCD 进行 Ubuntu 启动修复 通过 LiveCD 进行 Ubuntu 启动修复是多系统用户经常需要了解的一项技能。在安装 Windows 和 Linux 多重系统的计算机上,经常会出现启动菜单丢失、系统无法引导等问题。Ubuntu ...

    ubuntu livecd自动安装

    ubuntu livecd自动安装,ubuntu光盘自动安装的isolinux.cfg文件

    定制Linux LiveCD的研究与实现.pdf

    本文探讨了一种使用Live Ubuntu Backup工具在Ubuntu下定制LiveCD的新方法。这种方法首先对已经配置好的操作系统进行备份,将其转化为一个squashfs文件。Squashfs是一种轻量级的只读文件系统,常用于LiveCD和嵌入式...

    tux2live可将LINUX定制成LIVECD版

    本文将详细解释tux2live如何帮助用户将Linux(例如Ubuntu)定制为LiveCD版。 一、tux2live简介 tux2live是一款开源的工具,它允许用户将现有的Linux发行版,如Ubuntu,转换为LiveCD或LiveUSB系统。这个工具的目的是...

    使用Ubuntu LiveCD安装grub

    ### 使用Ubuntu LiveCD安装GRUB:详尽指南 #### 一、引言 在多操作系统环境中,GRUB(Grand Unified Bootloader)作为一款强大的引导加载程序,被广泛应用于Linux发行版之中。它不仅可以帮助用户在启动时选择所需...

    Ubuntu安装光盘定制

    Ubuntu安装光盘定制是指根据自己的需求,制作一个定制化的Ubuntu Live CD,满足个人或组织的特殊需求。在 Ubuntu 12.04 LTS 中,我们可以使用 Remastersys 工具来实现这个过程。Remastersys 是一个免费的开源工具,...

    制作liveCD文档

    ### 制作LiveCD文档详解 #### 一、概述 本文档主要介绍如何基于Linux From Scratch (LFS) 制作一个Live CD。Live CD是一种能够完全从CD启动的Linux发行版,它允许用户在不修改计算机硬盘上的任何数据的情况下运行...

    How To 用 ubuntu Desktop LiveCD测试新电脑

    标题“如何使用Ubuntu桌面LiveCD测试新电脑”指的是在不安装操作系统的情况下,通过Ubuntu桌面LiveCD(或USB)来预览和评估新电脑的硬件兼容性及操作系统的性能。这个过程对于那些想要尝试Linux系统或者在购买新电脑...

    制作Fedora Live CD指南

    一切准备就绪后,你可以使用`livecd-creator`命令创建定制的Live CD ISO映像。然而,在实际烧录到物理介质前,推荐使用虚拟化软件(如VMware Player、QEMU或VirtualBox)对ISO映像进行测试,以避免可能的硬件兼容性...

    银河麒麟 V10 桌面操作系统通过 live cd 拷贝数据

    银河麒麟V10桌面操作系统支持通过Live CD(或者Live USB)的方式进行数据备份,这种方法不需要安装系统即可运行操作系统环境,并可用来拷贝或备份重要数据。 首先,Live CD方式拷贝数据主要是在操作系统无法启动或...

    ubundu liveCD

    标题与描述:“Ubuntu LiveCD” ### 知识点解析: #### Ubuntu LiveCD概念 Ubuntu LiveCD是一种可启动的CD或USB驱动器,其中包含了完整的Linux操作系统环境,包括Ubuntu的桌面环境、常用应用程序以及一系列的系统...

    ubuntu-18.04.4-live-server-amd64

    根据提供的文件信息,我们可以深入探讨与“ubuntu-18.04.4-live-server-amd64”相关的几个核心知识点: ### 一、Ubuntu 18.04 LTS(Bionic Beaver)概述 #### 1. 发行版本背景 Ubuntu 18.04 LTS,代号为"Bionic ...

    UltraISO制作u盘启动ubuntu LiveCD过程

    ### 使用UltraISO制作U盘启动Ubuntu LiveCD的详细步骤 #### 一、准备工作 在开始制作U盘启动的Ubuntu LiveCD之前,确保你已经完成了以下准备工作: 1. **Ubuntu ISO镜像文件**:你需要获取一个Ubuntu的ISO镜像文件...

    联想服务器升级固件,利用live cd

    Live CD 是一个可以从 CD 或 U 盘启动的操作系统,它可以在不影响服务器当前系统的情况下升级服务器固件。选择合适的 Live CD 是服务器固件升级的关键。CentOS 7.8 Live CD 是一个不错的选择,它可以识别大多数的...

    U盘Live CD启动

    - **可写性**:与传统只读的Live CD相比,U盘Live CD可以保存用户数据和设置,实现个性化定制。 - **速度**:U盘的读写速度远超CD,启动和运行系统更迅速。 此外,U盘Live CD启动还有助于系统故障排查和数据恢复,...

Global site tag (gtag.js) - Google Analytics