Navigation

    ML
    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Tags
    3. unix
    Log in to post
    • Oksana

      The Character-BasedSerial Terminal from the Past — vi
      Starwind • azure hyperconvergence microsof unix • • Oksana

      1
      0
      Votes
      1
      Posts
      49
      Views

      No one has replied

    • DustinB3403

      SOLVED If I wanted to grep through a file or multiple at once....
      IT Discussion • docx2txt grep regex unix • • DustinB3403

      19
      0
      Votes
      19
      Posts
      89
      Views

      M

      @DustinB3403 : Team effort! :)

    • DustinB3403

      SOLVED Scripted visudo updates
      IT Discussion • apple sed shell terminal unix visudo zsh • • DustinB3403

      16
      0
      Votes
      16
      Posts
      137
      Views

      DustinB3403

      @stacksofplates said in Scripted visudo updates:

      @DustinB3403 said in Scripted visudo updates:

      Well I managed to get the file created, I had to use visudo to create a custom file with my edits.

      I'm testing it now to see if everything works.

      Really? It doesn't let you just sudo a file in the dump directory? I wonder how they are enforcing that?

      Yeah, not sure why it was having a hissy fit over it, but I've got a good working custom sudoer.d/god file now that can be used for what I have, and I can simply cp that into the appropriate folder and reset the perms on it (if required) to get everything working.

      Thanks for the help guys!

    • DustinB3403

      SOLVED Unix Command line - Printer Details
      IT Discussion • apple lpadmin lpinfo lpoptions lpstat osx terminal unix • • DustinB3403

      12
      1
      Votes
      12
      Posts
      149
      Views

      DustinB3403

      @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.

    • Adisharma

      AWK Command in Linux/Unix
      News • awk command linux unix • • Adisharma

      2
      1
      Votes
      2
      Posts
      113
      Views

      scottalanmiller

      Is there a reason that you are looking into Awk? Awk is a programming language that used to be popular for extension text processing in conjunction with BASH. But in the last decades, its use has fallen away and that is why you won't find examples of it. It's only used for very basic things now. Languages like Perl and Python supplanted it being easier to use, better known, more portable, and vastly more powerful. Awk is really a legacy tool today.

    • DustinB3403

      UNSOLVED Tar gzip file compression calculation without decompressing the file
      IT Discussion • apple gzip osx tar unix • • DustinB3403

      20
      0
      Votes
      20
      Posts
      198
      Views

      P

      @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.

    • R

      alternative way to copy stuff with read access
      IT Discussion • fedora linux redhat unix vmware • • rhya

      8
      0
      Votes
      8
      Posts
      298
      Views

      scottalanmiller

      @rhya said in alternative way to copy stuff with read access:

      I am using fedora 22.

      Fedora 31 is current. F22 is insanely ancient.

    • scottalanmiller

      Get User Count from Dovecot
      IT Discussion • centos dovecot email fedora imap imap4 linux pop rhel unix • • scottalanmiller

      1
      2
      Votes
      1
      Posts
      119
      Views

      No one has replied

    • scottalanmiller

      UNIX: ZFS
      IT Discussion • bsd file system freebsd linux logical volume managers lvm raid sam linux administration software raid solaris storage unix zfs • • scottalanmiller

      2
      1
      Votes
      2
      Posts
      328
      Views

      scottalanmiller

      Placeholder

    • DustinB3403

      OSX Find command
      IT Discussion • cli find unix • • DustinB3403

      2
      0
      Votes
      2
      Posts
      76
      Views

      scottalanmiller

      You almost had it. It should be...

      find /Volumes -not -name something
    • scottalanmiller

      Linux: Installing and Configuring an NFS Server
      IT Discussion • centos fedora linux nfs sam linux administration unix • • scottalanmiller

      10
      4
      Votes
      10
      Posts
      1461
      Views

      black3dynamite

      rpcbind services is not required for NFSv4

      https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/deploying_different_types_of_servers/exporting-nfs-shares_deploying-different-types-of-servers
      d4520326-8f0f-48df-b2bf-62e8b7a0040c-image.png

      25c783d8-ba90-4aee-b652-017c220451b6-image.png

    • scottalanmiller

      Network File System: NFS
      IT Discussion • file system ietf linux network file system nfs storage sun unix • • scottalanmiller

      1
      1
      Votes
      1
      Posts
      156
      Views

      No one has replied

    • DustinB3403

      OSX Power Saving Settings
      IT Discussion • apple cli high sierra majove osx power management unix • • DustinB3403

      4
      1
      Votes
      4
      Posts
      146
      Views

      black3dynamite

      @DustinB3403 said in OSX Power Saving Settings:

      @black3dynamite said in OSX Power Saving Settings:

      Does that also prevent it from sleeping when the lid is closed?

      The lid closed is powernap :-)

      giphy.gif

    • DustinB3403

      OSX Majove - Applications Quarantine - Fix
      IT Discussion • apple applications cli osx trust unix • • DustinB3403

      2
      4
      Votes
      2
      Posts
      129
      Views

      DustinB3403

      So with further testing, a restart is required if the user is using their system, otherwise they'll continue to get the notifications.

    • DustinB3403

      SOLVED lpadmin - remove printer with a space in the name
      IT Discussion • administration apple ard lpadmin osx printers unix • • DustinB3403

      4
      0
      Votes
      4
      Posts
      356
      Views

      DustinB3403

      @dbeato said in lpadmin - remove printer with a space in the name:

      @DustinB3403 said in lpadmin - remove printer with a space in the name:

      Nevermind!

      lpadmin adds spaces as underscores!

      So with lpadmin -p I was able to find the list of printers.

      lpadmin -p
      Accounting_Printer

      And with lpadmin -x Accounting_Printer was able to remove the printer!
      Removed Accounting_Printer

      Good to know for central administration of Apple devices. What are you using right now?

      ARD and Unix cli

    • DustinB3403

      OSX Unix Using Brew to install software remotely
      IT Discussion • apple apple remote desktop brew osx unix • • DustinB3403

      20
      0
      Votes
      20
      Posts
      355
      Views

      DustinB3403

      @scottalanmiller said in OSX Unix Using Brew to install software remotely:

      @DustinB3403 said in OSX Unix Using Brew to install software remotely:

      So I can just unpack the dmg file, and have an Copy job, copy the application to the Applications folder for any user. As my admin user account. All via Apple Remote Desktop.

      This works without issue.

      What I am trying to do is avoid having to locally download the app at all, unpack it and then have a Copy job to run. I'd like to streamline the process.

      That's what the script is doing already. Making your own "sudo friendly" script for your install might make sense.

      The issue is there is no way AFAIK without adding my local admin account to this group.

      Which is more work than it may be worth since the existing solution works but is annoying.

    • scottalanmiller

      How to Update Packages on TrueOS
      IT Discussion • bsd freebsd trueos unix • • scottalanmiller

      11
      1
      Votes
      11
      Posts
      3437
      Views

      scottalanmiller

      Traditionally TrueOS has been a good desktop.

    • scottalanmiller

      Salt-Minion Fails to Start on TrueOS BSD
      IT Discussion • bsd freebsd salt-minion saltstack trueos unix • • scottalanmiller

      1
      1
      Votes
      1
      Posts
      399
      Views

      No one has replied

    • scottalanmiller

      Ubuntu Long Term Support SAMIT Video
      IT Discussion • fedora linux long term support operating system rhel samit scott alan miller support ubuntu unix youtube • • scottalanmiller

      1
      2
      Votes
      1
      Posts
      541
      Views

      No one has replied

    • mlnews

      Lumina Desktop 2.0 Leverages QML and is Due Soon
      News • bsd freebsd lumina lumina 2 trueos unix unix desktop • • mlnews

      1
      1
      Votes
      1
      Posts
      550
      Views

      No one has replied