Recent Questions - Unix & Linux Stack Exchange |
- Change LUKS2 password with TPM2 as key
- during installation of pop os 21.04 when i choose clean install and custom, my drive isn't there what should i do?
- Why linux does not respond to ICMP Request from VxLAN?
- grub2 and duplicated drives issue
- How to extract few tabs from a xml file using zgrep or sed
- Obtaining balloon memory statistics within a Linux vm (kvm)?
- How do I recursively run "chgrp" without changing the group if it matches a specific group?
- Redirect an application's sound to a VLC stream in Linux
- Group and count file names following a pattern
- rsync failed to set permissions for a local copy ("Function not implemented")
- Can't wakeup Raspberry Pi if unused for more than a day
- how to find two different files with find command
- bash script help to check nfs mount exists [rsnapshot]
- Can I use ext4 home partition in btrfs file system?
- using "grep", to match a list of IDs in a file to match with another file
- Rsyslog - Change Default Log Directory(/var/log) for multiple clients
- Is there a way to send all shell script output to both the terminal and a logfile, *plus* any text entered by the user?
- Question on using sed, filtering data
- How to script n curl POSTs from n lines of a .txt file and save somwhere else only the lines that generated 200 OK as response
- when mounting an .img via fstab, it shows duplicate in file manager (Ubuntu Mate 20.04.3)?
- Are RC folders obsolete on Ubuntu?
- nftables rule: No such file or directory error
- Grab ID of OS from /etc/os-release
- `cryptsetup luksOpen <device> <name>` fails to set up the specified name mapping
- Unable to add printer: Unauthorized when adding a printer using the CUPS web interface
- how to print the file using awk
- Understanding Bash's Read-a-File Command Substitution
- How to disable the automatic mute after booting in gnome?
Change LUKS2 password with TPM2 as key Posted: 29 Sep 2021 10:10 AM PDT I accidentally changed the password of my LUKS2 partition to something I can't recover. But I have the partition decrypt with the TPM2 of my laptop. The problem is, that I cannot use the TPM2 as key for cryptsetup. Can someone point me in the right direction to change the password with the TPM as key? |
Posted: 29 Sep 2021 10:20 AM PDT i've tried pretty much everything i think? so now i don't know what to do maybe i did something wrong in process? since it's my first time using linux, i used flash to boot pop.os strong textsorry if my english is bad |
Why linux does not respond to ICMP Request from VxLAN? Posted: 29 Sep 2021 10:18 AM PDT I ran the following command for each of the two machines. When I run the ping command on host B and use the tcpdump command on host A, I successfully capture the ICMP Request. Why is the host not responding to requests. How can I fix it? I've been struggling with this problem for a day now. Thank you very much for your help! HostB -> HostA HostA -> HostB |
grub2 and duplicated drives issue Posted: 29 Sep 2021 09:28 AM PDT My machine is an UEFI enabled ubuntu 20.04, with three partitions: /dev/nvme0n1p1 boot (grub2+initrd+kernel) I'm in a situation, that from time to time I need to attach a secondary USB HDD, which is an older replica of my integrated main NVME drive and reboot the PC. The problem is that all partition names, their UUIDs and etc are identical on both HDDs and the UEFI BIOS upon booting the GRUB2 from the integrated main NVME HDD, will mark it as HD1 and the USB HDD is marked as HD0, thus initrd and kernel booting from the USB HDD, instead of the NVME HDD, which has the latest initrd and kernel. This is the row in my grub.cfg, which makes the issue
Do you know of a dynamic way to identify (search) the nvme0n1p1 and use it, instead of hd0,gpt1 which is static? device.map will not work, as it is a static file (hostdisk//dev/nvme0n1,gpt1) and reorderring occurs, when USB is inserted. My only guess is to disable the *hci.mod modules, which load the USB devices, but not sure if this is a good idea. Your help is very welcome |
How to extract few tabs from a xml file using zgrep or sed Posted: 29 Sep 2021 09:55 AM PDT I have a big size file like 5GB with For example I want to extract the tags that contains the name I was using Please your help, I'm noobie on this. Im using CentOS - RedHat Linux. Thanks |
Obtaining balloon memory statistics within a Linux vm (kvm)? Posted: 29 Sep 2021 09:05 AM PDT Does anyone know how to obtain balloon memory statistics within a vm? I've scoured google, stack overflow, twitter, and the like. I'm attempting to set up a monitor to pull the metric but I'm at a loss where the metric is located. I would assume there is a metric somewhere... |
How do I recursively run "chgrp" without changing the group if it matches a specific group? Posted: 29 Sep 2021 08:50 AM PDT I just copied all the files/subdirectories in my home directory to another user's home directory. Then I did a recursive The last thing I need to do is a recursive The issue is that there are a couple of subdirectories whose group is "docker". Inside these subdirectories, there are some files/directories whose group is my username, and some other files/directories whose group is "docker". How do I recursively run |
Redirect an application's sound to a VLC stream in Linux Posted: 29 Sep 2021 07:38 AM PDT I'd like to stream the sound in my computer (ideally of a specific app such as rhythmbox, firefox or spotify) through a VLC stream. Do you know how this can be achieved? I need this to create some sort of home-made radio where we could all listen to the same music at the same time when on the same network. VLC alone does not seem to help as it needs a file or an input device. Perhaps there is a way to pipe audio fluxes into VLC? Or to make it a virtual file that VLC could use (everything is a file)? My config: latest Ubuntu or Manjaro, both using pulseaudio. Thanks in advance! |
Group and count file names following a pattern Posted: 29 Sep 2021 08:43 AM PDT I have a large number of files in a folder with a specific naming system. It looks somewhat like this: I would like a command line, or a series of commands (can use temp files, I have write access), that would return something like: It could be done with a lot of Also, each group name is unique. There is an |
rsync failed to set permissions for a local copy ("Function not implemented") Posted: 29 Sep 2021 08:48 AM PDT There are lots of similar questions out there, but none seems to address my problem: every time, the culprit is a legitimate permission issue, or an incompatible filesystem, none of which makes any sense here. I'm transferring a file locally, on an ext4 filesystem, using rsync. A minimal example is: which returns the error: and the files have different permissions: I'm running rsync as user I'm running rsync 3.2.3 protocol version 31 on Debian Sid, kernel 5.10.0-6-amd64. Edit: well, I'll be damned. |
Can't wakeup Raspberry Pi if unused for more than a day Posted: 29 Sep 2021 07:07 AM PDT Folks at the Raspberry Pi board forwarded me over here. I'm using Raspberry Pi to run Onion Share and ProtonVPN on a CanaKit Raspberry Pi 4. I check it once a day. Moving the mouse wakes it up. But if I miss a day, moving the mouse does not wake it up. Likewise for the keyboard. It doesn't matter what USB ports they are plugged into. And trying to access via BlueTooth also doesn't help. So I have to unplug it and boot up again. Any idea how I can avoid having to unplug it and can just keep waking it up by moving the mouse? Thanks! |
how to find two different files with find command Posted: 29 Sep 2021 07:45 AM PDT I stucked at one point where my script should find two different files. One of them time stamp is like My question is that how can find these two files with |
bash script help to check nfs mount exists [rsnapshot] Posted: 29 Sep 2021 08:26 AM PDT I have two linux servers; server two is a backup to server one where server two is NFS mounted to server one. I use Problem is if the nfs Instead of cron'ing my one call to launch rsnapshot I would like to call a backup script that first checks on everything before calling rsnaphot to prevent that scenario. I do not think rsnapshot's right now I have this to work where/when my nfs bkup mount is good on server_one |
Can I use ext4 home partition in btrfs file system? Posted: 29 Sep 2021 07:43 AM PDT Right Now, I have a bit complex partition table: Now I want to install Fedora in a triple-boot system (I will shortly remove Ubuntu). I used the default BTRFS partition system, and I created a root partition and I want to share the same So, does BTRFS file system require all the partitions to be of btrfs type? |
using "grep", to match a list of IDs in a file to match with another file Posted: 29 Sep 2021 07:30 AM PDT I have been using various formats suggested here on the forum like this one:
I have tried shell loops, it is always the same one as well, whereas there should be many results in the output e.g.: Any ideas what I am doing wrong? |
Rsyslog - Change Default Log Directory(/var/log) for multiple clients Posted: 29 Sep 2021 08:22 AM PDT I have 2 Clients connected to my rsyslog server. I want to change the default log directory for each client. So client A writes to /var/log/ClientA and client B writes to /var/log/clientB. I am looking forward to your help, as i can't implement it that way. Regards |
Posted: 29 Sep 2021 07:02 AM PDT I want to send output of a shell script, including user-entered text, to the terminal and a logfile. I thought some combination of But I need to see (on both terminal and in the logfile) what the user enters in response to commands invoked within the shell script.
For example: Nothing was captured there. I expected to see I also tried combining Unfortunately, adding As you can see, it captured the output of the Is there a way to do it? I know the
Then there's all that "extra" information (e.g. color codes, backspaces) script captures that makes it hard to read the resulting logfile in an arbitrary text editor. I just want to see the "human-readable" characters in the logfile. And I don't want to see if the user corrected a spelling error. I just want to see that they had "Hello" on the screen when they finished editing and hit Enter. Although I suppose the extra information could be stripped out after capture. |
Question on using sed, filtering data Posted: 29 Sep 2021 09:37 AM PDT Here is a sample text file:
So far with the help, we have the below but does not work as expected. Any help would be much appreciated. |
Posted: 29 Sep 2021 10:12 AM PDT Given this cURL POST request I need to create a bash, python script or xargs syntax that executes the cURL command for every line inside the file I know that cURL accept file input using |
when mounting an .img via fstab, it shows duplicate in file manager (Ubuntu Mate 20.04.3)? Posted: 29 Sep 2021 09:14 AM PDT I have done these procedures to mount my .img file in Note: also be done with gparted with this method The problem: Mount But always show 2 units: vdisk (mount) and loop (not mount) (see image) if i try to click on this other drive showing unmounted i get the following message: Why doesn't it just show the fileimage.img image mounted in the vdisk folder? I would like you to help me fix the Update: if I run any of the following commands: The same thing that I describe in my post appears. My fstab (I have altered the UUID for security reasons): List: Important: But, if I remove the Workaround:
mount edit and:
Note: this method is not permanent
Summary:
About mount: When mounting the Update New: This appears to be a bug in Ubuntu Mate 20.04.3. In Ubuntu version 20.04.3 this problem is not present. testing file managers: affects:
does not affect:
this has been reported in Ubuntu Mate launchpad, but launchpad can take years to fix it. So if anyone knows the solution to this bug, thank you |
Are RC folders obsolete on Ubuntu? Posted: 29 Sep 2021 08:40 AM PDT |
nftables rule: No such file or directory error Posted: 29 Sep 2021 09:53 AM PDT I am trying to apply below nftables rule which I adopted from this guide: somehow this is ending up with:
Can anyone spot what exactly I might be missing in this rule? |
Grab ID of OS from /etc/os-release Posted: 29 Sep 2021 07:28 AM PDT When I How would I grab |
`cryptsetup luksOpen <device> <name>` fails to set up the specified name mapping Posted: 29 Sep 2021 09:07 AM PDT HardenedArray has a helpful archlinux-installation guide at Efficient Encrypted UEFI-Booting Arch Installation. However, I encountered difficulty early in the installation process -- specifically, at the point of opening my LUKS partition. The command
The following error message appears upon "Trying to read ... LUKS2 header at offset .... LUKS header read failed (-22). Command failed with code -1 (wrong or missing parameters)." Could anyone offer any hints at to the cause of this error? My attempts at online research to this point haven't been fruitful. Thanks much --- EDIT --- I've asked this question for help to achieve any of three goals: (1) to install arch-linux (in any manner) on a 6ish-year-old x86-64 Intel Core i5 2.50GHz ASUS; (2) more specifically, to install arch-linux securely with an encrypted partition; (3) to learn why, despite my expectations, I'm a newcomer to arch-linux, so although I'd prefer installing the OS with encryption, I'd settle for installing it in any way. I haven't had much luck following the installation instructions in the official arch wiki in the past, so upon seeing HardenedArray's clearly delineated installation guide, I thought I'd give it a go -- worst case scenario being that I might encounter a problem like the one described above, whereby I might learn something new. As for the issue, here are some more details: As per HardenedArray's guide: I
Then I do the following:
At this point, I attempt to initialize a LUKS partition and set up a mapping.
Are the steps I've listed above inaccurate in any way? Perhaps there were alternatives I should have taken instead or intervening actions that I missed? If not, is the command If so, do the details I've added above allow anyone to ascertain why the path /dev/sda3/tsundoku does not appear on my machine? And if not, is there any additional information that I could add to make the problem clearer? Thanks much. |
Unable to add printer: Unauthorized when adding a printer using the CUPS web interface Posted: 29 Sep 2021 08:06 AM PDT I have setup a CUPS server with the web interface. Sadly I'm unable to add a printer by doing the following steps:
At this point I get the message: I'm using the following Dockerfile to build and start the whole thing. I also provide a new user inside the image. What am I missing? |
how to print the file using awk Posted: 29 Sep 2021 09:14 AM PDT INPUT (tab delimited) OUTPUT (tab delimited) my solution is But seems not good. |
Understanding Bash's Read-a-File Command Substitution Posted: 29 Sep 2021 09:40 AM PDT I am trying to understand how exactly Bash treats the following line: According to the Bash man page, this is equivalent to: and I can follow the line of reasoning for this second line. Bash performs variable expansion on However, for the first line I mentioned above, I understand it as: Bash performs variable substitution on Can someone please explain to me how the contents of |
How to disable the automatic mute after booting in gnome? Posted: 29 Sep 2021 07:06 AM PDT Whenever I start up, gnome sets the volume to mute automatically. So how can I ask it to remember the volume last time I set before shutting down? |
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