SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Alien Bob provides a great script to mirror the Slackware current directory and create an ISO if desired. It's available here and is well worth downloading. His webiste here is full of useful stuff and deserves a bookmark if you are using Slackware.
Edit: Sorry for repeating Bruce's information - I missed his post (too busy looking at other stuff while posting).
Last edited by bgeddy; 08-21-2009 at 11:10 AM.
Reason: Missed post
yes this works. You will then download the complete packages and the sources and other stuff which together in the case of the stable release are the complete contents of the DVD.
Since you will not need everything, look at your downloadspeed. Maybe it makes more sense not to download all the stuff.
Thanks for the script!
I've changed the parameter to create a DVD ISO instead of CD. What else do you change in the script?
Did you read his blog post that I linked?
Quote:
TIP: If you want to change the default values of the script, do not edit
the script itself. Instead run “mirror-slackware-current.sh -w” which will
create the file “mirror-slackware-current.conf” in the same directory as
“mirror-slackware-current.sh”. If you edit the variable values in “mirror-
slackware-current.conf” the script will use those.
That is what I have done, and now have the script rsync Slackware -current for our 32-bit
machines and Slackware64 -current for the 64-bit ones. The scripts run every night (here)
in a cronjob with these commands (also two others commented):
Code:
# Keep the Slackware patches up to date for the server
30 4 * * * /usr/local/sbin/rsync_slackware_patches.sh -q -r 10.1
# Keep the Slackware-12.2 pathces up to date
00 3 * * * /usr/local/sbin/rsync_slackware_patches-12.2.sh
# Keep the Slackware -current tree in sync:
00 2 * * * /usr/local/sbin/mirror-slackware-current.sh -v
# Keep the Slackware64 -current tree in sync:
15 1 * * * /usr/local/sbin/mirror-slackware64-current.sh -v
When the script runs with -v (verbose output) I read:
Quote:
Enabling verbose output....
#
# Checking version of 'http://www.slackware.com/~alien/tools/mirror-slackware-current.sh' ...
#
# You have the most recent version of this script
so I know if Alien Bob has updated the script. If so, I download the new version
to /usr/local/sbin/mirror-slackware-current.sh. This replaces the old one, but it
is not necessary to change the options, because they are now all set in the config
file -> /usr/local/sbin/mirror-slackware-current.conf
To answer your question "What else do you change in the script?" On my server there
are two scripts which are symlinked and individually placed in my crontab. One is for
Slackware -current, and the other for Slackware64 -current. Here's what I have now.
Note I used egrep to just display the uncommented lines in those files:
My options change at different times. For instance, when Slackware-13.0
comes out I will rsync it but exclude all directories except ./patches.
Also, after Slackware-13.0 is released, when the new -current starts up
again, I will exclude everything except ./slackware because that is all
that I use during -current testing phase. Since we are (hopefully) close
to a stable release of Slackware-13.0, presently I am keeping the entire
tree in sync. That way when 13.0 is released, I can run alpha_geek's slidgo
scripts and just update/change my -current mirror to 13.0.
The command rsync is better than wget IMO in many ways, but particularly
for this use because rsync checks the files on source against destination,
which keeps you from having corrupt source when you finish.
After you create the file mirror-slackware-current.conf you can look
at it and Eric has commented it very well. And if you need more help
after looking at the comments, post a thread in the Slackware forum.
Someone will probably be able to help you right away, and if not, when
Eric is available he checks the forum and will more than likely notice
a thread with his script and reply.
After you create the file mirror-slackware-current.conf you can look
at it and Eric has commented it very well. And if you need more help
after looking at the comments, post a thread in the Slackware forum.
Someone will probably be able to help you right away, and if not, when
Eric is available he checks the forum and will more than likely notice
a thread with his script and reply.
Well, What else can I say? Thanks & thanks! I've already burnt my first Slackware64-current DVD. Now I have to see if it boots but it surely will.
I saw that one of your crontab scripts is to download Slackware patches. I would really appreciate if you could show me a copy of that script which I find very useful too.
Well, What else can I say? Thanks & thanks! I've already burnt my first Slackware64-current DVD. Now I have to see if it boots but it surely will.
I saw that one of your crontab scripts is to download Slackware patches. I would really appreciate if you could show me a copy of that script which I find very useful too.
Alien's tools is full of good scripts, including rsync_slackware_patches.sh
Quote:
Originally Posted by glore2002
This thumb up is for you!
Best regards,
Just giving back to the community. Eric has helped me w/Slackware for ~5 years now.
Last edited by Bruce Hill; 08-21-2009 at 09:45 PM.
Reason: give credit where credit is due
After you create the file mirror-slackware-current.conf you can look
at it and Eric has commented it very well. And if you need more help
after looking at the comments, post a thread in the Slackware forum.
Someone will probably be able to help you right away, and if not, when
Eric is available he checks the forum and will more than likely notice
a thread with his script and reply.
Doesn't mirror-slackware-current *always* create ISO(s) if the ChangeLog is different than the one in your HD?
That way when 13.0 is released, I can run alpha_geek's slidgo scripts and just update/change my -current mirror to 13.0
Hello Bruce, would you expand on this process please(including what/where is slidgo)? I am considering being a tester and I'm trying to work out an efficient way to manage the versions I plan to maintain/rotate, i.e., production, new stable release, and current.
Does anyone one know of documentation/HOWTO on this topic?
Doesn't mirror-slackware-current *always* create ISO(s) if the ChangeLog is different than the one in your HD?
Code:
mingdao@paul:~$ less /usr/local/sbin/mirror-slackware-current.sh
<snip>
# Set ISO="DVD" if you want a single DVD instead of two CD ISO's.
# Set ISO="CDROM" if you want three CD ISO's instead of a single DVD.
# Set ISO="ALL" if you want two CD ISO's as well as a single DVD ISO.
# You can set the ISO variable using the '-o <iso_type>' switch too.
ISO="DVD"
<snip>
echo " -o <iso_type> The type of ISO that you want to generate."
echo " iso_type can be one of:"
echo " CDROM: produce 3 CDROM images (KDE on CD3);"
echo " DVD : produce a single DVD image;"
echo " ALL : produce CDROM and DVD images;"
echo " NONE : produce no images at all (just sync)."
echo " The default iso_type is ${ISO}."
If you don't want an ISO image:
ISO="NONE"
I thought that was mentioned in the section above. Perhaps if you
leave it blank, i.e. ISO="" you get no ISO image, also. Will have
to ask Alien Bob when he gets back off vacation. Or, try it.
Hello Bruce, would you expand on this process please(including what/where is slidgo)? I am considering being a tester and I'm trying to work out an efficient way to manage the versions I plan to maintain/rotate, i.e., production, new stable release, and current.
Does anyone one know of documentation/HOWTO on this topic?
Thanks.
You'll have to wait until Slackware-13.0 is actually released for Erik
to update sligdo, but here is alphageek.dyndns.org : linux : sligdo
You can read and get prepared by following that guide.
mingdao@paul:~$ less /usr/local/sbin/mirror-slackware-current.sh
<snip>
# Set ISO="DVD" if you want a single DVD instead of two CD ISO's.
# Set ISO="CDROM" if you want three CD ISO's instead of a single DVD.
# Set ISO="ALL" if you want two CD ISO's as well as a single DVD ISO.
# You can set the ISO variable using the '-o <iso_type>' switch too.
ISO="DVD"
<snip>
echo " -o <iso_type> The type of ISO that you want to generate."
echo " iso_type can be one of:"
echo " CDROM: produce 3 CDROM images (KDE on CD3);"
echo " DVD : produce a single DVD image;"
echo " ALL : produce CDROM and DVD images;"
echo " NONE : produce no images at all (just sync)."
echo " The default iso_type is ${ISO}."
If you don't want an ISO image:
ISO="NONE"
I thought that was mentioned in the section above. Perhaps if you
leave it blank, i.e. ISO="" you get no ISO image, also. Will have
to ask Alien Bob when he gets back off vacation. Or, try it.
Although i have read the script many times, i somehow always missed the NONE part. Thanks
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.