Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free! Click here to download the new Pastebin App for iOS.
Guest

Cleuby Castilho

By: a guest on Aug 30th, 2007  |  syntax: Bash  |  size: 2.93 KB  |  hits: 62  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. #!/bin/sh
  2.  
  3. # Make sure we are root.
  4.  
  5. if [ "$EUID" != "0" ]; then
  6.   echo "You must have root privileges to run this script!"
  7.   exit 1
  8. fi
  9.  
  10. printf "################################################################################\n"
  11. printf "YAST INSTALLATION SOURCES SETUP SCRIPT FOR openSUSE 10.2\n"
  12. printf "by Scott Morris (2006-12-22)\n"
  13. printf "http://www.suseblog.com/\n\n"
  14. printf "You *MUST* be connected to the Internet for this script to work!\n\n"
  15. printf "Though almost all repositories are added in a matter of seconds, the OSS\n"
  16. printf "repository can take upwards of half an hour to download and parse through all\n"
  17. printf "the metadata.  It works fine, it just takes awhile on that repo.  Please be\n"
  18. printf "patient with that one.\n"
  19. printf "################################################################################\n"
  20.  
  21. rug service-add http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/10.2/ --type=ZYPP "Guru"
  22. rug service-add http://packman.iu-bremen.de/suse/10.2 --type=ZYPP "Packman"
  23. rug service-add http://software.opensuse.org/download/editors/openSUSE_10.2/ --type=ZYPP "editors"echo
  24. rug service-add http://software.opensuse.org/download/GNOME:/Community/openSUSE_10.2/ --type=ZYPP "GNOME-Community"
  25. rug service-add http://software.opensuse.org/download/KDE:/Community/openSUSE_10.2/ --type=ZYPP "KDE-Community"
  26. rug service-add http://software.opensuse.org/download/KDE:/KDE3/openSUSE_10.2/ --type=ZYPP "KDE3"
  27. rug service-add http://software.opensuse.org/download/KDE:/Qt/openSUSE_10.2/ --type=ZYPP "KDE-QT"
  28. rug service-add http://software.opensuse.org/download/openSUSE:/Tools/openSUSE_10.2 --type=ZYPP "openSUSE-Tools"
  29. rug service-add http://software.opensuse.org/download/server%3a/monitoring/openSUSE_10.2/ --type=ZYPP "server-monitoring"
  30. rug service-add http://software.opensuse.org/download/X11%3a/XGL/SUSE_Factory --type=ZYPP "XGL SUSE Factory"
  31. rug service-add http://software.opensuse.org/download/X11:/xfce/openSUSE_10.2/ --type=ZYPP "xfce"
  32. rug service-add http://software.opensuse.org/download/X11:/XGL/openSUSE_10.2/ --type=ZYPP "XGL"
  33. rug service-add http://suse.mirrors.tds.net/pub/suse/update/10.2 --type=ZYPP "openSUSE-update"
  34. rug service-add http://suse.osuosl.org/suse/update/10.2 --type=ZYPP "SUSE Update"
  35. rug service-add http://download.videolan.org/pub/videolan/vlc/0.8.6/SuSE/10.2/ --type=ZYPP "Videolan"
  36. printf "Adding non-oss repository.  This may take a few minutes.\n"
  37. rug service-add http://download.opensuse.org/distribution/10.2/repo/non-oss/ --type=ZYPP "openSUSE-10.2-non-oss"
  38. printf "Adding OSS repository.  This may take quite awhile.  Rest assured that it hasn't locked up.\n"
  39. rug service-add http://download.opensuse.org/distribution/10.2/repo/oss/ --type=ZYPP "openSUSE-10.2"
  40.  
  41. printf "\nThe script has now finished.\n"
  42. printf "For many more installation sources, please visit the following URL:\n"
  43. printf "http://linux.wordpress.com/2006/12/20/opensuse-102-the-most-complete-list-of-repositories/\n\n\n"