Changes

From SME Server
Jump to navigationJump to search
no edit summary
Line 1: Line 1: −
{{Warning box|This article is incomplete and is currently being added to, edited and verified, do not use}}
+
{{WIP box}}
 
   
==jigdo==
 
==jigdo==
 
===Introduction===
 
===Introduction===
Line 16: Line 15:     
If you have read this far, you may be confused now, asking yourself what jigdo does and doesn't do. :-) It seems that the jigdo concept is a bit difficult to grasp at first. If you're still interested, have a look at the respective section of the HOWTO and at the Examples section of the jigdo-file manual.
 
If you have read this far, you may be confused now, asking yourself what jigdo does and doesn't do. :-) It seems that the jigdo concept is a bit difficult to grasp at first. If you're still interested, have a look at the respective section of the HOWTO and at the Examples section of the jigdo-file manual.
 +
 +
====Installing jigdo on CentOS and RHEL====
 +
 +
You need to download and install the correct RPM file from http://dag.wieers.com/rpm/packages/jigdo/ . The choices currently available are for RHEL/CentOS 1 through 5 (they're the ones labelled eg jigdo-0.7.3-1.el5.rf.i386.rpm where the text in bold indicates Enterprise Linux 5), Red Hat 9, and Fedora 1 through 3. There are also source RPMs available.
 +
 +
Download the file first, and then use yum from the command line so install it running either as the root user, or using the sudo command:
 +
 +
Downloading files for CentOs 5 workstation: you can see this folder http://pkgs.repoforge.org/jigdo/
 +
wget http://dag.wieers.com/rpm/packages/jigdo/jigdo-0.7.3-1.el5.rf.i386.rpm
 +
yum install jigdo-0.7.3-1.el5.rf.i386.rpm
 +
[Note: download the el4 files for CentOs 4 (SME7) if you do the job on this platform...]
 +
ok
 +
 +
===GET SME 8===
 +
 +
Create JIGDO directory and move latest ISO there as root:
 +
 +
[root@canopus JIGDO]# pwd
 +
/home/chris/JIGDO
 +
[root@canopus JIGDO]# ls
 +
smeserver-8.0beta7-i386.iso
 +
 +
SME latest jigdo files are here:
 +
http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/testing/8.0rc1/iso/i386/smeserver-8.0rc1-i386.jigdo
 +
 +
Lets create a mount point:
 +
 +
[root@canopus /]# cd mnt/
 +
[root@canopus mnt]# ls
 +
[root@canopus mnt]# mkdir iso
 +
 +
and mount
 +
 +
[chris@canopus JIGDO]$ mount -o loop smeserver-8.0beta7-i386.iso /mnt/iso
 +
 +
[root@canopus JIGDO]# jigdo-lite
 +
Jigsaw Download "lite"
 +
Copyright (C) 2001-2005  |  jigdo@
 +
Richard Atterer          |  atterer.net
 +
-----------------------------------------------------------------
 +
 +
To resume a half-finished download, enter name of .jigdo file. To start a new download, enter URL of .jigdo file. You can also enter several URLs/filenames, separated with spaces, or enumerate in {}, e.g. `http://server/cd-{1_NONUS,2,3}.jigdo'
 +
 +
Provide URL when requested:
 +
http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/testing/8.0rc1/iso/i386/smeserver-8.0rc1-i386.jigdo
 +
 +
You can also enter a single digit from the list below to
 +
select the respective entry for scanning:
 +
 +
1: /home/chris/JIGDO/smeserver-8.0beta7-i386.template
 +
2: /home/chris/JIGDO/smeserver-8.0beta6-i386.template
 +
3: mnt/iso
 +
4: /mnt/iso
 +
 +
Files to scan:
 +
 +
'''Note:''' Not working because jidgo file points to 8, not 8rc1.  Editing the file <tt>smeserver-8.0rc1-i386.jigdo</tt> for correct path for SMEmirror under the Servers section allows completion of ISO downloading.
 +
Should work for final release....
 +
 +
===Generic Use of jigdo by mirroring repository===
 +
 +
This is generic instruction when you need to build an iso for test purpose on a SME Server (what else)
 +
first you have to verify that jigdo is installed, see instructions above.
 +
 +
If you want to build an iso of our marvellous work, we need to download packages from our mirrors but you should make folders to organize this a bit.
 +
 +
mkdir -p /root/jigdo/sme9
 +
 +
and then download all content, you should take a coffee, this is an example of how you have to do to build a sme9.0beta2, you should take a look to the repository to adapt a new url.
 +
rsync --progress -aHS --partial --delete-after rsync://mir1.ovh.ca/smeserver/releases/testing/9.0beta2/ /root/jigdo/sme9
 +
 +
once finished you need to go to the right folder
 +
 +
cd /root/jigdo/sme9/iso/x86_64/
 +
 +
and perform this command
 +
 +
jigdo-lite --noask --scan ../../smeos/x86_64/ *.jigdo
 +
 +
of course you have to adapt to architecture which you want to build. A known issue is that jigdo fails with a code 3 if an ISO is already present in its current folder.
 +
 +
== Getting SME 8.1 Beta 2 ==
 +
The [http://atterer.org/jigdo/debian-jigdo-mini-howto mini-HOWTO for jigdo] describes it's format and justification for use.
 +
 +
* Download the jigdo file:
 +
<source source lang="bash">
 +
mkdir -p /home/dluser/smeserver
 +
wget http://mirror.contribs.org/releases/testing/8.1beta2/smeos/i386/smeserver-8.1beta2-i386.jigdo
 +
</source>
 +
* Since it is only beta, edit the '''Servers''' section for the '''SMEmirror''' parameter to be:
 +
SMEmirror=http://mirror.contribs.org/releases/testing/8.1beta2/smeos/i386/
 +
* When it becomes final, the above step will not be necessary as the '''/8.1beta2/''' folder will become '''/8/'''.
 +
* Trying to get it in debian will entail the install of [https://help.ubuntu.com/community/JigdoDownloadHowto jigdo-file]
 +
apt-get install jigdo-file
 +
* Get the ISO using '''jigdo-lite''' (yes, not ''jigdo-file'')
 +
jigdo-lite smeserver-8.1beta2-i386.jigdo
 +
* On 2013-10-15, when the ISO was built, it was 727,961,600 bytes in length and had the following MD5:
 +
a509d21d476f66b9d27135599b3e6936  smeserver-8.1beta2-i386.iso
 +
* The end log was
 +
<pre>
 +
...
 +
...
 +
FINISHED --2013-10-15 16:41:30--
 +
Total wall clock time: 18s
 +
Downloaded: 3 files, 718K in 14s (49.7 KB/s)
 +
Found 3 of the 3 files required by the template
 +
Successfully created `smeserver-8.1beta2-i386.iso'
 +
 +
-----------------------------------------------------------------
 +
Finished!
 +
The fact that you got this far is a strong indication that `smeserver-8.1beta2-i386.iso'
 +
was generated correctly. I will perform an additional, final check,
 +
which you can interrupt safely with Ctrl-C if you do not want to wait.
 +
 +
OK: Checksums match, image is good!
 +
</pre>

Navigation menu