Picon
Favicon

Injector, Zero Install and Klik

Hi all,

First, congratulations about the Injector. I have previosly installed 
0install and is was a very time consuming procedure including kernel 
stuff, reading mailing list, going for chat support. Now injector is 
awesome and easy!. I'm pretty agree with the way that 0install/injector 
shift the software use/installation from a sysadmin/file-system-wide 
point of view to a user/AppDir. I think that this is the path to follow 
and even gives the posibility to create custom distros in a easier way.

Now here come the questions:

1) There is a posibility to use 0install apps in the injector? I think 
that this would be easy by this quote of a Thomas mail:

<<- You can use existing archives not specially prepared for the injector.
  The example uses existing ROX-Lib and Edit archives, including
  versions released before the injector was even planned. You only need
  to create the interface .xml file. >>

but how can I navigate the places where /uri/0install packages are 
located (of course Firefox doesn't understand this kind of "web place" 
and 0launch says me that is not a url starting with http). I have readed 
the packagers guide for 0install but I think that I'm missing something 
about the directory layout for packages and I cant the proper url for 
them in my browser. ¿Which will be the interaction between Zero Install 
and Injector?

2). After using some apps vía 0lauch I get an "assertion error". Using 
debug button on message I can read:
(Continue reading)

Thomas Leonard | 1 Jun 2005 20:37
Picon
Favicon

Re: Injector, Zero Install and Klik

On Wed, Jun 01, 2005 at 07:33:22AM +0000, Offray Vladimir Luna Cárdenas wrote:
[...]
> 1) There is a posibility to use 0install apps in the injector? I think 
> that this would be easy by this quote of a Thomas mail:
> 
> <<- You can use existing archives not specially prepared for the injector.
>  The example uses existing ROX-Lib and Edit archives, including
>  versions released before the injector was even planned. You only need
>  to create the interface .xml file. >>
> 
> but how can I navigate the places where /uri/0install packages are 
> located (of course Firefox doesn't understand this kind of "web place" 
> and 0launch says me that is not a url starting with http). I have readed 
> the packagers guide for 0install but I think that I'm missing something 
> about the directory layout for packages and I cant the proper url for 
> them in my browser. ¿Which will be the interaction between Zero Install 
> and Injector?

My plan was to have the /uri filesystem contain launchers for the
injector. Take a look here:

	/uri/0install/rox.sourceforge.net/testing

If you click on Edit, it should run it via the injector (right click ->
Versions... to bring up the GUI from ROX-Filer).

So, the injectour wouldn't use /uri at all (certainly not for the
interfaces). However, you can specify the id for an implementation as a
path (anywhere, but under /uri/0install works). But, that will only work
for people running the filesystem.
(Continue reading)

Wayne Scott | 1 Jun 2005 23:17
Picon
Gravatar

Re: Injector, Zero Install and Klik

What is this:

$ 0launch http://0install.net/2005/interfaces/injector -g
http://rox.sourceforge.net/2005/interfaces/Edit
Traceback (most recent call last):
  File "/home/wscott/.cache/0install.net/implementations/sha1=19ac8dea7d359b00a12c380ec43f989a35790abc/0launch-gui",
line 34, in ?
    download_only = bool(options.download_only))
  File "/home/wscott/.cache/0install.net/implementations/sha1=19ac8dea7d359b00a12c380ec43f989a35790abc/gui.py",
line 25, in __init__
    self.window.browser.set_root(policy.get_interface(policy.root))
  File "/home/wscott/.cache/0install.net/implementations/sha1=19ac8dea7d359b00a12c380ec43f989a35790abc/iface_browser.py",
line 84, in set_root
    policy.recalculate()        # Calls build_tree
  File "/home/wscott/.cache/0install.net/implementations/sha1=19ac8dea7d359b00a12c380ec43f989a35790abc/gui.py",
line 69, in recalculate
    self.window.set_response_sensitive(gtk.RESPONSE_OK, self.ready)
AttributeError: 'GUIPolicy' object has no attribute 'ready'

-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
Wayne Scott | 1 Jun 2005 23:21
Picon
Gravatar

Re: Injector, Zero Install and Klik

FYI, I just tried this:

$ /uri/0install/zero-install.sourceforge.net/bin/0launch
http://0install.net/2005/interfaces/injector -g
http://rox.sourceforge.net/2005/interfaces/Edit

with the same results.

-Wayne

On 6/1/05, Wayne Scott <wsc9tt <at> gmail.com> wrote:
> What is this:
> 
> $ 0launch http://0install.net/2005/interfaces/injector -g
> http://rox.sourceforge.net/2005/interfaces/Edit
> Traceback (most recent call last):
>   File "/home/wscott/.cache/0install.net/implementations/sha1=19ac8dea7d359b00a12c380ec43f989a35790abc/0launch-gui",
> line 34, in ?
>     download_only = bool(options.download_only))
>   File "/home/wscott/.cache/0install.net/implementations/sha1=19ac8dea7d359b00a12c380ec43f989a35790abc/gui.py",
> line 25, in __init__
>     self.window.browser.set_root(policy.get_interface(policy.root))
>   File "/home/wscott/.cache/0install.net/implementations/sha1=19ac8dea7d359b00a12c380ec43f989a35790abc/iface_browser.py",
> line 84, in set_root
>     policy.recalculate()        # Calls build_tree
>   File "/home/wscott/.cache/0install.net/implementations/sha1=19ac8dea7d359b00a12c380ec43f989a35790abc/gui.py",
> line 69, in recalculate
>     self.window.set_response_sensitive(gtk.RESPONSE_OK, self.ready)
> AttributeError: 'GUIPolicy' object has no attribute 'ready'
>
(Continue reading)

Wayne Scott | 1 Jun 2005 23:24
Picon
Gravatar

Re: Injector, Zero Install and Klik

Nevermind, I figured it out.  The 0install version is stale. ;-)

$ cat /uri/0install/zero-install.sourceforge.net/bin/0launch
#!/bin/sh
PYTHONPATH=/home/talex/Projects/zero-htdocs/zero/utils/injector/0.8:$PYTHONPATH
export PYTHONPATH
exec /uri/0install/zero-install.sourceforge.net/utils/injector/0.8/0launch "$ <at> "

-Wayne

On 6/1/05, Wayne Scott <wsc9tt <at> gmail.com> wrote:
> FYI, I just tried this:
> 
> $ /uri/0install/zero-install.sourceforge.net/bin/0launch
> http://0install.net/2005/interfaces/injector -g
> http://rox.sourceforge.net/2005/interfaces/Edit
> 
> with the same results.
> 
> -Wayne
> 
> On 6/1/05, Wayne Scott <wsc9tt <at> gmail.com> wrote:
> > What is this:
> >
> > $ 0launch http://0install.net/2005/interfaces/injector -g
> > http://rox.sourceforge.net/2005/interfaces/Edit
> > Traceback (most recent call last):
> >   File "/home/wscott/.cache/0install.net/implementations/sha1=19ac8dea7d359b00a12c380ec43f989a35790abc/0launch-gui",
> > line 34, in ?
> >     download_only = bool(options.download_only))
(Continue reading)

Unknown | 2 Jun 2005 19:12

Re: Need help creating an interface

On Thu, Jun 02, 2005 at 09:30:03AM -0500, Wayne Scott wrote:
> What does this error mean? (interface attached)
> 
> desk public_html $ 0launch --import Skype
> 
> Interface: http://127.0.0.1/~wscott/Skype
> The interface is correctly signed with the following keys:
> - Valid signature from E8474B4127E6C5EFDC2E5647C0B438FCEF61B4B6
> Do you want to trust all of these keys to sign interfaces?
> Trust all [Y/N] y
> Trusting
> Traceback (most recent call last):
>   File "/usr/bin/0launch", line 81, in ?
>     iface_cache.check_signed_data(iface, signed_data, handler.Handler())
>   File "/usr/lib/python2.3/site-packages/zeroinstall/injector/iface_cache.py",
> line 75, in check_signed_data
>     handler.confirm_trust_keys(interface, sigs, iface_xml)
>   File "/usr/lib/python2.3/site-packages/zeroinstall/injector/handler.py",
> line 61, in confirm_trust_keys
>     print "Trusting", key.fingerprint
> AttributeError: ValidSig instance has no attribute 'fingerprint'

Like I say, there's a bug in 0.9. Here's a patch:

