<HTML dir=ltr><HEAD><TITLE>Re: apt-offline SIMPLE web interface</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText93033 dir=ltr>
<DIV dir=ltr><FONT face=Tahoma size=2><B>De:</B> Giacomo A. Catenazzi [mailto:cate@debian.org]<BR><B>Enviado el:</B> lun 21/04/2008 10:35<BR><B>Para:</B> PEDRO MACANAS VALVERDE<BR><B>CC:</B> apt-zip-devel@lists.alioth.debian.org<BR><B>Asunto:</B> Re: apt-offline SIMPLE web interface<BR></FONT><BR><FONT size=2>&gt;Languages are not countries, and some ISO code for language and for<BR>countries doesn't match.<BR>I.e. "eu" is Basque language (ISO 639), but used as Europa union<BR>"country" code ("reserved" in ISO 3166-1).<BR></FONT></DIV></DIV>
<DIV>
<P><FONT size=2>I agree. But a locale is generally a&nbsp; language and a country (this is language&nbsp; + country).</P></FONT><FONT size=2></FONT></DIV>
<DIV><FONT size=2>
<P><BR>&gt;geoip is the right solution, but anyway it is complex to implement,</P>
<P>Provisonally, one can use this JavaScript option, easy to implement, if convenient ;-)</P>
<P>&gt;because we should import from debian the list of mirrors, what part<BR>of archive they mirror (some mirror are not complete: rare,<BR>architectures, not all distributions...), and we should find what<BR>is the nearest mirror of a unknown country.<BR>i.e. what is the nearest mirror of Luxemburg (.lu). There are<BR>250 top level domains, and countries outside Europe could be<BR>very difficult (i.e. very time intensive) to check. On one<BR>of my site, I have people from 80 countries (and territories),<BR>with a lot of unknown islands in southern pacific.<BR><BR>We would begin in some place. This can be later improved ;)</P>
<P><BR>&gt; * The command "apt-offline" (without parameters) would create a<BR>&gt; packagelist.htm file (and rename existing packagelist.htm file to<BR>&gt; packagelistold.htm ).<BR><BR>why an htm file?<BR></P>
<P>Can be manually used (the user can click to download).</P>
<P>&gt;&gt; The user then would download the files and store them in a folder (the name<BR>&gt; of the folder could be standardized by default).<BR>&gt;<BR>&gt;&gt; "Apt-offline install foldername" would "apt-get install" all the files in<BR>&gt; folder "foldername".<BR><BR>&gt;yes, like apt-zip<BR></P>
<P>This is a good way.</P>
<P><BR>&gt;<BR>&gt; * See <A href="https://help.ubuntu.com/community/SynapticOffline">https://help.ubuntu.com/community/SynapticOffline</A> about "apt-get<BR>&gt; --print-uris".<BR>&gt;<BR>&gt; * I would add "License" to the "Sources" header ("License and Sources").<BR>&gt;<BR>&gt; * The nowadays only-text web page can be easily used in non-X web-browsers<BR>&gt; (as Lynx). So, as a help when X does not work (the user has to employ the<BR>&gt; console).<BR>&gt;<BR>&gt;&gt; A more graphical version can be used also (I would add a Tux).<BR><BR>&gt;I don't understand.</P>
<P>You talked about the website needs more graphics. Be can begin with a Tux image ( <A href="http://en.wikipedia.org/wiki/Tux">http://en.wikipedia.org/wiki/Tux</A>&nbsp;) or a Debian and Ubuntu logo.</P>
<P><BR>&gt;"apt-offline list" do much better that "apt-get --print-uris":<BR>it distinguish the "suites" (backport, multimedia, volatile, stable,<BR>testing), and allow you to mix the suites, so if you installed<BR>package A from a suite, it will search the updates only on such suite.<BR></P>
<P>I am going to&nbsp;include this information&nbsp;in the wiki page about apt-offline ( <A href="https://help.ubuntu.com/community/AptGet/Offline">https://help.ubuntu.com/community/AptGet/Offline</A>&nbsp;)</P>
<P><BR>&gt;Anyway, I'll do only the back-end and the web interface.<BR>The front end should be done from "Synaptic" or other people<BR>(but only when apt-offline is complete, and it as a stable interface)<BR></P>
<P>We could use some code from <A href="https://help.ubuntu.com/community/Synaptic/PackageDownloadScript">https://help.ubuntu.com/community/Synaptic/PackageDownloadScript</A>&nbsp;</P>
<P>Regards.</P>
<P>Pedro. </P></FONT></DIV></BODY></HTML>