First Run Dialog for next Lucid Puppy

A home for all kinds of Puppy related projects
Message
Author
User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Resolution Changer and XorgWizard

#61 Post by shinobar »

bigpup wrote:
Note that If you once set the resolution with this Personalize Settings, or the Xorg Resolution Changer, the setting of xorg.conf is ignored, even if you run the XorgWizard and select different resolution.
It can be a problem when we take the 'xrandr' for the resolution setting.
If I understand this, if you make resolution changes with "First Run Dialog screen" then using Xorgwizard will not make changes?
Sorry, i was wrong.
There are no problem with the Resolution Changer (and from the Personalize Settings) and the XorgWizard.
Chang the resolution by the Resolution Changer or from the Personalize Settings, then running the XorgWizard, the resolutions of the XorgWizard is effective.

Only a problem occurs: Changing xorg.conf by the Nvidia X Setting Wizard is overridden by the xrandr.

Technically, the 'xrandr' for the resolution setting, the Resolution Changer(/usr/sbin/xrandrshell) and from the Personal Settings(/usr/sbin/countrywizard.qs), leaves a file '/etc/xrandrindex'. The /usr/sbin/xorgwizard removes the file '/etc/xrandrindex'. But the Nvidia X Setting Wizard does not.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

NumLock

#62 Post by shinobar »

Do you like the Personalize Settings/Country Wizard having this checkbox?
Image
Note that it is not effective on console (without X).
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#63 Post by bigpup »

Num lock button?
YES!

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

small bug

#64 Post by don570 »

There is small insignificant bug

While testing the keyboard input, the shortcut keyboard commands
(using the alt key ) should be shut off.

For example while using German alt-A results
in cancellation so the window unexpectedly shuts
and the user returns to first run.


______________________________________________________

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Re: small bug

#65 Post by shinobar »

don570 wrote:While testing the keyboard input, the shortcut keyboard commands
(using the alt key ) should be shut off.

For example while using German alt-A results
in cancellation so the window unexpectedly shuts
and the user returns to first run.
Thanks don. But I cannot reproduce.
I tried de, de-latin1 with de_DE, de_BE, en_US, de_DE.utf8.
Luci-232 RAM mode.

Do you mean if Alt + somekey is set to shortcut keyboard commands?
Maybe no problem for the RAM mode. Tested openbox and jwm.
If the shortcut is set by the user, he knows what happens. Isn't it alright?
Attachments
first_de_key.png
(3.18 KiB) Downloaded 1058 times
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#66 Post by 01micko »

Hello shino

Nice job so far :)

One small problem. I did a test full install of luci-232 and the wizard did not come up. I did get the small welcome splash. I didn't have much time to take a look but if you want I can.

Cheers
Puppy Linux Blog - contact me for access

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

full install and first-run

#67 Post by shinobar »

01micko wrote:I did a test full install of luci-232 and the wizard did not come up.
Thanks for testing, mike.
It does not support full install... Yeh, its a joke, but can be serious for me. I do not like full installing puppies.
The matter is how to run the first-run.sh. I remember the delayedrun launches the first-run.sh only under the PUPMODE=5?
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#68 Post by 01micko »

It does not support full install... Yeh, its a joke, but can be serious for me. I do not like full installing puppies.
Ah yes! While you and I do not like to use full install there are thousands (maybe?) of others that do :wink:

Code: Select all

#!/bin/sh

. /etc/rc.d/PUPSTATE #get pupmode

[[ $PUPMODE -gt 5 ]]&& rm -f /$HOME/Startup/fullstart #delete if we are not in live session or full

if [[ $PUPMODE != 2 ]];then exit
	else sed -i 's/"5"/"2"/' /usr/bin/first-run.sh  #change first-run wizard to work in full install
	first-run.sh &
	rm -f /$HOME/Startup/fullstart  #this file self destructs after first run
fi
That is the current script in lupu that ran the old first-start.sh in a full install. I guess it should support PUPMODE=3 also. Maybe (at line 7)
if [[ $PUPMODE -gt 4 ]];then exit
else (do something with shino's wizard here)
fi

It could easily be modified to run your wizard if you desire.

Cheers

EDIT: ok so now I had a look :lol:

maybe this:

Code: Select all

#!/bin/sh
. /etc/rc.d/PUPSTATE #get pupmode

[[ $PUPMODE = 5 ]]&& first-run.sh &
[[ $PUPMODE -gt 5 ]]&& rm -f $HOME/Startup/fullstart #remove this file if we did a frugal or save to cd install
[[ $PUPMODE -lt 4 ]]&& first-run.sh &&  rm -f $HOME/Startup/fullstart #remove this file after one run in a full install
Puppy Linux Blog - contact me for access

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

first-run with full install

#69 Post by shinobar »

01micko wrote:I did get the small welcome splash.
The first-run.sh(countrywizard.qs) is running, but it crashed at the very beginning, the welcome splash.
I saw the case on the Qemu virtual machine.
http://www.murga-linux.com/puppy/viewto ... 799#458799
I suspect something mismatch with the graphic driver, gtk and openbox.

The code of 'fullstart',

Code: Select all

   first-run.sh &
   rm -f /$HOME/Startup/fullstart  #this file self destructs after first run
should be modified:

Code: Select all

   first-run.sh && rm -f /$HOME/Startup/fullstart  #this file self destructs after first run
This works, the countywizard.qs(Gtk) crash aside.

The current firstrun-0.9d quits with exit code 1 when the user closes the dialog with the 'x' at the top-right corner. In this case, its behavior seems complex. I will set the exit code 0 in this case as for the next version.

The next version with NumLock checkbox coming soon.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Startup/fullstart

#70 Post by shinobar »

01micko wrote:

Code: Select all

#!/bin/sh
. /etc/rc.d/PUPSTATE #get pupmode

[[ $PUPMODE = 5 ]]&& first-run.sh &
[[ $PUPMODE -gt 5 ]]&& rm -f $HOME/Startup/fullstart #remove this file if we did a frugal or save to cd install
[[ $PUPMODE -lt 4 ]]&& first-run.sh &&  rm -f $HOME/Startup/fullstart #remove this file after one run in a full install
I think it is good enough.
Then, the delayedrun need not directly call first-run.sh, right?

Depends on the delayedrun of the new woof...
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
Iguleder
Posts: 2026
Joined: Tue 11 Aug 2009, 09:36
Location: Israel, somewhere in the beautiful desert
Contact:

#71 Post by Iguleder »

There's a better method. Put it in /root/Startup and make it delete itself.

That's the only way to make sure it runs just once ... if you restart X it shows up again and that's annoying.

Plus, this method doesn't require any editing to delayedrun. :)
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#72 Post by technosaurus »

to do what Iguleder is suggesting:

do something like this at the end of the $HOME/Startup/firstrun script:

Code: Select all

#... a bunch of clever code

#whatever your definition of success is?
[ $SUCCESS ] && rm -f $0
if you do it this way it can just be a symlink to the script in case someone wants to run it later - in other words SUCCESS would include "`which $0` != /usr/sbin/firstrun
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
Iguleder
Posts: 2026
Joined: Tue 11 Aug 2009, 09:36
Location: Israel, somewhere in the beautiful desert
Contact:

#73 Post by Iguleder »

There's another method, way simpler.

/root/Startup/firstrun:

Code: Select all

<gtkdialog stuff go here>
....

mv /root/Startup/firstrun /usr/bin
Runs just once on the first time X starts, then hides in the shadows :)
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#74 Post by Bert »

Dutch translation :)

Anata wa Shinobar arigat
Attachments
nl.po.tar.gz
(2.35 KiB) Downloaded 267 times

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

shortcut keys

#75 Post by don570 »

I ran program by typing 'firstrun' in terminal . I found that shortcut keys for
the buttons 'Ok' and 'Cancel' worked no matter what language my
computer was using. So the shortcuts Alt-C in English or Alt-A in German
would close the window.

click
[url=http://upmyphoto.com/image/28465/7 ... .jpg[/img][/url]

So are these shortcuts not working for you when the program is properly
installed as a first run app? If you were running the computer
for the first time the third level key wouldn't be set but if the
program was run latter maybe it would have been set by user. I obviously
had set it .

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Re: shortcut keys

#76 Post by shinobar »

don570 wrote:I ran program by typing 'firstrun' in terminal . I found that shortcut keys for
the buttons 'Ok' and 'Cancel' worked no matter what language my
computer was using. So the shortcuts Alt-C in English or Alt-A in German
would close the window.
Ah, I see.
I used the Alt-key of the right one (Alt Gr) and could type the special characters.
Yes, the Left Alt-key works as the short-cut for OK/Cancel and close the dialog.
It is reasonable, but if it is confusing the newbies, we can suppress it only the sandbox dialog.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

launching the dialog once

#77 Post by shinobar »

Thanks technosaurus, Iguleder and mike.
A problem is the delayedrun now does not call the Startup scripts until the welcome info is finished or timeout.
The timeout shall be shorten to 3 seconds, Barry says maybe next woof. But now, 55 seconds.
http://bkhome.org/blog/?viewDetailed=01869

Anyway, i can manage it.
I do not like deleting the progs because it puzzles some advanced users.
Imagine someone makes a USB installed Puppy as a present to his friends.
He likes to setup the first-run dialog and looks for the mechanism...
So, i like to leave the program but removing the excutable property.
Then he can see what the program is doing by looking up the source.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Dutch translation

#78 Post by shinobar »

Dank u, Bert.
It will be containd in the next release, maybe coming soon.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

New version with NumLock support available

#79 Post by shinobar »

OK, new version 0.9d1 with NumLock support now available.
See the top of this topic.
Thanks to all the testers and joining the discussion.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
maxpro4u
Posts: 293
Joined: Sat 19 Jun 2010, 18:20
Location: Rittman,Ohio,USA, In dog years,I'm dead
Contact:

Re: New version with NumLock support available

#80 Post by maxpro4u »

shinobar wrote:OK, new version 0.9d1 with NumLock support now available.
See the top of this topic.
Thanks to all the testers and joining the discussion.
will you be updating quickset also?
Dell D610 1.7M w/1024mb
Testing Slacko and a few others
I'm Max Wachtel and I approve this message.
Registered Linux User #393236

Post Reply