Recent Questions - Unix & Linux Stack Exchange |
- torrc doesn't contain the "location-hidden services" section
- Handling -? as function option argument in bash [duplicate]
- How to i Auto run Script in linux when i boot my system
- how to kind of vlookup in awk?
- Subexpression in ed for multiple substitutions
- remove spaces in filenames in find output [duplicate]
- Is $? a numeric value?
- Few commands won't work without "exec bash"
- Python "ImportError: No module named mysql.connector" error
- Modify yaml file in bash without any external dependency
- Clients can't mount NFS after power failure, NFS doesn't start
- replace ./. with '-', 0/0 with value under REF, 1/1 with value under ALT and 0/1 with value under REF/ALT [closed]
- Reading empty string from CSV column last row in BASH
- How to create a sed script to replace quotes in a file?
- audit2allow behavior has changed
- Unable to get local issuer certificate (but my trusted CA-certificate store seems OK)
- How to expand code snippets in GNU nano?
- Replace TAGS in FileB with VALUE from FileA
- dwm doesn't load fontawesome
- OpenVPN3: Error calling StartServiceByName... Permission Denied... as root?
- “minimal BASH like line editing is supported”
- How to decrypt file that was symmetrically encrypted using GPG?
- What commands are run by ALT+F2 and "r"?
- kdump in CentOS 7
- mutt: thread sorted by last activity, but mails sorted chronologically
- How do I get an /HP Officejet Pro 6830 printer to work with Ubuntu?
- Checking how long a user has been logged in
- Terminal emulator for Android that supports viewing images?
- UUID Of A drive that won't show up in /dev/disk/by-uuid or blkid
torrc doesn't contain the "location-hidden services" section Posted: 30 Jul 2021 08:52 AM PDT I'm trying to create a part, instead, it contains only this: Does anyone know how to fix this? |
Handling -? as function option argument in bash [duplicate] Posted: 30 Jul 2021 08:40 AM PDT I am handling the passing bash option arguments using getopt as outlines below. Would like to include the option so it behaves equivalently to |
How to i Auto run Script in linux when i boot my system Posted: 30 Jul 2021 08:05 AM PDT I am using manjaro linux and i am using
to auto-start script when i boot my system and it works , but the problem is when my system goes to sleep or get locked after being idle for some time then i have to run the script again manually . why is it like that and how can i over come it |
how to kind of vlookup in awk? Posted: 30 Jul 2021 09:44 AM PDT I have an Now want to get ParentDesignation of those that are missing in 4th column. So condition should be: Read eachline, get ParentID that is column 3, match it in column1, then insert it into column4 in front of that child. so the I know when could do same task in excel with vlookup, but I kind of like to do in a scripted way. Condition: |
Subexpression in ed for multiple substitutions Posted: 30 Jul 2021 09:44 AM PDT Let's say I have a piece of text that says: Let's say that I wanted to write a regex to surround the names John, Sally and Jim with plus signs, as in, I created the following regex which successfully changes the 1st name to +John+: I would like to create one that replaces all three names at once, without the need to re-run the command. I tried a simple multiple substitution, such as: g/John/s//+&+/ But this only changed the first instance of each name. |
remove spaces in filenames in find output [duplicate] Posted: 30 Jul 2021 07:40 AM PDT I want to list the size of directories under a given root (using I tried to fix this by quoting the output through |
Posted: 30 Jul 2021 08:04 AM PDT Have seen a number of posts using Is or |
Few commands won't work without "exec bash" Posted: 30 Jul 2021 07:46 AM PDT I try these commands but I get an error
but after I type this I get all the commands like I don't have the alias within even though I add all the alias from example2 to How do I globalized. It was to connect ansible playbook installed in mac and try to connect mongodb and elastic database. |
Python "ImportError: No module named mysql.connector" error Posted: 30 Jul 2021 08:43 AM PDT This issue has been covered elsewhere but the solutions provided are not working for me. I have python 3.7 installed on my Debian 10 system. Used below to install mysql-connector: On executing python script with below: Seeing the below error: I have tried the pip3 search function to find the correct package name but this appears to no longer be supported. Looking at what has worked for others I have attempted the below: After which the error still persists. Also tried below which returns no installation candidate: Can anybody see the problem here? Edit: Tried below as per suggestion in comments:
Response: Same error on executing python script. |
Modify yaml file in bash without any external dependency Posted: 30 Jul 2021 09:12 AM PDT I've multiple configurations in YAML file and I need to change some paramaters using a Bash script. Is it possible? I want to avoid using any external program. My YAML Looks like I want it to behave like if I provide Is it possible to do it using only Bash, and if so, how? For now I am using a Python script but this adds an extra dependency of having |
Clients can't mount NFS after power failure, NFS doesn't start Posted: 30 Jul 2021 08:37 AM PDT I have a beowulf cluster (1 master, 2 workers) which needs an NFS in order to run the program I use. I recently refactored my cluster to be Debian 8.11 and struggled to set up the NFS as it's been a long time since I had to and had no documentation, but I got it working. All was fine and running well until the power went out in a storm last night and upon attempting to restart the NFS and connect the workers to it, the workers would stall after attempting to I tried all of on the master but none of that allowed the workers to mount the NFS. Note: While I have used Linux on and off for 5 years, I've not gone super in-depth with all of the bells and whistles despite taking a SysAdmin class 3 years ago and don't really know how to 'explore' my system and try to fix problems like this. |
Posted: 30 Jul 2021 08:21 AM PDT Desired output: 0/0 to be replaced by REF call in that row, 1/1 to be replaced by ALT call in that row, 0/1 to be replaced by REF/ALT call in that row. Example, if REF is A and ALT is T then 0/1 to be replaced by A/T. ./. to be replaced by - |
Reading empty string from CSV column last row in BASH Posted: 30 Jul 2021 08:39 AM PDT I'm using the following However, I noticed that if the empty string/space is in the last row, this method ignores it. For example, if the file.csv is the following: The result would be instad of What can I do to fix this issue? Thank you! Related post: Reading empty string from CSV file in BASH |
How to create a sed script to replace quotes in a file? Posted: 30 Jul 2021 08:41 AM PDT So I manually use the following two commands in succession on my data file, i.e. I trigger the second command after the first has finished updating the file: How can i write this in a .sh script and pass file name as argument to the sh call? EXPERIMENT-*.FILE comes everyday on my unix server. At any given point of time there can be only one Experiment file with a unique datetime value appended to its name. Thanks! |
audit2allow behavior has changed Posted: 30 Jul 2021 08:16 AM PDT I have a Red Hat server in which I was using the following command to scan the audit log and generate selinux policies:
All of a sudden now, the program outputs an error stating that it is expecting the -p flag: Obviously, I don't have a policy file, I am trying to generate one. Is there any reason why this command worked for the last 20 policies I created and loaded, and then suddenly now demands the -p flag? |
Unable to get local issuer certificate (but my trusted CA-certificate store seems OK) Posted: 30 Jul 2021 08:21 AM PDT This has kept me busy for a good number of hours. I have read a good deal other articles and Stackexchange-questions, and tried other things, but no positive result so far. Running Ubuntu20/Nginx/Openssl v1.1.1. Using wget, openssl s_client or curl on normal web resources, I get the message: "Verify return code: 20 (unable to get local issuer certificate)", or equivalent. A bit of background. The SSL-handshake used to work for these common web resources. But I had an application that required a self-signed certificate to be added to the trusted CA-certificate store. Worked on that for a good twenty hours, tried many things. In the end decided to 'start anew' and delete my whole trusted certificate store, by deleting everything in /etc/ssl/certs/ and /usr/(local/)share/ca-certificates/) and restoring backups of common CA-certs in these folders, and a restore backup of /etc/ca-certificates.conf. Then ran update-ca-certificates. Also: I downgraded OpenSSL from v1.1.1 to 1.0.2, and then upgraded it again from 1.0.2 to 1.1.1. Output below to demonstrate that it looks alright. As far as I see, my trusted cert-store seems fine: it contains the requested root-certificates in the chain. Notice in the above example there are two root-certificates: (1) C = US, O = Google Trust Services LLC, CN = GTS Root R1, and (2) C = BE, O = GlobalSign nv-sa, OU = Root CA, CN = GlobalSign Root CA. I am sure these two root-certificates are in my trusted CA-store. Here's a snippet of the output from a trick suggested by Marlon in NginX client cert authentication fails with "unable to get issuer certificate" So the root-certificates that the host in my example (google.com) uses are there in my trusted CA-store. Why am I still getting "Verification error: unable to get local issuer certificate"? Additionally, I'll add the output when I explicitly define the path to the trusted CA-cert store. The SSL-handshake succeeds! What am I overlooking? To conclude: I am likely overlooking something, some setting or parameter that may have gotten reset, or set wrongly during my hours of tinkering with the system. However, I just cannot see it, and the sources I've read and tried so far mostly mention making sure my trusted CA-cert store is complete, which I think it is. What am I overlooking? Where should I look, or what should I do to get a grip on this problem? |
How to expand code snippets in GNU nano? Posted: 30 Jul 2021 07:24 AM PDT In most text editors, it is possible have "code snippets" you can expand by typing a keyword and pressing the tabulation key. As an example, a snippet for LaTeX might look like However I found nothing in the nano man page nor on the web. Is there some hacky way to achieve that? One idea might be to have some bash function |
Replace TAGS in FileB with VALUE from FileA Posted: 30 Jul 2021 08:10 AM PDT I am looking for some assistance in perl, please. I have most of the code built, but I am finding one part particularly challenging. If FileA: and FileB: pseudo code: [magic happens here where I change the value in FileB to the actual value from FileA (see example below)] So, I have tried several things, researched the heck out of this using Uncle Google (and here). I know there is a simple way of doing this using a single command line ( ), but I don't want to do it that way, but instead I am trying to make it happen inside my perl program because I like making things harder on myself it seems :-p. So, for example, if FileA contains and FileB contains at the end of this program, I want FileB to contain I understand how to perform substitutions in the program, BUT, I am having difficulty getting it to update the file. Any hints would be welcomed; I don't even need a full solution, just something to point me in the right direction. This is not homework. |
Posted: 30 Jul 2021 08:12 AM PDT I want to set up icons for my tags in dwm. I have downloaded the But it still doesn't work. Some icons show up correctly, while others show up slightly or even completely different. I copied the unicode glyph from fontawesome.com and added it to my |
OpenVPN3: Error calling StartServiceByName... Permission Denied... as root? Posted: 30 Jul 2021 07:35 AM PDT I cannot figure out how it's possible that I'm getting "permission denied" as root. Something might be missing execute permission, but I cannot figure out from this error message what that might be. In any event, I followed the installation instructions exactly as written so I'm at a loss. Any suggestions on where to begin troubleshooting this? Version information: |
“minimal BASH like line editing is supported” Posted: 30 Jul 2021 08:15 AM PDT I'm getting this error "minimal BASH like line editing is supported" instead of grub menu when I try to install GNU-Linux(Kali OS) as a dual boot. Can anyone help me in a easy understandable way? *I had earlier elementary OS(GNU-Linux) as a dual boot. My main OS is Windows 10. Thanks |
How to decrypt file that was symmetrically encrypted using GPG? Posted: 30 Jul 2021 09:45 AM PDT I've created and symmetrically encrypted a file using GPG: But now I cannot figure out how to unencrypt it, and surprisingly, I cannot find an example online. Here's what I've tried: What am I doing wrong? |
What commands are run by ALT+F2 and "r"? Posted: 30 Jul 2021 07:52 AM PDT In the Cinnamon Desktop:
|
Posted: 30 Jul 2021 08:54 AM PDT I wanted to migrate to CentOS 7.5 from CentOS 6.9. during installation I saw an option |
mutt: thread sorted by last activity, but mails sorted chronologically Posted: 30 Jul 2021 09:10 AM PDT My ideal configuration would be:
I seem to only ever be able to get 2 out of these 3… The best I managed to get is with these settings: This gives me threaded conversations, with threads sorted by last activity, but this Is there any way to keep mails in chronological order, or does mutt not support? |
How do I get an /HP Officejet Pro 6830 printer to work with Ubuntu? Posted: 30 Jul 2021 09:04 AM PDT I just hooked-up an HP Officejet Pro 6830 All-in-One Series printer. The install went w/o flaws. However, when printing from my computer, after printing several lines, the printing is squished together for a few lines then it prints several more lines just fine and squishes it again. Doing a test print, from the printer, seems works fine. Any ideas of what is wrong? I'm running Ubuntu 12.04 LTS |
Checking how long a user has been logged in Posted: 30 Jul 2021 07:30 AM PDT Is it possible to check for how long a user has been logged in? Or when the user logged in on an Unix/Linux system? I logged in as another user on my system a while ago and I would like to now how long that user has been logged in. |
Terminal emulator for Android that supports viewing images? Posted: 30 Jul 2021 08:02 AM PDT I am planning on logging into my unix desktop via an Anroid tablet. Is there a terminal emulator that will allow me to view images, such as making plots in ipython, via X11 protocol? |
UUID Of A drive that won't show up in /dev/disk/by-uuid or blkid Posted: 30 Jul 2021 09:45 AM PDT I have a USB drive that is not receiving a UUID. When I look at the contents of the /dev/disk/by-uuid it doesn't exist there. The dev point that the partition lives in is on /dev/sdb. I am able to see sdb under /dev/disk/by-path. Also, when using blkid, I get zero output. I'm assuming that I got an error code that returned back. Is there a way to get a UUID for this partition? Result of The partition table and partition was created with gparted, so it was partitioned and ran the command mkfs.ext3. Output of fsck -n /dev/sdb1 It was formatted as an ext3 drive. Why is that showing up as ext2? |
You are subscribed to email updates from Recent Questions - Unix & Linux Stack Exchange. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment