ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Tags
    3. osx
    Log in to post
    • All categories
    • DustinB3403D

      Solved lpadmin and Apple printer creation help

      IT Discussion
      • osx apple printers printer packages • • DustinB3403
      3
      0
      Votes
      3
      Posts
      535
      Views

      DustinB3403D

      Got it with this.

      lpadmin -p Printer-Name -E -v ipp://printer-address -o printer-is-shared=false -o printer-make-and-model="Canon iPR Svr G250 V1.0 US" -P "/Library/Printers/PPDs/Contents/en.lproj/Canon iPR Svr G250 V1.0 US"

    • DustinB3403D

      lpadmin Printer drivers are deprecated and will stop working in a future version of CUPS

      IT Discussion
      • printers cups ipp drivers apple osx conversation • • DustinB3403
      15
      0
      Votes
      15
      Posts
      9.0k
      Views

      DustinB3403D

      @Dashrender said in lpadmin Printer drivers are deprecated and will stop working in a future version of CUPS:

      @DustinB3403 said in lpadmin Printer drivers are deprecated and will stop working in a future version of CUPS:

      Keeping a system out of date on purpose for this though. . . ugh kill me now.

      Better get used to it - it's exactly what those shops running old XP machines on million dollar printing presses had to do.

      😧

    • DustinB3403D

      OSX Terminal Serial Number

      IT Discussion
      • osx terminal details investigation query macos • • DustinB3403
      12
      2
      Votes
      12
      Posts
      1.0k
      Views

      scottalanmillerS

      @RojoLoco and that's what I appreciates about you RL.

    • DustinB3403D

      Solved Finding specific file type that has no extension

      IT Discussion
      • osx postscript fonts files move management • • DustinB3403
      7
      0
      Votes
      7
      Posts
      783
      Views

      DustinB3403D

      @Obsolesce said in Finding specific file type that has no extension:

      Is there anything inside the file that can tell you? For example, if you write a script that cats each file or whayever and looks for specific string, then moves it if it matches.

      I don't know what those files are, so ya. Just thinking out loud without any info.

      No, because they are just ancient like ~20 + years old, no extension or really anything to hit on. Apple still supports Postscript Type 1 fonts, but nothing else does.

      I managed to get it to work with what I needed with the above.

      Additionally I created two reports 1) listing all of he postscript type 1 fonts and 2) listing truetype and opentype fonts.

      So now we can build a list of things that needs to get upgraded.

      To find the non-extension'd postscript type 1 fonts I used

      find . -type f -d -empty >> old-crap.txt

      To find the modern fonts I used

      find . -name '*.ttf' -d >> modern-font.txt and just replaced .ttf with .otf, .otc, .ttc, .tte and .dfont and appended the same modern-font.txt file for each of those.

    • DustinB3403D

      Solved Unix Command line - Printer Details

      IT Discussion
      • osx unix terminal lpstat lpinfo lpadmin apple lpoptions • • DustinB3403
      12
      1
      Votes
      12
      Posts
      1.3k
      Views

      DustinB3403D

      @black3dynamite said in Unix Command line - Printer Details:

      @DustinB3403 said in Unix Command line - Printer Details:

      Here is the completed command.

      lpoptions -p <NAME> | grep -o "printer-make-and-model='Your Printer make and Model"

      That outputs the exact detail I needed!

      lpoptions -p SHCSL_209_ColorPrinter | sed -r "s/^.*(printer-make-and-model.*)'.*$/\1/g; s/'//g; s/printer-make-and-model=//g"

      This will remove all the unnecessary text, printer-make-and-model=, and the single quotes.

      Yeah I'm also able to just use lpoptions -p SHCSL_209_ColorPrinter | grep "'SHCSL_209_ColorPrinter'" and get what I need in a single line response.

    • DustinB3403D

      Installing a Depreciated version of Apple OSX

      IT Discussion
      • how to osx apple old version control • • DustinB3403
      3
      4
      Votes
      3
      Posts
      682
      Views

      DustinB3403D

      @WLS-ITGuy give this a try, you may need to go back more than a year though.

    • DustinB3403D

      Unsolved Tar gzip file compression calculation without decompressing the file

      IT Discussion
      • tar gzip unix apple osx • • DustinB3403
      20
      0
      Votes
      20
      Posts
      2.3k
      Views

      1

      @DustinB3403 said in Tar gzip file compression calculation without decompressing the file:

      @Pete-S So the simplest way I can think to explain this would be like this.

      You have a network share which is relatively organized

      You create a compressed tarball of any folder on that share and then move that tarball to offsite storage.

      How would I realistically get a hash of that folder pre and post tar and compression and have it make sense? They aren't the same thing, even if they contain the same things.

      @Pete-S said in Tar gzip file compression calculation without decompressing the file:

      Is it safe to assume that the gzip file is correct when it is created?

      This is what I'm looking to verify 🙂

      I'm assuming that files are static during backup.

      If you first of all run md5deep on all files in the folder, you'll create a textfile that contains md5 (or sha256 or what you want) signatures on every file in the folder. Place it into the folder so it ends up inside the backup and you'll always have the ability to verify any uncompressed individual file.

      If you really want to verify your tar.gz file after it's created I think you have to decompress the files to a temporary folder, run md5deep on the files to compare them with the original file. What you really are testing is that the backup-compress-decompress-restore operation is lossless on every file. It should be by design, but if there is an unlikely bug somewhere it's technically possible that it might not be.

      If you use the gzip compression with tar, gzip has a CRC-32 checksum inside that can be used to verify the integrity of the gzip file.

      Or to be even more certain you can create an md5 signature of the entire gzip archive with md5sum or md5deep. Then you can always verify that the archive has not been corrupted.

      If you ever need to restore the files you can verify the integrity of the restored files with the md5 you created on the original files, before you did the backup.

    • DustinB3403D

      Unsolved lpoptions - cups - OSX

      IT Discussion
      • osx cups printers administration remote terminal • • DustinB3403
      1
      0
      Votes
      1
      Posts
      519
      Views

      No one has replied

    • DustinB3403D

      Solved OSX cli Join hidden network

      IT Discussion
      • osx administration • • DustinB3403
      17
      1
      Votes
      17
      Posts
      998
      Views

      DustinB3403D

      As an additional option, if you don't want your workstation to automatically connect to this network (on startup, while roaming etc) use this

      networksetup -removedpreferredwirelessnetwork Interface SSID

      That disables the autojoin functionality on OSX 10.14.6, but you would still have connected to the network from the initial answer.

    • DustinB3403D

      Remove Preferred Wireless Network on OSX

      IT Discussion
      • osx administration apple • • DustinB3403
      1
      4
      Votes
      1
      Posts
      416
      Views

      No one has replied

    • DustinB3403D

      Using Ansible to Manage install and update Apple OSX DHCP clients

      IT Discussion
      • osx ansible homebrew apple automation • • DustinB3403
      100
      0
      Votes
      100
      Posts
      7.9k
      Views

      stacksofplatesS

      This is a good starter video:

      Youtube Video

    • DustinB3403D

      Naming your Apple computer via the CLI

      IT Discussion
      • osx cli administration apple deployment • • DustinB3403
      2
      2
      Votes
      2
      Posts
      572
      Views

      DustinB3403D

      I've added this to a larger script that I use, but if you only wanted to automate the naming process the above would work for you.

      Else just remove the header #!/bin/sh and add the reset to any setup scripts that you have to automate this portion of the setup.

    • DustinB3403D

      OSX administrators who use Brew - Xcode Tools no longer included by default

      IT Discussion
      • osx administration automation brew shell scripting apple xcode • • DustinB3403
      1
      1
      Votes
      1
      Posts
      521
      Views

      No one has replied

    • DustinB3403D

      Solved Apple OSX - Public Desktop

      IT Discussion
      • apple osx scripting automation setup • • DustinB3403
      25
      0
      Votes
      25
      Posts
      2.2k
      Views

      DustinB3403D

      I'm marking this solved as I create a direction from / called scripts and that does what I need.

      No real need for a public shareable desktop when this works just fine.

    • DustinB3403D

      Creating a Salt master on Fedora 30

      IT Discussion
      • fedora salt master fedora 30 salt saltstack osx • • DustinB3403
      2
      4
      Votes
      2
      Posts
      634
      Views

      JaredBuschJ

      Dont' use bullet/number lists in instructions and guides like this. it makes it annoying for those that want to copy and paste.

      This guide is assuming that you are running as root. If not prepend everything here with sudo.

      Install the salt-master package dnf install salt-master Open the required ports in the firewall firewall-cmd --add-port=4505-4506/tcp --permanent firewall-cmd --reload Enable the salt-master service to start on boow, and also start it now. systemctl enable --now salt-master.service
    • DustinB3403D

      CUPS Administration Job Info 1 Destination Mailbox

      IT Discussion
      • printers cups lpadmin destination mailbox defaults cli mac os osx users workstation printer programming • • DustinB3403
      5
      1
      Votes
      5
      Posts
      919
      Views

      DustinB3403D

      @black3dynamite said in CUPS Administration Job Info 1 Destination Mailbox:

      @DustinB3403 said in CUPS Administration Job Info 1 Destination Mailbox:

      While I found where OSX stores the user printer preferences, but copying a "working version of preferences" to the user workstation and directory doesn't set the preferences.

      Still investigating. May require a restart when doing this remotely. . .

      Full system restart or just the cups service?

      Just did a full system restart and no change. While the plist file is there, and the user has owner access to it, the changes don't appear to take effect.

      Not sure why.

    • DustinB3403D

      Saltstack and Brew Casks

      IT Discussion
      • salt casks osx apple devops • • DustinB3403
      6
      0
      Votes
      6
      Posts
      1.3k
      Views

      DustinB3403D

      @shortstack said in Saltstack and Brew Casks:

      @DustinB3403 i am also wondering what the workaround for this issue is, re: salt minion executing brew installs. did you ever figure out a clean way to get brew working, maybe runas a different user?

      I haven't had the chance to get back into this, other more pressing issues so I just went on with my day.

      Sorry

    • scottalanmillerS

      Create a New User on macOS from the Terminal Command Line

      IT Discussion
      • mac osx macos apple command line cli terminal sam macos administration system administration macosx • • scottalanmiller
      4
      1
      Votes
      4
      Posts
      9.2k
      Views

      scottalanmillerS

      @justal said in Create a New User on macOS from the Terminal Command Line:

      @scottalanmiller Hi Scott, thanks for the post, unfortunately this works not on Mac OS X Mojave. I'm able to create a user but not able to login with this user account. It stucks after the login prozess. Is there any workaround?
      Thanks!

      I switched offices for a couple days to one where I'm on Ubuntu rather than my Mac. I'll look into it once I'm back to my Mac.

    • DustinB3403D

      Enabling root SSH access for OSX

      IT Discussion
      • osx macos system administration cli command line shell apple mac macos system administration ssh • • DustinB3403
      1
      2
      Votes
      1
      Posts
      1.7k
      Views

      No one has replied

    • DustinB3403D

      Using Rsync to remotely backup Apple OSX User profiles

      IT Discussion
      • osx terminal rsync command line cli macos macosx mac • • DustinB3403
      6
      2
      Votes
      6
      Posts
      1.1k
      Views

      DustinB3403D

      Worth noting that using rsync worked very well, but there were issues with the Outlook profile on the existing user workstation and the end result.

      Not a huge issue for us as everything is stored in O365, but worth being mindful of if your email was hosted locally.

      Also because of username convention changes, I had to set the ownership of the user profile to match the new shortened name.

    • 1
    • 2
    • 1 / 2