--- gpg.py      (revision 257)
+++ gpg.py      (working copy)
 <at>  <at>  -30,6 +30,8  <at>  <at> 
        def get_timestamp(self):
                return int(self.status[self.TIMESTAMP])

(Continue reading)

Thomas Leonard | 4 Jun 2005 12:27
Picon
Favicon

Re: Re: Need help creating an interface

On Thu, Jun 02, 2005 at 06:12:26PM +0100, zero-install-devel-admin <at> lists.sourceforge.net wrote:
[...]
> Like I say, there's a bug in 0.9. Here's a patch:

I've now released a new version of the GUI which has a work around for
this:

$ 0launch --refresh http://0install.net/2005/interfaces/injector-gui

Note that it is currently marked as 'testing', so if the default shows
0.5, turn on 'Help test new versions' to choose 0.6.

--

-- 
Dr Thomas Leonard		http://rox.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
Wayne Scott | 4 Jun 2005 18:10
Picon
Gravatar

Re: Re: Need help creating an interface

Thanks! That worked much better.

Is there any other feedback we can give the user other than:
   Do you trust this fingerprint 1c1893e50977fdbd106a43ca9139eb69 to sign keys?

Maybe the name of the person, or try to lookup the key on a keyserver
or something?
Or does providing the extra information just make it easier to phish?

My interface had a .tar.bz2 and it failed pretty badly.  I was trying
to package skype, but let skype.com still host the tarball.

tar: gzip: Cannot write: Broken pipe
tar: gzip: Cannot write: Broken pipe
tar: gzip: Cannot write: Broken pipe
[[ repeated many many times ]]
tar: gzip: Cannot write: Broken pipe
tar: gzip: Cannot write: Broken pipe
tar: gzip: Cannot write: Broken pipe
tar: Child returned status 1
tar: Error exit delayed from previous errors
Traceback (most recent call last):
  File "/home/wscott/.cache/0install.net/implementations/sha1=f58ce8d285c317fe050f823e84ead0a0f3662dd0/download_box.py",
line 115, in error_ready
    policy.add_to_cache(dl.source, data)
  File "/usr/lib/python2.3/site-packages/zeroinstall/injector/policy.py",
line 239, in add_to_cache
    iface_cache.add_to_cache(source, data)
  File "/usr/lib/python2.3/site-packages/zeroinstall/injector/iface_cache.py",
line 189, in add_to_cache
(Continue reading)

Wayne Scott | 4 Jun 2005 18:20
Picon
Gravatar

Re: Injector, Zero Install and Klik

On 6/1/05, Thomas Leonard <tal <at> ecs.soton.ac.uk> wrote:
> On Wed, Jun 01, 2005 at 07:33:22AM +0000, Offray Vladimir Luna Cárdenas wrote:
> > 3). Is possible to use Injector with Klik (klik.berlios.de) packages or
> > get some kind of interactio between this two projects?
> 
> Don't know much about it. Could be interesting though...

I played with klik for a while and at first was very excited.  It has
a huge collection of software already packaged and has some nice
properties.  But as I played further I realized that it is really
aiming at a different target than 0install.

Klik designed as an addon for Knoppix so that you can run any software
you want from over the net.  As a result security is not a concern in
its design.  The installer happily uses sudo to install stuff as root
and there is not much to save you from bad packages.  The klik recipes
(as they are called) don't even include checksums of the expected
files that you try to download.

Also Knoppix is a Debian system and all the packages assume debian. 
There is little attempt to make code that will run on a wide range of
linux machines.

Some cool tech that Klik uses is that files are shipped in compressed
cramfs filesystems.  So when you run that file it gets mounted as a
loopback mount and executed with its own filesystem.  To delete the
app you just throw one file away.  You can even email the cramfs file
to someone else from them to run.

Also those cramfs files are in the form of an appdir so they are
(Continue reading)

Thomas Leonard | 5 Jun 2005 13:52
Picon
Favicon

Updated injector-packaging tutorial (Find)

I've rewritten the injector packager's guide as a tutorial, using Ken
Hayber's Find utility as the example.

	http://0install.net/injector-packagers.html

Feedback welcome.

--

-- 
Dr Thomas Leonard		http://rox.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

Gmane