[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Non-free repo on DVD!



Am 2007-07-09 19:23:56, schrieb José Santos:
> I'm trying to make a DVD with the non-free etch repository because i
> don't have internet on my old toshiba laptop.
> So i found this scrip on the web:
> ---------------------------------------------------------------------
> #!/bin/bash
> 
> SERVER=http://ftp.debian.org
> 
> PATH1=debian/dists/etch/non-free/main/binary-i386
> PATH2=debian/dists/etch
> 
> wget -force-directories --no-host-directories \
>     ${SERVER}/${PATH1}/Packages \
>     ${SERVER}/${PATH1}/Packages.gz \
>     ${SERVER}/${PATH1}/Packages.bz2 \
>     ${SERVER}/${PATH1}/Release
>     ${SERVER}/${PATH2}/ChangeLog
>     ${SERVER}/${PATH2}/Contents-i386.gz
>     ${SERVER}/${PATH2}/Release
>     ${SERVER}/${PATH2}/Release.gpg
> 
> gunzip <${PATH1}/Packages.gz |grep '^Filename: ' |\
>     sed "%/^Filename: %${SERVER}/debian/%" >Download.list
            ^
The broken line above should be:

gunzip <${PATH1}/Packages.gz |grep '^Filename: ' |\
    sed "%^Filename: %${SERVER}/debian/%" >Download.list


> wget --force-directories --no-host-directories \
>      --input-file Download.list
                   ^
...and this:

wget --force-directories --no-host-directories \
     --input-file=Download.list

> My scripting ability's are not very good, could i ask if someone can
> figure whats wrong with it?

Yeah, it seems, you have copied parts of my earlier posted script :-)

LONG commandline options require "=".

and if us use HTTP then it should be

    SERVER=http://ftp.debian.org/
    PATH1=dists/etch/non-free/main/binary-i386
    PATH2=dists/etch

and for FTP

    SERVER=ftp://ftp.debian.org/debian/
    PATH1=dists/etch/non-free/main/binary-i386
    PATH2=dists/etch

and then it will work.

Please note, that the PATH should never include the "/debian" directory
which is under Debian the part of the SERVER.

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: