Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

Bloat alert! zenity vs. yad (wheezy)

Stuff that has not yet gone into the official build.

Re: Bloat alert! zenity vs. yad (wheezy)

Postby anticapitalista » Mon Jul 23, 2012 9:50 pm

You can get 'Debian' yads from this repo.

deb http://debs.slavino.sk testing main

Here is the site:
http://slavino.sk/ulozisko-apt

anticapitalista
anticapitalista
 
Posts: 64
Joined: Wed May 09, 2012 10:49 am

Re: Bloat alert! zenity vs. yad (wheezy)

Postby fsmithred » Tue Jul 24, 2012 10:48 am

Thanks. I assumed that both places had the same files, but I guess I was wrong. I added the testing repo and installed it on wheezy. It seems to work. Had to change the greeting window, because the buttons for simple and expert install weren't working. This works:
Code: Select all
# Greeting window
yad --info --title="$version" --button="Simple installation":0 \
   --button="Expert installation":1 --button=Exit:2 \
   --text="  This utility will install a running live-CD or live-USB to your hard drive.

  This is free software that comes with no warranty or guarantee of any type,
  including but not limited to express, implied, merchantability or fitness of purpose.
  Copyright 2011 fsmithred@gmail.com, based on refractainstaller-8.0.3 by Dean Linkous. "
mode="$?"
   case $mode in
      0) install="simple" ;;
      1) install="expert" ;;
      2) exit 0 ;;
   esac

echo "mode = $mode
install = $install"
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Re: Bloat alert! zenity vs. yad (wheezy)

Postby dzz » Wed Jul 25, 2012 12:27 am

The (yad official) changelog, says that "ignore unknown options" was included in more recent versions, explains why e.g. --info does nothing at all in 0.17.1.1-1 but errors out in 0.12.4-1~stable1 (which otherwise works fine) Zenity stable also errors with unknown options.

The only way to get 0.17.1.1-1 in squeeze seems the lucid deb (it's different)

Whatever, I would use only dpkg -i to install it, the possibility of a bunch of alien libs getting in a Debian system is not good scenario.

http://debs.slavino.sk/pool/main/y/yad/
dzz
 
Posts: 629
Joined: Wed Apr 27, 2011 11:53 am
Location: Devon, England

Re: Bloat alert! zenity vs. yad (wheezy)

Postby fsmithred » Thu Jul 26, 2012 12:48 pm

The slavinko link gives me what looks like a non-ubuntu version. (12.x in stable, 17.1.1 in testing)

OK, that's just weird that there's a non-functional option in 17.1.1. Well, maybe not so weird, since I have a non-functional option in the yadified installer (i.e. install grub to partition). I'll remove all the instances of "--info".

Right now, I'm having a lot of problems with the script. I tried a three-partition install with some other options, and some stuff is not working. Had to change the rsync commands for boot and home parts - they can't use the main excludes file, since they get listed in it when you choose to use separate partitions.

Can't change passwords - it goes right to the next window without giving me a chance to enter the new pw. Can't edit -etc-sudoers - same thing happens. There's nothing in the boot partition - it didn't get copied.

I might have more time to work on this today. Will report what I find.
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Re: Bloat alert! zenity vs. yad (wheezy)

Postby fsmithred » Thu Jul 26, 2012 9:31 pm

new debs for refractainstaller-base and refractainstaller-gui - version is 9.0.5-2.
http://distro.ibiblio.org/pub/linux/dis ... a/testing/

Note that the version in the scripts I posted a few days ago was incorrect. It's -2, not -4. Anyway, this is the base that goes with the yad version I've been working with. Still haven't got that working right, but the -gui installer seems to be ok. The yad version won't let me interact in the terminal when it should be asking me to enter the new password or should be giving me an editor (visudo). It just moves on to the next window.
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Re: Bloat alert! zenity vs. yad (wheezy)

Postby fsmithred » Mon Jul 30, 2012 6:52 pm

There's a working installer with yad in the testing folder at ibiblio. Just the script itself; no deb yet. You need to install the -base-9.0.5-2 for it to work. Test included separate boot and home partitions, change username, change hostname, change passwords, edit sudoers. I didn't test with encryption yet.

Solution to the problem with the terminal was to spawn an xterm to run the commands that require interaction (like changing the passwords.) Now that I've solved that problem, I can start messing with installing grub to the partition. I'll need help testing that when it's ready. Might be able to do away with the initial terminal that runs the installer. Will have to add some more yad windows for notifications and maybe some progress bars to do that.
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Re: Bloat alert! zenity vs. yad (wheezy)

Postby meandean » Mon Aug 06, 2012 1:00 pm

so far so good...works for me
User avatar
meandean
 
Posts: 392
Joined: Wed Mar 09, 2011 5:16 am

Re: Bloat alert! zenity vs. yad (wheezy)

Postby fsmithred » Sun Aug 12, 2012 3:13 pm

Here's the piece for installing grub to a partition. This test script does nothing but let you select, and then it echoes back to tell you what it would do. It should be able to tell whether you're using grub-pc, grub-legacy or grub-gfx and respond accordingly.

https://gist.github.com/3332221
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Re: Bloat alert! zenity vs. yad (wheezy)

Postby fsmithred » Sun Aug 12, 2012 9:35 pm

Here's the installer script with yad, with code to install the bootloader to a partition. Should work with grub-legacy, grub-gfx or grub-pc.
https://gist.github.com/3334445
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Re: Bloat alert! zenity vs. yad (wheezy)

Postby meandean » Mon Aug 13, 2012 1:55 am

with grub-legacy...

So far I seem to get "file not found" and a grub rescue prompt on reboot.

But this is a messy system. As soon as I get a chance I will try a nice clean system.
User avatar
meandean
 
Posts: 392
Joined: Wed Mar 09, 2011 5:16 am

PreviousNext

Return to Experimental

Who is online

Users browsing this forum: No registered users and 0 guests

suspicion-preferred