Recent Questions - Unix & Linux Stack Exchange |
- Why is `root=PARTUUID=....` case sensitive? Why does it pause but still work if the wrong case is used?
- Bash: Pass user input to program from file
- some APT packages are not showing up in Debian Buster after FGLRX install. how do I fix this?
- to match the case insensitive pattern in if condition
- How are directory structures cached in Sway?
- Remove log files automatically after 30 days of creation
- how does the wayland compositor work, if clients "draw directly into the framebuffer"?
- Controlled restart of systemd managed service?
- FreeBSD printer jobs will not print queued jobs but lpc shows printer enabled
- Find files with Julian days in a specific range in their names
- I have several problems with DNS while upgrading from WSL1 to WSL2
- Debian sleeps / hibernates only during remote desktop session using remmina [duplicate]
- How to use SLAB memory allocation instead of SLUB allocation in Linux kernel?
- Mount Optane NVMe SSD for data recovery
- Split lines and substitute missing fields
- How to repeatedly unpack tar.gz files that are within the tar.gz itself
- Receiving traffic from 0.0.0.0
- Automated file backups/copies that are not symlinks
- How to freeze terminal in vim 8.2
- Extract servers' blocks and values from Nginx conf
- chrony / gpsd with refclock
- can I use multiple qdiscs per device?
- Break down string into array in shell script
- 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. How can I upgrade that 1 package, or at least know which is?
- Is there a free (libre) open source alternative to memtest86+ that works with UEFI?
- Install Onboard on-screen keyboard on Fedora 21
- Relay server for generic TCP traffic?
- Remove trailing new line from 'clipboard' to prevent execution on the terminal?
- How to check drive temperature on Linux?
Posted: 21 Jun 2021 10:20 AM PDT I've noticed recently that when attempting to boot the Linux kernel ( If I specify the exact same UUID in lower case, there is no hang: The upper case version of the UUID is being used, however (not e.g. overridden by something else): if I put in wrong a digit, then after the 30s hang the kernel complains that it cannot find the root file system, as expected. Can anyone help to explain this? It seems at least that it should not work at all, if the case matters, not that it should work after a 30s delay. |
Bash: Pass user input to program from file Posted: 21 Jun 2021 10:05 AM PDT i have a bash script that during it's execution wants some input form the user (let's say with the read function). Now I want to automate this and instead of user input, pass contents of a file to the program. Can someone tell me how to achieve this? Piping doesn't seem to work. |
some APT packages are not showing up in Debian Buster after FGLRX install. how do I fix this? Posted: 21 Jun 2021 10:02 AM PDT Hello fellow Debian Users, I recently purchased a Dell Optiplex 790 and put an ATI Saphire card in it. Needing drivers to fix screen discoloration upon display size change, I added the FGLRX proprietary driver. Now I needed to setup some applications like OBS studio and I can't seem to find them in Synaptic. I tried downloading the deb files manually to install but the dependencies conflict with core packages. I want to get synaptic back to having full main Debian repository packages. How do I do that? |
to match the case insensitive pattern in if condition Posted: 21 Jun 2021 10:20 AM PDT There could be below 2 cases in a file: case 1: case 2: I need to check if both I'm using below code , but it's failing at the time when Any help is most welcome! Thanks in advance! |
How are directory structures cached in Sway? Posted: 21 Jun 2021 09:22 AM PDT I am getting weird inconsistencies in Arch/Sway with regards to the file system. For example, earlier this morning I created a directory in my home. This afternoon I was using Google Chrome and wanted to save a PDF from the web and using the Save As... dialog from Chrome, I went to navigate to the directory I had created (via the command line). However the directory was not there. It was amost as though Chrome had cached the directory structure from yesterday or something. So, this raises the question, how exactly is the Chrome dialog getting its directory information and why is this not matching the real directory structure? Note that the problem seems to affect other Sway applications, not just Chrome. Also, note that most applications in Sway are not actually native Wayland, but use a GTK (?) compatibility layer. |
Remove log files automatically after 30 days of creation Posted: 21 Jun 2021 09:13 AM PDT I am new to linux and wondering if someone can help me. I have a RADIUS server that has multiple directories in /var/log/freeradius/radacct folder. in each directory after radacct there are log files that start with date detail- and then the date they were created(so for example detail-20210515) I am trying to remove these files after 30 days of creation. I know cronjob can do this but I am new to linux and just need a bit of help. |
how does the wayland compositor work, if clients "draw directly into the framebuffer"? Posted: 21 Jun 2021 08:47 AM PDT I try to understand the linux graphics stack, two questions came up
|
Controlled restart of systemd managed service? Posted: 21 Jun 2021 09:12 AM PDT Controlled restart of a systemd managed service? I have a service that I want to have restart by default if it fails, but not if a specific condition is encountered. Using Restart=ab-normal or Restart=always works but I want to stop halt the restart if a specific condition is encountered. This is use full of the service should always restart except when the applicable hardware related to the service has failed for example. Unfortunately, Restart=ab-normal or Restart=always does not seem to have any intelligence? Even if I write code logic to return a specific exit code, say 255, the Restart= parameter ignores such, and via code can't seem to find a way to control this in my code? I guess what or need is Restart=always unless exit code = 255, type of thing? Is there some way to implement this concept? |
FreeBSD printer jobs will not print queued jobs but lpc shows printer enabled Posted: 21 Jun 2021 08:27 AM PDT I solved this problem by restarting the The host involved runs FreeBSD-12.2 and CUPS. We have a virtual printer running on a FreeBSD host to service a legacy system. This is set up using socat and it pipes the input from the legacy system through a series of filters to a networked printer named np4172. The specific command is: Over the weekend the reports that are usually routed through this virtual printer did not print. After searching for various possible causes it was discovered that these reports were waiting in the np4172 spooler. There several things that I would like to discover:
|
Find files with Julian days in a specific range in their names Posted: 21 Jun 2021 10:13 AM PDT I have a list of files that contain a Julian calendar date in them. Examples: Example: Return all filenames that have the Julian date embedded in the name between 60 and 90 (Mar 2021) Any ideas? |
I have several problems with DNS while upgrading from WSL1 to WSL2 Posted: 21 Jun 2021 08:11 AM PDT I have a DNS issue after updating from WSL1 to WSL2 so i cant ping even google.com the only adress that i am able to reach is the loopback adress. Here is what i had tried :
But unfortunately without success i always got the following message :
|
Debian sleeps / hibernates only during remote desktop session using remmina [duplicate] Posted: 21 Jun 2021 08:07 AM PDT I am running Debian Buster. On my desktop settings/ Power, suspend and hibernate are deactivated. As expected the computer never sleeps/ hibernates. The problem: When working remotely, and the computer is idle then it enters into hibernation and it is unresponsive. The only way to get it back is to restart the computer locally. It looks 'sleep' and 'hibernate' are configured differently when the machine is used locally or remotely. Any idea what is going on? and how to solve it? thanks |
How to use SLAB memory allocation instead of SLUB allocation in Linux kernel? Posted: 21 Jun 2021 08:07 AM PDT As I understand it, both SLAB and SLUB are still integrated into the kernel in stable release 5.12. Is there a way to enable SLAB allocation to run on the system instead of SLUB allocation? Or is there no "toggle" to switch between them/it doesn't work like that? |
Mount Optane NVMe SSD for data recovery Posted: 21 Jun 2021 08:03 AM PDT Environment: I have an Intel Optane H10 NVMe SSD plugged into a PCI NVMe adapter card: This does seem to somewhat work as it is seeing the Windows partition: I understand the architecture of the Optane so I don't need that explained. I realize none of this should work at all. But since it is seeing the partitions I figured there might be a slight chance for at least reading the data. I don't care about actually using it. I need to at least read the data off as this is for data recovery for a customer. This is what I get when I try to manually mount the nvme0n1p3 partition: The partition seems "readable" with I'm guessing a fix could be to "fix" the file system but I need to make 100% that would work as I don't want to obliterate the data on it. Thank you in advance! |
Split lines and substitute missing fields Posted: 21 Jun 2021 10:19 AM PDT Does anyone know how can I "split" the lines bellow (it is just an example): The output I expect is: Thanks |
How to repeatedly unpack tar.gz files that are within the tar.gz itself Posted: 21 Jun 2021 08:19 AM PDT There is a file with the name The name is the file goes as flag_999.tar.gz and inside the archive, there is flag_998.tar.gz and inside that there is flag_997.tar.gz. So here the "flag_" is constant and then the number goes descending I reached flag_967.tar.gz manually to check the file names inside. I tried: no output output not readable maybe this could work I don't know because I don't know how to use it. |
Receiving traffic from 0.0.0.0 Posted: 21 Jun 2021 09:02 AM PDT While monitoring network traffic with I blocked (INPUT/OUTPUT/FORWARD) traffic from
|
Automated file backups/copies that are not symlinks Posted: 21 Jun 2021 09:15 AM PDT I have 2 directories:
If I wanted to manually copy the contents over, I would do:
But I am actually looking for something that is like a symlink but not actually a symlink. Meaning that I want the backup to happen in I know symlinks are not the correct solution because they just point to the original folder, but is there something similar to it that actually preserves a backup automatically? Also, I can't run a systemd service because this is a VM that I sparsely use. tl;dr I want the power of symlinks that store actual backup copies of files automatically |
How to freeze terminal in vim 8.2 Posted: 21 Jun 2021 09:00 AM PDT On openSUSE Tumbleweed 20210606 with kernel GNU/Linux 5.12.9-1-default I know that GNU screen flow control set Now I want to control other windows by Thanks. Edit: I use gnome-terminal and the X session is on
|
Extract servers' blocks and values from Nginx conf Posted: 21 Jun 2021 09:55 AM PDT How can we extract nginx server blocks using AWK? Input How can we match the wanted values and print in one line for each server{} block? for example I need to get the values for listen|root|server_name. the desired output is |
Posted: 21 Jun 2021 08:43 AM PDT I'm trying to configure a CentOS 8 box to sync the time from a Meinberg PCI GPS receiver. I've built and installed the driver[1], and I get valid time from
or
and the line updates every second. I believe this is mode-2 data, but I am having difficulty determining how to configure chrony / gpsd to read from Where is the best documentation for configuring chrony / gpsd ? [1] |
can I use multiple qdiscs per device? Posted: 21 Jun 2021 09:45 AM PDT Can I add multiple qdiscs to the same device with tc, or is it only possible to use on qdisc per device? Also, can a qdisc contain child qdiscs, or only child classes? i.e. is it possible to do |
Break down string into array in shell script Posted: 21 Jun 2021 08:03 AM PDT I am trying to convert string for example I am new to shell scripting and from what I read, it doesn't have a separator I am stuck. Can someone help me? |
Posted: 21 Jun 2021 10:24 AM PDT I have tried many different solutions found around this and other websites, such as and no information nor update of the package is displayed. I also tried and checked the log and no information about the package is displayed. Any ideas on how to identify this package? My guess at this point, is that it might have something to do with the I have Linux Mint with the latest distribution Ulyana / Focal. Thank you very much! |
Is there a free (libre) open source alternative to memtest86+ that works with UEFI? Posted: 21 Jun 2021 08:28 AM PDT In light of memtest86+ not working with UEFI, is there an open source alternative or something I can use from grub to test memory? |
Install Onboard on-screen keyboard on Fedora 21 Posted: 21 Jun 2021 10:07 AM PDT I am looking for guide to install Onboard keyboard on Fedora. https://launchpad.net/onboard Looks like there is not package for this distributive and I should compile it from source. How do I do it exactly? |
Relay server for generic TCP traffic? Posted: 21 Jun 2021 08:07 AM PDT Here's my situation:
Is there a simple way to set up my home server to relay incoming and outgoing TCP traffic over port 5222 to/from my computer at school? I know it's possible to make my computer at school connect to the one at home and send/receive everything through it, and I could write a program to do this, but I want to know if there's an easier way. It seems like there would already be a Unix utility to do this. |
Remove trailing new line from 'clipboard' to prevent execution on the terminal? Posted: 21 Jun 2021 09:08 AM PDT Is there some way to run whatever you copy to the 'clipboard' through some sort of filter? Ideally to strip out the trailing newline from something you copy, so that it doesn't auto-run in the terminal? This is what it looks like when I copy the test in question, and I sometimes forget this is a new line. |
How to check drive temperature on Linux? Posted: 21 Jun 2021 08:23 AM PDT I have used of So, is there a standard way to get the drive temperature on Linux (HDD or SSD)? If not, what (other) tools can I use to get this information? |
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