VectorLinux

Getting you started => How to's => Topic started by: yaoasm on May 08, 2017, 05:27:49 am

Title: How to build mirror
Post by: yaoasm on May 08, 2017, 05:27:49 am
How to build mirror in local area network :)?
Title: Re: How to build mirror
Post by: roarde on May 08, 2017, 06:05:38 am
A mirror of what, if you please?

Alternatively, select all the pictures of mountains.  Press verify when there are none left.
Title: Re: How to build mirror
Post by: nightflier on May 08, 2017, 12:40:59 pm
Alternatively, select all the pictures of mountains.  Press verify when there are none left.

 ;D
Title: Re: How to build mirror
Post by: yaoasm on May 09, 2017, 01:51:32 am
How to build packages mirror´╝î like ftp://*.org/pub/vectorlinux/veclinux-7.1/, in  local area network
Title: Re: How to build mirror
Post by: nightflier on May 09, 2017, 12:21:04 pm
Thank you for clarifying, yaoasm.

Creating a local web/ftp server for using on your LAN would have to start with server setup and configuration, which is beyond the scope of VL as a desktop distro.

I'll outline the steps I used to create a repository on a local disk for VL 7.2. You would need to modify the values according to your version of VL, and local paths.

As root, create a directory and download all files from the source to your local disk:
Code: [Select]
mkdir /mnt/hd/vl72
cd /mnt/hd/vl72
wget -r -np http://vlcore.vectorlinux.com/pkg/untested/veclinux-7.2/x86/

Next, open up gslapt and click Edit > Preferences > Sources > Add
Enter text:
Code: [Select]
file:///mnt/hd/vl72/vlcore.vectorlinux.com/pkg/untested/veclinux-7.2/x86/Click OK, and back out, clicking "Yes" when it offers to update the package list.

The whole repo for 7.2 is 4.6G, so it took a while to download.

=======================================
Another (laborious) trick would be to use Gslapt and click all the boxes for the packages you want to download, select "Install" to mark. When you have all the desired boxes marked with a little arrow symbol, click the "Execute" button, then tick the box for "Download packages only" and clicking "OK". This would copy those packages to your local working directory.

Third option: get hacking! Download the repo to gslapt's "working directory", or change the "working directory" to the location where you downloaded the files!  8)
Title: Re: How to build mirror
Post by: roarde on May 09, 2017, 04:57:10 pm
I think the idea may be to have all the nodes share the same physical WORKINGDIR, so that packages only have to be downloaded by one node, rather than by all.

@yaoasm:
Do you want to get all of the packages in the public repo, or just have your local machines share the ones they download?
Title: Re: How to build mirror
Post by: rbistolfi on May 11, 2017, 12:04:48 pm
Consider using `webfs` as http server for sharing packages in a lan. It is a small and powerful package implementing an HTTP daemon which can be ran from the command line with no complicated configuration files.
Title: Re: How to build mirror
Post by: yaoasm on May 13, 2017, 01:46:12 am
Thank you very much for your detailed explanation ;)