Recent Questions - Unix & Linux Stack Exchange |
- Fedora 34 external monitors not detected with USB-C dock
- Extract numbers using grep command
- Run command before suspend Debian 11
- Filter processes by state in htop
- Anydesk zsh error in kali linux [duplicate]
- Linux top command
- Ubuntu 20 with RAID 1 running Zabbix stuck on call trace error after forced shutdown
- / gets remounted read-only, can't find original cause in dmesg because systemd spams it with "read-only" filesystem errors afterwards
- How do I change "root" to another partition for Debian 11 Live LXDE image for bootable USB?
- source command is not working inside a shell script
- Using Kate text editor, how to compare two files and find differences
- Remove the last rows with no data but just commas from a CSV file through shell script
- Running jobs on HPC cluster using SLURM
- How do I get sed to delete the second block of lines in a file?
- Shift+Insert on terminal copies from clipboard, not primary
- ls -a shows no folder on Desktop but in GUI, i can see three folders
- Unpack multiple files from .tar.gz to multiple different directories
- Exim4 segfault using AUTH LOGIN
- How to resolve libatomic missing error, or more generally, install nodejs
- "You may not install to this volume because it is a Mac in target disk mode" error when installing Catalina on a mac in TDM
- How to use my existing custom GTK theme (Arc) with gtk-window-decorator when using Compiz?
- libvirt: command to start up all guest virtual machines which have auto-start enabled
- How to find the pci slot of an usb controller in Linux?
- A stop job is running for Session c2 of user
- Linux Mint 14.1 with Cinnamon - Mouse Sensitivity not Working
- How to copy qemu raw images?
- GTK - Enable/set dark theme on a per-application basis
- What is the smallest possible Linux implementation? [closed]
Fedora 34 external monitors not detected with USB-C dock Posted: 24 Sep 2021 09:58 AM PDT I have a fairly fresh install of Fedora 34 that I use with a USB dock. The dock has been working great for data, power, audio, and usb for a month. I just added two monitors to the setup connected by DisplayPort and my laptop can't detect them. HP Spectre x360 15 w/ GeForce GTX 1650 Ti
I'm new to linux. Every solution I've found online involved updating to drivers, modes, or kernels that I seem to already be using. Any advice on a how to get the monitors detected would be greatly appreciated. |
Extract numbers using grep command Posted: 24 Sep 2021 09:35 AM PDT I'm trying to extract numbers 21,9,231,1112,17 from the following content of a file; I didn't find a suitable grep command for the above pattern. |
Run command before suspend Debian 11 Posted: 24 Sep 2021 09:02 AM PDT I need to run the sleep command to sleep for 2 seconds before my Debian 11 laptop is put to sleep, because there is an intermittent issue where the lockscreen does not appear before the system goes to sleep, but locks about a second after resume but still reveals the contents of the screen. I had this issue before and I modified some script and put the sleep command before an hdparm command was issued, and this solved the issue. My problem is I don't know where the script is located on Debian 11, can anyone point me in the right direction? |
Filter processes by state in htop Posted: 24 Sep 2021 08:54 AM PDT Is there a way to filter processes in |
Anydesk zsh error in kali linux [duplicate] Posted: 24 Sep 2021 08:31 AM PDT In my kali linux while trying to access anydesk it is showing following error |
Posted: 24 Sep 2021 08:03 AM PDT Using top, what are the interactive commands that let you sort the output by a) CPU usage? b) memory usage? c) time running? I've tried the following:
Is there any ways that are more interactive? Thanks. :) |
Ubuntu 20 with RAID 1 running Zabbix stuck on call trace error after forced shutdown Posted: 24 Sep 2021 07:50 AM PDT |
Posted: 24 Sep 2021 08:22 AM PDT During normal use, my Ubuntu laptop intermittently will encounter some I/O error and then remount To reiterate, I can't look through I also have limited ability to start new tools because the disk subsystem reports generic I/O errors at this point. Only whatever is cache resident is runnable. The only thing I can think of is turning Is there a simpler option? |
How do I change "root" to another partition for Debian 11 Live LXDE image for bootable USB? Posted: 24 Sep 2021 08:15 AM PDT I want to create a bootable Debian Live OS with overlay partition (i.e. save changes on it). But I want to create multiple partitions, not one. I want to install syslinux to one partition, Debian OS-live Image files to another partition, and finally overlay partition to other one. To achieve this, I read official Debian pages for help description of preparing USB for boot of Debian OS and syslinux documents. I create three partitions. They are (since my USB device is recognized as sdb):
I used syslinux commands and I managed to get boot menu and I could load vmlinuz-5.10.0-8-amd64 image since I copied it into the same folder with syslinux in sdb1(boot partition, i.e. /mnt/sdb1/syslinux/vmlinuz-5.10.0-8-amd64). But I could not load initrd.img file which is located in sdb2(second partition i.e. /mnt/sdb2/live/initrd.img-5.10.0-8-amd64) with this command in menu.cfg in syslinux folder in sdb1. What I did is here in menu.cfg file which is under /dev/sdb1/syslinux/ folder : Result is : The command root=/dev/sdb2 and initrd=/dev/sdb2/live/initrd.img-5.10.0-8-amd64 does not work, it gives ** No such file or directory ** error. Please help, why didn't it work? How can I make it work? |
source command is not working inside a shell script Posted: 24 Sep 2021 07:43 AM PDT I am literally new to the scripting language. I have to run Here is my I am executing the script from curl using Why the command isn't running inside the script? How am I supposed to make them run inside shell scripting? EDIT #1:I am using alias commands inside the Once the execution completed, I am unable to use the alias commands. But, when I manually run |
Using Kate text editor, how to compare two files and find differences Posted: 24 Sep 2021 08:39 AM PDT I am using Kate text editor, and I would like to compare two files, and find (highlight) their differences. Maybe there is a plugin to do that? I would be open to solutions other than using Kate, e.g. a shell script, but I would like to integrate that somehow with Kate. |
Remove the last rows with no data but just commas from a CSV file through shell script Posted: 24 Sep 2021 09:35 AM PDT I am generating a CSV file which ideally should have 1-row or 2-row data but it is coming like I have tried sed and awk commands to remove that empty row but it didn't work out (as this isn't a dynamic solution when we have odd number of commas) (when I try to put that into the file it's removing all the rows from the file. Maybe my inexperience with sed and awk commands is the issue). |
Running jobs on HPC cluster using SLURM Posted: 24 Sep 2021 08:08 AM PDT Suppose I have two Python scripts: How do I write a SLURM script to run these files on two different nodes simultaneously? Note that: |
How do I get sed to delete the second block of lines in a file? Posted: 24 Sep 2021 09:54 AM PDT I have hundreds of badly-written HTML files that have two HTML sections, like this: I want to delete the entire second HTML section using GNU sed 4.7 on Linux. I've tried things like: but that doesn't work. I'd like to do something like this but it's not syntactically correct: Help please. |
Shift+Insert on terminal copies from clipboard, not primary Posted: 24 Sep 2021 07:43 AM PDT Up until recently whenever I pressed Shift+Insert on my Linux terminal (whether Bash or Fish) it pasted my terminal selection ("primary"). Now all of a sudden it started pasting from my clipboard, the same as Ctrl+Shift+v. I checked with I'm using Ubuntu 18.04 with i3. Thanks! |
ls -a shows no folder on Desktop but in GUI, i can see three folders Posted: 24 Sep 2021 08:01 AM PDT I am on Desktop and here three folders are listed, Trash, File System and Home (in GUI . I opened terminal and typed |
Unpack multiple files from .tar.gz to multiple different directories Posted: 24 Sep 2021 08:03 AM PDT I have a Is it possible to unpack the single If I run tar I know that |
Exim4 segfault using AUTH LOGIN Posted: 24 Sep 2021 08:01 AM PDT My exim4 vis causing a segfault error on sending an email message whenever I use AUTH LOGIN authentication. However, sending the email using AUTH PLAIN works like a charm. Both auth methods connect to Dovecot authenticator. Exim4 info: Here is the segfault message: And here is the last lines of a strace output: Here is how I am reproducing the problem: On executing this script, I get the following output: Nonetheless, if I send the same message using AUTH PLAIN, it works: The output for the above command is this: As you can see, now the email server replies with the 250 code, whereas before it did not replied at all as it died. The thing is authentication is working in both cases, but something changes when the user authenticates himself using LOGIN method instead of PLAIN one. I would like to support both methods. Do you have any idea about what could be the cause of the segfault error after using AUTH LOGIN? UpdateI have been investigating a little bit more, and I have found that the cause of the problem is in the check_data ACL, particularly in the following snippet: Theoretically, that line should only add to the email a header with the authresults expansion item. However, on commenting it out, the segfault did not happen whereas it does if the warn directive is active. Warm regards, |
How to resolve libatomic missing error, or more generally, install nodejs Posted: 24 Sep 2021 08:44 AM PDT I'm trying to install node/npm (and ideally I'd like to do it with nvm) on my BananaPi, but when I run Trying to |
Posted: 24 Sep 2021 10:07 AM PDT Hello Unix/Linux community, looking for your help. I am running into an issue where I am trying to install Catalina 10.15.2 on a machine that has been wiped. The machine is in target disk mode and I am using the "Install macOS Catalina" app to image this mac. When I launch the app I see all of my mounted devices including the machine that is in TDM but when I select it as the disk where I want Catalina installed I get a message that states that: "You may not install to this volume because it is a Mac in target disk mode". Is it not possible to image a mac that is in TDM? BTW I have tried imaging the disk as APFS and Mac Os Extended (Journaled). Any help/guidance is appreciated. Thank you. |
How to use my existing custom GTK theme (Arc) with gtk-window-decorator when using Compiz? Posted: 24 Sep 2021 09:04 AM PDT I'm currently using Compiz 0.8 to get blur effects and transparency, in place of xfwm4. I had been using Emerald to provide window borders, but I was unhappy with the selection available there. I would prefer to use my GTK theme window borders (the ones I get when I run It turns out you can pass the command I'm running Arch Linux with XFCE. The Arch Linux wiki provided me with the same answer that a lot of other pages did - to use gsettings to change some entries. This didn't work, probably because (as the wiki page says, albeit without any elaboration) that Compiz-reloaded, the project that represents the continued maintenance of the Compiz 0.8 project, have switched to using Marco instead of Metacity. So that leaves me at a loss. The change was rather recent, and Compiz is pretty far past its prime, so I can't find much on how to deal with this issue with the recent changes. |
libvirt: command to start up all guest virtual machines which have auto-start enabled Posted: 24 Sep 2021 08:09 AM PDT I'm using Debian Jessie as a virtual machine host using libvirt/qemu/kvm. I've set some of the guest virtual machines to automatically start when the host OS boots up, this is working fine. For maintenance purposes, I'm running Once I've done my maintenance, I want to easily boot all the guests up again (without rebooting the host). Is there a single command that will start all the guest VMs up again? I'm interested in knowing about both:
Rebooting the host OS would achieve #1, but I don't want to reboot the host. I tried, |
How to find the pci slot of an usb controller in Linux? Posted: 24 Sep 2021 09:40 AM PDT I have a nearly common Linux machine here. So, it has a PCI (*-X, etc) bus, on that some USB controllers, and I have USB devices on these USB controllers. Similar to this: And, there is also an usb device tree, as this: So, I see my USB controllers on the PCI bus, and also my USB devices on the USB controllers. But I don't know, which USB controller number (on the USB bus) belongs to which PCI bus number! How to find that? |
A stop job is running for Session c2 of user Posted: 24 Sep 2021 10:00 AM PDT The following message appears almost every time I shutdown my computer: It waits for 1min30s then continues the shutdown process. I follow this systemd shutdown diagnosis guide and get the shutdown-log.txt (I can't paste directly the log here because it's very long). Unfortunately, I don't understand the log by myself. Could anyone help me to find out what makes my system doesn't shutdown properly? I run Arch Linux with kernel Addition 1: I observe that every time I logout, and then shutdown my computer from the login screen, it doesn't get the message Addition 2: It is always session c2 that causes shutdown hanging. So as @n.st suggest, I looked at Diagnosing Shutdown Problems again and stored Any ideas? Note: After I updated to kernel |
Linux Mint 14.1 with Cinnamon - Mouse Sensitivity not Working Posted: 24 Sep 2021 08:02 AM PDT 64-bit if that matters. My mouse sensitivity slider does nothing, but my acceleration slider works. I'd like acceleration off and sensitivity how I like it, but it refuses to work. I have tested the option on two computers, and both do not change the sensitivity. Any help? |
Posted: 24 Sep 2021 08:04 AM PDT I want to backup kvm virtual machines and copy machine's images another path or usb disk? How to copy " qemu raw images"? |
GTK - Enable/set dark theme on a per-application basis Posted: 24 Sep 2021 07:40 AM PDT Is there a way to set gtk-application-prefer-dark-theme for an application? This is normally set in the code by the application. Apps such as Eye of Gnome and Totem turn it on. I want to, as a user turn it on, on a per application bases. For gnome-terminal, I normally use a white text on black background color scheme, and having the dark window border would improve the overall look. I also want to turn it on for vlc. |
What is the smallest possible Linux implementation? [closed] Posted: 24 Sep 2021 08:48 AM PDT What are the bare minimum components for a Linux OS to be functional, and that I can use as a base to expand and improve as I learn Linux and my understanding and needs grow? |
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