Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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?
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 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.
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
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.
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?
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.