Refracta Development, Scripts, etc.
Post a reply

Re: refracta-wheezy-beta3 - betaN bugs

Mon Jan 07, 2013 12:27 pm

Got the lightdm language selector working!

There is a fix. a short script [slash]etc/X11/Xsession.d/39-lightdm-dmrc-fix (use the newest update)

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679386

The only newer debs are in experimental, language selector also doesn't work in that version and it's 3 months old so don't expect an official fix anytime soon

Also I built the latest live-config from git (3.0.18-1) which looks like it just went into experimental today. The freezeup bug seems sorted. I don't know if hooks work yet without our custom script.

Custom config script refracta-lang is working, simply config=refracta-lang lang=de_DE is enough for locale and keyboard. The clock could be set to UTC there in a future update, if that's considered a good idea for non-US users. In the meantime, just use config=refracta-lang,tzdata

No need now to use "noconfig" before "config=whatever"

"noautolgin" was on my usb's cmdline, left over from older versions. Although that should have caused no problem beyond being useless, removing it was the solution.

Runlevel 3 (no X) is very useful (especially for testing) and works, as long as you remember if <init 3> is used to stop X you get left on tty7 so have to do ALT+F1 to get a prompt.

Re: refracta-wheezy-beta3 - betaN bugs

Mon Jan 07, 2013 2:18 pm

Excellent! I just tried the dmrc-fix, and it works.

I no longer know how to set the clock to UTC, because that setting is no longer in etc-default-rcS. UTC is my preference. I did notice last night when I booted into French (using the refracta-lang script) that the desktop clock showed the wrong time. Didn't do the math, but it looked like it was probably for France.

The noautologin was removed when I removed config from the boot command. Not sure which version that was, but it wasn't long ago.

Choosing text-only at boot brings me to tty1. Using startx and then logging out of the desktop drops me to tty1. If I start the desktop using the lightdm init script and then log out of desktop, it sure enough drops me to the twilight zone (tty7) as you said. I'll leave the instructions in motd that tell the user to run startx to get to the desktop (if they logged into runlevel 3). In all of these cases, the system never leaves runlevel 3. I guess you used 'init 2' to get to the desktop?

Hey, I think we're almost there!

Re: refracta-wheezy-beta3 - betaN bugs

Mon Jan 07, 2013 4:03 pm

I no longer know how to set the clock to UTC, because that setting is no longer in etc-default-rcS


[slash]etc/localtime (a binary) which is taken from /usr/share/zoneinfo There is also [slash]etc/adjtime but I don't know how that is set. See how /lib/live/config/****-tzdata sets it

Western Europe (except UK, Ireland, Portugal) is UTC +1 October-March then +2

Unless /lib/live/config****-tzdata is run the system clock should be what is default in the live-image, even if locale is changed. If you do tzdata but don't specify a timezone (e.g. timezone=Europe/Zurich) you get UTC

In an installation, or live after boot, it's dpkg-reconfigure tzdata
EDIT or in a chroot to the image's filesystem, before mksqashfs (etc/UTC) if that is wanted for default

Re runlevels: yes, I'm referring to when default (2) has booted but you need later to do something requiring X shut down, by calling <init 3> as root.

If later you're root at the console, <init 2 && exit> closes the console root session and start the DM, no need for startx (don't do that as root)

Re: refracta-wheezy-beta3 - betaN bugs

Mon Jan 07, 2013 8:26 pm

I rebuilt beta6 with git live-*, language-selector fix and preset UTC

One quirk with the clock:

if en_US or en_GB, it shows for example 08.08 PM which is fine but If French, Spanish, probably others, it shows just 08.08 (confusing) Maybe 24 hour clock is better.

Apart from that, so far I see nothing else wrong (still need to revisit hooks)

Re: refracta-wheezy-beta3 - betaN bugs

Thu Jan 17, 2013 6:22 pm

I'm doing regular, incrementally updated, personal snapshots originating from beta6 unpacked to a chroot. The iso is then rebuilt and tested from live usb.

Current changes, all successful with insignificant iso size increase:

live-* updated to current sid versions
9899-hooks removed
Full dist-upgrade
Clock set to UTC
lightdm language-chooser fix

Some extras added:

fwdetect (autodetect nonfree requirements, mostly for wireless) Depends: ssft
enable-nonfree (one-hit script to add nonfree to apt sources)
youtube-viewer-refracta (as discussed in another thread) Depends: libyaml-perl
youtube2what (flv converter)

the extras are posted here: http://exegnulinux.net/refracta/experimental (note what is there is not official Refracta and may also be untested)

That snapshot booted also with working hooks... 9899-hooks was a temporary bug-fix, it's no longer needed.

Re: refracta-wheezy-beta3 - betaN bugs

Fri Jan 18, 2013 3:39 pm

Code:
Done    live-* updated to current sid versions
Done    9899-hooks removed
Done    Full dist-upgrade
Done    Clock set to UTC
Done    lightdm language-chooser fix

Some extras added:

Not Done (yet)   fwdetect (autodetect nonfree requirements, mostly for wireless) Depends: ssft
Not Done (yet)   enable-nonfree (one-hit script to add nonfree to apt sources)
Done    youtube-viewer-refracta (as discussed in another thread) Depends: libyaml-perl
Done    youtube2what (flv converter)

Holding off for as long as possible with the non-free stuff.

Re: refracta-wheezy-beta3 - betaN bugs

Fri Jan 18, 2013 6:15 pm

And I can confirm that the new build works with hooks. (your hookscript and lukshome :) )

Re: refracta-wheezy-beta3 - betaN bugs

Thu Jan 31, 2013 4:30 pm

beta9 - Added mtools, snapshot2usb, updated scripts for vnc over ssh, dist-upgrade Jan 29, slightly updated release notes.
refracta-wheezy-beta9-20130129_1700.iso

http://distro.ibiblio.org/refracta/testing/

Re: refracta-wheezy-beta3 - betaN bugs

Tue Feb 05, 2013 3:46 am

Ok, testing beta9.
simple installation.

etc/hostname is empty.

Re: refracta-wheezy-beta3 - betaN bugs

Tue Feb 05, 2013 10:55 am

OK, I see the problem. This gives me an excuse to bring the installer version number in sync with the snapshot tool. Here's the fix - change:
Code:
if [[ $change_hostname = "yes" ]]; then
   select_hostname
fi

to
if [[ $change_hostname = "yes" ]]; then
select_hostname
else
new_hostname="$HOSTNAME"
fi


refractainstaller-yad around line 650
refractainstaller-gui around line 593

And in the cli refractainstaller, move line 488 down. Put this right after the select_hostname function is called on line 535:
Code:
# In case null was entered above as hostname, then set it to $HOSTNAME
new_hostname=${new_hostname:="$HOSTNAME"}
Post a reply