HOWTOs

Build an Ultralight GUI OS with Debian Live

If you are running Debian, install debian-live:

apt-get install debian-live

Create a distribution or backup of your Debian-based desktop/server

"If you have a desktop or server setup that you want to have a full backup of or wish you could easily clone, you can do so with software packages that cost upwards of $1,200. But if your business is working within the confines of a small budget and your machine runs a Debian-based platform, Remastersys is the tool for you. Remastersys can help you deploy multiple machines or even take a sandbox server and copy it onto production hardware."

http://www.techrepublic.com/blog/doityourself-it-guy/diy-cre...

GNU/Hurd: Creating a bootable qemu image from a root filesystem and bootloader

Creating a bootable qemu image from a root filesystem and bootloader

Create a hard disk image

qemu-img create -f qcow G

Use a live CD (better to have a lighter OS like system rescue CD to make the process faster) and the image created to boot.

qemu -cdrom /dev/cdrom -hda -boot d

Once system is booted use a partition editing tool (like fdisk, cfdisk, parted, gparted, qtparted ...) to partition the image.

cfdisk

create the necessary partitions (root and swap partitions boot, home ... if required)

Create a file system for the root partition

mke2fs /dev/hda1

Mount the partition

mkdir disk
mount /dev/hda1 disk

Copy the file system from the host machine to the mounted directory (use a compressed file system to make the copying faster)

Grab the GNU snapshot from ams' site http://www.update.uu.se/~ams/home/slask/GNU/

scp @: disk

Uncompress the files

cd disk
tar -jxvf

Unmount the mounted partition

cd ..
umount disk

power off the guest OS.

poweroff

To make the file system bootable download a grub floppy image

Run qemu to boot into your brand new system

qemu -hda -fda grub.img -boot a

Happy Hacking !!

Make your new system boot from the hard disk

Mount your grub image

mkdir floppy
mount -t ext2 -o loop grub.img floppy

Use previous steps 2 and 5 to boot from a liveCD and mount the partition

cd disk/boot
scp -r @:/boot/grub

Poweroff the guest

poweroff

Boot new system using floppy image previous step 11

use install to hard disk option if you used the above grub image

or go to grub command line and type

root (hd0,0)
setup (hd0)

Now you have a bootable system image. Enjoy Maadi !!

https://www.gnu.org/software/hurd/hurd/running/gnu/create_an...

Create Your Own Live Linux CD or USB distribution

Creating your own custom Live Linux CD or USB distribution is not complicated. However, there are many different approaches depending mainly on which Linux base you decide to use. Many popular Linux distro's such as Knoppix, Ubuntu and DSL are based on Debian so for the following tutorial, we are going to focus on the simple creation of a Live Linux CD using Debian Linux as our base.

From a Debian installed operating environment, we will use a tool called Live-Helper which was created by Daniel Baumann as a part of the Debian Live project. Live-Helper contains scripts that automate parts of the Live Linux CD or USB creation process, making it easy to create your own personal Live Linux CD or USB distribution.

Downloading and installing Live-Helper:

1. Open a terminal and type sudo gedit /etc/apt/sources.list

Add deb http://live.debian.net/debian/ etch main to the list and save the file.

2. Back at the terminal, type sudo apt-get update
3. Type sudo apt-get install debian-unofficial-archive-keyring
4. Type sudo apt-get install live-helper

Configuring the settings for your Debian based Live CD:

1. Login as root and open a terminal (must be done as root user)
2. From the terminal, type lh_config

