Recent Questions - Unix & Linux Stack Exchange |
- Convert HEIC image files RECURSIVELY with bash script
- gnome is not completly removed in kali linux
- The same way to restore init for making boot process successfully in Ubuntu but not in Arch
- Unable to get local issuer certificate (but my trusted CA-certificate store seems OK)
- $1 retains full path of input /path/filename. How do I remove the path so I can redirect output? [duplicate]
- Server is slow, there's no workload, no apparent reason, only shutdown solves the problem
- What kind of information does a directory file contain?
- Fish - remove file before download
- Dynamically escape a variable
- Finding duplicates and their indices in an array in Bash
- How to expand code snippets in GNU nano?
- Replace TAGS in FileB with VALUE from FileA
- Does changing an export from "no_root_squash" to "root_squash" require a remount on the client side?
- get multiple column from a large file that conclude two thousand column
- How can I upgrade node.js if it is installed from source code?
- How to list the headers of a man page?
- Disabling core dump for an already running process
- Vim: run commands depending on file directory
- How to avoid sed outputting new line / carriage return?
- AWS libcrypto resolve messages seen when using a boto3 library, apparently after an update
- SQLAlchemy error when upgrading Apache Superset
- How to take annotated screenshots with keyboard only?
- Crop multiple images with variable height using convert
- How can I burn embedded subtitles to a file using ffmpeg?
- merging part of a media file with subtitles for a media file?
- Cannot type file paths on any Open File Dialogs?
- Groff long umlaut
- Linux does not recognize Fake-RAID 0
- How do I get xinputrc to work for login screen?
- How to install tar file (jhead) on Mac or Linux machine
Convert HEIC image files RECURSIVELY with bash script Posted: 28 Jul 2021 10:15 AM PDT I'm trying to convert all my HEIC and heic files to jpg (100% quality). They are in separate directories but all in under the main directory IMAGES. I want to convert all these images and when converted move the original HEIC files in the "HEIC_org" directory of the orginal directory. I tried making a working bash file but I cannot get it working recursively. Can anyone help me. THNX!! |
gnome is not completly removed in kali linux Posted: 28 Jul 2021 10:07 AM PDT Hello i installed gnome on Kali Linux, then I decide to remove it and use the XFCE4.so I try apt-get remove gnome-core, but the gnome is in the login menu and my system decide gnome file manager for inserting files and use gnome login panel When I turn my system on. How can I remove the gnome completely ? |
The same way to restore init for making boot process successfully in Ubuntu but not in Arch Posted: 28 Jul 2021 10:17 AM PDT I am learning Linux. For testing whether kernel will invoke init through boot process, I did: and reboot. As I expected, rebooted...My But, It doesn't work in (After removing /sbin/init in Arch, it showed ERROR: |
Unable to get local issuer certificate (but my trusted CA-certificate store seems OK) Posted: 28 Jul 2021 09:31 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? |
Posted: 28 Jul 2021 09:41 AM PDT Invocation. Code: Output: |
Server is slow, there's no workload, no apparent reason, only shutdown solves the problem Posted: 28 Jul 2021 09:11 AM PDT I manage a server that is now approximately 5 years old. It has Ubuntu Server installed. There had been a handful of times where suddenly it became super slow to the point it was basically unusable.
Because of the observation about the i/o and temperature, it was decided that these were hardware related issues. Indeed one time it turned out the air conditioning inside the server site was turned off. Also, we decided to replace the hard disk. We installed a SSD and installed a newer Ubuntu version. All was well, it seemed, this problem hadn't show up again. Until now. A few days ago all this happened again, but now even i/o and temperature seemed normal. Again, workload didn't show anything out of the ordinary. Stuff was simply taking an abnormal amount of time to execute. Again the only thing that could make this go back to normal was to poweroff, wait a few minutes and turn on again (simple reboot would restart and still be slow). What else would you check that is software related? What else would you check that is hardware related? Is there something Linux does on poweroff that it doesn't do on reboot or viceversa? |
What kind of information does a directory file contain? Posted: 28 Jul 2021 09:07 AM PDT I've heard everything in Linux, including directories, is a file. So I tried to access a directory file but when I tried to read it with So since I seem to be unable to find out myself I came here in search of answers. So... What kind of information do directory files contain? I assume that the answer includes some kind of links to the inodes of the files in that directory but what other kind of information does it contain? Also is there a way to access the file and possibly edit it? |
Fish - remove file before download Posted: 28 Jul 2021 08:57 AM PDT I run When I run it like this than the I have two questions:
|
Posted: 28 Jul 2021 09:59 AM PDT I'm writing a name-helping script to automatically set the Right now I do basically this (along with some extra stuff to really assert that the naming convention is followed): As you might see, the problem here is that the variable |
Finding duplicates and their indices in an array in Bash Posted: 28 Jul 2021 09:29 AM PDT I want to find the duplicates in an array and their indices using bash. In this case, "a" is a duplicate at index 0 and 3, and "c" is also a duplicate at index 2 and 4. Thank you! |
How to expand code snippets in GNU nano? Posted: 28 Jul 2021 08:29 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: 28 Jul 2021 09:17 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. |
Does changing an export from "no_root_squash" to "root_squash" require a remount on the client side? Posted: 28 Jul 2021 08:35 AM PDT Situation: a QNAP NAS is serving several directories already and I want to change the settings away from
I would expect it to be transparent to the client, however I can't find an answer on google, not even anything broaching the topic. Can anyone here tell me with certainty? |
get multiple column from a large file that conclude two thousand column Posted: 28 Jul 2021 10:05 AM PDT I want to get multiple, specific columns from a large file on a Linux system that has two thousand columns. How can I do this? The file, file1.gz, looks like: The columns I need to get in file2, looks like: |
How can I upgrade node.js if it is installed from source code? Posted: 28 Jul 2021 10:12 AM PDT I am currently using node v14.17.3 and I want to upgrade it to v16. I installed it from the source code. I believe this line will run only for the packages installed with the package manager. Using nvm causes issue that terminal and vs code terminal see different versions. I am thinking to uninstall and reinstall node from the source but building a package from source is taking too much time. |
How to list the headers of a man page? Posted: 28 Jul 2021 09:02 AM PDT I want to view a list of the headers in a man page without reading all of the man page. For example, in the bash man page ( This can be useful in case you want to search for a section by a different name than they provide ("syntax" instead of "grammar") or sometimes you don't even know what you're looking for. |
Disabling core dump for an already running process Posted: 28 Jul 2021 10:12 AM PDT We are dealing with a vendor's product, which has a nasty tendency to crash (with a massive core-dump) on shut down (upon receiving a We don't want to disable core-dumping for it completely, because, when crashes happen during normal runtime, cores are useful. Can we disable the core-dumping by a process right before killing it? Other than by writing our own core-handling program, that is... |
Vim: run commands depending on file directory Posted: 28 Jul 2021 08:40 AM PDT In my But all the To clarify, neither |
How to avoid sed outputting new line / carriage return? Posted: 28 Jul 2021 09:23 AM PDT I'm decomposing a single line multiple times, recomposing it after each step, but each command adds a new line to the output. Basically, these are the commands: But the original line results in three lines after sed, because each Instead of And To add a bit of context: I'm parsing HTTP POST requests, which comprise the request JSON body and I'm trying to use jq to uniformly order that JSON properties. |
AWS libcrypto resolve messages seen when using a boto3 library, apparently after an update Posted: 28 Jul 2021 09:45 AM PDT I'm using the I've started seeing these warning messages on stderr. I believe this happened after an auto update to OpenSSL, but that's just my best guess. Does anyone know what these messages are, if they're ignorable, and if they are how to suppress them? The onset of these messages correlates with a lot of random SSL failures. Both in Firefox and when using Additional info: I recently noticed that inside a docker container on my laptop my |
SQLAlchemy error when upgrading Apache Superset Posted: 28 Jul 2021 10:27 AM PDT I don't know if this is the right place to post this but I'm desperate. I've been following instructions on how to install Apache Superset based on this link: https://superset.apache.org/docs/installation/installing-superset-from-scratch I was able to complete the following tasks: i) install all required dependencies; ii) install and start python virtual environment. However, when running the command "superset db upgrade", I get the following error:
I have no idea on how to start debugging this. My system info is below:
any help is appreciated. |
How to take annotated screenshots with keyboard only? Posted: 28 Jul 2021 08:56 AM PDT Workflow:
Does something like that exist? |
Crop multiple images with variable height using convert Posted: 28 Jul 2021 08:46 AM PDT I have a list of images with fixed width but with variable height.
I would like to crop footer of the images by 380px from the bottom irrespective of the height of the image.
The real problem i am facing is that i can't every time specify what to keep after crop like this : So my question is : Is there a way to tell ImageMagick to keep unspecified area after crop and remove the specified area ? Or any other way to achieve the result? |
How can I burn embedded subtitles to a file using ffmpeg? Posted: 28 Jul 2021 09:50 AM PDT Most of the examples on the internet advice you to use an external file to burn subtitles into the video with |
merging part of a media file with subtitles for a media file? Posted: 28 Jul 2021 10:09 AM PDT I extracted part of a media file using the answer given at FFMpeg : Creating a video clip of approx. 10 seconds when video duration is unknown without audio- . In my case it is an .mkv file. The thing is the media file doesn't have subtitles embedded in it. I do have an external subtitle file. Now I want to mux the subtitle file to the video but only of a very small part. For e.g. let's say the video file is of 1 hour duration. The extracted video is of 2 minutes or 120 seconds. I know the position of the video as well as well as where it is located in the subtitle (srt) file. My question is how to embed/mux the subtitles which are relevant to only that part of the video file and let it remain as it is. I am guessing ffmpeg would be the answer to it, as it is for many things in manipulating media files. |
Cannot type file paths on any Open File Dialogs? Posted: 28 Jul 2021 09:09 AM PDT There is no way I can type/paste a file path when I use some Open File dialog: There is not right click option or anything. I use linux Mint XFCE 19.1: I had installed |
Posted: 28 Jul 2021 08:56 AM PDT I'm Hungarian and I want to use groff to write good-loking pdf files, the problem is even though I used: eventhough Is there a way I can enable these characters? |
Linux does not recognize Fake-RAID 0 Posted: 28 Jul 2021 10:06 AM PDT I am trying to set up Linux (preferably Linux Mint) with Dual Boot alongside my Windows 10 installation. Now the problem is, I'm using a Fake-RAID 0 setup, because I really dislike having partitions. I'm using an Asus X370 Pro Mainboard and an AMD Ryzen 1800X CPU. I've searched across the internet, and of course found many guides and stuff for dual booting a linux distro alongside windows, even some for a RAID setup. What they all had in common, though, was the assumption, that installing would work and let Linux detect my RAID array. Unfortunately, for me that is not the case. I received the following output instead: I have then tried several other guides (with some more or different mdadm setup stuff), tried to install Ubuntu instead of Mint (hoping, that it might have better compatibility with my array). Is there anything I'm missing? |
How do I get xinputrc to work for login screen? Posted: 28 Jul 2021 09:04 AM PDT I have the following lines in /etc/X11/xinit/xinputrc to tame my mouse sensitivity: These work great, the mouse behaves as I want. However, these commands only get run after a user logs in - on the login screen the mouse has the default sensitivities and is almost unusable. How do I get xinput commands to run that effect the login screen? Running LinuxMint 17.1, standard display manager (mdm). |
How to install tar file (jhead) on Mac or Linux machine Posted: 28 Jul 2021 10:15 AM PDT I'm new to Linux and tar balls and was wondering how to properly install them on a Mac or Linux machine. I would prefer to know how to install on a mac but I just need some help understanding them. I want to install jhead-2.97.tar.gz and I download the zipped source tar ball, yielding a folder containing a myriad of files. I know this is a silly question, but how do I properly install this file on my machine in the Terminal/LXTerminal?
|
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