Deploy CUPS printers.conf file via ARD?

Hi all
Anyone have an idea how to push out CUPS Printers to Tiger clients using ARD 3? I have been trying to send out the printers.conf file located in /etc/cups to a few Macs, but after the CUPS file copies to its destination, print jobs error out with a generic "a printing error has occurred" message. I checked permissions, etc and everything looks good. I assume Im missing another file somewhere but am stumped.
Basically what I want to do is set my Mac with 5 AppleTalk printers from my LAN, and then reproduce those printers for 10 other Macs so that those users see the exact same printers I see in my Print Setup Utility. I don't want to have to set up the printers manually on each Mac. I figured it would be a no-brainer to just copy my "golden" CUPS file via ARD to the other Macs but I'm having no luck at all thus far.
Once the printers.conf file is copied to their Macs, They can "see" the new printers in their Print Setup Utility.app as desired, but they are unable to print to any of them ("printer error occured"). Rebooting doesn't help.
Facts:
All Macs and printers are in the same AppleTalk zone.
All Macs are on the same subnet and VLAN.
All Macs are the identical version of OS X and are from the same NetBoot NetRestore master image.
All Macs are running 10.4.7.
Users do not need to authenticate to print.
All printing is done direct to the printers - no print server is in the middle.
All Macs have the ARD 3.0 client properly installed.
All Macs are Power Mac PPC G5s with 1.5 GB RAM.
No users are logged into their Macs when I attempt to copy the printers.conf file (no users are printing or running Print Setup Utility etc)
All of the printers are PostScript/PCL HP LaserJet's with valid AppleTalk names and Zone info.
I can print to all of the printers just fine and my other Macs can print to them also when configured manually.
There must be a practical way to mass-deploy CUPS printer settings to my Macs via ARD. Obviously I'm missing a critical step. Any ideas?
Thanks!

This is possible, but you have to be very careful because one mistake will cause this to fail:
1. On your template computer system, reset the printing system via Printer Setup Utility then configure your printers.
2. Backup the following files, noting their proper POSIX permissions:
/etc/cups/printers.conf (root:lp, 600)
/etc/cups/ppd (whole folder) (root:lp, 755)
3. Use ARD to deploy the files in the following way:
a. Log out all users on the client systems and reset the printing system by executing Apple's Reset Printing System script via Send UNIX command as root:
/Applications/Utilities/Printer\ Setup\ Utility.app/Contents/MacOS/PrintingReset.sh
b. Stop CUPS (PrintingServices) before copying any new configuration files (Send UNIX Command as root): SystemStarter stop PrintingServices
c. Distribute the printers.conf file and ppds folder to the clients. You can either copy the items there via Copy Items, setting owner and group to root and lp, and issuing appropriate chmod commands via Send UNIX Command to set their permissions.
d. Repair Permissions (Send UNIX Command as root): diskutil repairPermissions /
e. Start PrintingServices again: SystemStarter start PrintingServices, and restart.
That should work. You can also distribute a printer list via the managed client, storing a printer list in the com.apple.mcxprinting XML file in an attribute mapped to dsAttrTypeStandard:MCXSettings in a computer (dsRecTypeStandard:Computers) account or group (dsRecTypeStandard:Groups) account. Account types from NetInfo, LDAPv3, or Active Directory will work.
--Gerrit

