Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



BT5 script customize

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 06-07-2011
Member
 
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?

Reply With Quote
  #2  
Old 06-07-2011
Member
 
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 .
Reply With Quote
  #3  
Old 06-07-2011
Member
 
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.
Reply With Quote
  #4  
Old 06-07-2011
Member
 
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.
Reply With Quote
  #5  
Old 06-07-2011
Member
 
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
Reply With Quote
  #6  
Old 06-07-2011
Member
 
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.
Reply With Quote
  #7  
Old 09-07-2011
Member
 
Join Date: Apr 2009
Posts: 1,106
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.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "BT5 script customize"
Thread Thread Starter Forum Replies Last Post
Dumping logon name and logon script values to a text file - blank logon script field Phil McNeill Windows Server Help 3 17-08-2010 09:06 PM
Is it possible to execute Perl script within another script? RasMus Software Development 2 21-07-2009 10:57 PM
Word 2008 + bibfuse: no script in script menu deval4u Software Development 5 06-04-2009 12:53 PM
Problem with script in order to open another script in an extra window Samsher Software Development 2 14-01-2009 01:25 PM
Startup Script or Login Script ?? WANNABE Active Directory 5 22-12-2006 07:44 PM


All times are GMT +5.5. The time now is 07:27 AM.