LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2014, 08:14 AM   #1
sherrako
LQ Newbie
 
Registered: Aug 2014
Posts: 11

Rep: Reputation: Disabled
Customizing a Live Boot Linux ISO- LPS


I currently want to edit the LPS-Public Deluxe ISO image, version 1.5.3.

I currently downloaded Slacko puppy linux 5.7 to attempt to edit the image, but being completly new to linux I don't even know where to begin.

All I want to do is add some custom bookmarks and a couple direct links on to the desktop of the LPS. Then I want to put it back into an ISO image so I can take it anywhere with me.

Any help is greatly appreciated.
 
Old 08-18-2014, 08:53 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Alas, the iso format only mounts read-only. The procedure to edit an iso is:
  1. Make sure you have enough free space
  2. Mount the iso ro
  3. Copy the entire contents to a work area, preserving attributes and folder structure.
  4. edit in the work area
  5. Make a new iso using mkisofs
 
1 members found this post helpful.
Old 08-18-2014, 09:48 AM   #3
sherrako
LQ Newbie
 
Registered: Aug 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
So from what I've gathered/done thus far: I mounted the ISO image to my desktop into a new directory called `/NewIso. But when I open it up using ISO Master and try to edit any files such as initrd in it I get an error stating, "Failed to read volume info: 'First volume descriptor type not primary like ISO9660 requires.'" I seem to be stuck trying to edit in my work area.
 
Old 08-18-2014, 10:54 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,499

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Mounting it will be a read-only filesystem. You need to copy the entire contents to another directory where you have write permissions as suggested above, perhaps in your /home/user directory.
 
Old 08-18-2014, 11:56 AM   #5
sherrako
LQ Newbie
 
Registered: Aug 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
I saved the file to home/user/NewISO file I created, but it still only says I have read only privileges. I read somewhere about saving the session and rebooting it and that it would give me permissions to edit it then in puppy linux, I'll attempt that and see if I make any headway there. Ty.
 
Old 08-18-2014, 02:05 PM   #6
sherrako
LQ Newbie
 
Registered: Aug 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
Well I was finally able to edit the file by doing a unsquashfs initrd. I'm yet having a difficult time locating the certain files that I would need to edit to add the bookmarks into the firefox and how to save the notes onto the desktop. Any suggestions there?
 
Old 08-18-2014, 02:59 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
As I recall I did some of those exact things. On the bookmarks you can simply change a bookmark in your similar browser and then look for changes or see how to import bookmarks on the billion web pages. I forget what I did there. I think I just made a list and imported it.

I did do home page also but don't remember what I did. This should be similar. http://social.technet.microsoft.com/...age?forum=ITCG

I do know I played with busybox. I didn't want to rebuild it so I got some commands that I wanted and ran an alias for those commands outside busybox.


You first have to find the version of squashfs they used. Then use a puppy version that supports that verion. (this is the easy way) Then boot puppy and mount the file that has the lps on it. Change the name so that it mounts to puppy. I forget what it was .sfs or such extension. It will then let you mount the compressed filesystem so that you can copy it all off to a new folder. Then make changes and squash it back to new file. Swap that new file with the original file.


Long way. Find version of squash. Find distro that lets you install that squash tools. Then basically do the same steps as above.

I think the command file will tell you what version it was squashed with.

Last edited by jefro; 08-18-2014 at 03:04 PM.
 
1 members found this post helpful.
Old 08-19-2014, 09:19 AM   #8
sherrako
LQ Newbie
 
Registered: Aug 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
I understand the squashfs command, but I am somewhat confused about the purpose of busybox. What's its purpose and how is it supposed to help?
Thanks again for all the great info thus far. I feel like I've gone through every single file and script and I can't seem to find the one I need to edit to make the changes to the bookmarks and home page, any thoughts?

Also, if anyone knows of a simpler way, I'm all ears

Last edited by sherrako; 08-19-2014 at 12:48 PM.
 
Old 08-19-2014, 03:25 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
The busybox deal was outside the scope of your question. Sorry.

