saving the current state of settings

Technical issues/questions of an intermediate or advanced nature.
sepp1945
Black ninja
Black ninja
Posts: 38
Joined: 26 Feb 2024, 01:44
Distribution: proteus 5 cinnamon

saving the current state of settings

Post#1 by sepp1945 » 08 Mar 2024, 08:25

HI,
i decided not to implement a saving.dat, because i don't want the user to make permament changes (especially NOT record the browser usage).

so i have modified the V5.01 with a new background, implemented OPENVPN, and set a bookmark in firefox.

changed the root & guest PW.

How can i save all settings in a module, store it in the module folder and delete the message telling the user that saving is not implemented.

so that on reboot the same settings are implemented, but no new modifications.

Thank you very much

Sepp

User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

saving the current state of settings

Post#2 by Ed_P » 08 Mar 2024, 16:52

The save-session command works. Menu > Admin > Porteus Settings Centre > Save Settings > Save Your Current Session

As for deleting the message telling the user that saving is not implemented I don't know how to stop that.
Ed

roadie
Full of knowledge
Full of knowledge
Posts: 400
Joined: 02 Jan 2011, 18:41
Distribution: Porteus 5.0-RC1
Location: In a hayfield

saving the current state of settings

Post#3 by roadie » 08 Mar 2024, 18:47

@sepp1945

To delete or change the save message, you'll need to edit the linuxrc file in initrd.xz. The relevant section is "Setup changes" in linuxrc.

In a terminal as root user:

Code: Select all

cp /boot/syslinux/initrd.xz /tmp
cd /tmp
mloop initrd.xz

make your changes, file will be in /tmp/mloop, then:

cd mloop
/opt/porteus-scropts/makeinitrd
mv initrd.xz /boot/syslinux/initrd-new.xz

Change the boot cmdline to the new initrd.xz to test your changes, you will still have the original as a fallback if something goes amiss.

User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

saving the current state of settings

Post#4 by Ed_P » 08 Mar 2024, 22:42

Personally I think booting a system and being informed any changes I make won't be saved is useful info. :)
Ed

sepp1945
Black ninja
Black ninja
Posts: 38
Joined: 26 Feb 2024, 01:44
Distribution: proteus 5 cinnamon

saving the current state of settings

Post#5 by sepp1945 » 09 Mar 2024, 00:45

Correct

Otto
White ninja
White ninja
Posts: 14
Joined: 09 Nov 2023, 18:31
Distribution: linux

saving the current state of settings

Post#6 by Otto » 10 Mar 2024, 00:25

Just create "Firefox-kiosk"

sepp1945
Black ninja
Black ninja
Posts: 38
Joined: 26 Feb 2024, 01:44
Distribution: proteus 5 cinnamon

saving the current state of settings

Post#7 by sepp1945 » 10 Mar 2024, 07:49

Yes but Kiosk does not include VPN, which i need, does someone have experience in modifying Kiosk????
please contact me urgently

Sepp

Post Reply