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

      Windows 11 Gets sudo: Here's How to Enable It

      Starwind
      • starwind windows 11 unix linux sudo • • Oksana
      1
      0
      Votes
      1
      Posts
      160
      Views

      No one has replied

    • scottalanmillerS

      Clean a Linux or UNIX Text File to Strip Hidden Characters

      IT Discussion
      • linux unix text bash string • • scottalanmiller
      3
      1
      Votes
      3
      Posts
      2.0k
      Views

      scottalanmillerS

      @CCWTech said in Clean a Linux or UNIX Text File to Strip Hidden Characters:

      @scottalanmiller Great, but can you explain the syntax of the command?

      trim anything accept characters 11, 12, or 40-176. The acceptable character ranges.

    • scottalanmillerS

      Remote Access to Ubuntu 23.04 Lunar Lobster with KVM Child Process Has Exited | MeshCentral Error

      IT Discussion
      • linux ubuntu ubuntu 23.04 lunar lobster xorg wayland unix gdm3 gdm • • scottalanmiller
      2
      2
      Votes
      2
      Posts
      736
      Views

      PhlipElderP

      Side question: When does 23.04 get moved into LTS mode?

    • scottalanmillerS

      Using Mutt to Check POP or IMAP Email

      IT Discussion
      • mutt email imap dovecot pop pop3 imap4 linux unix bsd freebsd command line • • scottalanmiller
      4
      3
      Votes
      4
      Posts
      1.6k
      Views

      J

      @scottalanmiller No example output? 🙂

    • OksanaO

      The Character-BasedSerial Terminal from the Past — vi

      Starwind
      • microsof unix hyperconvergence azure • • Oksana
      1
      0
      Votes
      1
      Posts
      416
      Views

      No one has replied

    • DustinB3403D

      Solved If I wanted to grep through a file or multiple at once....

      IT Discussion
      • grep unix docx2txt regex • • DustinB3403
      19
      0
      Votes
      19
      Posts
      1.4k
      Views

      M

      @DustinB3403 : Team effort! 🙂

    • DustinB3403D

      Solved Scripted visudo updates

      IT Discussion
      • sed visudo apple unix terminal shell zsh • • DustinB3403
      16
      0
      Votes
      16
      Posts
      1.4k
      Views

      DustinB3403D

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

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

    • AdisharmaA

      AWK Command in Linux/Unix

      News
      • awk command linux unix • • Adisharma
      2
      1
      Votes
      2
      Posts
      535
      Views

      scottalanmillerS

      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.

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

    • R

      alternative way to copy stuff with read access

      IT Discussion
      • fedora linux unix redhat vmware • • rhya
      8
      0
      Votes
      8
      Posts
      904
      Views

      scottalanmillerS

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

      I am using fedora 22.

      Fedora 31 is current. F22 is insanely ancient.

    • scottalanmillerS

      Get User Count from Dovecot

      IT Discussion
      • dovecot email pop imap imap4 linux centos rhel unix fedora • • scottalanmiller
      1
      2
      Votes
      1
      Posts
      564
      Views

      No one has replied

    • scottalanmillerS

      UNIX: ZFS

      IT Discussion
      • unix linux solaris bsd freebsd sam linux administration file system storage zfs raid lvm logical volume managers software raid • • scottalanmiller
      2
      1
      Votes
      2
      Posts
      1.1k
      Views

      scottalanmillerS

      Placeholder

    • DustinB3403D

      OSX Find command

      IT Discussion
      • unix find cli • • DustinB3403
      2
      0
      Votes
      2
      Posts
      561
      Views

      scottalanmillerS

      You almost had it. It should be...

      find /Volumes -not -name something
    • scottalanmillerS

      Linux: Installing and Configuring an NFS Server

      IT Discussion
      • linux sam linux administration unix nfs fedora centos • • scottalanmiller
      10
      4
      Votes
      10
      Posts
      3.0k
      Views

      black3dynamiteB

      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

    • scottalanmillerS

      Network File System: NFS

      IT Discussion
      • nfs storage file system network file system linux unix sun ietf • • scottalanmiller
      1
      1
      Votes
      1
      Posts
      773
      Views

      No one has replied

    • DustinB3403D

      OSX Power Saving Settings

      IT Discussion
      • osx apple unix cli power management high sierra majove • • DustinB3403
      4
      1
      Votes
      4
      Posts
      776
      Views

      black3dynamiteB

      @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

    • DustinB3403D

      OSX Majove - Applications Quarantine - Fix

      IT Discussion
      • apple osx unix cli trust applications • • DustinB3403
      2
      4
      Votes
      2
      Posts
      623
      Views

      DustinB3403D

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

    • DustinB3403D

      Solved lpadmin - remove printer with a space in the name

      IT Discussion
      • unix osx apple lpadmin printers administration ard • • DustinB3403
      4
      0
      Votes
      4
      Posts
      1.2k
      Views

      DustinB3403D

      @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

    • DustinB3403D

      OSX Unix Using Brew to install software remotely

      IT Discussion
      • brew osx apple apple remote desktop unix • • DustinB3403
      20
      0
      Votes
      20
      Posts
      1.6k
      Views

      DustinB3403D

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

    • 1
    • 2
    • 3
    • 4
    • 5
    • 8
    • 9
    • 1 / 9