Recent Questions - Unix & Linux Stack Exchange |
- Can libvirt/qemu set the enoX number as if it were a physically numbered hardware port?
- Completing Git branch names “from the middle”
- hostapd: I want wpa3 only..but enable WEP!
- How to grep on a single column using a list of words
- i2c device node from device tree is not being probed
- Can a file that's being supplied by bind-mount support overwriting via `mv`?
- Plasma button or command to show desktop grid
- Convert unified diff hunk into text old or new
- How to get the latest usb.ids when update-usbids no longer exists?
- ssh publickey authentication failure: receive packet: type 51. sshd is not accepting publickey auth at all
- Do I have to mount new partitions in /mnt
- What is the difference between "find . -daystart -mtime" and "find . -mtime"?
- "Unable to install GRUB in /dev/sda" fatal error when reinstall ubuntu
- BASH recursive rename of js files to jsx
- Why does `echo 'hi' | tee > a b c` create multiple files, whereas `echo 'hi' > a b c` doesn't?
- Reverse engineer PCI drivers for device with none
- Why does a 2-socket server show PCIe locations but the 4-socket server does not (how can I find the PCIe locations on the 4-socket server)?
- Setting domains in resolvectl results in timeouts
- I want to download the latest 150 files from S3 Spaces
- Why is my udev rule not working?
- Trying to install dual-boot Parrot OS 3.5 on Sony Vaio UEFI
- CUPS stops printing right after a while
- Use awk results as parameters to another command
- How to save boot.log between reboots?
Can libvirt/qemu set the enoX number as if it were a physically numbered hardware port? Posted: 07 Jul 2022 05:53 PM PDT Recent Linux distributions use Predictable Network Interface Names (from udev) which states that "device names [like Question: Can the Libvirt XML be configured to specify the "BIOS-provided index number" so I can control the ethernet labeling inside the VM from libvirt for devices like | |||||||||
Completing Git branch names “from the middle” Posted: 07 Jul 2022 05:48 PM PDT At work we name our Git branches in a verbose way, like "feature/PROJ-123-frobnicate-blobs". In order to use the Zsh autocompletion with names like this, I end up typing the "feature/PROJ-" boilerplate over and over. I would love to be able to type
and have "123" replaced with that entire branch name. More generally, instead of autocompletion assuming that what I've typed is the beginning of the branch name, it should assume that I've merely given it a substring. How can I configure Zsh to complete Git branch names in this way? | |||||||||
hostapd: I want wpa3 only..but enable WEP! Posted: 07 Jul 2022 05:00 PM PDT I start hostapd for wpa3 only auth. But when I do the scan nmcli device wifi list it report...WEP! Why? How to disable wep? edit1: i add this auth_algs=1 but don't work, is still wep | |||||||||
How to grep on a single column using a list of words Posted: 07 Jul 2022 05:56 PM PDT I would like to extract some rows from a file based on their match on a single column with a list of words. In awk, I could use something like this: I know that I can use grep like this: Could you please tell how I could grep a list of words based on a single column of my file? Example Vector of words that I want based on column 2: Desired output: | |||||||||
i2c device node from device tree is not being probed Posted: 07 Jul 2022 04:38 PM PDT I am having trouble troubleshooting my problem where in my i2c pca9546 mux is not being probed by the corresponding driver, i2c-mux-pca954x.c. Here is my device tree node: I ran the command | |||||||||
Can a file that's being supplied by bind-mount support overwriting via `mv`? Posted: 07 Jul 2022 04:49 PM PDT Suppose I bind-mount file The initial file contents will be mirrored at both paths, as expected: And if I concatenate to either path, the new contents will be mirrored both ways, as expected: However, I can't overwrite Is there a way to get this to work so that the new contents are mirrored at The reason I want to do this has to do with the way my system's filesystem is set up. It's an embedded system, so most of the filesystem is mounted read-only. Certain 3rd-party services try to write to hard-coded files like This works when the process opens the file for writing and modifies it in-place. But, as described above, it doesn't work when the process does the equivalent of | |||||||||
Plasma button or command to show desktop grid Posted: 07 Jul 2022 04:29 PM PDT I find useful the desktop grid to drag & drop windows of applications between virtual desktops and I know that it can be displayed with a shortcut. But sometimes I do it more often and when I am using a mouse so I am curious whether we can do it by clicking a button (or by a command that I can put in a launcher) in the way I do for activities ... or the way we can do (I realized it in the end!... but I don't do it) - with the pager widget, which allows dragging windows between the small buttons on the panel (too small for this purpose, too large to have them on the panel all the time as far as I concerned): Also, I know an alternative is hot corners - but I still want a button (I always bump into hot corners by error- sorry that I'm so picky!) Plasma 4 had an extension/widget for that purpose but I cannot find one for Plasma 5. | |||||||||
Convert unified diff hunk into text old or new Posted: 07 Jul 2022 03:38 PM PDT I'd love to be able to extract raw text from diffs. F.ex. the hunk: must be converted to text A: and B: Quite strange I could not find this in standard tools, so I've always used some sed commands. Maybe I missed something and there is some standard way of doing this? Anyway, quite curious to know your shortest command-line implementation. | |||||||||
How to get the latest usb.ids when update-usbids no longer exists? Posted: 07 Jul 2022 04:45 PM PDT I had to move from Debian Jessie to Buster. The script that runs to create a small custom boot disc runs So the question is, how do I update the TIA!! | |||||||||
Posted: 07 Jul 2022 03:12 PM PDT I have read numerous solutions to this problem, but none seem to apply to what I'm seeing. Most focus on directory permissions, but those appear to be correct in this case. TL;DR: Two Centos7 servers with the same home directory; one's I have two centos7 servers, let's call them
As shown above, the permissions on the .ssh directory appears to be correct (and, regardless, is identical between both machines).
Contrast this to what I see going from I've enabled sshd log messages in But there are no additional useful messages in either Interestingly the ssh from and I see in pubkey is enabled: Any suggestions for what I'm missing? | |||||||||
Do I have to mount new partitions in /mnt Posted: 07 Jul 2022 05:10 PM PDT I mounted a new SSD drive under
or
But that got me thinking. Would I be able to just make a folder for it in my | |||||||||
What is the difference between "find . -daystart -mtime" and "find . -mtime"? Posted: 07 Jul 2022 02:45 PM PDT What is the difference between the following - and It produced the same output when I tested it. Is there any advantage of using | |||||||||
"Unable to install GRUB in /dev/sda" fatal error when reinstall ubuntu Posted: 07 Jul 2022 03:00 PM PDT I have recently tried to reinstall Ubuntu to my Lenovo X1 Carbon but I'm getting the following issues (all my data is backed up):
So following advice from here Cannot find EFI directory: issue with grub-install I mounted the efi system. Now when I use
Which is the same error I got before so it seems like I've gone round in circles. I've tried running boot-repair both from within TryUbuntu and via a live disk. These executed successfully but then when I restarted and tried to access Ubuntu I got the same errors as before. I know that each of these has their own forums but I feel like I'm going round in circles between them all. Can anyone piece together each of the errors to help me? Some background- The reason I'm reinstalling is that a few years ago my laptop crashed in the middle of an update (I hadn't realised the battery cable had been switch off.). My friend kindly spent an afternoon manually fixing parts to get it to work again. Since then there have been a few things I've not been able to get working properly (printer drivers and calendar syncing for example). Since these weren't a problem for my research I continued without them until the end of my PhD. I recently had some errors trying to use Firedrake. Since I've now finished my PhD it seemed like a safe time to back up all my data and reinstall Ubuntu. Hoping that the reinstall would rectify the problems from the previous crash. | |||||||||
BASH recursive rename of js files to jsx Posted: 07 Jul 2022 02:25 PM PDT On a mac I'm migrating a create react app to vite and have a lot of *.js files that need changing to *.jsx. I done this manual once in my life and this is enough for one eternity. I need a simple to understand script to do this preferably on a mac installation without needing to install anything. I'v found lots of existing examples but none I've tried have worked completely. edit --- for bonus points, this only happens for files that contain | |||||||||
Why does `echo 'hi' | tee > a b c` create multiple files, whereas `echo 'hi' > a b c` doesn't? Posted: 07 Jul 2022 02:24 PM PDT My env: zsh, macOS Command in concern:
Command 1 creates files named a, b and c with content 'hi'. Command 2 creates a file named a with content 'hi b c'. AFAIK, only the usage of Command 1 without I want some help to understand why adding | |||||||||
Reverse engineer PCI drivers for device with none Posted: 07 Jul 2022 03:35 PM PDT Is it possible to reverse engineer PCI drivers for a device which has none? The device in question was a PCI ESCON card that allowed you to connect a mainframe ESCON channel to a specialty unix computer. As far as I know, this device never had any drivers released publicly, but still uses a standard PCI bus. Would it be possible to put together drivers without having an existing set to reverse engineer? Any info would be appreciated. | |||||||||
Posted: 07 Jul 2022 03:27 PM PDT I have two servers:
When I run How can I discern which PCIe device is attached to which socket on the 4-socket server? When I run ... and when I run it on the 4-socket server I get the following: 2-socket 4-socket | |||||||||
Setting domains in resolvectl results in timeouts Posted: 07 Jul 2022 06:06 PM PDT For some reason I can't manage to set domains for resolvectl. Either I don't understand what it does at all or something is weird for me. Once I set a domain e.g. Why am I experiencing that? Also doesn't this feature actually work simply just like | |||||||||
I want to download the latest 150 files from S3 Spaces Posted: 07 Jul 2022 03:35 PM PDT I want to download the latest 150 files from S3 Spaces. I used this command but it does not do what I want; instead, it starts downloading all the files For example: If I command: INPUT OUTPUT And I want to download the only the last file (it is latest) that is: I can list the latest file but cannot download the latest file: I listed through: OUTPUT: 2020-05-01 05:23 399636 SO, please tell me the command to download this latest file only? | |||||||||
Why is my udev rule not working? Posted: 07 Jul 2022 05:08 PM PDT I need to automatically run my script UDEV RULE - MY SCRIPT - On the other hand, if i run script from bash Why doesn't my | |||||||||
Trying to install dual-boot Parrot OS 3.5 on Sony Vaio UEFI Posted: 07 Jul 2022 03:00 PM PDT I'm trying to install Parrot OS 3.5 on a Sony Vaio laptop, as a dual-boot alongside Windows 10. I have no trouble installing from my bootable USB, but Grub doesn't seem to be able to load it. I don't want to run it as a Live Disc, and I don't want to run it in VM, I want to be able to boot directly into it for use as a daily driver OS. | |||||||||
CUPS stops printing right after a while Posted: 07 Jul 2022 04:00 PM PDT I've converted an automatic printing system from Windows with Acrobat Reader to Ubuntu with CUPS. This took about 10 minutes using CUPS, but now I'm getting a strange issue with incomplete prints rolling out, or nothing being printed whatsoever after a while. CUPS reports seemingly arbitrary errors. Sometimes it doesn't even report an error, and most of the errors reported are "broken pipe" errors. Usually after adding a printer to CUPS it will print fine for a while. When I come back a few hours later and try the exact same thing (even with the same file), the file might not print at all or come out of the printer with elements missing. This might be an unrelated bug, but also after a while CUPS' web interface stops responding. All I can access after this happens is the HTTP version of the main page. A restart of CUPS fixes this. I'm running a fresh installation of CUPS, with only remote administration enabled. The issue persists even after doing a I've added the printers in many different ways (socket, ldp, ipp), with both generic PCL6 drivers and the printers' official KPDL drivers. Directly after adding a printer the prints will usually come out as expected. I'm printing using the most basic command possible: I'm running Ubuntu Server 16.04. The printers I've configured are a Kyocera ECOSYS FS-1370DN, and a Kyocera ECOSYS P2135dn. The printers do not seem to be the issue though, as a HP printer I've used exhibits the same issue. I've been trying to figure out what is going wrong for longer than I care to admit. And I'm starting to feel pretty stupid. Every time I think I've fixed it bad prints start rolling out soon after. Acrobat Reader/the Windows print spooler never has trouble printing, even while CUPS spits out garbage. Other things I've tried without success: - Converting to PostScript (.ps) using pdf2ps before printing - Converting to PDF using GhostScript (fixing possible PDF errors) before printing - Printing web-downloaded test PDFs known to have printed well before. This is the weird one that's defying all logic to me: Uploading the PDF files through ftp (the printers are capable of printing PDF) also only works sometimes. This completely circumvents CUPS, so it must be the printers right? But no, printing the same file through Acrobat Reader works fine. As it stands the only option I see is to convert the Ubuntu server to a VM with an expensive Windows Server VM running alongside it, only used for printing... There must be a solution to this issue. EDIT: I've set up CUPS on my Ubuntu Server 16.04 at home and configured a Canon MG8100 on it. The first few prints came out fine. The next morning, every job I added showed it completed, but actually nothing came out of the printer. This means it does not have anything to do with the printers. I added the MG8100 using LPD. CUPS error log states the below errors. Keep in mind that all these errors occur for the exact same file on different times, and that the file was printed successfully in the same manner before. When this is logged no print is made and CUPS keeps retrying the job until it is abandoned. Other times it fails like this: Which will result in a mangled print (Random parts being printed, and others being left out). | |||||||||
Use awk results as parameters to another command Posted: 07 Jul 2022 03:06 PM PDT I'm extracting rows from a set of text files with awk. The files look like this: I'm searching several directories of these with this command: awk is giving me the correct output: Now for each found row I must execute a script passing these two numbers as parameters, like this: What's the correct way to do that? I don't really care about script console output (it produces files). | |||||||||
How to save boot.log between reboots? Posted: 07 Jul 2022 02:36 PM PDT How do you save the |
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