[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

editfile question

From: Sean Atkinson
Subject: editfile question
Date: Fri, 25 Feb 2005 20:09:23 +0100


Recently I've been getting to grips with cfengine, hoping to use it to
manage all the configuration details for large Linux desktop
deployments.  As an example to understand its use, I want to apply the
following diff to the X server's configuration file to add support for
remote access with VNC:

--- XF86Config-4.orig   2005-02-25 19:35:01.154611824 +0100
+++ XF86Config-4        2005-02-25 19:35:14.823533832 +0100
@@ -30,6 +30,7 @@
        FontPath        "/usr/lib/X11/fonts/75dpi"
 Section "Module"
+       Load    "vnc"
        Load    "GLcore"
        Load    "bitmap"
        Load    "dbe"
@@ -84,6 +85,7 @@
        Option          "DPMS"
 Section "Screen"
+       Option "passwordFile" "/root/.vnc/passwd"
        Identifier      "Default Screen"
        Device          "NVIDIA Corporation NVCrush11 [GeForce2 MX
Integrated Graphics]"
        Monitor         "Generic Monitor"

However following the reference documentation I can't figure out how to
achieve this with the available editfile options.  It would have to
consist of a search, test for the new line's existence, and conditional
insertion as necessary.

Does anybody have any advice on how this might be done please, or should
I be looking for another solution?



Sean Atkinson <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]