[SOLVED] Saving settings

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
User avatar
jmurrinux
Black ninja
Black ninja
Posts: 32
Joined: 18 Aug 2011, 23:23
Distribution: XFCE-v3.1-i486 HDD
Location: Florida
Contact:

[SOLVED] Saving settings

Post#1 by jmurrinux » 06 Mar 2014, 02:13

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.
Last edited by brokenman on 07 Mar 2014, 15:10, edited 1 time in total.
Reason: Added solved
Thank you!
jmurrinux

User avatar
brokenman
Site Admin
Site Admin
Posts: 5504
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Saving settings

Post#2 by brokenman » 06 Mar 2014, 02:36

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 4990
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Saving settings

Post#3 by francois » 06 Mar 2014, 03:35

For the suspend issue, google is your friend with keywords: porteus suspend on lid closed, see:
viewtopic.php?f=81&t=3018
Voltaire: Le mieux est l'ennemi du bien.

User avatar
jmurrinux
Black ninja
Black ninja
Posts: 32
Joined: 18 Aug 2011, 23:23
Distribution: XFCE-v3.1-i486 HDD
Location: Florida
Contact:

Re: Saving settings

Post#4 by jmurrinux » 07 Mar 2014, 01:23

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:
Thank you!
jmurrinux

User avatar
brokenman
Site Admin
Site Admin
Posts: 5504
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Saving settings

Post#5 by brokenman » 07 Mar 2014, 01:41

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
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
jmurrinux
Black ninja
Black ninja
Posts: 32
Joined: 18 Aug 2011, 23:23
Distribution: XFCE-v3.1-i486 HDD
Location: Florida
Contact:

Re: Saving settings

Post#6 by jmurrinux » 07 Mar 2014, 01:57

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
Thank you!
jmurrinux

User avatar
jmurrinux
Black ninja
Black ninja
Posts: 32
Joined: 18 Aug 2011, 23:23
Distribution: XFCE-v3.1-i486 HDD
Location: Florida
Contact:

Re: Saving settings

Post#7 by jmurrinux » 07 Mar 2014, 02:57

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:
Thank you!
jmurrinux

User avatar
brokenman
Site Admin
Site Admin
Posts: 5504
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Saving settings

Post#8 by brokenman » 07 Mar 2014, 15:09

Excellent!
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply