M01: Introduction to Operating Systems TU1: Installing, configuring and exploiting a computer system
ASIX1
Prąctical Exercise 13: Customasing  a Debian distro with remastersys
1-04-2014

PRACTICAL EXERCISE 13: CUSTOMISING A  DEBIAN DISTRO WITH  REMASTERSYS

GENERAL CONDITIONS

1- Deadline: 4-4-2014.
2.- Create a customized Debian ISO image.
3.- Create a USB Startup Disk with your customised Debian ISO image
4.- Boot your computer from your
USB Startup Disk.

PRACTICAL EXERCISE

PART 1: INSTALLING AND CONFIGURING REMASTERSYS ON DEBIAN
1
.- Gain access as root user to the recently created DebUb virtual machine.
2.- Download a script called RemastersysonDebianInstaller.sh. Run the following command:

wget  http://www.collados.org/asix1/m01/tu1/RemastersysonDebianInstaller.sh

3.-
Add the execute permission (only for the root user) to RemastersysonDebianInstaller.sh.
4.- Run
RemastersysonDebianInstaller.sh.
5.- Check if Start Remasterys has been properly installed. Check if the new entries Remastersys Backup, Remastersys Grub Restore and  Remastersys USB Startup Disk Tool are available in the  menu : Applications --> System Tools.
6.- Run
Remastersys Backup and select the option Modify. Modify the "Live ISO filename" entry. The new value will be bootusb.iso

PART 2: CUSTOMISING YOUR  DEBIAN
1.- Install the following packages: apache2, geany, build-essential, and gftp.
2.-
Create a new user called clot, whose uid is 1001, member of  the users group, whose home directory is /home/clot, whose shell is the bash program, and whose encrypted password is Clot2014.

PART 3: MAKE A CUSTOMISED DEBIAN ISO IMAGE
1.- With the help of Remasterys Backup, create a ISO image file with a customized version of your operating system including your personal data. Select the option "Backup" It may take some time to complete the process.
2.- Check if bootusb.iso has been created on /home/remasterys/remastersys.
3.- Remove any file on
/home/remasterys/remastersys except bootusb.iso.

PART 4: CHECK IF THE NEWLY CREATED CUSTOMISED DEBIAN ISO IMAGE WORKS PROPERLY
1.- Working with your host machine: Create a new folder called sharing  inside the VirtualBox VMS folder.
2.- Working with the VirtualBox pannel control: Add sharing as a shared folder of your DebUb virtual Machine.
3.- Working with your DebUb virtual machine: a) Create a new folde called /mnt/host_sharing b) Mount sharing  running the commnad:  mount   -t   vboxsf   sharing   /mnt/host_sharing.
4.- Working with your DebUb virtual machine: Move bootusb.iso to /mnt/host_sharing.
5.-
Working with your host machine: Check that bootusb.iso has been created on sharing.
6.- Power off your DebUb virtual machine. Add
bootusb.iso as a new iso image.  Start  DebUb with the newly installed  iso image. Check if DebUb boots with  bootusb.iso. If it works, you can jump to the next part.

PART 5: COPY A CUSTOMISED DEBIAN ISO IMAGE TO A USB DRIVE AND CHECK IF  IT WORKS PROPERLY
1.- Boot again DebUb with the hard drive DebUb.dvi.
2.-
With the help of
Remastersys USB Startup Disk Tool, copy your  newly created ISO image file bootusb.iso to a USB drive plugged on your DebUb virtual machine.
3.- Eject the USB drive from your virtual machine. Power off your virtual machine. 
Boot your virtual machine with the customised bootable version of Debian installed on a USB drive.
4.- Power off your host machine.  Boot your host machine with the customised bootable version of Debian installed on a USB drive.