If it's not on-topic, it's in here.
Post a reply
ukbrian

- ukbrian
- Posts: 109
- Joined: Mon Jul 25, 2011 8:22 am
- Location: Cheltenham, UK

## Is this post OK

Thu Apr 04, 2013 3:53 pm

Is it OK with you guys if I make this post on the http://forums.solydxk.com/index.php or would you like some of the text changed? or perhaps you'd like to make a post yourselves?

> These scripts snapshot and install were developed by meandean and fsmithred of the Refracta forum.
> Unlike Remastersys when your running the live DVD any changes you make such as adding/removing apps will then be included/removed when you install your Debian OS.
> The .deb files you need are in a archive here http://lin.me.uk/refracta/refracta-yad-13-03-31.tar.gz
> Please install the base files before the GUI ones and which ever Yad 32 bit or 64 bit you need.
> These video files are compressed using .7z but renamed as .zip files as browsers seem to handle the .zip extension better, there is no need to rename them.
> Video of taking a snapshot http://lin.me.uk/solydx/refracta/refracta-snapshot.mp4.zip
> Video of installing a snapshot ISO http://lin.me.uk/solydx/refracta/refracta-install.mp4.zip
> I've been using these scripts for quite a while without any problems at all.
> Please unmount any network drives etc or add them to the excludes before taking a snapshot.

I've installed and run the scripts on SolydX with out any problems
edit
I was also going to do a similar thing on the SolusOS forum.
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Is this post OK

Thu Apr 04, 2013 9:24 pm

It's ok with me. It would probably be good if you included a link to the ibiblio home page so that people can find newer versions when I upload them. I suggest the home page rather than the download page, because I'm going to move stuff around some time soon.
And this:
s/when your running/when you're running/
Edit: And it's still possible to run the scripts with zenity, in case someone doesn't want to install yad.
ukbrian

- ukbrian
- Posts: 109
- Joined: Mon Jul 25, 2011 8:22 am
- Location: Cheltenham, UK

## Re: Is this post OK

Fri Apr 05, 2013 1:51 pm

> It would probably be good if you included a link to the ibiblio home page so that people can find newer versions when I upload them

I intended to include a link but forgot.
Which would be the best link ibiblio at http://distro.ibiblio.org/refracta/ where the files are a bit dated or at https://github.com/fsmithred/refracta
No rush as this was just posted by Schoelje(dev) on the SolydXK forum so I don't think I'll make a post until things settle down.

> 05 Apr 2013 11:33
> Ladies and gentlemen,
> On 6 April 2013 at 12:00 UTC we will synchronize the production repositories.
> Those who haven't upgraded from the testing repositories will have about 250MB of packages to download.
> We'll make the RC iso's available, after the synchronization, and we confirmed that the synchronization was successful.

> it's still possible to run the scripts with zenity, in case someone doesn't want to install yad.

I just removed Yad and the only difference I could see was instead of a green flask for the running application I have an alarm clock, snapshot taken and it boots OK so thank you.
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Is this post OK

Fri Apr 05, 2013 2:35 pm

Just use the ibiblio home page - http://distro.ibiblio.org/refracta/
When I reorganize the site, it'll be better. Right now, the testing folder with the latest versions is kinda hidden (i.e. there's no link to it from the website. You have to go to downloads, parent directory, testing.)
dzz

- dzz
- Posts: 647
- Joined: Wed Apr 27, 2011 11:53 am
- Location: Devon, England

## Re: Is this post OK

Sat Apr 06, 2013 12:26 am

Beware of making "remastersys" comparisons which might not be quite correct anyway.. this is not a competition of who does what better, they also do good work in a different way..
ukbrian

- ukbrian
- Posts: 109
- Joined: Mon Jul 25, 2011 8:22 am
- Location: Cheltenham, UK

## Re: Is this post OK

Sat Apr 06, 2013 10:28 am

> Beware of making "remastersys" comparisons which might not be quite correct anyway

I completely agree with you.
I've moved on to running Refracta snapshot/installer on SolusOS 1.3 which is based on Squeeze with updated kernel and software and I think I have found a problem with the non Yad installer bits.
edit
I'm using the latest snapshot/installer scripts
I select "Expert Install" in the installer and then select
04 Use existing swap partition
10 Use UUID in /etc/fstab
Everything goes OK until the "Swap Partition" screen when I select the swap partition and click "OK"
That screen closes but the next screen doesn't open/appear.
If I start again and I just use option "04 Use UUID" the install completes OK.
If I have Yad installed then the swap partition option works and the install is successful.
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Is this post OK

Sat Apr 06, 2013 1:28 pm

I took a look at the code, and I don't see anything obvious. Given your choices, I think the next screen should be the last information window before the actual installation begins. Is there anything useful in the error log?
ukbrian

- ukbrian
- Posts: 109
- Joined: Mon Jul 25, 2011 8:22 am
- Location: Cheltenham, UK

## Re: Is this post OK

Sat Apr 06, 2013 5:49 pm

Sorry I missed the obvious.
The Solydx refractainstaller_error.log was

