Page 3 of 4

hostname

Posted: Tue 31 Jan 2012, 20:17
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.

Posted: Tue 14 Feb 2012, 18:01
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

Re: hostname

Posted: Wed 15 Feb 2012, 12:53
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

xinerama, dual screens

Posted: Fri 24 Feb 2012, 00:56
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

Posted: Thu 08 Mar 2012, 01:29
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.

_____________________________________________________-

Firstrun-1.9.9

Posted: Mon 12 Mar 2012, 11:37
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:

Posted: Mon 12 Mar 2012, 19:38
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

rc.country

Posted: Tue 13 Mar 2012, 02:07
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.

firstrun and the console font

Posted: Tue 13 Mar 2012, 02:19
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.

Posted: Sun 18 Mar 2012, 03:38
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
  

pet uploaded

Posted: Sun 18 Mar 2012, 10:15
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).

Posted: Sun 18 Mar 2012, 15:17
by pemasu
Firstrun-2.0.pet...several scripts has ftp:ftp ownership instead of usual root:root.

Error or Oversight ???

Posted: Wed 21 Mar 2012, 18:43
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

Re: Error or Oversight ???

Posted: Wed 21 Mar 2012, 23:00
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.

Posted: Wed 04 Apr 2012, 15:35
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

Firstrun-2.1

Posted: Sat 14 Apr 2012, 06:32
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

Setting system tables

Posted: Fri 20 Apr 2012, 23:21
by gcmartin
@Shinobar. I draw attention to this issue

Here to help

firstrun-2.2

Posted: Sun 01 Jul 2012, 06:17
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.

spanish files

Posted: Fri 06 Jul 2012, 02:46
by shinobar
update by vicmz for spanish.

Posted: Fri 06 Jul 2012, 03:18
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