Editing Debian LiveCD
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
[[Category: | [[Category:Linux]] | ||
=Introduction= | =Introduction= | ||
Line 65: | Line 65: | ||
tasksel install standard | tasksel install standard | ||
aptitude install binutils gcc make git vim openssh-server sudo wireless-tools wpasupplicant libssl-dev | aptitude install binutils gcc make git vim openssh-server sudo wireless-tools wpasupplicant libssl-dev libncurse5-dev | ||
aptitude install gcc-spu g++-spu newlib-spu spu-tools | aptitude install gcc-spu g++-spu newlib-spu spu-tools | ||
aptitude install parted kpartx cryptsetup libreadline-dev libaio-dev libdevmapper-dev libudev-dev | aptitude install parted kpartx cryptsetup libreadline-dev libaio-dev libdevmapper-dev libudev-dev | ||
Line 88: | Line 88: | ||
umount /root/livecd/proc | umount /root/livecd/proc | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> | |||
=Creating Root Filesystem= | =Creating Root Filesystem= | ||
Line 93: | Line 94: | ||
cd /root/livecd | cd /root/livecd | ||
mksquashfs * ../root.sfs | mksquashfs * ../root.sfs | ||
</syntaxhighlight>}} | </syntaxhighlight>}}<br /><br /><br /><br /><br /> | ||
=Modifying Root Filesystem= | =Modifying Root Filesystem= | ||
Line 104: | Line 105: | ||
mksquashfs * ../root-changed.sfs | mksquashfs * ../root-changed.sfs | ||
</syntaxhighlight>}} | </syntaxhighlight>}}<br /><br /><br /><br /><br /><br /><br /><br /><br /> | ||
=Linux 3 Kernel= | =Linux 3 Kernel= | ||
Line 115: | Line 116: | ||
* http://gitorious.ps3dev.net/ps3linux/kernel-patches-34 | * http://gitorious.ps3dev.net/ps3linux/kernel-patches-34 | ||
* http://gitorious.ps3dev.net/ps3linux/kernel-patches-35 | * http://gitorious.ps3dev.net/ps3linux/kernel-patches-35 | ||
* http://gitorious.ps3dev.net/ps3linux/livecd | * http://gitorious.ps3dev.net/ps3linux/livecd | ||
Line 145: | Line 145: | ||
mkdir initramfs | mkdir initramfs | ||
cd initramfs | cd initramfs | ||
mkdir -p bin dev etc lib/modules/3. | mkdir -p bin dev etc lib/modules/3.5.3 mnt proc sbin sys usr/bin usr/sbin | ||
cp ~/busybox-1.20.1/busybox bin/ | cp ~/busybox-1.20.1/busybox bin/ | ||
Line 178: | Line 178: | ||
for mod in fat vfat isofs crc-ccitt crc-itu-t lzo_compress udf squashfs overlayfs \ | for mod in fat vfat isofs crc-ccitt crc-itu-t lzo_compress udf squashfs overlayfs \ | ||
ps3_gelic ps3stor_lib sg ps3rom usb-common usbcore ehci-hcd ohci-hcd usb-storage; do | ps3_gelic ps3stor_lib sg ps3rom usb-common usbcore ehci-hcd ohci-hcd usb-storage; do | ||
path=`find /home/glevand/linux-3. | path=`find /home/glevand/linux-3.5.3-build/lib/modules/3.5.3 -name $mod.ko` | ||
cp $path lib/modules/3. | cp $path lib/modules/3.5.3/ | ||
done | done | ||
Line 194: | Line 194: | ||
cd initramfs | cd initramfs | ||
cpio -i -d -H newc --no-absolute-filenames < ../initramfs.cpio | cpio -i -d -H newc --no-absolute-filenames < ../initramfs.cpio | ||
</syntaxhighlight>}} | </syntaxhighlight>}}<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> | ||
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> | |||
=Images= | =Images= | ||
* vmlinux-3.6.4.xz: http://www.multiupload.nl/D0PYT6HGC0 (MD5 4b5fdb2995fde82e0f6817a7a86fca2c) | * vmlinux-3.6.4.xz: http://www.multiupload.nl/D0PYT6HGC0 (MD5 4b5fdb2995fde82e0f6817a7a86fca2c) | ||
* root.sfs: http://www.multiupload.nl/ | * root.sfs: http://www.multiupload.nl/ANFAPX646J (MD5 e402b631c8317166367f28785c65ba6c) | ||
* Tools available on the root filesystem: gcc, spu-gcc, spuisofs, spuldrfs, ps3vuart-tools, ps3sed and all my other PS3 Linux drivers. Everything you need to compile and test various PS3 stuff. | * Tools available on the root filesystem: gcc, spu-gcc, spuisofs, spuldrfs, ps3vuart-tools, ps3sed and all my other PS3 Linux drivers. Everything you need to compile and test various PS3 stuff. | ||
* In case someone still hasn't figured it out yet, password for root is root and password for glevand is glevand :) | * In case someone still hasn't figured it out yet, password for root is root and password for glevand is glevand :) | ||
Line 229: | Line 231: | ||
==CDROM== | ==CDROM== | ||
* initramfs-cdrom.cpio.gz: http://www.multiupload.nl/OT9YTIN8XU (MD5 7b1899301bae7e17be6e16e3d0bd9803) | |||
* debianlive.iso.xz: http://www.multiupload.nl/0QMH8KFP2Z (MD5 d03993d0ea6d6f37c85585d6e8d9506e) | |||
* initramfs-cdrom.cpio.gz: http://www.multiupload.nl/ | |||
* debianlive.iso: http://www.multiupload.nl/ | |||
{{Keyboard|content=<syntaxhighlight lang="bash"> | {{Keyboard|content=<syntaxhighlight lang="bash"> | ||
mkdir -p iso/debianlive | mkdir -p iso/debianlive | ||
cp root.sfs initramfs.cpio.gz vmlinux-3. | cp root.sfs initramfs.cpio.gz vmlinux-3.5.3 iso/debianlive | ||
echo "debianlive=/debianlive/vmlinux-3. | echo "debianlive=/debianlive/vmlinux-3.5.3 initrd=/debianlive/initramfs.cpio.gz" > iso/kboot.conf | ||
cd iso | cd iso | ||
mkisofs -R -J -l -o ../debianlive.iso . | mkisofs -R -J -l -o ../debianlive.iso . | ||
Line 250: | Line 244: | ||
sudo cdrecord -v dev=/dev/sr0 blank=fast | sudo cdrecord -v dev=/dev/sr0 blank=fast | ||
sudo cdrecord -v dev=/dev/sr0 debianlive.iso | sudo cdrecord -v dev=/dev/sr0 debianlive.iso | ||
</syntaxhighlight>}} | </syntaxhighlight>}}<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> | ||
<br /><br /><br /><br /> | |||
=Links= | =Links= | ||
* http://securityfocus.eu/?p=149 | * http://securityfocus.eu/?p=149 | ||