Code:
  `(zenity:4435): GLib-WARNING **: /build/buildd-glib2.0_2.33.12+really2.32.4-3-i386-Z8T5T2/glib2.0-2.33.12+really2.32.4/./glib/giounix.c:411Error while getting flags for FD: Bad file descriptor (9)
  Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
  (zenity:4445): GLib-WARNING **: /build/buildd-glib2.0_2.33.12+really2.32.4-3-i386-Z8T5T2/glib2.0-2.33.12+really2.32.4/./glib/giounix.c:411Error while getting flags for FD: Bad file descriptor (9)
  (zenity:4461): GLib-WARNING **: /build/buildd-glib2.0_2.33.12+really2.32.4-3-i386-Z8T5T2/glib2.0-2.33.12+really2.32.4/./glib/giounix.c:411Error while getting flags for FD: Bad file descriptor (9)
  You must specify a dialogue type. See 'zenity --help' for details`

I just done a fresh install of SolusOS 1.3 and only added snapshot/installer without Yad as with the earlier attempt I had installed Yad and then removed it.
The same thing happened as I described but this time I grabbed the install error log which contains

Code:
  `Warning: Tried to connect to session manager, None of the authentication protocols specified are supported
  Warning: Cannot convert string "nil2" to type FontStruct
  You must specify a dialogue type. See 'zenity --help' for details`

Both installs completed successfully if I didn't use the option "04 Use existing swap partition".
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Is this post OK

Sat Apr 06, 2013 7:25 pm

Down around line 568 of /usr/bin/refractainstaller-gui, there's a zenity window for selecting the swap partition that needs to be told what kind of list it is. I added "--radiolist". Without that, the window does not output your choice, so $swap_info and $swap_dev are empty. The error message about the bad file descriptor seems to be unrelated.

Code:
  `# Show the partition list in a menu, and choose one for swap
  choose_swap () {
  swap_info=$(/sbin/blkid |grep swap | awk '{print "\n" $0 }'\
  | zenity --list --radiolist --title="swap partition" --text="Select a partition for swap." \
  --separator="" --column ' ' --column 'Partitions' --height=180 --width=500)
  swap_dev=$(echo $swap_info | awk -F: '{ print $1 }')
  if [[ -z $swap_dev ]] ; then
  zenity --window-icon=error --title=Error --text="You did not choose a swap partition.
  Click OK to use a swapfile instead.
  Click Cancel to exit the program."
  if [[ $? = 0 ]] ; then
  use_existing_swap=""
  else
  exit 1
  fi
  fi
  }`

I've only tested this in a small test script, but I'm guessing it's the main problem.
ukbrian

- ukbrian
- Posts: 109
- Joined: Mon Jul 25, 2011 8:22 am
- Location: Cheltenham, UK

## Re: Is this post OK

Mon Apr 08, 2013 8:59 am

Both scripts working on Solus and Solyd with that tweak thank you!
I spent yesterday taking snapshots and installing and jotted down some tweaks you might want to use
Refractasnapshot

> line 242
> text added "Please CLOSE any running applications NOW" to the top
> $DIALOG --$QUESTION --title="Disk Space and Settings Report" --${BUTTON0}="Create Snapshot"${BUTTON0NUM} \
> --${BUTTON1}="Exit"${BUTTON1NUM} --width 600 \
> --text "Please CLOSE any running applications NOW
> You will need plenty of free space. It is recommended that free space (Avail) in the partition that holds the work directory (probably \"/\") should be two times the total installed system size (Used).
> -------------------------------------------------------
> line 481
> added width 200 as only "Refracta Snap" was displaying in the title
> $DIALOG --$INFO --title="Refracta Snapshot" --width 200 --text="All finished!"

refractainstaller-gui

> line 229
> height changed from 400 to 470 to show all the text without a scroll bar
> # Select expert installation options
> if [[ $install = "expert" ]]; then
> opts=$(zenity --list --title="Installation Options" \
> --text="Check the options you want for the installation" \
> --checklist --column "Choose" --column "Num" --column "Option" \
> --width=590 --height=470 \
> ---------------------------------------------------------
> line 369
> Changed title & text to mention Grub
> Perhaps better to copy your Yad text into this script as you use Grub in that text
> # Find hard drives, and choose one for grub
> choose_grub () {
> grub_dev=$(find /dev -mindepth 1 -maxdepth 1 -name "*[sh]d[a-z]" \
> | sort | awk '{print "FALSE\n" $0 }' \
> | zenity --list --title="Grub Bootloader" --text="Choose a drive to install the Grub bootloader or click OK without choosing a drive to skip this." \
> --radiolist --multiple --column ' ' --column 'Hard Drives' --height=200)
> ----------------------------------------------------------
> line 401
> commented out the blkid terminal screen
> # Show output of blkid for reference.
> #xterm -fa monaco -fs 12 -geometry 90x20+0+0 -hold -e 'echo "Partition list (for reference.) You may need this later." && blkid' &
> ------------------------------------------------------------
> line 668
> added Please close etc.
> zenity --question --title=Summary --ok-label="Proceed with the installation." --cancel-label="Exit" \
> --text="Please CLOSE any running applications
> while the installer is running.
> Here is a summary of what will be done.
> THIS IS YOUR LAST CHANCE TO EXIT before any changes are made to the disk.
> $grub_dev_message

refractainstaller-yad

> line 728
> added Please CLOSE any
> yad --info --title=Summary --button="Proceed with the installation.":0 --button="Exit":1 \
> --text="Please CLOSE any running applications NOW!
> Here is a summary of what will be done.
> THIS IS YOUR LAST CHANCE TO EXIT before any changes are made to the disk.
> $grub_dev_message

On both installers there's a 40 second gap between the
"Progress Copying file system" screen closing
and the "edit sudoers" screen opening.
is it possible to display a screen in the gap?
Please excuse an old man amusing himself
edit
I had to tweak this post a bit because I rushed it and made a few errors, I think it's right now
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.