Navigation

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

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

      19
      0
      Votes
      19
      Posts
      84
      Views

      M

      @DustinB3403 : Team effort!
    • SOLVED Scripted visudo updates
      IT Discussion • unix apple shell terminal sed zsh visudo • • DustinB3403  

      16
      0
      Votes
      16
      Posts
      129
      Views

      @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!
    • SOLVED Unix Command line - Printer Details
      IT Discussion • unix apple osx terminal lpadmin lpstat lpinfo lpoptions • • DustinB3403  

      12
      1
      Votes
      12
      Posts
      145
      Views

      @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.
    • AWK Command in Linux/Unix
      News • linux unix awk command • • Adisharma  

      2
      1
      Votes
      2
      Posts
      107
      Views

      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.
    • UNSOLVED Tar gzip file compression calculation without decompressing the file
      IT Discussion • unix apple osx tar gzip • • DustinB3403  

      20
      0
      Votes
      20
      Posts
      185
      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 • linux fedora vmware unix redhat • • rhya  

      8
      0
      Votes
      8
      Posts
      277
      Views

      @rhya said in alternative way to copy stuff with read access: I am using fedora 22. Fedora 31 is current. F22 is insanely ancient.
    • Get User Count from Dovecot
      IT Discussion • linux centos fedora email unix rhel imap dovecot pop imap4 • • scottalanmiller  

      1
      2
      Votes
      1
      Posts
      110
      Views

      No one has replied

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

      2
      1
      Votes
      2
      Posts
      320
      Views

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

      2
      0
      Votes
      2
      Posts
      73
      Views

      You almost had it. It should be... find /Volumes -not -name something
    • Linux: Installing and Configuring an NFS Server
      IT Discussion • linux centos fedora unix sam linux administration nfs • • scottalanmiller  

      10
      4
      Votes
      10
      Posts
      1424
      Views

      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
    • Network File System: NFS
      IT Discussion • linux storage unix nfs file system network file system sun ietf • • scottalanmiller  

      1
      1
      Votes
      1
      Posts
      149
      Views

      No one has replied

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

      4
      1
      Votes
      4
      Posts
      138
      Views

      @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 https://media1.giphy.com/media/5hc2bkC60heU/giphy.gif?cid=3640f6095c8163fa692f764563b0e745
    • OSX Majove - Applications Quarantine - Fix
      IT Discussion • unix apple cli osx applications trust • • DustinB3403  

      2
      4
      Votes
      2
      Posts
      121
      Views

      So with further testing, a restart is required if the user is using their system, otherwise they'll continue to get the notifications.
    • SOLVED lpadmin - remove printer with a space in the name
      IT Discussion • unix apple osx printers administration lpadmin ard • • DustinB3403  

      4
      0
      Votes
      4
      Posts
      341
      Views

      @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
    • OSX Unix Using Brew to install software remotely
      IT Discussion • unix apple osx brew apple remote desktop • • DustinB3403  

      20
      0
      Votes
      20
      Posts
      348
      Views

      @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.
    • How to Update Packages on TrueOS
      IT Discussion • unix freebsd bsd trueos • • scottalanmiller  

      11
      1
      Votes
      11
      Posts
      3420
      Views

      Traditionally TrueOS has been a good desktop.
    • Salt-Minion Fails to Start on TrueOS BSD
      IT Discussion • unix saltstack freebsd bsd trueos salt-minion • • scottalanmiller  

      1
      1
      Votes
      1
      Posts
      393
      Views

      No one has replied

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

      1
      2
      Votes
      1
      Posts
      534
      Views

      No one has replied

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

      1
      1
      Votes
      1
      Posts
      547
      Views

      No one has replied

    • How to Generate a UUID on Solaris
      IT Discussion • unix solaris curl uuid guid • • scottalanmiller  

      3
      2
      Votes
      3
      Posts
      811
      Views

      I was pretty surprised to find that uuidgen was not available, not even available for install!
    • rTorrent vulnerability allows hackers to use your system resources to mine Crypto
      News • unix vulnerability crypto currency mining • • DustinB3403  

      1
      3
      Votes
      1
      Posts
      404
      Views

      No one has replied

    • Is It Possible to Mount SMB Share Using Kerberos Token of Current User on MacOS
      IT Discussion • unix apple active directory smb macos kerberos • • DustinB3403  

      48
      0
      Votes
      48
      Posts
      3097
      Views

      D

      See the following for ideas as to how you can accomplish what you're seeking to do: https://macmule.com/2011/09/08/how-to-map-drives-printers-based-on-ad-group-membership-on-osx/
    • Allowing Root Password Login via SSH to Dragonfly BSD
      IT Discussion • unix ssh bsd dragonfly bsd • • scottalanmiller  

      22
      0
      Votes
      22
      Posts
      1706
      Views

      @black3dynamite said in Allowing Root Password Login via SSH to Dragonfly BSD: @scottalanmiller said in Allowing Root Password Login via SSH to Dragonfly BSD: Dragonfly is tough by default because unless you use something like Salt, you can't connect to it to get keys to it in the first place. You can curl keys to it, of course. But you need totally different processes than you would typically use with any other OS to get it set up. That means it's not even Ansible friendly. Pretty much agent-based tools like Puppet, Salt, etc... is the way to go. Yup, unless you have some way to push the Ansible key ahead of time, like in a curl. So back to the beginning there
    • Errors Installing SaltStack on NetBSD 7.1.1
      IT Discussion • unix saltstack salt bsd netbsd netbsd 7.1.1 • • scottalanmiller  

      6
      0
      Votes
      6
      Posts
      577
      Views

      @scottalanmiller said in Errors Installing SaltStack on NetBSD 7.1.1: Got it, it was a packaging versioning issue. I had accidentally set the verison to 8.0 when it was 7.1.1. I got a clean install and set the package version correctly and now it works fine. If you want to know how to set the version accurately automatically, try this that I just made... export PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/`uname -m`/`uname -r`/All/" That's exactly what I was thinking but didn't say anything. I wanted to see what you'd do.
    • Bootstrap or Install PKG on FreeBSD Automatically
      IT Discussion • unix freebsd bsd pkg • • scottalanmiller  

      1
      2
      Votes
      1
      Posts
      650
      Views

      No one has replied

    • GhostBSD 11.1 Released with MATE and Xfce
      News • unix phoronix freebsd bsd xfce mate unix desktop bsd desktop ghostbsd ghostbsd 11.1 • • mlnews  

      5
      2
      Votes
      5
      Posts
      1009
      Views

      @black3dynamite said in GhostBSD 11.1 Released with MATE and Xfce: @scottalanmiller said in GhostBSD 11.1 Released with MATE and Xfce: My Xfce download is underway. What's GhostBSD default desktop environment? MATE and Xfce. Those are the only two that they make.
    • DragonFlyBSD 5.0 Has Released
      News • unix phoronix bsd dragonfly bsd hammer dragonfly bsd 5 hammer2 • • mlnews  

      6
      1
      Votes
      6
      Posts
      799
      Views

      The Linux world is complex enough for normal users. BSD just pushed them that much farther over the edge.
    • Reset Linux Password with SaltStack
      IT Discussion • linux unix saltstack salt • • scottalanmiller  

      1
      4
      Votes
      1
      Posts
      1310
      Views

      No one has replied

    • Open Source Protects the OmniOS Project
      News • open source unix solaris opensolaris illumos omnios • • mlnews  

      2
      3
      Votes
      2
      Posts
      746
      Views

      Hope they will keep the pace
    • Why Does Root Get a Special Home Directory
      IT Discussion • linux unix sam linux administration • • scottalanmiller  

      1
      5
      Votes
      1
      Posts
      722
      Views

      No one has replied