{New User}: How to Force savefile save

Post your comments, questions, bug reports or suggest new features for alphaOS
rcazador
Novice
Posts: 3
Joined: 23 Jun 2014, 11:23

{New User}: How to Force savefile save

Postby rcazador » 24 Jun 2014, 17:41

Hi,
I just got alpha running on usbmode with a savefile. Suppose I make an important change and want the savefile updated without restarting(since it updates the file when shutting down), what is the command?
I've also got xlockmore installed. Every time I try xlock -mode blank it locks the screen but refuses to open for the root password, even after restarting and setting a new root password it saves failed to validate login or something along those lines. Suggestions?
EDIT: I just found a command: save-session does this write the changes to the save file?

Also How do we set apps to autorun on boot?
Are there any guides to getting xlockmore to run after a time delay?

Thanks.
Last edited by rcazador on 24 Jun 2014, 17:48, edited 1 time in total.

ducklin5
Advanced
Posts: 54
Joined: 24 Jun 2014, 08:27

Re: {New User}: How to Force savefile save

Postby ducklin5 » 24 Jun 2014, 17:47

im not sure, but i bet, there is a command for it some where. try reinstalling xloxkmore. im not 100% sure it will work. :)

rcazador
Novice
Posts: 3
Joined: 23 Jun 2014, 11:23

Re: {New User}: How to Force savefile save

Postby rcazador » 24 Jun 2014, 18:02

ducklin5 wrote:im not sure, but i bet, there is a command for it some where. try reinstalling xloxkmore. im not 100% sure it will work. :)

I just reinstalled. First time was one makesb of firefox, samba and xlockmore. No I deleted that sb and loaded up a new sb with only xlockmore. Its still throwing up Invalid Login. Apparently this error in Gentoo had something to do with pam :?

ducklin5
Advanced
Posts: 54
Joined: 24 Jun 2014, 08:27

Re: {New User}: How to Force savefile save

Postby ducklin5 » 24 Jun 2014, 18:18

well thats all i had, i guess ill leave this to the linux experts

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: {New User}: How to Force savefile save

Postby Scooby » 25 Jun 2014, 16:10

rcazador wrote:Hi,
I just got alpha running on usbmode with a savefile. Suppose I make an important change and want the savefile updated without restarting(since it updates the file when shutting down), what is the command?
...
EDIT: I just found a command: save-session does this write the changes to the save file?

Yes save-session does that. Only thing is you probably shouldn't run it the first time you create savefile.
After one reboot it is safe!

rcazador wrote:I've also got xlockmore installed. Every time I try xlock -mode blank it locks the screen but refuses to open for the root password, even after restarting and setting a new root password it saves failed to validate login or something along those lines. Suggestions?

I aint sure but I will try it out and come back and share my findings


rcazador wrote:Are there any guides to getting xlockmore to run after a time delay?

What exacty are you after? If you mean at start up you could create a scriptfile
as

Code: Select all

sleep 10
xlock -mode blank



rcazador wrote:Also How do we set apps to autorun on boot?

Check out /root/.start
You could add programm here

perhaps

Code: Select all

script-file-from-above &


If you want to have a autostart folder tell me
I have a solution for it

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: {New User}: How to Force savefile save

Postby Scooby » 25 Jun 2014, 20:31

I had to rebuild xlock from source to make it work

try this one

https://www.dropbox.com/s/jhaqzrz66i9bgwv/xlockmore.sb

Remember you cannot have old version in savefile, then it will be visible!

Easiest would be to boot without savefile otherwise you have to

Code: Select all

rm /usr/bin/xlock
rm /mnt/live/memory/changes//usr/bin/.wh.xlock
bundle -a xlockmore.sb


When the correct xloxk is visible below will yield positive result

Code: Select all

xlock -help | grep cpasswd

rcazador
Novice
Posts: 3
Joined: 23 Jun 2014, 11:23

Re: {New User}: How to Force savefile save

Postby rcazador » 26 Jun 2014, 03:54

Scooby wrote:I had to rebuild xlock from source to make it work

try this one

https://www.dropbox.com/s/jhaqzrz66i9bgwv/xlockmore.sb

Remember you cannot have old version in savefile, then it will be visible!

Easiest would be to boot without savefile otherwise you have to

Code: Select all

rm /usr/bin/xlock
rm /mnt/live/memory/changes//usr/bin/.wh.xlock
bundle -a xlockmore.sb


When the correct xloxk is visible below will yield positive result

Code: Select all

xlock -help | grep cpasswd


Thank you so much :D very helpful. I'm currently not on at home to check it but will do so and get back asap.
Also in your previous post you mentioned an autostart folder. If its not too much trouble could you explain that solution as well, and again many thanks for that post too.

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: {New User}: How to Force savefile save

Postby Scooby » 26 Jun 2014, 19:43

rcazador wrote:Thank you so much :D very helpful. I'm currently not on at home to check it but will do so and get back asap.
Also in your previous post you mentioned an autostart folder. If its not too much trouble could you explain that solution as well, and again many thanks for that post too.


any command you want to run at start up you can add to
/root/.start file

To get a startup folder add to /root/.start
( I added before rdate command in mine)

for script in /root/Startup/*; do test -x "$script" && test -f "$script" && { "$script" & disown; }; done

and create folder /root/Startup/

john3voltas
Expert
Posts: 266
Joined: 19 May 2013, 21:53

Re: {New User}: How to Force savefile save

Postby john3voltas » 21 Jul 2014, 21:48

Scooby wrote:Yes save-session does that. Only thing is you probably shouldn't run it the first time you create savefile.
After one reboot it is safe!

Could you please explain why it's not safe to run it before 1st reboot? Because that's exactly the moment when it would come more handy...

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: {New User}: How to Force savefile save

Postby Scooby » 21 Jul 2014, 22:03

It was a precautionary statement.
I saw that code for handling that specific case was present in save-session
but never ever read it through.

Now when I looked, to my knowledge, it is safe to use that way


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 24 guests

cron