Now we can edit the configuration files that have been created in (root's Home) debian-live/config/ directory

* Open debian-live/config/chroot, Set the interactive parameter LIVE_INTERACTIVE="enabled" (this allows you to chroot to the filesystem and make changes before it is compressed)
* You should also set the live package to install. For example: LIVE_PACKAGES_LISTS="gnome" (will install the gnome desktop)
* Save changes and close the chroot file

Note: To create a USB Image instead of an ISO, open debian-live/config/binary and change the image type parameter from iso to usb-hdd LIVE_BINARY_IMAGES="usb-hdd"

Building the Debian based Live Linux ISO or IMG:

Now that we have made a couple of basic configuration changes we can proceed with the build process.

1. Back at the terminal type cd debian-live (moves us to debian-live, where our live distro is going to be built)
2. Type lh_build (starts the build process based on our live configuration settings)

During the build process, live-helper will create a directory named chroot containing the Linux filesystem that will later be compressed. Once live-helper has finished installing the core components, it will start an interactive shell (change root directory to chroot) pausing the build and allow you to install additional packages and make changes or adjustments before it compresses the filesystem and builds the final Live Linux ISO.

3. At the terminal, when the script responds with the following:
Pausing build: starting interactive shell…

* make your changes, if any and then type exit to allow live-helper to continue.

Burn the ISO and test your new creation:

Once live-helper has finished, you'll find your completed ISO in the debian-live directory.

1. Burn the ISO to a CD or DVD

2. Test your new creation by rebooting from the CD/DVD.

Or to Copy the IMG to the USB device:

1. From the terminal type fdisk -l and locate your USB device. Example: dev/sdX (where X represents your USB device)

2. Type dd if=binary.img of=/dev/sdX

3. Reboot your PC, booting from the USB device

Note: With your CD/DVD or USB build, you can save your changes back to a USB device via the persistent feature. Simply create a partition on the device labeled casper-rw and type live persistent at boot to enable saving and restoring of settings/changes.

Example: mkfs.ext2 -L casper-rw /dev/sdx2

http://www.pendrivelinux.com/create-your-own-live-linux-cd-o...

Remaster Backtrack Video

"Customizing Backtrack

Now you can customize BackTrack, easy and simple"

http://www.offensive-security.com/videos/customizing-backtra...
http://www.offensive-security.com/bt4-customise.sh

Screencast: How to Build a Fedora 10 Remix

"I made a two-part screencast on how to build a Fedora Linux remix. The first video has some slides at the beginning that explains the process and then walks through it with a live demo. The second video boots the LiveDVD that was created, shows an "Install to Hard Drive" and then shows some of the features of the remix."

http://www.montanalinux.org/fedora-remix-howto-screencast.html
http://www.montanalinux.org/files/newvideos/fedora-10-remix.ogv
http://www.montanalinux.org/files/newvideos/fedora-10-remix-...

Build an Ubuntu live CD from scratch with Debian's live-helper

"This page briefly describes how to create an ubuntu live CD from scratch with debian's live helper."

http://david.decotigny.free.fr/wiki/wakka.php?wiki=LiveHelpe...

Customize an Ubuntu Live CD / USB

"The default ubuntu live CD is nice: it can boot fast, detect the hardware correctly, etc. But I always dreamed of customizing it (eg. add medibuntu support, etc.). The remaster_ubuntu.sh script offers a simple approach to do just this: we start with a working live CD ISO image, change its contents, and create a new live CD image. [...]

This script allows to customize an Ubuntu live CD in 3 simple steps:

1. extract the contents of an ubuntu CD ISO image to your hard drive
2. chroot to the working area containing the extracted CD contents. This allows to do all the /etc configs, aptitude purge/install, etc. to prepare the future ISO image
3. generate a new ISO image containing the (hopefully modified) working area you just prepared"

http://david.decotigny.online.fr/wiki/wakka.php?wiki=Remaste...
http://david.decotigny.online.fr/wiki/upload/RemasterUbuntu/...

Installing Debian on an SD Card

"This is a guide on how to install Debian onto the microSD card, it DOES NOT replace the default Linux operating system.

==Getting Ready==
#You'll need to root your phone, instructions on [[Rooting_Android]] are there.
#There is an automatic installer package available [http://www.androidfanatic.com/cms/unofficial-app-repo.html?func=fileinfo&id=21 here]. Download it and move it to your microSD card.
#Unzip the installer package, move the entire Debian folder to the root of your SD card. If it isn't this location, it won't work. (It should be /debian)
#Go to the Android Market and download the application called "Terminal Emulator" (if you haven't already), open it after it installs.
#Enter the following commands, hitting enter/return after each line. Authorize the program in SuperUserWhitelist if it asks you.
cd /sdcard/debian
su
chmod 4755 *-->

cd /sdcard/debian
su
chmod 4755 *
#Then type ''installer.sh'' and the installer should run!

==Troubleshooting==
If chmod 4755 * gives you an error stating that you do not have permissions, close Terminal Emulator and run su again, this time when SuperUserWhitelist asks for if you should give Terminal Emulator super user permissions hit yes instead of always.

If running installer.sh tells you that installer.sh could not be found, type su, followed by sh installer.sh."

http://androidmobileos.com/?page_id=428

Linux Internet Kiosk using Debian-Live HOWTO

"This is the revamped version of the Debian Internet Kiosk with Firefox 2 HOWTO. I have adapted it to use Iceweasel, which gives a major improvement for streamlining the process. I have gotten rid of the requirement to install from tarball. The extensions I use have matured a bit so as to give better functionality.

I have chosen to rename and completely overhaul the process. From now on I will be using the Debian-Live system to create Live-USB or Live-CD distributions, leaning towards the USB option. There are many pros and cons between CD and USB solutions, a of few which I will name right now."

http://jadoba.net/kiosks/firefox/

Syndicate content