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 25 Nov 2014, 19:11
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to Build a Locked-Down Installation of Puppy
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 5 Posts_count   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 9260
Location: Stratford, Ontario

PostPosted: Sun 22 May 2011, 13:38    Post_subject:  

Indy'spup wrote:
/mnt/sda1/puppy520

Is that a Windows partition? How is it formatted? The editinit script ONLY works in an ext partition.
Back to top
View user's profile Send_private_message 
Indy'spup

Joined: 11 May 2011
Posts: 50
Location: SoCal

PostPosted: Sun 22 May 2011, 14:00    Post_subject:  

I know this is entirely user error lol plz bear with me here..

Fugal install to a ext3 primary partition. /mnt/sda1/puppy520 is the location of this installation when viewed and mounted using the macpup520 live cd
Back to top
View user's profile Send_private_message 
Indy'spup

Joined: 11 May 2011
Posts: 50
Location: SoCal

PostPosted: Sun 22 May 2011, 14:15    Post_subject:  

WOW!!

I have no idea what I just did but rebooted to the fugal install and this time it's working, go figure..

brb
Back to top
View user's profile Send_private_message 
Indy'spup

Joined: 11 May 2011
Posts: 50
Location: SoCal

PostPosted: Sun 22 May 2011, 15:28    Post_subject:  

Well, I managed to edit the the initrd file (still not sure how this was possible) but if a day of extraordinary effort didn't blow my mind then the next step will for sure...

lol


What is the significance of the Data directory?
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9260
Location: Stratford, Ontario

PostPosted: Sun 22 May 2011, 15:30    Post_subject:  

Quote:
What is the significance of the Data directory?

Where?
Back to top
View user's profile Send_private_message 
Indy'spup

Joined: 11 May 2011
Posts: 50
Location: SoCal

PostPosted: Sun 22 May 2011, 15:32    Post_subject:  

Sorry was just coming back to that..

this data directory?

mount /dev/sda1 /mnt/data
cp /mnt/data/puppy431/pup_save.bak /mnt/data/puppy431/pup_save.2fs
umount /mnt/data
Back to top
View user's profile Send_private_message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Sun 22 May 2011, 15:40    Post_subject:  

rcrsn51 I like your approach.. Looks nice.. I think I have another method, any thoughts or ideas are welcome... It is not yet made, or tested, although I see no problems in making this a reality.

Anyway... Here's the method:

I plan to make a 'kiosk' (locked down) mode for puppy, by editing the initrd.gz and adding a new pfix option ('pfix=kiosk', of course)... Booting with 'pfix=kiosk' will add an entry into /etc/PUPSTATE (as I believe this is already done from the init script), that says KIOSK=true.

If KIOSK=true, the save interval in the Puppy Event Manager wil be forced to zero (no scheduled saves).. Also, rc.shutdown will be updated, so that it checks for kiosk mode in PUPSTATE and skips saving to the save file at shutdown.

I also have made a 'delaysave' pfix option, which simply forces PUPMODE 13 into PUPMODE 12 - which disables real-time saving to the save file. Kiosk mode, which must also force the 'delaysave' option, would create a locked-down puppy, that can be enabled and disabled at boot, regardless of which save file is being used.

This is much more complicated than your method, but I think it's really quite flexible, and I will give it a go! Just thought I'd share the approach that I was thinking of using, take it or leave it! Wink

Hope I'm not invading the thread!

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search

Edited_times_total
Back to top
View user's profile Send_private_message 
Indy'spup

Joined: 11 May 2011
Posts: 50
Location: SoCal

PostPosted: Sun 22 May 2011, 15:46    Post_subject:  

The reason is that a /mnt/data directory doesn't exist in my fugal install. so I created one, ie: a data directory along with the nested directory puppy520, inside this I copied the file macpup_save.bak and edited the initrd entry accordingly.

only thing is (I know you guessed it!) the darn sav.bak file is never read or copied at boot time..

Must be related to it's location, which is why I wondered about the significance of the data directory.

Smile


I need to go back to square one I think.. and RTFM
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9260
Location: Stratford, Ontario

PostPosted: Sun 22 May 2011, 15:56    Post_subject:  

Indy'spup wrote:
this data directory?

mount /dev/sda1 /mnt/data
cp /mnt/data/puppy431/pup_save.bak /mnt/data/puppy431/pup_save.2fs
umount /mnt/data

Windows users are used to copying files from locations like C: to D:.

But in Linux, you have to mount a partition before you can work with the files in it. You can think of a mount point as being a door that gives you access to the files in a partition. (Have you seen the children's movie Monsters Inc.?)

Since all Puppies have a predefined mount point named /mnt/data, the script uses it to copy the file pup_save.bak to pup_save.2fs.

There is nothing special about /mnt/data. You can use any directory as a mount point.
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9260
Location: Stratford, Ontario

PostPosted: Sun 22 May 2011, 16:22    Post_subject:  

Indy'spup wrote:
The reason is that a /mnt/data directory doesn't exist in my fugal install.

???

I just checked my frugal install of Macpup520 and /mnt/data was definitely there. Of course, it's empty until you mount something onto it.
Back to top
View user's profile Send_private_message 
Indy'spup

Joined: 11 May 2011
Posts: 50
Location: SoCal

PostPosted: Sun 22 May 2011, 16:29    Post_subject:  

lol ok I understand I'm not looking in the correct places 90% of the time

sorry for hijacking the thread, maybe a moderator can move my posts back to my original thread..?


Meanwhile, is this a valid entry?

#######END MODULE LOADING TO ACCESS DRIVES##########

mount /mnt/sda1/puppy520
cp /mnt/sda1/puppy520/macpup_save.bak /mnt/sda1/puppy520/macpup_save.2fs
umount /mnt/sda1/puppy520


#########FINDING PUPPY FILES#############
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9260
Location: Stratford, Ontario

PostPosted: Sun 22 May 2011, 16:33    Post_subject:  

This is correct.
Code:
mount /dev/sda1 /mnt/data
cp /mnt/data/puppy520/macpup_save.bak /mnt/data/puppy520/macpup_save.2fs
umount /mnt/data
Back to top
View user's profile Send_private_message 
Indy'spup

Joined: 11 May 2011
Posts: 50
Location: SoCal

PostPosted: Sun 22 May 2011, 16:47    Post_subject:  

OK thanks I'm going to give this a whirl now Smile
Back to top
View user's profile Send_private_message 
Indy'spup

Joined: 11 May 2011
Posts: 50
Location: SoCal

PostPosted: Sun 22 May 2011, 17:27    Post_subject:  

Oh Brother....!! Rolling Eyes Confused Confused

I must be missing something.. back to the manual!

lol
Back to top
View user's profile Send_private_message 
Indy'spup

Joined: 11 May 2011
Posts: 50
Location: SoCal

PostPosted: Sun 22 May 2011, 17:53    Post_subject:  

I've been under the impression that puppy will load any save file which ends in .2fs now I'm not so sure of that criteria..

Am also not so sure it was wise to configure the puppy installation saved to the puppy save file prior to editing the initrd script..

Since I've not been successful in keeping the save file after a reboot I've commented out the changes in the initrd script until I can get puppy to load the save file previously created..
Sad

brb
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 2 of 5 Posts_count   Goto page: Previous 1, 2, 3, 4, 5 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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