Recent Questions - Unix & Linux Stack Exchange |
- unregistered encryption protocol 'application/pgp-encrypted'
- How to make GRUB on HD boot a bootable USBDrive or from a `.iso` on USBDrive?
- How do I return an element from a bash array using a partial string match?
- dd not making usb bootable
- Syntax highlighting combinations of strings and comments in nano
- can't mount hard drives, fdisk command says "Partition 1 does not start on physical sector boundary."
- Restoring /home/etc to /etc
- Kubelet fails to pull any image
- Install kernel 5.15.0 on Ubuntu 18.04
- can mergecap be modified to allow listing the source files?
- How do I access my files from PMBR disk
- Wipe entire windows OS from all disks to boot linux
- find/detect file name goups
- Fix disk and volume manager configurations for a cloned server
- System unresponsive after mounting /dev/sdc2 on /
- Kill all of my processes that were started within the past hour?
- Run script on login
- After updatimg to bullseye enter did not work on login screen
- Number of Open Files - soft nofile vs ULIMIT
- remove trailing spaces from text files ONLY when necessary
- baseDN on ldapsearch vs ldapadd
- Linux 4.19: apply devicetree overlay on live system
- cp setattrlist Permission denied on MacOS
- How can I use the output of a command without using the mouse?
- Join two files each with two columns, including non-matching lines
- Heartbeat not working. Port not opened
- Disable bridge module insert?
- Is there a more elegant way to unlink two tmux clients sharing a session from inside tmux?
unregistered encryption protocol 'application/pgp-encrypted' Posted: 05 Nov 2021 09:42 AM PDT I have an application that uses gmime3 (through the function It seems the the mimetype If I execute a PS: I installed gpg2 from source not from a package manager. Using a package manager is not an option for me. |
How to make GRUB on HD boot a bootable USBDrive or from a `.iso` on USBDrive? Posted: 05 Nov 2021 09:36 AM PDT I'm currently struggling with a project where I need to make it boot from a bootable USBDrive using GRUB. (alternatively I could make a NTFS USBDrive with the raw I already tried just guessing and creating a Keep in mind that I can't just change the boot sequence on the BIOS itself, even though BIOS recognizes the USBDrive. Am I missing something? Should GRUB already recognize it automatically? I'm totally open to new ideas. PS: Even though I'm not using Ubuntu, here they explain how to do something pretty similar to what I want. PS2: It's a UEFI system. |
How do I return an element from a bash array using a partial string match? Posted: 05 Nov 2021 10:08 AM PDT I have a bash array containing several elements, only one of which will be in the format nn.wr , where nn is a variable integer. eg However it could be anywhere in the array. How can I find it and return it? I was trying to use the partial match *.wr but can't quite get sed or awk to do it. There must be a way!! |
Posted: 05 Nov 2021 09:24 AM PDT I'm trying to create a centos 7 install usb but for some reason dd does not make the usb bootable. I've used the following: I'm trying to put it on sdf and it's not mounted. I'm using the command I'm really stumped. I've successfully created and booted from a usb made with this method on the same PC a lot of times. I don't get it. What am I doing wrong? |
Syntax highlighting combinations of strings and comments in nano Posted: 05 Nov 2021 09:24 AM PDT I was wondering if anyone could tell me if it possible to configure syntax highlighting in .nanorc so that in the following text ... ... the string "foo 'bar" is all highlighted one colour and the trailing comment ' bar "foo" is highlighted another. If I do this: Then I get this: And if I do it in the other order: Then I get this: |
Posted: 05 Nov 2021 09:20 AM PDT edit nvm i fixed it delete this post please |
Posted: 05 Nov 2021 09:10 AM PDT I need to copy backup files from However, experience is teaching me I am thinking of a command that will compare files of both directories and output if a difference in the file exists. From there I can determine which files from Not sure how to do this, it's been a while. I think I use the |
Kubelet fails to pull any image Posted: 05 Nov 2021 08:49 AM PDT I tried deploying this image from docker hub onto a pod in my lab. The pod gets stuck on "ContainerCreating" and when I run kubectl describe pod, I see the following in loop I tried running docker pull from the node: |
Install kernel 5.15.0 on Ubuntu 18.04 Posted: 05 Nov 2021 08:38 AM PDT I installed the newer 5.15.0 kernel onto my Linux Mint 19.3 (Ubuntu 18.04) by https://github.com/pimlie/ubuntu-mainline-kernel.sh . All worked fine, but not for kernel headers which gave me an installation error due to the expected LIBC version that must be >= 2.34, instead of Ubuntu 18.04 that is shipped with the 2.27. Is is possible to solve this issue without compromise the system stability? Thank you so much! |
can mergecap be modified to allow listing the source files? Posted: 05 Nov 2021 07:25 AM PDT I realize When we It would be very helpful if the resultant Maybe Agree/disagree? Should I log an enhancement request? |
How do I access my files from PMBR disk Posted: 05 Nov 2021 08:56 AM PDT |
Wipe entire windows OS from all disks to boot linux Posted: 05 Nov 2021 07:44 AM PDT I have been running Linux in a dual booting setup and on a separate machine for around 6 months now. I have found my brother's old computer and have been given permission to wipe it and put in Linux. I was wondering how I can completely erase all trace of Windows from my SSD so I can boot it with a USB. |
Posted: 05 Nov 2021 08:13 AM PDT On fs i have files like: eg: For some futher tasks i want to get the group names. I know the name structure not the group names. idea (but seems to be very expensiv! (on large listings):
find and awk maybe tr seems to be what im lookin for while finding a solution here EDIT: This gives a NOT UNIQUE list: |
Fix disk and volume manager configurations for a cloned server Posted: 05 Nov 2021 09:07 AM PDT I have cloned a physical server that has Enterprise Linux version 5.1.19.6 as the operating system with Clonezilla to a VMware virtual machine and the cloning completed successfully. However, I noticed two interesting messages during the cloning process.
I thought everything finished smoothly until I rebooted the virtual machine. When the machine starts I get this error and it doesn't reboot. I'm not new to Linux but I'm not an expert either. So, from this message I figured out that the problem is GRUB can't find VG where the system is located. So, I started to search but i didn't find any helpful information and also tried many fixes but they all failed. Then I used a live cd to enter the hard drive to see if i can fix it manually which I believe it is the first step to the right solution. Now I will explain the scenario that is happening. on the physical server (the source) the hard drive is partitioned as follows: The PV is already created and linked to c0d0p2. Under the PV there is a VG called VolGroup00 which contains 4 LVs (LogVol00 etc...). I will focus only on the first LV which contains the system. This LV mounted to the root directory "/" in the Grub conf file system also uses this file as root for kernel command. So, I figured out that the problem is related to the hard disk configuration because the new virtual machine has different specifications. So, I tried to change the grub configuration file and I'm sorry for taking so long to explain the problem but I should be precise. So, I have a couple of questions:
|
System unresponsive after mounting /dev/sdc2 on / Posted: 05 Nov 2021 08:50 AM PDT So, I tried to mount a hard disk I am not sure what has gone wrong, but I thought mounting a hard disk on I was so anxious and I am only allowed to return to office to unplug the hard disk to see whether I can remote into my Ubuntu workstation again after unplugging. Any insight into this issue is much appreciated! :) |
Kill all of my processes that were started within the past hour? Posted: 05 Nov 2021 08:07 AM PDT How do I kill all processes with my username that were started within (past hour, past day) etc? |
Posted: 05 Nov 2021 09:17 AM PDT I have a Minecraft server running on OS Ubuntu Server 20.04.3 with systemd. I need to create a user called shutdown which, on login (even from
The Any ideas to do it? |
After updatimg to bullseye enter did not work on login screen Posted: 05 Nov 2021 07:27 AM PDT Yesterday I tried to update buster to bullseye. All work as expected until I reboot my laptop.
Help me, please. |
Number of Open Files - soft nofile vs ULIMIT Posted: 05 Nov 2021 09:55 AM PDT vendor software configuration requires these settings on our Linux server: in file Because of security consideration is it possible to replace these configuration in the user bash_profile? can I use in Will it be the same? Thank you! |
remove trailing spaces from text files ONLY when necessary Posted: 05 Nov 2021 09:26 AM PDT I'm removing the trailing spaces using However, this command will rewrite all the files. Is there a convenient way to judge that if there are trailing spaces in a text file and skip those without trailing spaces? |
baseDN on ldapsearch vs ldapadd Posted: 05 Nov 2021 08:40 AM PDT I am learning to use OpenLDAP and I can not understand why you need to specify a base dn to search in the ldap tree but you do not need it in order to add stuff Can somebody explained me the difference? |
Linux 4.19: apply devicetree overlay on live system Posted: 05 Nov 2021 07:33 AM PDT Is it possible to apply a devictree overlay on a live system? We have an embedded system that has some optional hardware. We would like to load the devicetree information after Linux booted. Reqaon for this: our additional hardware uses a I2C bus to configure itself created by another component on an SPI bus. Unfortunate, the communication between our cpu and optional hardware is going over SPI. Since a devicetree is "worked off" in chronological order, we cannot "go back" to the SPI bus after initializing our I2C bus. I already tried to mount configfs, did not work and is not recommended in prouction environments. Thanks in advance |
cp setattrlist Permission denied on MacOS Posted: 05 Nov 2021 09:09 AM PDT I am a second "Administrator" user on a Mac OS. I am in the I have made sure everything in When trying to run But upon inspecting, the folder has the permissions I expected Does anyone know what I might be missing here? |
How can I use the output of a command without using the mouse? Posted: 05 Nov 2021 07:39 AM PDT Imagine you issued a Current workaround: Double click on fileB (selection is extended automatically) and press middle mouse button (paste on X). Works but uses the mouse. Possible solutions:
Solution for me: "Dynamic Abbrev Expansion". Now I have the name of this feature I was looking for. I will start a new question about how to get his "dabbrev-expand" in other software's: https://unix.stackexchange.com/questions/281298/list-of-sofwares-inspired-by-emacs-dabbrev-expand. Vision of the best solution for me: Something like the hint mode from vimperator or easymotion in Vim, to yank text from the output of the current terminal. |
Join two files each with two columns, including non-matching lines Posted: 05 Nov 2021 09:28 AM PDT I'm trying to match and merge two sets of sorted data, one set per file. Each file contains two columns: the key field and the associated value. The resulting output should contain three columns: the key field, the value (if any) from the first file, and the value (if any) from the second file. I need to include lines of data that are not matched. First file "john" Second file "jane" Desired result I thought initially that this was a trivial job for But the result of the I need to be able to see from which source file the unmatched value originates, ideally by having those values in the appropriate second or third column of the result file, but I cannot work out a simple way of achieving this without descending into Any suggestions, please? |
Heartbeat not working. Port not opened Posted: 05 Nov 2021 08:06 AM PDT I have been trying to place two virtual machine with heartbeat. osboxes and osboxes2. When I run Here is the tcpdump of such interface As you can see
It's worth noting that I guessing the problem resides in the |
Posted: 05 Nov 2021 10:00 AM PDT I have Fedora 20 setup with default kernel configuration, where bridge feature is enabled as a module ( I would like to prohibit loading of the I know it is possible to use the blacklist feature in |
Is there a more elegant way to unlink two tmux clients sharing a session from inside tmux? Posted: 05 Nov 2021 09:03 AM PDT This is almost a code-review question, but very *nixy and more about configuration than code. For years since I switched to By default when you attach two tmux clients to the same session, they are locked together. Switch panes in one and both switch in sync. This is different from screen where the default behavior was a shared set of panes but the client itself was independent. What I've wanted was a way to un-bind two tmux clients attached to the same session. This is easy enough to do if you are outside of tmux and launching a new client. Just start a new session with a reference to the parent one: However try do do this after you are in a client and want to unlink it from whatever other client is sharing that session and things get more complicated. I tried dozens of ways and never hit on one that worked well. The closest I got was using Today I finally got it to work. The result, however, is uglier that I would have liked. It requires a shell function to do most of the magic. In order to contain this to just the config file without involving external scripts (for dotfile portability) I'm using a hack. The config, if you crop off the first two columns, is actually executable as a shell script. With everything wrapped in functions, you can call just the part of the script you need from any keybinding. The shell script bits are comments in the config, while in shell script made the config bit is discarded with a here-doc. Todays solution came out something like this (my full Mind you this works. From a running tmux client, Ctrl+B Ctrl+C creates a new session with a number appended to the name of the current one, uses the current one as a target for the panes, and switches to it. I'm happy with this except for the nagging idea that I've just made something simple much more complex than it needs to be. Is there a simpler way to achieve this? |
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