Results 1 to 7 of 7

Thread: BT5 script customize

  1. #1
    Join Date
    Jun 2011
    Posts
    55

    BT5 script customize

    I have Fedora 14 I386 operating system installed in my system. Recently I have downloaded BT5 Gnome and tried to customize it while writing it to my USB flash. To customize it I used the below script and perform run. The output was as below:
    Code:
    [root@Lunix BT5-GNOME-32]# ./bt4-customise.sh 
    
    customisation script[*] Setting up the build environment...
    mount: warning: mnt/ seems to be mounted read-only.[*] Copying over files, please wait ... [*] Entering livecd. [*] Now you can modify the LiveCD. At minimum, we recommend :[*] apt-get update && apt-get upgrade & apt-get clean[*] If you are running a large update, you might need to stop[*] services like crond, udev, cups, etc in the chroot[*] before exiting your chroot environment.[*] Once you have finished your modifications, type "exit"
    root@Lunix:/#
    I am unable to get why it mounted. Then I performed system update:
    Code:
    root@Lunix:/# apt-get update
    Err http://all.repository.backtrack-linux.org revolution Release.gpg
      Could not connect to 127.0.0.1:3128 (127.0.0.1). - connect (111: Connection refused)
    Err http://32.repository.backtrack-linux.org revolution Release.gpg
      Could not connect to 127.0.0.1:3128 (127.0.0.1). - connect (111: Connection refused)
    Err http://source.repository.backtrack-linux.org revolution Release.gpg
      Could not connect to 127.0.0.1:3128 (127.0.0.1). - connect (111: Connection refused)
    Reading package lists... Done
    W: Failed to fetch http://all.repository.backtrack-linux.org/dists/revolution/Release.gpg  Could not connect to 127.0.0.1:3128 (127.0.0.1). - connect (111: Connection refused)
    
    W: Failed to fetch http://32.repository.backtrack-linux.org/dists/revolution/Release.gpg  Could not connect to 127.0.0.1:3128 (127.0.0.1). - connect (111: Connection refused)
    
    W: Failed to fetch http://source.repository.backtrack-linux.org/dists/revolution/Release.gpg  Could not connect to 127.0.0.1:3128 (127.0.0.1). - connect (111: Connection refused)
    
    W: Some index files failed to download, they have been ignored, or old ones used instead
    Still I haven’t found any progress. What should I do next?

  2. #2
    Join Date
    May 2008
    Posts
    859

    Re: BT5 script customize

    I think, I can help to solve your problem. To customize BT5 iso, KDE, x64 you have to use original customize, it will partially work. The only thing you have to do is edit the btiso name to match the name of your iso. You will notice that everything will work and within the edit directory you will find the customized system.
    Code:
    mkisofs -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 
    -boot-info-table -V "BT4" -cache-inodes -r -J -l -o ../bt5-mod.iso .

  3. #3
    Join Date
    May 2008
    Posts
    962

    Re: BT5 script customize

    Here is an important note for everyone that there is no need to use grub-legacy as BT5 is no longer uses it. Instead you have to use grub2 as it will work. You will get success till line 94 then you have to edit the 94 line with the below, I mean replace it:
    Code:
    mkisofs -r -V BT5-mod -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat
     -no-emul-boot -boot-load-size 4 -boot-info-table -o /mnt/sda2/ISO/BT5-mod.iso .
    The customization will be done as per your requirement.

  4. #4
    Join Date
    May 2008
    Posts
    991

    Re: BT5 script customize

    You must be aware that sda2 is the ext3 partition where ISO is located. The script is run from the ISO directory and it has 2 files including the script and the original BT5 iso. It continues running until it does not find the "boot catalog" boot.cat. Try the absolute paths such as /mnt/sda2/ISO/extract-cd/isolinux/boot.cat and isolinux.bin. If it does not help you then experiment it with “genisoimage”. Then your system will be booted from the original x64 KDE live DVD.

  5. #5
    Join Date
    May 2008
    Posts
    1,020

    Re: BT5 script customize

    If you still haven’t found any help then follow the steps. There are three steps, First make sure "exit" the chroot shell before going to other steps.
    Code:
    remaster_ubuntu.sh extract /path/to/original/ubuntu.iso /path/to/working area
    The above code will extract the contents of the ISO into 2 subdirectories of path/to/working/area/ :
    extract-cd/: the files needed to boot from isolinux config, kernel, initramfs, etc anyone of them, but not the root FS
    edit/: the root file system complete with /etc, /usr, etc.
    Code:
    remaster_ubuntu.sh chroot /path/to/working/area
    Your this step will start a root bash inside the root file system. Mount it properly from /dev, /proc, /sys. In that shell, you can apt-get purge/install, edit /etc files, create users, even start X applications. Then your last step is the below code.

    Code:
    remaster_ubuntu.sh regen /path/to/working/area SOME_NAME /path/to/dest/my.iso

  6. #6
    Join Date
    Nov 2009
    Posts
    824

    Re: BT5 script customize

    Code:
    mkisofs -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot 
    -boot-load-size 4 -boot-info-table -V "BT5" -cache-inodes -r -J -l -o ../BT5-Custom.iso
    For better customization use 2 scripts to customize. The reason is that one script is used to extract setup and a second one will be used to chroot and rebuilds the .iso after editing. Download the below script from official website.
    bt5-customise.sh = run first to extract, edit, build
    bt5-customise-vatbng.sh = edit and build without extracting.
    This will do the job for you.

  7. #7
    Join Date
    Apr 2009
    Posts
    1,107

    Re: BT5 script customize

    According to me Backtrack 5 is one of the best. Its only problem is that it cannot anticipate any hardware configuration. The best way to solve the customization problem is to install Backtrack 5 then remaster it by Remastersys. Remastersys allow you to generate your own customised .iso files. But it focus on version such as Karmic, Lucid and Newer with grub2 - version 2.0.13-1 and up for compatibility with Backtrack 5.

Similar Threads

  1. Replies: 3
    Last Post: 17-08-2010, 09:06 PM
  2. Is it possible to execute Perl script within another script?
    By RasMus in forum Software Development
    Replies: 2
    Last Post: 21-07-2009, 10:57 PM
  3. Word 2008 + bibfuse: no script in script menu
    By deval4u in forum Software Development
    Replies: 5
    Last Post: 06-04-2009, 12:53 PM
  4. Replies: 2
    Last Post: 14-01-2009, 01:25 PM
  5. Startup Script or Login Script ??
    By WANNABE in forum Active Directory
    Replies: 5
    Last Post: 22-12-2006, 07:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,907,211.57331 seconds with 17 queries