Refracta Development, Scripts, etc.
Post a reply
fsmithred

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

## Re: Refracta Installer on Debian Distro - Makululinux

Tue Nov 19, 2013 3:48 pm

Well, trying to exclude /home/*/Desktop/refractainstaller.desktop didn't work for me, either. I don't know why. Oh wait, I may know why it happened to me - the excludes list has some errors in it. I must have done this when I edited it right before installing. Check yours to make sure you didn't do something similar.

Code:
  `- /home/snapshot/
  /.gvfs
  /Desktop/refractainstaller.desktop
  `

That should look like this:

Code:
  `- /home/snapshot/
  - /.gvfs
  - /Desktop/refractainstaller.desktop
  `

fsmithred

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

## Re: Refracta Installer on Debian Distro - Makululinux

Tue Nov 19, 2013 4:28 pm

OK, I don't know what's going on. I tried it again, I made sure the excludes file was correct before I ran the installer, and again, the beginnings of those two lines were cut off when I checked the excludes file after the installation. And the desktop icon for the installer is still on the desktop.
For now, just delete that file at the end of the installation, as dzz suggested above:

Code:
  `rm -f /target/home/*/Desktop/refractainstaller.desktop`

You could just put that line near the end of the script, before the cleanup (and before the error log gets copied, in case removing that file causes an error.)
raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Re: Refracta Installer on Debian Distro - Makululinux

Tue Nov 19, 2013 6:48 pm

> fsmithred wrote:OK, I don't know what's going on. I tried it again, I made sure the excludes file was correct before I ran the installer, and again, the beginnings of those two lines were cut off when I checked the excludes file after the installation. And the desktop icon for the installer is still on the desktop.
> For now, just delete that file at the end of the installation, as dzz suggested above:
> Code:
>   `rm -f /target/home/*/Desktop/refractainstaller.desktop`
> You could just put that line near the end of the script, before the cleanup (and before the error log gets copied, in case removing that file causes an error.)

into which file exactly do i put that "rm -f /target/home/*/Desktop/refractainstaller.desktop" ?
usr/bin/ refracterinstaller or refractainstaller-yad or refractainstaller-gui ?
and do you mind explaining the difference between those files ? they look very similar...
also in a previous post, that script i must put into "/usr/lib/refractainstaller/post-install/" must i give the script file a specific name ?
fsmithred

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

## Re: Refracta Installer on Debian Distro - Makululinux

Tue Nov 19, 2013 7:43 pm

in /usr/bin/
refractainstaller is the text-only installer
refractainstaller-gui uses zenity to create windows
refractainstall-yad uses yad to make the windows.
If both yad and zenity are installed, and you start the installer from the menu, yad will be used in preference to zenity. If you're not sure which script you're running, you can put the 'rm -f...' line in all three.
You can give the post-install script any name. The part that goes in the installer is written so that all executable scripts in /usr/lib/refractainstaller/post-install will run. You'll need to create that post-install directory. If you don't want to mess with all those lines of code and separate script, just add the dpkg-reconfigure lines to the installer.
raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Re: Refracta Installer on Debian Distro - Makululinux

Tue Nov 19, 2013 8:01 pm

thank you, im begining to understand how it all functions. Im busy testing the changes now, will let you know if icon now correctly gets removed from desktop
[EDIT]
installer is now correctly deleted from desktop, thank you very much
been struggling for a week to make icon disappear, am so happy now
testing other scripts now.
[EDIT]
All working great, thank you very much for all the help, its very much appreciated
fsmithred

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

## Re: Refracta Installer on Debian Distro - Makululinux

Wed Nov 20, 2013 12:54 am

You're welcome. I figured out what's causing the problem, and I'll try to fix it tonight. When I get it done, I'll put a link to the new deb files in this thread. Problem has been there for awhile - anything in the excludes file that starts with /home/* will get removed.
dzz

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

## Re: Refracta Installer on Debian Distro - Makululinux

Wed Nov 20, 2013 2:52 am

> OK, I don't know what's going on. I tried it again, I made sure the excludes file was correct before I ran the installer, and again, the beginnings of those two lines were cut off when I checked the excludes file after the installation. And the desktop icon for the installer is still on the desktop.

Confirmed here. Not virtualbox. It was changed also in live system after running the installer.. why?
fsmithred

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

## Re: Refracta Installer on Debian Distro - Makululinux

Wed Nov 20, 2013 3:16 am

If you chose to have a separate /boot or /home, those have to be excluded from the rsync command that copies the whole system, and then they are copied separately. There was an ugly way of adding them and removing them from the excludes list.

Code:
  `sed -i 's:- /home/\*::' "$rsync_excludes"`

Instead of messing with the excludes file, there's a disappearing rsync option (it's only there if you need it.)

Code:
  `sep_home_opt="--exclude=/home/*"
  sep_boot_opt="--exclude=/boot/*"
  rsync -av / /target/ --exclude-from="$rsync_excludes" "$sep_home_opt" "$sep_boot_opt"
  `

fsmithred

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

## Re: Refracta Installer on Debian Distro - Makululinux

Wed Nov 20, 2013 3:37 am

beta4 debs -
http://distro.ibiblio.org/refracta/files/Testing/

Code:
  `refractainstaller-gui (9.0.9beta4) unstable; urgency=low
  * Added config for post-install scripts.
  * Added post-install scripts to set locale and timezone,
  * and to remove installer icon from desktop.
  * Cleaned up some window buttons in yad version.
  * Changed method to exclude /boot/* and /home/* when they're separate.`

The script is there to remove the desktop icon, but the problem that required that script has been fixed. Excludes that start with "/home/*" or "/boot/*" will no longer get wiped out of the excludes file.
raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Re: Refracta Installer on Debian Distro - Makululinux

Wed Nov 20, 2013 9:42 am

one more question, the very beginning part of the installer, after you close gparted it pops up a terminal window that lists the available partitions ( the partition reference list ). that window stays open no matter what, where would i need to edit code to have that window close after the partition selection has been made ? I mean once user selects partition to use and clicks ok to continue, is there a way to make the partition terminal window auto close ? and how would i do that ?
the reason for the question is that i make installer run in terminal and gui, and i dont want to many terminal windows laying open that arent needed. so it would be nice if that window auto closes after the user has selected his install partition.
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.