LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Is it possible to create an Instller DVD of <current> (https://www.linuxquestions.org/questions/slackware-14/is-it-possible-to-create-an-instller-dvd-of-current-776711/)

Alexvader 12-18-2009 11:08 AM

Is it possible to create an Instller DVD of <current>
 
Hi Forum

Figure the case of oa person that does not have an internet connection, or has a firewalled connection and wants to install Slackware64 <current>, might it be possible to create a Slackware64 <current> DVD...?

BRGDS

Alex

JokerBoy 12-18-2009 11:14 AM

yes, but you need to do that from a pc with linux

http://www.slackware.no/makeSlackISOs.sh

if you want a usb stick here's a tutorial made for my blog:

# mkdir slackware

slackware64-current:
# rsync -r -a -v --delete --progress --stats --exclude 'source' --exclude 'extra' --exclude 'testing' rsync://rsync.slackware.at/slackware/slackware64-current/ ./slackware

slackware-current:
# rsync -r -a -v --delete --progress --stats --exclude 'source' --exclude 'extra' --exclude 'testing' rsync://rsync.slackware.at/slackware/slackware-current/ ./slackware

# fdisk -l

my usb stick is /dev/sdc

# dd if=/dev/zero of=/dev/sdc bs=8M count=1
# fdisk /dev/sdc

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xacdb6963.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won’t be recoverable.

Warning: invalid flag 0×0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1016, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1016, default 1016):
Using default value 1016

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 83

Command (m for help): a
Partition number (1-4): 1

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

# mkfs.ext3 /dev/sdc1 -L USB
# find /usr -name mbr.bin
/usr/lib/syslinux/mbr.bin
# dd if=/usr/lib/syslinux/mbr.bin of=/dev/sdc
# mkdir /media/USB
# mount /dev/sdc1 /media/USB
# cp -rvp ./slackware/* /media/USB
# mv /media/USB/isolinux /media/USB/extlinux
# mv /media/USB/extlinux/isolinux.cfg /media/USB/extlinux/extlinux.conf
# rm /media/USB/extlinux/isolinux.bin
# extlinux -i /media/USB/extlinux
# umount /media/USB

and when you install select “Install from a hard drive partition“, type "/dev/sdc1", press enter, then type "/slackware64" for slackware64-current, or "/slackware" for slackware-current.

Anonymo 12-18-2009 11:19 AM

ftp://ftp.slackware.no/pub/linux/ISO...ent-ISO-build/

Usually this place has them, but they haven't posted one yet.

I think AlienBob has a script and I looked for it but did not find it.

Alexvader 12-18-2009 11:25 AM

Hi Jokerboy,

Guess I must first download everything from a <current> repo to a folder in my system, right...?

Something like wget -r --no-parent http://www.*******./current before running the script...

Am I right here, or does the script tahes care of downloading the stuff...?

BRGDS

Alex

~sHyLoCk~ 12-18-2009 11:29 AM

You can use lftp instead of wget.

Regards

JokerBoy 12-18-2009 11:36 AM

rsync -r -a -v --delete --progress --stats --exclude 'source' --exclude 'extra' --exclude 'testing' rsync://rsync.slackware.at/slackware/slackware64-current/ ./slackware is the same thing with "wget -r --no-parent http://www.*******./current"

and yes, you have to download all the packages from a repo of -current, the script only uses the files from a local directory, and uses mkisofs to make dvd's. you have to edit that shell script before using it.

let's say your username is "alex", here's a example of the script for slackware64-current

# mkdir /home/alex/slackware64-current; mkdir /home/alex/current-iso;
# rsync -r -a -v --delete --progress --stats --exclude 'source' --exclude 'extra' --exclude 'testing' rsync://rsync.slackware.at/slackware/slackware64-current/ /home/alex/slackware64-current

save the next code as mkisoslack.sh in /home/alex
Code:

#!/bin/bash
#
# Shell script to build (unofficial) Slackware-current ISOs
#
# Lars Strand - larstra (at) ifi uio no
#
# Last update: Wed May 20 15:54:58 CEST 2009
#

DATE=`date +"%d_%b_%Y"`
MD5SUM="/usr/bin/md5sum"

CURRENT64="slackware64-current-$DATE-DVD.iso"

LOC_CURRENT64="/home/alex/slackware64-current"

DUMP="/home/alex/current-iso"
MKISOFS="/usr/bin/mkisofs"

# remove the old build
rm -rf $DUMP/*

# build DVD CURRENT 64 ISO
cd $LOC_CURRENT64/

$MKISOFS -o $DUMP/$CURRENT64 \
-R -J -V "Slackware64-current DVD" \
-x ./source \
-hide-rr-moved \
-v -d -N -no-emul-boot -boot-load-size 4 -boot-info-table \
-sort isolinux/iso.sort \
-b isolinux/isolinux.bin \
-c isolinux/isolinux.boot \
-p "Slackware64-current build from slackware.no - NOT OFFICIAL" \
-publisher "Slackware64-current build from slackware.no - NOT OFFICIAL" \
-A "Slackware64-current DVD - build $DATE" .

# jump to right build location
cd $DUMP

# copy the Changelog, so folks know what's included
cp -l $LOC_CURRENT64/ChangeLog.txt ChangeLog64-current.txt

# make MD5 sums of the ISO
$MD5SUM $CURRENT64 > CHECKSUMS.md5

# end

# chmod 755 /home/alex/mkisoslack.sh
# /home/alex/mkisoslack.sh

and voila, check /home/alex/current-iso after the script has finished.

brianL 12-18-2009 11:43 AM

Alien Bob's script:

http://www.slackware.com/~alien/tool...are-current.sh

TSquaredF 12-18-2009 12:10 PM

I've always had good luck with Eric's script. It will d/l, burn & serve you biscuits in the morning.
Regards,
Bill

Alexvader 12-18-2009 05:24 PM

Hi ppl,

So, I made an ISO from <current64> repo, but instead of using rsync i used wget... my connection is firewalled, ... and also, I did not exclude /source, which means tha I made a big iso, about 4025 Mb...

One problem though, wget downloaded all the index.html pages from the download site... In case I burn the DVD with it, will those index.html, which live in each folder, constitute a problem at install time....?

BRGDS

Alex


All times are GMT -5. The time now is 09:57 AM.