[csw-devel] SF.net SVN: gar:[16873] csw/mgar/pkg/opencsw-manual/trunk/files/ for-administrators/bootstrapping.rst

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Sat Jan 21 23:58:05 CET 2012


Revision: 16873
          http://gar.svn.sourceforge.net/gar/?rev=16873&view=rev
Author:   dmichelsen
Date:     2012-01-21 22:58:05 +0000 (Sat, 21 Jan 2012)
Log Message:
-----------
opencsw-manual/trunk: Add mirror selection and set up catalog gpg checks

Modified Paths:
--------------
    csw/mgar/pkg/opencsw-manual/trunk/files/for-administrators/bootstrapping.rst

Modified: csw/mgar/pkg/opencsw-manual/trunk/files/for-administrators/bootstrapping.rst
===================================================================
--- csw/mgar/pkg/opencsw-manual/trunk/files/for-administrators/bootstrapping.rst	2012-01-21 19:41:26 UTC (rev 16872)
+++ csw/mgar/pkg/opencsw-manual/trunk/files/for-administrators/bootstrapping.rst	2012-01-21 22:58:05 UTC (rev 16873)
@@ -27,11 +27,13 @@
 
 You can now start installing packages. For a list of available packages use
 ::
+
   pkgutil -l
 
 As the list is quite long and you probably have an idea what you are looking for the
 list can be fuzzy-matched with
 ::
+
   root# pkgutil -a vim
   common               package              catalog                        size
   gvim                 CSWgvim              7.3.055,REV=2010.11.25       1.1 MB
@@ -40,7 +42,7 @@
 
 Lets just go ahead and try one::
 
-  root# pkgutil -i vim
+  root# pkgutil -y -i vim
   ...
   root# vim
 
@@ -54,10 +56,85 @@
 Now that you are about to install lots of stuff it may be a good time to select
 one of the mirrors from ``mirror.opencsw.org`` close to you. The official mirrors
 are listed at
+::
+
   http://www.opencsw.org/get-it/mirrors/
 
+It is important to note that ``pkgutil`` has **two** configuration files:
 
+- ``/etc/opt/csw/pkgutil.conf``
+- ``/opt/csw/etc/pkgutil.conf``
+
+This may seem confusing, the reason why there are two is that it is possible to run
+OpenCSW in a `sparse root environment`_ where ``/opt`` is not writable. In this scenario
+you use configurations in ``/opt/csw/etc`` for global settings and ``/etc/opt/csw``
+for zone-specific setting. Both ``pkgutil.conf`` are identical on installation with all
+configuration options commented out, so you can just pick one for now. As a rule of thumb it is
+recommended to prefer the more prominent ``/etc/opt/csw``. Please uncomment the line
+with ``mirror`` so it looks similar to this with the URL replaced by the mirror you picked::
+
+  mirror=http://mirror.opencsw.org/opencsw/unstable
+
+You can verify the setting with ``pkgutil -V``::
+
+  ...
+  maxpkglist              10000 (default: 10000)
+  mirror                  http://mirror.opencsw.org/opencsw/unstable
+                          (default: http://mirror.opencsw.org/opencsw/unstable)
+  noncsw                  false (default: false)
+  ...
+
+On the next catalog update with ``pkgutil -U`` the catalogs are pulled from the new mirror.
+
+
 -------------------------------------
 Setting up cryptographic verification
 -------------------------------------
 
+The catalog is signed with PGP and it is a good idea to set up your system to verify
+the integrity of the catalog. As the catalog itself contains hashes for all packages
+in the catalog this ensures you actually install the packages which were officially
+released. First you need to install ``pgp`` (of course with pkgutil!)::
+
+  pkgutil -y -i gpg
+
+Then you need to import the public key::
+
+  root# wget -O - http://www.opencsw.org/get-it/mirrors/  | gpg --import -
+  
+The current fingerprint looks like this::
+
+  root# gpg --fingerprint board at opencsw.org
+  pub   1024D/9306CC77 2011-08-31
+        Key fingerprint = 4DCE 3C80 AAB2 CAB1 E60C  9A3C 05F4 2D66 9306 CC77
+  uid                  OpenCSW catalog signing <board at opencsw.org>
+  sub   2048g/971EDE93 2011-08-31
+
+Now everything is in place for enabling security in ``pkgutil``. Edit the ``/etc/opt/csw/pkgutil.conf``
+and uncomment the two lines with ``use_gpg`` and ``use_md5`` so they look like this::
+
+  use_gpg=true
+  use_md5=true
+
+You can verify that it worked with ``pkgutil -V``::
+
+  root at login [login]:/etc/opt/csw > pkgutil -V             
+  ...
+  show_current            true (default: true)
+  stop_on_hook_soft_error not set (default: false)
+  use_gpg                 true (default: false)
+  use_md5                 true (default: false)
+  wgetopts                not set (default: none)
+
+On the next ``pkgutil -U`` you should see a catalog integrity verification wit ``gpg``::
+
+  ...
+  Checking integrity of /var/opt/csw/pkgutil/catalog.mirror_opencsw_current_sparc_5.10 with gpg.
+  gpg: Signature made Sat Jan 21 18:34:45 2012 CET using DSA key ID 9306CC77
+  gpg: Good signature from "OpenCSW catalog signing <board at opencsw.org>"
+  gpg: WARNING: This key is not certified with a trusted signature!
+  gpg:          There is no indication that the signature belongs to the owner.
+  Primary key fingerprint: 4DCE 3C80 AAB2 CAB1 E60C  9A3C 05F4 2D66 9306 CC77
+  ==> 3173 packages loaded from /var/opt/csw/pkgutil/catalog.mirror_opencsw_current_sparc_5.10
+  ...
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list