You import bookmarks from a set that you made on other system if I recall correctly. I think it is in a firefox/mozilla profile folder. I'm pretty sure I just copied a single file. It has been a while and only played with it for a week or so.

Last edited by jefro; 08-19-2014 at 08:01 PM.
 
1 members found this post helpful.
Old 08-19-2014, 03:31 PM   #10
sherrako
LQ Newbie
 
Registered: Aug 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
Unhappy

Thanks for clarifying the busybox issue. Now if I'm to follow you correctly I should be able to go into the firefox for puppy create my bookmarks and just copy it over. As a side note (just to verify I'm doing this right), when I unsquashfs initrd, it created a squash-root file with all the files in it from the initrd. Interesting thing though is I found many shortcuts from puppy's info in there as well, is that normal?
 
Old 08-19-2014, 08:05 PM   #11
sherrako
LQ Newbie
 
Registered: Aug 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
Angry

Also, just an update, I tried running ubuntu and using Ubuntu Customization Kit but unfortunately it would not work.
 
Old 08-19-2014, 08:08 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I can't think and type at same time.

May be some unintentional links? The LPS people may have used puppy?? Could be looking at wrong data? I do recall a few leftovers in there.

I haven't played with that for a while and I forget stuff.
Actually I don't think I ever really did an unsquash. Not sure reason. Might have been I was too lazy to type.
I just renamed the file to a puppy extension. It may have automounted that way or I had to click on it.
Then I just dragged and dropped everything to an empty work folder under root as I recall. I think links were borked if I did it too far down from /.

I do know when I played with it you had to be exact on the squash version. It was an older one that wouldn't work on new distro's.

Look up where bookmarks go in firefox online and make a set that you like. Then copy it over to correct place in the unsquashed folder. They will get squashed back when you squash it all up.

I feel pretty sure I did change the home page but don't recall what I did. The distro had some splash page that originally was what I wanted to get rid of. I got rid of that first.

Last edited by jefro; 08-19-2014 at 08:11 PM.
 
1 members found this post helpful.
Old 08-19-2014, 09:18 PM   #13
sherrako
LQ Newbie
 
Registered: Aug 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
Alright I'll give that a go and see if I can get it switched and then resquashed.
 
Old 08-20-2014, 09:07 AM   #14
sherrako
LQ Newbie
 
Registered: Aug 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
Well from what I've seen this LPS is a little endian 4.0 version of squashfs, and I do believe that slack puppy 5.7.0 could edit the files. Now that I have all the files open some of them are missing, such as the ones needed to edit the home page and bookmarks. I'll keep trying though.

Update: I tried renaming the initrd file to initrd.sfs and it did give me the option to unpack and view the contents, but I still can't find the info where they keep bookmarks, even when I follow the mozilla.org customization help. Maybe I'll just give up

Thanks again.

Last edited by sherrako; 08-20-2014 at 02:32 PM.
 
Old 08-20-2014, 03:08 PM   #15
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I know I looked up how to import bookmarks in firefox online. Ought to be 1M hits or more.

You still have to move the data off to a temp directory.(me thinks) Just because you can mount the file it is still/should be read only. As I recall they used to use a much older version. Pretty sure the version 4 can be used on newer distro's without too much trouble.

You do know what the little endian is? I'll let you look that up.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Customise a live boot linux ISO - editing initrd (squashfs) TheGreyGhost Linux - Newbie 11 08-15-2014 03:38 PM
LXer: LPS Security 1.3.2 has been released! Live cd from department of defense LXer Syndicated Linux News 0 02-24-2012 03:30 AM
Mount ISO as specific device (ie: /dev/sda1) with GRUB2 to boot KNOPPIX live cd iso BLuFeNiX Linux - General 2 12-23-2009 01:31 AM
Customizing Linux ISO flouran Linux - Software 6 06-29-2009 12:00 AM
How To boot from an Linux live CD ISO from HD! Marrokinooo Linux - General 2 07-01-2006 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration