Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 29 Aug 2014, 16:22
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
First Run Dialog for next Lucid Puppy
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 5 of 11 [158 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 Next
Author Message
shinobar


Joined: 28 May 2009
Posts: 2618
Location: Japan

PostPosted: Tue 19 Oct 2010, 20:20    Post subject: Resolution Changer and XorgWizard  

bigpup wrote:
Quote:
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.

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2618
Location: Japan

PostPosted: Wed 20 Oct 2010, 00:55    Post subject: NumLock  

Do you like the Personalize Settings/Country Wizard having this checkbox?

Note that it is not effective on console (without X).

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
bigpup


Joined: 11 Oct 2009
Posts: 5096
Location: Charleston S.C. USA

PostPosted: Wed 20 Oct 2010, 06:18    Post subject:  

Num lock button?
YES!
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3259
Location: Ontario

PostPosted: Wed 20 Oct 2010, 16:19    Post subject: small bug  

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.


______________________________________________________
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2618
Location: Japan

PostPosted: Wed 20 Oct 2010, 22:38    Post subject: Re: small bug  

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?
first_de_key.png
 Description   
 Filesize   3.18 KB
 Viewed   995 Time(s)

first_de_key.png


_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7794
Location: qld

PostPosted: Wed 20 Oct 2010, 23:33    Post subject:  

Hello shino

Nice job so far Smile

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

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2618
Location: Japan

PostPosted: Thu 21 Oct 2010, 00:06    Post subject: full install and first-run  

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?

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7794
Location: qld

PostPosted: Thu 21 Oct 2010, 01:06    Post subject:  

Quote:
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:
#!/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 Laughing

maybe this:

Code:
#!/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

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2618
Location: Japan

PostPosted: Thu 21 Oct 2010, 05:10    Post subject: first-run with full install  

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/viewtopic.php?p=458799#458799
I suspect something mismatch with the graphic driver, gtk and openbox.

The code of 'fullstart',
Code:
   first-run.sh &
   rm -f /$HOME/Startup/fullstart  #this file self destructs after first run

should be modified:
Code:
   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.

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2618
Location: Japan

PostPosted: Thu 21 Oct 2010, 08:47    Post subject: Startup/fullstart  

01micko wrote:

Code:
#!/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...

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
Iguleder


Joined: 11 Aug 2009
Posts: 1886
Location: Israel, somewhere in the beautiful desert

PostPosted: Thu 21 Oct 2010, 11:58    Post subject:  

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. Smile

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
technosaurus


Joined: 18 May 2008
Posts: 4346

PostPosted: Thu 21 Oct 2010, 12:26    Post subject:  

to do what Iguleder is suggesting:

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

Code:
#... 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

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Iguleder


Joined: 11 Aug 2009
Posts: 1886
Location: Israel, somewhere in the beautiful desert

PostPosted: Thu 21 Oct 2010, 12:40    Post subject:  

There's another method, way simpler.

/root/Startup/firstrun:
Code:
<gtkdialog stuff go here>
....

mv /root/Startup/firstrun /usr/bin


Runs just once on the first time X starts, then hides in the shadows Smile

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
Bert


Joined: 30 Jun 2006
Posts: 926

PostPosted: Thu 21 Oct 2010, 16:44    Post subject:  

Dutch translation Smile

Anata wa Shinobar arigatō!
nl.po.tar.gz
Description 
gz

 Download 
Filename  nl.po.tar.gz 
Filesize  2.35 KB 
Downloaded  163 Time(s) 
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3259
Location: Ontario

PostPosted: Thu 21 Oct 2010, 17:28    Post subject: shortcut keys  

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][/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 .
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 5 of 11 [158 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1016s ][ Queries: 12 (0.0076s) ][ GZIP on ]