Page 1 of 1

[SOLVED] Saving settings

Posted: 06 Mar 2014, 02:13
by jmurrinux
Hello forum,

I installed on my pc hard drive: Porteus KDE4-v3.0-rc2-x86_64. The hard drive filesystem format is ext4.
Now, after I successfully installed Google Chrome web browser, it didn't survive a restart to become MIA = Missing in Action, I guess :Search:
Every restart or come back from power off, time settings also reset to installation defaults.

How can I save those settings and keep them up to day before every shut down.

Also, since my pc is desktop pc, I wonder how can I make it Suspend.

I'm going to have many noob questions around here :sorry: , please be kind.

Re: Saving settings

Posted: 06 Mar 2014, 02:36
by brokenman
Noob questions are always welcome, but please read our documentation before asking. Most have been answered may times over. At the very top of the front page of the forum (above the chatbox) you will see a link to various documents. In particular look at the cheatcodes link. Around the third cheatcode in the list is the changes= cheatcode. That's your ticket.

Re: Saving settings

Posted: 06 Mar 2014, 03:35
by francois
For the suspend issue, google is your friend with keywords: porteus suspend on lid closed, see:
http://forum.porteus.org/viewtopic.php?f=81&t=3018

Re: Saving settings

Posted: 07 Mar 2014, 01:23
by jmurrinux
Hello Forum,
Thanks francois for your reply. I discovered how to make the PC go on sleep/suspend mode within the Power icon and after clicking it, the Power menu gives you a pull down list with the selections.

Now, returning to saving the settings. I've been adding those strings to the Porteus.cfg file, not sure where exactly they need to go. But still isn't working. Not sure where to add them properly so they work.
APPEND initrd=initrd.xz changes=UUID:stringofcharacters/mnt/sda2/savefile/030514.dat
APPEND initrd=initrd.xz changes=EXIT:UUID:stringofcharacters/mnt/sda2/savefile/030514.dat
APPEND initrd=initrd.xz timezone=America/New York
On stringofcharacters I have my HDD UUID, just wrote that up there for the purpose of the example here.

Even with the savefile set, I'm losing my changes at every reboot - power on :wall:

Re: Saving settings

Posted: 07 Mar 2014, 01:41
by brokenman
If your USB is indeed formatted ext4 then it should be enough to simply put changes=/porteus (the default in the porteus.cfg). You don't need a savefile.dat for a native linux filesystem (although it doesn't hurt anything) and can safely just provide the path to a folder on your ext4 partition such as changes=/mnt/sda2/mysavefolder. You only need the savefile.dat container file for FAT32/NTFS. It is essentially a linux file system in a container stored on a windows file system.
Not sure where to add them properly so they work.
Here is an example from the LXDE version of Porteus. Note that i removed /mnt/sda2 from your line.

Code: Select all

LABEL lxde.
MENU LABEL Graphics mode (LXDE)
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=UUID:stringofcharacters/savefile/030514.dat
TEXT HELP
    Run Porteus the best way we can.
    Try to autoconfigure graphics
    card and use the maximum
    allowed resolution
ENDTEXT
If it still isn't working please boot up and then post the contents of: /var/log/porteus-livedbg

Re: Saving settings

Posted: 07 Mar 2014, 01:57
by jmurrinux
Thanks Brokenman,
Yes, the Hard disk drive is formatted to ext4 filesystem
If I understand what you said
You don't need a savefile.dat for a native linux filesystem
I don't need that
Then, how can I preserve the changes over and over after each reboot - power ON?
Changes like:
  • * Timezone
    * Web browser bookmarks
Anyways, I'll try changing the APPEND to what you said and eliminate all those cheatcode strings above mentioned

Re: Saving settings

Posted: 07 Mar 2014, 02:57
by jmurrinux
brokenman, thanks for your guidance.

It's all good now. I replaced the APPEND strings for the suggested change you mentioned and it's all good.
:Bravo:

Re: Saving settings

Posted: 07 Mar 2014, 15:09
by brokenman
Excellent!