Refracta Development, Scripts, etc.
Post a reply

Re: Refracta Installer on Debian Distro - Makululinux

Tue Dec 10, 2013 6:08 pm

i think its the same problem i had before. but sure ill ask.

in future, if you stumble across installer issues on that forum feel free to reply or assist if you wish to do so, i dont mind in the slightest, any bugs that get fixed from feedback from users will benifit all debian based distro's in future :)

in fact i am about to release KDE edition with this installer this week, after that im making cinnamon, mate and gnome versions, so it will get tested on all major De's in next few months.

Re: Refracta Installer on Debian Distro - Makululinux

Tue Dec 10, 2013 10:52 pm

raymerjacque wrote:i think its the same problem i had before. but sure ill ask.


Yes, it might be, but you never explained what the problem was or provided the error log. You only said that it didn't copy /home to the separate partition. I haven't had that problem, so I can't diagnose it without your information.

Re: Refracta Installer on Debian Distro - Makululinux

Wed Dec 11, 2013 12:34 pm

Found the problem! I see where I screwed it up.

In /usr/bin/refractainstaller-gui around line 1056 (might vary depending on any edits you or I may have made) the rsync commands for copying the system and /home are wrong.
This...
Code:
# copy everything over except the things listed in the exclude list
rsync -av / /target/ --exclude-from="$rsync_excludes" | \
tee >(zenity --progress --pulsate --auto-close \
--text="Copying system to new partition.")
check_exit

# copy separate /home if needed
if ! [[ -z $home_dev ]] ; then
   rsync -av / /target/ --exclude-from="$rsync_excludes" ${sep_home_opt} ${sep_boot_opt} | \
    tee >(zenity --progress --pulsate --auto-close \
     --text="Copying home folders to new partition.")
    check_exit
fi


should be changed to this...
Code:
# copy everything over except the things listed in the exclude list
rsync -av / /target/ --exclude-from="$rsync_excludes" ${sep_home_opt} ${sep_boot_opt} | \
tee >(zenity --progress --pulsate --auto-close \
--text="Copying system to new partition.")
check_exit

# copy separate /home if needed
if ! [[ -z $home_dev ]] ; then
   rsync -av /home/ /target_home/ --exclude-from="$home_boot_excludes" | \
    tee >(zenity --progress --pulsate --auto-close \
     --text="Copying home folders to new partition.")
    check_exit
fi


Sorry about that. I'll get new debs up in the Testing folder ASAP.

Re: Refracta Installer on Debian Distro - Makululinux

Wed Dec 11, 2013 12:54 pm

Here's the fixed deb file -
http://distro.ibiblio.org/refracta/file ... a7_all.deb

Note that the beta7 gui package goes with the beta6 base package. There were no changes in the base package.

Re: Refracta Installer on Debian Distro - Makululinux

Wed Dec 11, 2013 1:09 pm

ok, the guy posted his error log, its too much to copy here, but here is the link to that post :

http://www.makululinux.com/apps/forums/topics/show/11026681-new-installer-and-separate-home-partition-issues?page=last

Also another user reported : "I think installer doesn't support reiserfs partitions"... , not sure if youve dealt with reiserfs file system before, if not here is more info on it :

http://en.wikipedia.org/wiki/ReiserFS

Re: Refracta Installer on Debian Distro - Makululinux

Wed Dec 11, 2013 1:32 pm

Thanks for the debug output. It corresponds to what I found. The fix has been uploaded.

When I went to the ibiblio page that has the beta debs, I got a browser warning about ibiblio serving malware. The refracta pages were NOT in the domains listed in the warning. I added a file with sha256sums of the deb files, in case anyone is feeling nervous about it.

The installer does not officially support reiserfs. I am familiar with it, but it's been years since I've used it. (in my pre-debian days) However, it may work with the 'no-format' option. If someone wants to try it, they can choose not to format the partition(s) in the expert options window. Then, run gparted (from the installer) and format the partitions as reiserfs. (The no-format option just prevents the installer from automatically formatting the partition right before it copies the system.) If anyone tries it, I'd like to know if it works. Thanks.

Re: Refracta Installer on Debian Distro - Makululinux

Wed Dec 11, 2013 8:12 pm

so the fix is only for gui ? not for yad ? i mean if i use yad must i still apply the fix ?

do you mind posting what you changed ? i have already built and uploaded this iso all over to mirrors etc etc. so if anyone gets this problem i can simply post the fix for them to manually edit until i update the installer in next version.

Re: Refracta Installer on Debian Distro - Makululinux

Thu Dec 12, 2013 3:11 am

I already posted what I changed, around 3-4 posts up. The rsync command was wrong in the zenity-based script (refractainstaller-gui), so it wasn't copying /home. If you're using the yad-based script or the text-only script (base package), there's no problem.

Re: Refracta Installer on Debian Distro - Makululinux

Fri Jan 10, 2014 12:14 pm

is it possible to change the password request into a gui instead of terminal ?

what i mean is the part where it asks the user to enter a new user password and root password, could that show in a gui window instead of having user type it into a terminal window ? and how would i go about doing that ?

Re: Refracta Installer on Debian Distro - Makululinux

Fri Jan 10, 2014 6:39 pm

I don't know how to get yad or zenity to interact with the passwd command, but that doesn't mean there isn't a way. One thing I just learned is the chpasswd command, which takes username:password combinations from a file. It's used for changing a list of user:passwords, one pair on each line, and it does it without interaction.

Have the user enter the new password in a text-entry box, put the username and password in a file, and then in the script, feed that file to the chpasswd command. I just tested it, and it works.

Make a text file that contains and is named changepass (or anything you want)
phred:test

as root, give the command
chpasswd < changepass

And phred's password has been changed. I didn't try it for changing root's password, so I don't know if it works. I won't do that on my main machine, and I don't have time right now to fire up a test machine. I have a feeling it might not work, but I could be wrong.

Look around line 1440 of the yad script for the password changes. If you want the user to enter the password twice, then you have to do something to test that it's the same both times. Also, you can probably eliminate the lines that turn off and on error logging - those were added so that the output of the passwd command would show up in the terminal instead of in the error log. (and that fact may be a hint for how to do this with the passwd command.)

Edit: another way to do it would be to have the script call whatever gui utility your desktop has for changing the password. Both gnome and kde have such utilities. That might be easier.
Post a reply