| Advertise on warmetal.nl! Click for more information about advertising here. |
Did you find this website useful? Did I save you a lot of time? |
|
If you haven't installed apache on forehand it will prompt you to do so. Just follow the prompts.
This is what the installation url will look like using the chosen settings:
SLES 10 sp1:
http://<ipadres of hostname >/install/sles10sp1/CD1/openSuse 10.3:
http://<ipadres of hostname>/install/opensuse103/CD1/Note that if you install the sources from a DVD the install could ask you for a second CD. Skip that.
/repo/$RCE/SLE10-SDK-SP1-Online/
After you've added the server go to yast > software > novell customer centre. This will not only add the source you've added but also the update source for the SDK. It will also hash/encrypt the username and password. Afterwards you could remove the manually added source. It will be there twice now.
After installing yup you'll need to edit the config file: /etc/sysconfig/yup:
In case you also want to fetch the updates for SP2 you can change the last line for that:
Yup default is to make a mirror for Online as well as for Updates. These are defined like this:
You could change this by editing the next line in the same config file:
If you also want to offer the same functionality for SLED add the following line to your config file:
Now just run yup and it will fetch your updates.
/etc/sysconfig/yup.d
Which holds two files now:
# ls /etc/sysconfig/yup.d/ yup yup.sles11
The file yup is still the one with the configuration for SLES 10, the yup.sles11 is for SLES 11 and has the following adjustments:
The config files alone are sadly not enough. You need the latest version of yup as well to recognize SLES11 as a product. This version is yup-232-9.1 and can be downloaded here. Installation can be done with the command:
rpm -vi yup-232-9.1.noarch.rpm
The old version can be removed using this command:
rpm -e yup-232-2.2
If you want to use a proxy you'll have to tell rsync to do so by using a variable.
RSYNC_PROXY=<proxy ip-address or hostname>:3128 export RSYNC_PROXY
To create the mirror manually use this command:
nohup rsync -rltuzv --stats --progress --delete --delete-excluded \ --exclude "ppc/" \ --exclude "ppc64/" \ --exclude "x86_64/" \ rsync.opensuse.org::opensuse-updates \ /install/repo/opensuse103upd/ &
Notice that error output will still go to the screen, normal output will go to nohup.out.
Control if rsync is running:
>netstat -nap | grep rsync tcp 4344 0 10.1.8.69:13507 10.1.8.11:3128 ESTABLISHED 10297/rsync unix 3 [ ] STREAM CONNECTED 217536 10298/rsync unix 3 [ ] STREAM CONNECTED 217535 10297/rsync
Schedule
Create a script called opensuse-update:
# vi /root/bin/opensuse-update # chmod 777 /root/bin/opensuse-update
And add the following lines:
#!/bin/bash
export RSYNC_PROXY=<proxy>:3128
YOU_DIR=/srv/nfs/updates
UPDATEPATH=opensuse/update/10.3
DESTINATIONPATH=$YOU_DIR"/"$UPDATEPATH
SOURCEPATH=rsync.opensuse.org::opensuse-updates/.
test -d $DESTINATIONPATH || mkdir -p $DESTINATIONPATH
echo -e "Syncing patches from $SOURCEPATH \n"
rsync -rltuzv --stats --progress --delete --delete-excluded \
--exclude "ppc/" \
--exclude "ppc64/" \
--exclude "x86_64/" \
$SOURCEPATH $DESTINATIONPATH
logger -t patch-download-cronjob[$$] Updating of SuSE 10.3 from $SOURCEPATH finished.
Exit 0
Add the script to cron:
# vi /etc/crontab 0 4 * * * root /root/bin/opensuse-update
See for more information:
http://en.opensuse.org/Mirror_Setup_Howto
http://en.opensuse.org/Mirror_Infrastructure
http://en.opensuse.org/SDB:Setting_up_a_local_repository_server_for_OpenSuSE_10.3
| service name | purpose | url |
| SLES 10 SP1 | Use this service to install SLES 10 SP1 | http://<ip-address or hostname>/sles10sp1/CD1/ |
| SLES 10 SP2 | Use this service to install SLES 10 SP2 | http://<ip-address or hostname>/install/sles10sp2/CD1/ |
| OpenSuse 10.3 | Use this service to install openSuse 10.3 | http://<ip-address or hostname>/install/opensuse103/CD1/ |
| SLES10-SP1-Online | Use this service to update SLES 10 to SLES 10 SP1 | http://<ip-address or hostname>/install/sles10upd/SLES10-SP1-Online/sles-10-i586/ |
| SLES10-SP1-Updates | Use this service to patch SLES 10 SP1 | http://<ip-address or hostname>/install/sles10upd/SLES10-SP1-Updates/sles-10-i586/ |
| SLES10-SP2-Online | Use this service to update SLES 10 SP1 to SLES 10 SP2 | http://<ip-address or hostname>/install/sles10upd/SLES10-SP2-Online/sles-10-i586/ |
| SLES10-SP2-Updates | Use this service to patch SLES 10 SP2 te patchen | http://<ip-address or hostname>/install/sles10upd/SLES10-SP2-Updates/sles-10-i586/ |
| OpenSuseUpd | Use this service to patch openSuse 10.3 | http://<ip-address or hostname>/install/opensuseupd/10.3/ |
| OpenSuseUpd | Use this service to patch openSuse 11 | http://<ip-address or hostname>/install/opensuseupd/11.0/ |
install=http://<ip-address or hostname>/sles10sp1/CD1/
Required:
Optional to do a graphical installation:
Optional in case you don't have DHCP:
Example:
http://<ipp-addres or hostname>/install/sles10sp1/CD1 noapic nolapic nosmp clock=pit vnc=1 vncpassword=12345678
Fill in the following settings in case you want to patch SLES 10 SP1:
server = <ipp-addres or hostname> directory = /install/sles10upd/SLES10-SP1-Updates/sles-10-i586/
Afterwards you'll need to disable the NCC registration. You won't need it anymore.
Discussion