Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 28 Apr 2015, 10:26
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to do away with mozilla
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message

Joined: 24 Sep 2005
Posts: 427
Location: Mumbai, India

PostPosted: Tue 03 Jan 2006, 20:50    Post_subject:  How to do away with mozilla  

If you dont like mozilla / dont use it / want to use other broswers such as firefox / konqueror, use this how to remove mozilla from your usr_cram.fs file. It is huge around 30 mbs are eaten by mozilla when it is just sitting around there.

All the remaster scripts I have seen until now have humonguous requirements, which not every puppy user can have. However this is for me the simplest way of HACKING usr_cram.fs

I have my files vmlinuz, image.gz and usr_cram.fs stored on the hd. This how to is directed at such users. I dont know how this will work for cd users.

1. copy your usr_cram.fs to usr_cram.fs2
2. exec command -> mount -r -t squashfs -o loop /mnt/home/usr_cram.fs /mnt/data
3. make a folder called cram in my-documents
4. using rox drag all the files from /mnt/data to the cram folder (will take some time)
5. exec command -> umount /dev/loop2. Delete /mnt/home/usr_cram.fs
6. goto /cram/lib folder. Remove the mozilla folders
7. got /cram/local/bin. Remove all apps starting with moz.
8. Thats it we are all set to repackage out cram file
9. open a new rox. navigate to my-documents. right click. Select xterm here. execute the following command
mksquashfs ./cram /mnt/home/usr_cram.fs
this will take some time. the /mnt/home can be replaced to the folder where you want this
10. open rox -> click on the up arrow ie (now we are in /(thumbs)
delete the usr_cram.fs file from there. Puppy loads this usr_cram.fs file at every bootup. If it would be stored in pupfile than our changes wont take effect.

NOTE puppy loads the usr_cram.fs file by matching the size of the usr_cram.fs with one in the sizeusrcram in image.gz. Now remastering image.gz in dangerous. So we will not resort to that.
The only disavantage of this remaster is that at boot puppy will say to you that the size of the usr_cram file does not match, but will still load it after you press the enter key

11. REBOOT, dont panic, Press ENTER
Back to top
View user's profile Send_private_message YIM 

Joined: 22 Jun 2005
Posts: 242
Location: Slovenia

PostPosted: Sun 29 Jan 2006, 21:16    Post_subject:  

Many thanks, bombayrockers!
I found your instructions the easiest way to customize Puppy.
Now I only have to find a way how to put the new size of usr_cram.fs into image.gz.
Back to top
View user's profile Send_private_message 

Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Sun 29 Jan 2006, 21:49    Post_subject:  

To fix the size issue, you have to open up image.gz
Run gunzip on it to decompress it. You can mount it with:
mount image /mnt/somedirectory -t ext2 -o loop
Since you're just changing a little file, I think it will be fine if you just edit it. If not, things get trickier.

Next, we get the size of usr_cram.fs (after you've recompressed it and all).
#size of usr_cram.fs needed by rc.sysinit to verify correct version of usr_cram.fs...
SIZEUSRCRAM="`ls -l usr_cram.fs | tr -s ' ' | cut -f 5 -d ' '`"
echo -n "$SIZEUSRCRAM" > /mnt/somedirectory/root0/.etc/sizeusrcram

That should automatically update the correct file within the image. Now you can unmount it:
umount /mnt/somedirectory
and recompress it with:
gzip image

That should hopefully work.

This whole process is basically what hackyremaster does. Hackyremaster takes a little more space, though, because it combines usr_cram.fs and image.gz togeather in one filesystem image until you tell it to recompress them. It's a lot easier on the noggin, though.

Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send_private_message Visit_website 

Joined: 22 Jun 2005
Posts: 242
Location: Slovenia

PostPosted: Sun 29 Jan 2006, 23:22    Post_subject:  

Excellent! I tried and it works.

Many thanks, Pizzasgood!
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0597s ][ Queries: 12 (0.0058s) ][ GZIP on ]