Similar Messages

  • Cups: printers disappeared [solution inside]

    i have no idea when or what happened, but localhost:631 lists no printers any more (and also kde, gnome, ... says, there are no printers around)
    any ideas what can have caused it? (i didn't used printing for ~1month, so i don't know when it happened exactly)

    I think it has to do with the recent cups update, that renamed your cups config files to .pacsave files. At least I remember pacman alerting me about this, when I upgraded cups.
    I think the files renamed were:
    /etc/cups/cups.conf
    /etc/cups/printers.conf
    /etc/cups/mime.types

  • Rename client computer via ARD and Automator

    Does anyone know of a method or action to rename (Computer name) Macs using AppleRemoteDesktop and Automator?
    I have over 700 laptops on a school network that I would like to rename based on a tab deliminated text file containing the all the mac (ethernet) addresses and the assocated user.
    I have tried sending a unix script and the text file via ARD to change the computer name via scutil, but it doesn't work consistently.

    You should be able to use AppleRemoteDesktop to rename the remote computer. Once you are connected to the remote computer, just go to "System Preferences...", and click on "Network" and change the computer name.
    If you are a non-administrator of ARD, you may need to turn on the access privilege to rename the remote computer. Go to "Preferences..." in ARD, and click on "Security" button, and turn the access privileges on.

  • Problems deploying par file via Netweaver Developer Studio

    Hello,
    I have problems deploying a par file using the SAP Netweaver Developer Studio.
    In the SNWDS i configure the following:
    Window -> Preferences -> SAP Enterprise Portal
    Alias: IEP
    Host: khz059
    Port: 52900
    Login: Administrator
    Description: Testportal
    The logon Url of the portal is http://khz059:5290052900/irj/portal
    If i try to upload a par file via "Quick PAR Upload" i get the error messages:
    "Unable to connect to the portal
    Operation failed: Please make sure the server 'IEP' (khz059:52900) is running or check the log (sap-plugin.log) for more detail."
    Am I using the proper settings? Am I using the wrong port?
    I don't know whats wrong.
    Can anyone help me?
    The logfile shows:
    [12.09.05 / 14:53] #ERROR LEVEL# com.sap.portal.developmentTools.ideSpecific.eclipse.wizards.sapmakepar.SAPMPWizard$1 > No Information
    java.io.IOException: Error writing to server
         at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:302)
         at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:314)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:634)
         at com.sap.portal.developmentTools.general.wizards.upload.DeployEngine.readResponse(DeployEngine.java:361)
         at com.sap.portal.developmentTools.general.wizards.upload.DeployEngine.uploadPar(DeployEngine.java:433)
         at com.sap.portal.developmentTools.general.wizards.upload.DeployEngine.deploy(DeployEngine.java:220)
         at com.sap.portal.developmentTools.ideSpecific.eclipse.wizards.sapmakepar.SAPMPWizard$1.processUpload(SAPMPWizard.java:404)
         at com.sap.portal.developmentTools.ideSpecific.eclipse.wizards.sapmakepar.SAPMPWizard$1.run(SAPMPWizard.java:338)
         at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:302)
         at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:252)
         at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:758)
         at com.sap.portal.developmentTools.ideSpecific.eclipse.wizards.sapmakepar.SAPMPWizard.performFinish(SAPMPWizard.java:519)
         at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:608)
         at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:321)
         at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
         at org.eclipse.jface.window.Window.open(Window.java:563)
         at com.sap.portal.developmentTools.general.uploader.QuickPARUploader.run(QuickPARUploader.java:146)
         at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
         at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
         at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
         at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
         at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    Best regards,
    Nils Kloth

    Hi Nils,
    I think you must have selected the defualt checkbox (Try and uncheck that). Also uncheck the checkbox for "<i>Yes, I want to remeber the password for deployment</i>" if it is also selected. When you deploy the par file now enter the password and try to deploy. I think this will solve your problem.
    Apart from this, try this methos of deploying the Par file.
    1) Save you project. Right click it and "Quick par Upload".
    2) On your browser type
    "http://<your_server_name>:50000/irj/servlet/prt/portal/"
    Your case:
    <i>http://khz059:52900/irj/servlet/prt/portal/</i>
    or same page you can get by navigating:
    System Administration-> Support-> Portal Runtime-> Administration Console.
    3) At the option "Please specify a Portal Archive file (PAR) and press "upload" to store it into the PCD." Deploy your par file by giving the path.
    Now you file is deployed on the server. If you want to create an Iview from this deployed .par file then :
    1) On your portal. Follow the path: Content Administrator-> Portal Content -> Portal Content(sub-option). Right click -> New from par ->iView.
    2) Here in the list you will find the par file which you have uploaded. Proceed as said.
    3) You will finally have an iView. Right click it and preview it.
    I hope this solves your problem.
    Regards
    Pravesh
    PS: Please consider rewarding points if helpful.

  • Deploying AppleMail settings via ARD - is it possible?

    Hello,
    I want to set AppleMail settings for about 50 Users via ARD.
    First of all IMAP settings, next account details based on the local non-admin user.
    Any idea?
    Thanks a lot!
    Jochen

    ARD cant do this directly, but you can send an OSA script to do this. Here is one I use. You send a UNIX command:
    osascript -e 'tell application "System Events"' -e 'keystroke "q" using command down' -e 'end tell'
    You can string together commands by using -e. This comes in really useful for product serial numbers, for instance:
    osascript -e 'tell application "System Events"' -e 'keystroke "Company Name"' -e 'keystroke tab' -e 'keystroke "Company Location"' -e 'keystroke tab' -e 'delay 2' -e 'keystroke "REALLY long pointless serial number"' -e 'delay 2' -e 'keystroke return' -e 'end tell'
    In this example, "delay 2" means wait two seconds. Older systems / apps will actually have an issue with receiving the keystrokes to fast, and do nothing. Quark is the worst offender here, and I need to run a delay of 5 seconds, even on mac Pros.
    I also use it for logging in a bunch of system as a maintenance user. I will log out everyone, and then issue:
    osascript -e 'tell application "System Events"' -e 'keystroke "Service User"' -e 'keystroke tab' -e 'delay 2' -e 'keystroke "myPasswordHere"' -e 'delay 2' -e 'keystroke return' -e 'keystroke return' -e 'end tell'
    You will notice here that you need to hit enter twice... This is a bug in the login system. 50% of your systems will not continue with hitting enter only once in script (although they work perfectly fine hitting enter once at the keyboard).
    Hope this helps.

  • [SOLVED] CUPS-printers gone since last upgrade

    Last weekend I upgraded my system and everything went smoothly. A day or two later I noticed, that printers on remote machines are no more available, not even visible. They work fine on the machines they are connected to but are not even visible from my machine.
    One printer is an old HP LaserJet 5L at an old sidux distro, where cups is of version 1.4. It worked for ages and hasn't been touched in any way since sidux has gone.
    The other printer is a HP LaserJet P2055d at an archlinux server installation, which is up to date as my (client) machine is. So. latest cups (ver. 1.6).
    Until last weekend the connection to those printers was easy, I even had not to go through the Add Printer wizard of cups (using Firefox). The printer always were visible and IIRC coul be added with a click on an oK button. Until now to go through the Add-Printer wizard was only necessary for SAMBA printers: Other network printer, choose Windows Printer via SAMBA  etc.
    SAMBA printers work, however.
    So I thought I go through that wizard for my remote cUPS printers too. But no success: Printer not available, wrong URI and the like.
    Sorry for my lengthy post, but I don't know were to look first and what to check. The cups config files don't seem to habe been changed, so I'm a bit lost and need some pointers.
    poseidon
    Last edited by poseidon (2012-08-09 19:16:38)

    swordfish wrote:
    poseidon wrote:
    I went through that and coulbn't find anything that applies to my situation (well, at least I think so). Even "Remote access to web interface" doesn#t seem to apply because the remote machines weren't touched. And, I have access to them.
    poseidon
    Hi there,
    with Cups 1.6 the avahi-daemon has to be up and running before cupsd is started. Is this the case with your configuration?
    No, so I have corrected the rc.conf of the server machine, stopped cupsd, restarted avahi-daemon, started cupsd. No success. Did this on server and client machine. Shouldn't my client machine be able to find that printer when I press Find New printer?
    Okay, Plan B: I've always had difficulties to see which protocol to use and how the URI should look like if I use the Add Printer wizard. Any pointers besides the cups documentation (which is rahter hard to understand)?
    poseidon

  • Unix command to update Microsoft Office 2008 via ARD

    I'm looking for a unix command I can send via ARD to update Microsoft Office 2008. It just needs to install all updates and then restart. Kinda like apple's software update one: softwareupdate -i -a; shutdown -r now

    Why go through all the trouble of trying to do it in Unix.  Apple and Microsoft made it a LOT easier.
    Just download the update from Mactopia
    Open the .dmg
    (for convience and ability to have it stored) Drag the Update from the Microsoft folder that opens up and put the update on your desktop
    In ARD Select what computer(s) you want to install the update in
    Use ARD Install function to install the update
    Go have a cup of coffee and a donut while ARD does the install.
    You do not even have to do a restart.  Microsoft uses a different icon for the update but it still is a package file operation.

  • How do I set the DVD region code via ARD?

    We recently deployed around 200 MacBooks in a k12 environment and manage them via ARD & WGM. We forgot to set the DVD region when creating our master image and as a result, every single MacBook prompts for an admin password when attempting to use the DVD Player to view a DVD for the first time.
    Instead of attending to each of the 200+ MacBooks personally and putting a DVD in and setting the region code one by one, is there a way I could do this via ARD? Unix command? Managed preference via WGM? Thanks, I appreciate any input.

    I've been working on this very topic for about a year. Here's what you need to know.
    1) setting the region code on your master image would result in the same behavior. Setting the region code triggers an update to the DVD drive firmware itself - it's not something that's stored in software. Obviously this is something that needs to be set on each machine individually. Setting it on the image won't affect the imaged-machines.
    2) Apple seems to have gone to great lengths to hide the app that triggers this action. If they had provided a simple CLI interface to trigger this on a client machine we'd be able to use ARD to trigger the action on all of our client machines. Alas, this app is buried somewhere I can't find and seems to only rear its head when a DVD with a region code is inserted into the drive. There is one idea that popped into my head while at Macworld that I want to try to see if I can find this app but I have my doubts.
    3) Failing my last ditch effort to find this app, I think our fallback will be to give users explicit rights to set the initial DVD region code on thier machines. This is something that can be done using WGM. There is a rule in /etc/authorication specifically allowing users/groups to set the region code for the first time. According to the notes, giving this access will NOT allow users to change the region code - which is a good thing - but only give them rights to do so the initial time. This way, we can empower our users to help themselves while also protecting them from resetting the region code accidentally.
    In conclusion, I haven't found any way to script/push this command to a client machine. I'll definitely file this with Bug Reporter and hope Apple will give us a CLI or an ARD command to trigger this action after imaging.
    G4   Mac OS X (10.4.8)  
    G4    
    G4    

  • Problem on upload file via ftp..

    Hi afternnon,
    Can have people tell me.....what is "Can't open data connection" on my upload file via ftp ????how to solve it??
    regards,
    mike

    nbelford wrote:
    I cant find any way to upload the CSR either/ I dont think it exists yet. Can someone please let us know how far away it is. Same applies to the provisioning profile. I cant see any evidence of this yet either.
    I am presuming that without these key pieces of the puzzle one cannot deploy to the iPhone. Can someone from Apple confirm (or correct me)
    I've emailed Apple asking for clarification but I haven't heard back yet. I imagine we'll all learn what's going on at about the same time. And yes, until you get a certificate you cannot upload your apps to the iPhone (within the SDK rules).
    Randy

  • Deploying Office 365 Pro Plus via SCCM

    Hi
    I am trying to deploy Office 365 Pro Plus via SCCM, I followed this process https://gallery.technet.microsoft.com/How-To-Deploying-Office-70e8b1eb#content , we don't use the application catalogue but I made the application available to be run via system
    center.
    Though can't get it deployed, I keep getting some errors about checking internet connections ...though I can run the command manually and it'works.
    Does anyone managed to install it via SCCM ?

    Thank you for the reply,
    Where I am lost is where it downloads the Office C2R from ? 
    Logs from the Temp folder
    03/04/2015 10:51:15.947 SETUP (0xf10)
    0x107c Click-To-Run
    anhmm Medium
    Prereq::PrereqsFailed: No prereqs have failed.
    03/04/2015 10:51:16.228 SETUP (0xf10)
    0x107c Click-To-Run
    aoh9t Medium
    TryLaunchClient::HandleStateAction: Launching OfficeClickToRun.exe with parameters: scenario=unknown acceptalleulas="True" cdnbaseurl="http://officecdn.microsoft.com/pr/39168D7E-077B-48E7-872C-B232C3E72675" productreleaseid="none"
    displaylevel="False" culture="en-us" baseurl="C:\WINDOWS\ccmcache\5l" lcid="1033" platform="x86" updatesenabled="False" o365proplusretail.excludedapps="access,groove,lync,project,sharepointdesigner,visio"
    version="15.0.4675.1003" productstoadd="O365ProPlusRetail_en-us_x-none" trackedduration=280
    03/04/2015 11:01:12.393 SETUP (0xf10)
    0x107c Click-To-Run
    aoh72 Medium
    ExitBootStateMachine::HandleStateAction: Bootstrapper workflow exiting with result: 0x0
    Logs from SCCM AppEnforce shows this (can't see it failing)
    <![LOG[+++ Starting Install enforcement for App DT "Install - Microsoft Office 365 ProPlus" ApplicationDeliveryType - ScopeId_2A03C658-AF66-44B9-85ED-4FADE04A803B/DeploymentType_5a39078c-a7a3-438c-af16-0cb0a0674479, Revision - 7, ContentPath
    - C:\WINDOWS\ccmcache\5l, Execution Context - System]LOG]!><time="10:50:45.222-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appprovider.cpp:1702">
    <![LOG[    A user is logged on to the system.]LOG]!><time="10:50:45.243-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appprovider.cpp:2083">
    <![LOG[    Performing detection of app deployment type Install - Microsoft Office 365 ProPlus(ScopeId_2A03C658-AF66-44B9-85ED-4FADE04A803B/DeploymentType_5a39078c-a7a3-438c-af16-0cb0a0674479, revision 7) for system.]LOG]!><time="10:50:45.247-600"
    date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appprovider.cpp:2148">
    <![LOG[+++ Application not discovered. [AppDT Id: ScopeId_2A03C658-AF66-44B9-85ED-4FADE04A803B/DeploymentType_5a39078c-a7a3-438c-af16-0cb0a0674479, Revision: 7]]LOG]!><time="10:50:45.287-600" date="03-04-2015" component="AppEnforce"
    context="" type="1" thread="5596" file="localapphandler.cpp:291">
    <![LOG[    App enforcement environment: 
    Context: Machine
    Command line: Setup.exe /configure Install.xml
    Allow user interaction: No
    UI mode: 1
    User token: null
    Session Id: 1
    Content path: C:\WINDOWS\ccmcache\5l
    Working directory: ]LOG]!><time="10:50:45.288-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appcontext.cpp:85">
    <![LOG[    Prepared working directory: C:\WINDOWS\ccmcache\5l]LOG]!><time="10:50:45.290-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appcontext.cpp:189">
    <![LOG[    Prepared command line: "C:\WINDOWS\ccmcache\5l\setup.exe" /configure Install.xml]LOG]!><time="10:50:45.340-600" date="03-04-2015" component="AppEnforce" context="" type="1"
    thread="5596" file="appcontext.cpp:338">
    <![LOG[    Executing Command line: "C:\WINDOWS\ccmcache\5l\setup.exe" /configure Install.xml with user context]LOG]!><time="10:50:45.341-600" date="03-04-2015" component="AppEnforce" context=""
    type="1" thread="5596" file="appexcnlib.cpp:201">
    <![LOG[    Working directory C:\WINDOWS\ccmcache\5l]LOG]!><time="10:50:45.341-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appexcnlib.cpp:215">
    <![LOG[    Post install behavior is BasedOnExitCode]LOG]!><time="10:50:45.529-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appcommon.cpp:1094">
    <![LOG[    Waiting for process 3856 to finish.  Timeout = 120 minutes.]LOG]!><time="10:50:45.533-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596"
    file="appexcnlib.cpp:1958">
    <![LOG[    Process 3856 terminated with exitcode: 0]LOG]!><time="11:01:12.428-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appexcnlib.cpp:1967">
    <![LOG[    Looking for exit code 0 in exit codes table...]LOG]!><time="11:01:12.429-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appexcnlib.cpp:505">
    <![LOG[    Matched exit code 0 to a Success entry in exit codes table.]LOG]!><time="11:01:12.430-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appexcnlib.cpp:584">
    <![LOG[    Performing detection of app deployment type Install - Microsoft Office 365 ProPlus(ScopeId_2A03C658-AF66-44B9-85ED-4FADE04A803B/DeploymentType_5a39078c-a7a3-438c-af16-0cb0a0674479, revision 7) for system.]LOG]!><time="11:01:12.621-600"
    date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appprovider.cpp:2148">
    <![LOG[+++ Application not discovered. [AppDT Id: ScopeId_2A03C658-AF66-44B9-85ED-4FADE04A803B/DeploymentType_5a39078c-a7a3-438c-af16-0cb0a0674479, Revision: 7]]LOG]!><time="11:01:12.739-600" date="03-04-2015" component="AppEnforce"
    context="" type="1" thread="5596" file="localapphandler.cpp:291">
    <![LOG[++++++ App enforcement completed (627 seconds) for App DT "Install - Microsoft Office 365 ProPlus" [ScopeId_2A03C658-AF66-44B9-85ED-4FADE04A803B/DeploymentType_5a39078c-a7a3-438c-af16-0cb0a0674479], Revision: 7, User
    SID: ] ++++++]LOG]!><time="11:01:12.748-600" date="03-04-2015" component="AppEnforce" context="" type="1" thread="5596" file="appprovider.cpp:2448">

  • Can modprobe.d conf files be multiline?

    Hey
    i've created a fglrx.conf file which has two lines, one which blacklists radeon and one that load the fglrx module. However, I get the following output, so it doesn't seem to happy
    libkmod: kmod_config_parse: /etc/modprobe.d/fglrx.conf line 2: ignoring bad line starting with 'fglrx'
    If i need to split it into two files, how do I ensure that one file is parsed before the other? (so the blacklist comes first)

    loading modules is done via /etc/modules-load.d/, /etc/modprobe.d/ is only for setting module parameters or blacklisting.

  • Script to edit conf files: suggestions & comment sought

    I have this script to edit conf files in $XDG_CONFIG_HOME. It works fine:
    #!/bin/sh
    dir=$XDG_CONFIG_HOME/$1
    if [ -d "$dir" ]; then
    for f in $dir/* ; do
    file=${f##*/}
    case $file in
    *conf | config | *.cfg | *rc) $EDITOR "$f" ;;
    esac
    done
    fi
    It has already been pointed out that this could easily be achieved in Bash 4 with:
    #!/bin/bash
    shopt -s extglob failglob
    $EDITOR ~/.config/$1/@(conf|config|*.cfg|*rc)
    The shortcoming with my script is that it only handles files correctly placed in $XDG_CONFIG_HOME, and as many apps litter thier conf files about the shop, I wanted to try something that dealt with those cases. Hence this.
    #!/bin/sh
    dirs=($HOME/.$1* $HOME/.$1/ $XDG_CONFIG_HOME/$1/)
    search=$(find "${dirs[@]}" -type f \( -name "*.conf" -o -name "conf" -o -name \
    "config" -o -name "*rc" -o -name "*.cfg" \) 2>/dev/null )
    for f in $search; do
    $EDITOR "$f"
    done
    ...which again works, but seems pretty ugly.
    I'd appreciate any comments on approaches to the same problem that achieve the result in a more efficient and portable way.
    Last edited by jasonwryan (2011-10-18 02:53:06)

    Instead of:
    search=$(find "${dirs[@]}" -type f \( -name "*.conf" -o -name "conf" -o -name \
    "config" -o -name "*rc" -o -name "*.cfg" \) 2>/dev/null )
    You should either read the results into an array and act on the array, or launch the editor straight from find via exec.
    Using an array:
    IFS=$'\n' read -r -d '' -a files < \
    <(find "${dirs[@]}" -type f \( -name "*.conf" -o -name "conf" -o -name "config" -o -name "*rc" -o -name "*.cfg" \) 2>/dev/null
    (( ${#files[*]} )) && "$EDITOR" "${files[@]}"
    Usind only find:
    find "${dirs[@]}" -type f \( -name "*.conf" -o -name "conf" -o -name "config" -o -name "*rc" -o -name "*.cfg" \) -exec "$EDITOR" {} +
    I prefer the second method -- its right to the point and isn't shell specific. It is, however, somewhat GNU find specific.

  • Corrupt PDF and other files via eMail?

    Hi Everyone
    Having strange going on with the printers of late.
    I've used the exact same PDF settings for about 7 years and never have an issue.
    I sent a PDF to the printers last week and the printed product had our logo printed incorrectly on it (there wasn't any time for a colour proof).
    What happened was that the logo is built in CMYK, but the logo only printed 100% black areas of the logo - basically the backing of the logo is in black and that's all that printed.
    The printers couldn't explain it and it's the same logo that's been used with other printers around that time and since then.
    All is fine with the logo.
    Today I sent a cover to the printers and there's an advert on the right hand side of the document that has corrupted. I opened the PDF I sent and all is fine.
    The printer emailed me back what I sent to him and that seems to be corrupt - I can't explain it.
    What I have done is sent him a link to download the file from my Dropbox - which bypasses the file hitting the email altogether.
    When they got the file it was perfectly fine and printed just fine.
    As a test I sent the file several friends of mine who all opened it on various machines, and printed it successfully on various devices.
    The only common denominator here is that when I send the printer the file via Email it gets corrupted (nobody else I sent it to experienced any corruption).
    What exactly can an email system/firewall/anti-virus or other variable possibly affect a PDF?
    As a sidenote: I packaged the InDesign file and zipped it and sent that too - and that too got corrupted and the printers could not open it.

    Email notoriously damages PDF files, so I'd recommend using a Dropbox or similar approach as standard.
    The causes of corruption can be very hard to track down and can include subtle incompatibilities between email programs, size limits, failure of email programs to treat PDFs as binary, and automatic processing of email, such as corporate signatures or antispam.

  • Pushing out a script to run via ARD

    I have the following script I am running into two issues with
    1)  Instead of running it as root, can we run as a member of the admin group.
    2)  Can this be pushed out via ARD?
    #!/bin/bash
    #This script needs to run as root
    ROOT_UID=0
    if [[ $UID -ne $ROOT_UID ]]; then
    echo "YOU MUST BE ROOT TO RUN THIS SCRIPT"
    exit 1
    fi
    OLD="<string>The owner or any administrator can unlock the screensaver.<\/string>"
    NEW="<string>(Use SecurityAgent.) The owner or any administrator can unlock the screensaver.<\/string>"
    cp /private/etc/authorization /tmp/auth.tmp
    sed "s/$OLD/$NEW/" /tmp/auth.tmp > /tmp/authorization
    mv /private/etc/authorization /private/etc/authorization.previous
    mv /tmp/authorization /private/etc/authorization
    rm /tmp/auth.tmp

    Do not remove the "root user reference" from the script. Without "the reference" the script will place a modified authorization file in the /tmp directory. To modify the /private/etc/authorization file you must be root or an admin user with the proper authorization (You would use sudo in the shell environment). Here's a safer and cleaner version of that script->
    #!/bin/bash
    OLD="<string>The owner or any administrator can unlock the screensaver.<\/string>"
    NEW="<string>(Use SecurityAgent.) The owner or any administrator can unlock the screensaver.<\/string>
    # use sed to make a backup of the original file then edit the file in place
    /usr/bin/sed -i.previous "s/$OLD/$NEW/" /private/etc/authorization

  • Securing the JASS CONF file

    Hi,
    I have put the JASS conf file as a resource in a signed JAR file. I did this so someone cannot alter this file. I also set the location of the file in the code right before I use it by setting the environment variable java.security.auth.login.config. Can anyone find a hole in this technique? The other option is to set the location as a URL on the web server and set the location of the file by using the environment variable java.security.auth.login.config.
    Thanks,
    - Bob

    Thanks for your reply. Do you have any specifics on
    how the JAAS conf file in a signed jar could be
    hacked.The security issues of client-side JAAS have been brought up several times in this forum. Securing the config file as you do it eliminates the easiest way of replacing a login module on the client, but I remember another forum message where the author replaced the related login module in rt.jar by his own, malicious implementation. You cannot prevent that with your approach.
    Another other issue (not security-related) with the client-side JAAS config, delivered in a signed JAR, is that you are giving up one key advantage of JAAS, the ease of exchanging the authentication mechanism.
    Accessing it via a (secure) web connection from the server is a way to address that, though, as you suggest.

Maybe you are looking for

  • New interal Hard drive and Lion

    I have a Mac Pro early 2008 which is working just fine except that the original hard drive is starting to show it's age. To mitigate the potential problem I have a new clean,empty internal hard drive and wonder if installing Lion on it would be a wis

  • Content Search Web Part shows Subsite that has been renamed

    I'm having an issue with the CSWP.  The query that i have set is returning exactly what i want however, i renamed a subsite to a different name and the CSWP is showing two line items in the web part.  1 for the old subsite and 1 for the newly named s

  • Missing exif data

    I'm not really sure how this works but... I need an applescript that will (1) search a directory structure, (2) find the image files that are missing the exif date, (3) write the date created to the missing exif date field (4) rename the file using t

  • Split a record into multiple records

    Hi, I have situation where i need to split a record into multiple records. InputData : value|BeginDate |EndDate 15 |2002/10/15|2002/10/16 13 |2002/10/13|2002/10/20 19 |2002/10/19|2002/10/23 10 |2002/10/10|2002/10/12 OutPut : 10 |2002/10/10|2002/10/12

  • Best export setting DV in Broadcast out?

    Hello, What would you recomend are the best settings to take in miniDV and then export back out for broadcast purposes? I shoot with a Panasonic AG-DVX100, news stories, the edit with FCP 5. I would like to export the final product to a CD rather tha