Results 1 to 6 of 6

Thread: help with apt-get "sneakernet"

  1. #1
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Cleveland, OH
    Posts
    228

    help with apt-get "sneakernet"

    I only have a dial up connection at home but have a very fast connection at work. Even doing an apt-get update at home on a new install is very painful over dialup, as it takes about one hour, and this is not even installing software yet.

    I want to download (using apt-get) at work on my laptop, then take my laptop home and copy the files I obtained using apt-get to my home PC using the LAN. So far, here is my plan.

    After running apt-get update at work, I will copy /etc/apt/sources.list and /var/cache/apt/*.bin from the work machine to the same location on the home machine. At this point, the sources for each should by synchronized, and I am assuming I could do an "apt-get install pine" on the home pc without running "apt-get update" first.

    My first question is, does this seem correct so far?

    Next I would like to install packages in the same fashion. I want to perform an "apt-get mplayer-i386" at work, and then take the contents of /var/cache/apt/archives to the development pc.

    My second question is, what is the best way to install these files after copying them to the home pc? I would imagine that dpkg -i /var/cache/apt/archives/* might work, but it sounds sort of ugly, and I don't know that it would work consistently for my purposes (if at all).

    Is there a way to put the files in temp, and let apt-get (or dpkg) know that this is the new location for mplayer-i386?

    Thanks in advance,

    Paul

  2. #2
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Haven't tried it but couldn't you burn the files and use apt-cdrom to install the packages from there.

  3. #3
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: help with apt-get "sneakernet"

    Quote Originally Posted by pau1knopp
    I only have a dial up connection at home but have a very fast connection at work. Even doing an apt-get update at home on a new install is very painful over dialup, as it takes about one hour, and this is not even installing software yet.

    I want to download (using apt-get) at work on my laptop, then take my laptop home and copy the files I obtained using apt-get to my home PC using the LAN. So far, here is my plan.

    After running apt-get update at work, I will copy /etc/apt/sources.list and /var/cache/apt/*.bin from the work machine to the same location on the home machine. At this point, the sources for each should by synchronized, and I am assuming I could do an "apt-get install pine" on the home pc without running "apt-get update" first.

    My first question is, does this seem correct so far?

    Next I would like to install packages in the same fashion. I want to perform an "apt-get mplayer-i386" at work, and then take the contents of /var/cache/apt/archives to the development pc.

    My second question is, what is the best way to install these files after copying them to the home pc? I would imagine that dpkg -i /var/cache/apt/archives/* might work, but it sounds sort of ugly, and I don't know that it would work consistently for my purposes (if at all).

    Is there a way to put the files in temp, and let apt-get (or dpkg) know that this is the new location for mplayer-i386?

    Thanks in advance,

    Paul
    It looks like you want something like apt-proxy using your laptop as the proxy for the machines on your home LAN. The description of the package:
    apt-proxy automatically builds a Debian HTTP mirror based
    on requests which pass through the proxy. It's great for
    multiple Debian machines on the same network with a slower
    internet link.

    The archive is automatically kept up to date using http,
    ftp or rsync. Cache cleaning of unused and old versions
    is configurable. You can also import the contents of
    your apt cache into the archive using apt-proxy-import.

    For more information, see the apt-proxy homepage at
    http://apt-proxy.sourceforge.net

  4. #4
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Cleveland, OH
    Posts
    228
    Okay, here's MY solution...

    ******
    On the server PC run apt-get update, then apt-get streamripper.

    mkdir a /Debian/dists/main directory structure

    touch /Debian/dists/main/file (only needs to be done once)

    cp /var/cache/apt/archives/*.deb /Debian/dists/main/

    Then run the following:

    dpkg-scanpackages /Debian/dists/main /Debian/dists/main/file | gzip > \
    /Debian/dists/main/Packages.gz

    (obviously needs to be done for every time you update the package
    repository with more packages on the server PC)

    Copy the contents of /Debian/* to the client PC (over LAN or via CD), and as root run the following:

    echo "deb file:/Debian/dists main/" >> /etc/apt/sources.list (also only
    needs to be done once)

    You can then run apt-get streamripper and install from your repository to the client PC.
    *******

    Now does anyone know how to specify the local repository (without trying to go to the offline internet repositories)?

    Regards,

    Paul

  5. #5
    Senior Member registered user
    Join Date
    Jan 2003
    Location
    Podunk, Idaho, USA
    Posts
    470
    Now does anyone know how to specify the local repository (without trying to go to the offline internet repositories)?
    to have apt-get only look in your local repository edit your /etc/apt/sources.list file and comment out every line except: deb file:/Debian/dists main/

    example: /etc/apt/sources.list
    #Debian
    #deb ftp://ftp.debian.org/debian stable main contrib non-free
    #deb-src ftp://ftp.debian.org/debian woody main contrib non-free

    #Debian Non-US
    #deb http://non-us.debian.org/ stable/non-US main contrib non-free
    #deb-src http://non-us.debian.org/ woody/non-US main contrib non-free

    #Debian security updates
    #deb ftp://security.debian.org/debian-security stable/updates main contrib non-free

    # local repository
    deb file:/Debian/dists main/

    That should do it, note all lines are commented out (#) except your local repository.

    HTH

    ~rock

  6. #6
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Cleveland, OH
    Posts
    228
    Thanks for the input... Here is my current solution, which works quite well, just wanted to finish up the post for future people trawling for the same answer...

    KNOPPIX debian repository

    Setup your own local deb repository
    ---------------------------------------------------------------------------
    You will need to install dpkg-multicd to get the "dpkg-scanpackages" command.

    Lets say you have a bunch of debs downloaded and want to use them instead of
    fetching again from the net.You could just put them in
    /var/cache/apt/archives/ and apt-get update but what if you want to
    have a pool of debs on your live cd to install on demand or your worried about
    doing an apt-get clean and loosing them.

    Put all your debs in a directory called "debs"
    # cd /debs/
    # find . -name "*.deb" > overridefile
    # dpkg-scanpackages . overridefile > Packages

    Now your "debs" directory is ready for use.Just put it in the root of your
    chroot jail for example and add the following line to your
    /etc/apt/sources.list :
    deb file:/debs/ ./

    Then apt-get update and there all ready to search,show and install.
    ---------------------------------------------------------------------------

Similar Threads

  1. USR 56k PCI modem "busy"/"not found",rec
    By oman in forum General Support
    Replies: 0
    Last Post: 08-03-2004, 06:44 PM
  2. "pon" gives "ttyS overrun" after upgrade
    By Al Hayes in forum Networking
    Replies: 0
    Last Post: 07-05-2004, 11:57 AM
  3. "Connection Reset by Peer" or "hang"
    By oreo in forum General Support
    Replies: 11
    Last Post: 07-23-2003, 06:33 PM
  4. "Foreign" drive formats and "dd" command
    By geebee2000 in forum Hardware & Booting
    Replies: 9
    Last Post: 05-21-2003, 07:29 PM
  5. Locate Knoppix "group" in "K" menu
    By Juny in forum General Support
    Replies: 4
    Last Post: 03-14-2003, 09:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Fujinet 1.7.1 Atari 400 800 800XL 130XE 65XE XEGS Assembled, Tested, Working picture

Fujinet 1.7.1 Atari 400 800 800XL 130XE 65XE XEGS Assembled, Tested, Working

$99.99



Atari 130 XE/Atari 1050 Bundle W/ Cords And Extras (Powered On) picture

Atari 130 XE/Atari 1050 Bundle W/ Cords And Extras (Powered On)

$300.00



DEFECTIVE Atari 810 Vintage Computer Disk Drive  powers on Unit Only Boo G3D picture

DEFECTIVE Atari 810 Vintage Computer Disk Drive powers on Unit Only Boo G3D

$49.29



UNOCART-2600 SD card Multi Rom Cartridge for ATARI 2600 with CASE picture

UNOCART-2600 SD card Multi Rom Cartridge for ATARI 2600 with CASE

$34.25



SDrive Max Floppy Drive Emulator Atari 8-Bit 400/800/XL/XE Firmware 1.5 USB C R2 picture

SDrive Max Floppy Drive Emulator Atari 8-Bit 400/800/XL/XE Firmware 1.5 USB C R2

$70.00



ATARI Mouse with Adapter for ST, STE, Mega STE, TT Optical  - USA Seller picture

ATARI Mouse with Adapter for ST, STE, Mega STE, TT Optical - USA Seller

$29.99



INFO/soft Character Generator Manual for Atari 3000/5000/7000 NTSC picture

INFO/soft Character Generator Manual for Atari 3000/5000/7000 NTSC

$40.00



Gotek USB Floppy Emulator v3.44 OLED (no speaker) Amiga Atari IBM Roland AKAI picture

Gotek USB Floppy Emulator v3.44 OLED (no speaker) Amiga Atari IBM Roland AKAI

$44.00



Atari 800 8-bit Computer System Fully Tested Great Condition 48k READ picture

Atari 800 8-bit Computer System Fully Tested Great Condition 48k READ

$350.00



ATARI HDD Drive ACSI Emulator 520-1040ST/STF/STFM, STE, Mega STE, TT030 acsi2stm picture

ATARI HDD Drive ACSI Emulator 520-1040ST/STF/STFM, STE, Mega STE, TT030 acsi2stm

$48.95