Firstrun-2.2 (Country Settings and more)

Window managers, icon programs, widgets, etc.
Message
Author
gcmartin

hostname

#41 Post by gcmartin »

Hi Shinobar

Since your introduction with your FirstRUN it has become a startup "statue" to single screen localization as many have taken advantage of your design.

As a result, some, many, most new Pups from Puppyland have tended to adopt or attempt duplication of FirstRUN, alias "Personalize Settings".

Because of this all 64bit and several 32bit PUPs will boot from CD all the way to desktop to complete localization versus stopping at text mode screens before getting to desktop.

One of the great benefits to your effort has been for users to set the local PC's name (hostname).

Here's an issue that I think FirstRUN can make consistent in its implementation for all in Puppyland. And, I'll begin by stating the issue and sharing who has addressed it, individually and perhaps differently.

Issue: Setting of the hostname properly in ALL system fields for system/subsystem application use. There are actually 5 system parms/fields that reflect the hostname. I see these by executing the following commands
# hostname
Slacko-LaptopP3
# echo $HOSTNAME
Slacko-LaptopP3
# cat /etc/hosts
127.0.0.1 localhost Slacko-LaptopP3
192.168.1.1 pc2
192.168.1.2 pc3
192.168.1.3 pc4
# cat /etc/hostname
Slacko-LaptopP3

I had found that is the cases where FirstRUN is being used, it was important to exit the desktop and issue a logout before restarting the desktop via xwin.
This is evidence that shows what FirstRUN provides during its operation after initial system start.

But, here's the problem. The above shows ALL fields to be set properly, resulting from it being changed in FirstRUN, But, there is some in-memory remnants of the original hostname that remain for system use UNTIL A LOGOUT OCCURS! When a logout occurs, then all in-memory as well as these above parms are properly set for any system/subsystem/application use as it carries out operations on behalf of the user.
  • TaZoC solved it one way
  • Playdayz solved it a different way
  • 01Micko solved it in a different way
I feel that (barring no obstacles, of course) FirstRUN, logically, should be the place which addresses this need for correct system settings. Thus, no distro owner need to "create" a different approach.

So, my question is as following
Can/should/would FirstRUN address the hostname issue by a "logout and xwin restart" whenever a hostname change is entered in the hostname field of FirstRUN.

If this is done, the total community benefits because there will be a consistent fashion for handling of desktop startup for all distro builders and users, alike.

Please weigh a practical solution for this in FirstRUN. And, please keep in mind that a logout seems be a key ingredient of proper settings for all hostname fields.
Also, remember that 01Micko, Playdayz, and TaZoC have addressed this...but in different ways. A common approach would remove the need for specific, independent designs to address this issue.

In summary, i feel that should any user use FirstRun to set/reset the PC's name (hostname), some utility (FirstRUN) should schedule an immediate Logout and restart of the desktop when the OK button is clicked in FirstRUN.

Thanks in advance.

PenguinPupLin
Posts: 130
Joined: Fri 23 Dec 2011, 09:21
Location: The Little Red Dot

#42 Post by PenguinPupLin »

Downloaded the firstrun-1.9.6.pet which is actually a .gz file, i.e firstrun-1.9.6.gz(not tar.gz).

XArchive in Slacko 531 couldn't recognize or didn't support the format and therefore unable to extract the file.

Tried using the older Xarchiver (xarchiver-0.5.2-i386-v4.pet), also to no avail.

Please advise. Thank you

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

Re: hostname

#43 Post by shinobar »

gcmartin wrote:In summary, i feel that should any user use FirstRun to set/reset the PC's name (hostname), some utility (FirstRUN) should schedule an immediate Logout and restart of the desktop when the OK button is clicked in FirstRUN.
I think it need not.
See my post:
http://www.murga-linux.com/puppy/viewto ... 667#604667
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

xinerama, dual screens

#44 Post by sc0ttman »

I have a problem once I have enabled 2 screens through the "Nvidia Settings" program...
See screenshot.. List of resolutions not working.

Current resolution is apparently 'Choices'!

EDIT: I see some duplicate info in my xorg.conf, the 'driver'....


Here is my xorg.conf (old style, version 7.3)

Code: Select all

......stuff
....
...

Section "Monitor"

#DisplaySize 300 230 # mm
### Comment all HorizSync and VertRefresh values to use DDC:
#UseModes "Modes0" #monitor0usemodes
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "LG L1520B"
    HorizSync       30.0 - 63.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
    Option         "PreferredMode" "1024x768"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "TV-0"
    HorizSync       30.0 - 63.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Device"

### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "UseFBDev" # [<bool>]
#Option "Rotate" # [<str>]
#Option "VideoKey" # <i>
#Option "FlatPanel" # [<bool>]
#Option "FPDither" # [<bool>]
#Option "CrtcNumber" # <i>
#Option "FPScale" # [<bool>]
#Option "FPTweak" # <i>
#Option "DualHead" # [<bool>]
        Driver      "vesa" #card0driver
    Identifier     "Card0"
    Driver         "nvidia"
    VendorName     "nVidia Corporation"
    BoardName      "NV34 [GeForce FX 5200]"
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce FX 5200"
    BusID          "PCI:2:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Videocard1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce FX 5200"
    BusID          "PCI:2:0:0"
    Screen          1
EndSection

Section "Screen"
# Removed Option "TwinView" "1"
# Removed Option "metamodes" "CRT: 1024x768 +0+0, TV: nvidia-auto-select +1024+0"
    Identifier     "Screen0"
    Device         "Videocard1"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "CRT: 1024x768 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Videocard0"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "TV: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Attachments
screeny1.png
(35.4 KiB) Downloaded 768 times
Last edited by sc0ttman on Mon 12 Mar 2012, 17:44, edited 2 times in total.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

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

#45 Post by don570 »

Note to Shinobar

I did an experiment to switch the "OpenWith' folder
from an English version to a German version
automaticlly.

I used Lazy since it has a lot of right click menu items and is mainly German.

http://murga-linux.com/puppy/viewtopic. ... a83#610425

Note that your recent version of Firstrun 1.9.6 isn't totally
compatible but I'm sure that a little work will it compatible.

_____________________________________________________-

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

Firstrun-1.9.9

#46 Post by shinobar »

http://shino.pos.to/linux/puppy/
Firstrun-1.9.9 is intended to be compatible with recent woof, but recommended to work with next setup tools:
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#47 Post by pemasu »

Firstrun-1.9.9 is intended to be compatible with recent woof, but recommended to work with next setup tools:
I believe above is the reason that /etc/rc.d/rc.country has been left out which was included in 1.9.6 ?

Well...I know soon... :D

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

rc.country

#48 Post by shinobar »

pemasu wrote:
Firstrun-1.9.9 is intended to be compatible with recent woof, but recommended to work with next setup tools:
I believe above is the reason that /etc/rc.d/rc.country has been left out which was included in 1.9.6 ?
The rc.country is removed from the firstrun-1.9.9 because it is updated in woof hard to follow up. As for old puppies, I am not sure but maybe no significant problem occurs even with old rc,country.

The sfs_load needs to load the language packages if they are provided as a sfs. The sfs_load works better with pupsaveconfig for the RAM modes.
Getflash is preferable to avoid the delayedrun offers to download flashplayer when the first setup GUI is running. But you are better to modify the delayedrun itself.
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:

firstrun and the console font

#49 Post by shinobar »

Additional note on the firstrun-1.9.9.
The firstrun(countrywizard.qs) does not handle the console fonts (same as the old versions of the firstrun). I have tested Racy-5.2.2.8 and I am not sure the console fonts works with no problem on Puppy.
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:

#50 Post by 01micko »

Shino,

Seems you uploaded just the firstrun-2.0 directory, not the pet.

Also, concerning the pinstall.sh, what happens if this is installed in the woof build system the pinstall may act on the running host system, best to add a test to see how we are installing.

Code: Select all

if [ "$(pwd)" = "/" ];then
 (the pinstall code goes here)
fi
  
Puppy Linux Blog - contact me for access

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

pet uploaded

#51 Post by shinobar »

01micko wrote:Seems you uploaded just the firstrun-2.0 directory, not the pet.

Also, concerning the pinstall.sh, what happens if this is installed in the woof build system the pinstall may act on the running host system,
Uploaded the .pet.
As for the woof please test it(pinstall.sh has no change).
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#52 Post by pemasu »

Firstrun-2.0.pet...several scripts has ftp:ftp ownership instead of usual root:root.

gcmartin

Error or Oversight ???

#53 Post by gcmartin »

I have notice something that leads to a question. This observation is found in both Exprimo and Slacko (probably others as well). There appears to be some redundant behavior for which I don't understand.

FirstRUN is truly a "single screen localization settings" for distro developers and users alike. In the latest version of the distros, I am seeing a departure for this. It may be just an error or an oversight.

Please explain .. Question
  • Is there suppose to be a 2nd pop-up relating to information already recieved in FirstRUN?
  • Or is this an oversight?
Hope this helps
Attachments
UTF-8_Pop-up_Why.PNG
This is what occurs
(74.75 KiB) Downloaded 1108 times

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

Re: Error or Oversight ???

#54 Post by shinobar »

gcmartin wrote:I have notice something that leads to a question.
The 2nd pop-up on the langage detail sometime need and somtime need not.
From en_US to en_AU... you need to select 'en English' 1st, 'en_AU English,Australia' 2nd.
From en_US to en_US.UTF-8... just check on the 'UTF-8 encoding' on the main dialog.

Need not the 2nd pop-up in the latter case, you are right.
Thanks for the report. Will be fixed in a future version.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#55 Post by jemimah »

This patch fixes the problem where firstrun incorrectly identifies the video driver as vesa.

Code: Select all

--- countrywizard.qs.orig	2012-04-04 11:34:33.670263727 -0400
+++ countrywizard.qs	2012-04-04 11:35:08.280264503 -0400
@@ -800,7 +800,7 @@
   XSERVER=$(readlink "$(which X)")
   [ "$XSERVER" = "Xvesa" ] && VIDEODRIVER="Xvesa" && echo "$VIDEODRIVER" && return
   LOADED="`grep -o 'Loading .*xorg/modules/drivers/.*_drv.so' /var/log/Xorg.0.log | rev | cut -f 1 -d '/' | rev | cut -f 1 -d '_' | sort -u`" #111027 fix multiple hits.
-  UNLOADED="`grep -o 'Unloading .*xorg/modules/drivers/.*_drv.so' /var/log/Xorg.0.log | rev | cut -f 1 -d '/' | rev | cut -f 1 -d '_'`" 
+  UNLOADED="`grep 'UnloadModule: ' /var/log/Xorg.0.log | cut -f 2 -d '"'`"
   if [ "$UNLOADED" ]; then
     # remove unloaded
     # 'for' loop instead of 'grep -f' to be free from the busybox version

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

Firstrun-2.1

#56 Post by shinobar »

Minor update:
# 14apr12: v2.1: Need not restart X for time zone changed, fix video driver detection(jemimah), splash only for firstrun

As for the driver detection thanks to jemimah and keeping the compatibility with the X-server version:

Code: Select all

  LOADED="`grep -o 'Loading .*xorg/modules/drivers/.*_drv.so' /var/log/Xorg.0.log | rev | cut -f 1 -d '/' | rev | cut -f 1 -d '_' | sort -u`"
  UNLOADED="`grep 'Unload' /var/log/Xorg.0.log | tr -d '"' | rev | cut -f1 -d' ' | cut -f1 -d'/' | rev | cut -f1 -d'_'| sort -u`"
As for the splash, you can edit the line 51 of the countrywizard.qs:

Code: Select all

MOMENT=2	#v1.9.5: minimum second to show splash #v2.1: no splash if 0
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

gcmartin

Setting system tables

#57 Post by gcmartin »

@Shinobar. I draw attention to this issue

Here to help

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

firstrun-2.2

#58 Post by shinobar »

UPDATE: Test release: firstrun-2.2.pet (1 Jul 2012)
#1jul2012: v2.2: ensure current localedef, hostname, handle different path to keymaps in kbd pkg.(keymap-set), slovakian keyboard (keymap-set), fail safe without xorg.conf (keymap-set)
http://shino.pos.to/linux/puppy/

NOTE: new keymap-set supports kbd package. But you need to refresh the file /usr/share/i18n/keymaps.
*KEYMAPS
If the file named 'keympas' is not exists, countrywizard.qs makes a file '/tmp/countrywizard.qs/keymaps' at the first run.
You can copy it and rename as '/usr/share/i18n/keymaps'. It is prefered if you make the remaster of puppy.

Related Barr's blog:
http://bkhome.org/blog/?viewDetailed=02870

Calling for the NLS update. The pot file is at /usr/share/doc/nls/countrywizard/countrywizard.pot.
Attached the current po files.
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:

spanish files

#59 Post by shinobar »

update by vicmz for spanish.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#60 Post by vicmz »

Hi shinobar
Sorry, I should have looked for the app itself in the forum. I'll post updates here directly from now on. Thanks
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

Post Reply