Refracta Development, Scripts, etc.
Post a reply
fsmithred

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

## updated Refracta Installer 2011-10-30

Mon Oct 31, 2011 1:39 am

New deb files for refractainstaller-gui and refractainstaller-base are on github. Please try them. They should replace older versions when you install them. Below are the changelogs.

Code:
  `refractainstaller-gui (9.0.2) unstable; urgency=low
  * Installer now sees more than 9 partitions on a hard disk.
  * Fixed code for changing the primary user's real name.
  * Output of grub-install gets redirected to error log.
  * Installer can edit config files in ~/.local to change the old
  user name to the new one.
  -- fsmithred <[email protected]
  > Tue, 18 Oct 2011 11:34:00 -0400`

Code:
  `refractainstaller-base (9.0.2) unstable; urgency=low
  * Output of grub-install gets redirected to error log.
  * Added code to change-username for changing the user's real name.
  * change-username can edit config files in ~/.local to change the old
  user name to the new one.
  -- fsmithred <[email protected]
  > Sun, 30 Oct 2011 11:34:00 -0400`

nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: updated Refracta Installer 2011-10-30

Mon Oct 31, 2011 10:45 am

Intro: per chance i deleted all my three Virtualbox images (i wanted to delete all qemu images, which are in the same dir, but was confused...).
So i booted my remix and pulled the new deb's from github.
- the old version were not removed automatically
- installation (simple) went fine (both: installation of the deb's after manual removal of the old versions, and installation of the live-CD with the upgraded tool).
Later (this week) i will boot the live again, pull the new deb's and make notes about the error message. Restoring Win was not that easy, so i was rather busy (thats why i say "later")
fsmithred

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

## Re: updated Refracta Installer 2011-10-30

Mon Oct 31, 2011 11:36 pm

Thanks. I used the debs to upgrade in my test install and in the beta2 iso, and got no errors. Also tested the change-username script, and it works to change any user's name. The gui installer only changes the primary user's name. I added a bit to change the user's real name, and that only works if the real name is "user". I meant to change that, so that the installer would do the same in lmde or in a remix that has a different primary user, but I forgot. It should probably look for the uid instead of the name.
Yup. Line 855:

Code:
  `live_user=$(awk -v pattern="$newname" -F: '$0 ~ pattern { print $5 }' /target/etc/passwd)`

should have been changed to:

Code:
  `live_user=$(awk -v pattern="1000:1000" -F: '$0 ~ pattern { print $5 }' /target/etc/passwd)`

nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: updated Refracta Installer 2011-10-30

Tue Nov 01, 2011 12:07 am

confirmation.
I used refracta-606-beta2, and could not repeat the error. Worked like a charme:

Code:
  `[email protected]
  :~/bin/refracta$ su
  Password:
  [refracta-606-beta2: /home/user/bin/refracta]# dpkg -i refractainstaller-base_9.0.2_all.deb
  (Reading database ... 87471 files and directories currently installed.)
  Preparing to replace refractainstaller-base 9.0.1-2 (using refractainstaller-base_9.0.2_all.deb) ...
  Unpacking replacement refractainstaller-base ...
  Setting up refractainstaller-base (9.0.2) ...
  [refracta-606-beta2: /home/user/bin/refracta]# dpkg -i refractainstaller-gui
  refractainstaller-gui refractainstaller-gui_9.0.2_all.deb
  [refracta-606-beta2: /home/user/bin/refracta]# dpkg -i refractainstaller-gui_9.0.2_all.deb
  (Reading database ... 87470 files and directories currently installed.)
  Preparing to replace refractainstaller-gui 9.0.1-2 (using refractainstaller-gui_9.0.2_all.deb) ...
  Unpacking replacement refractainstaller-gui ...
  Setting up refractainstaller-gui (9.0.2) ...
  Processing triggers for desktop-file-utils ...
  [refracta-606-beta2: /home/user/bin/refracta]`

I had the errors, above, in my remix, and don't think it is worth to search for the reason. Fixing it by first removing and then installing with dpkg was easy enough too (If you want me to boot that live-CD and paste the error messages let me know).
side note: cool that git is installed. It makes cloning the updated github-repo a bit faster (git clone http://github.com/fsmithred/refracta. Done. Foo).
fsmithred

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

## Re: updated Refracta Installer 2011-10-30

Tue Nov 01, 2011 3:28 pm

I made the edit mentioned above, so that it looks for the uid when changing the user's real name, and I also changed the .desktop file, so the installer no longer asks for the root password when you start it. I did not change the version number when I did that, so if anyone downloaded the 9.0.2 debs before 15:24.54 on 2011-11-01 and upgraded the installer, you need to replace two files manually with the following commands.

Code:
  `cd /home/github/refracta
  git pull origin master
  sudo cp refractainstaller-gui /usr/bin/
  sudo cp refractainstaller.desktop /usr/share/applications/`

fsmithred

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

## Re: updated Refracta Installer 2011-10-30

Wed Nov 02, 2011 2:38 am

I'm changing it back. I like "$newname" better than "1000:1000". The script already looks for the uid to find "$oldname" and asks you for the new name.
fsmithred

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

## Re: updated Refracta Installer 2011-10-30

Wed Nov 02, 2011 4:43 pm

One more time...
Fixed the version numbers in the "Breaks" and "Replaces" lines in the control files. That might be why it didn't replace your older versions.
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.