Recent Questions - Unix & Linux Stack Exchange |
- How are ulimits determined for processes running in unpriviledged containers?
- set different wallpaper for each desktop in ubuntu?
- iostat returns disk utilization greater than 100% while profiling a Beaglebone Black board
- VLC Crashing when loading any video
- IP tables forwarding with initial delay
- Malformed hostname in an MX record, possible?
- PXE server on centOS 7 to network boot to a separate physical client machine with no virtualization
- disable S0 standby and enable S3 on ubuntu?
- can sed add a new line after matching a pattern while not editing line pattern is on?
- how to combine the two file by awk
- What option provide to CMake to demangle stackframe output?
- How do I get the version of a command inside a bash script
- Why does `ip route replace` add a duplicate new route?
- Exclude matched rows based on first column of two files
- Why does awk -F work for most letters, but not for the letter "t"?
- How to convert aggregated data to narrow 2 columns table by the first column of numbers
- Virt-Manager internal error: process exited while connecting to monitor
- Enable libvirt using sysvinit
- Makefile command substitution
- Failed to restart nfs-server.service: Transaction order is cyclic
- How to recursively remove all SELinux contexts?
- X11 forwarding from Linux cluster to windows 10 personal computer via SSH
- ssh through authentication requiring proxy
- Is -d64 required for java on linux?
- Recover overwritten CCTV footage from hard drive
- How can I assign the last element of an array to a another array?
- how to use libreoffice --headless export more than one png image from ppt or pptx
- Is there any way to resize scale application GUI window?
- Is it possible to use the meta-files in rtorrent?
How are ulimits determined for processes running in unpriviledged containers? Posted: 08 Jul 2022 12:08 PM PDT Recently, while I was building something in an unprivileged nspawn container (for CI), I repeatedly ran into errors related to limits on the number of open files. I tried:
What worked in the end was switching to a privileged container by setting So, my question is: HOW does usernamespacing interact with ulimits, and WHY did this fix my problem when the previous steps didn't? Bonus points for a good mental model that will help the next person who has to debug this kind of thing. |
set different wallpaper for each desktop in ubuntu? Posted: 08 Jul 2022 12:06 PM PDT In Ubuntu if you press Ctrl+Alt+Arrow Down, a new desktop would be created. However, it seems all desktops share the same wallpaper. Is it possible to set a different wallpaper for each desktop? |
iostat returns disk utilization greater than 100% while profiling a Beaglebone Black board Posted: 08 Jul 2022 11:31 AM PDT I need to profile the performance of software running on a BeagleBone Black (BBB). The BBB has an ARM Cortex-A8 up to 1GHz frequency, 512MB RAM, and 4GB eMMC onboard flash storage. You can find more information here: https://beagleboard.org/black The BBB runs Debian bullseye booted from a 14GB MicroSD: ProblemAs first trial, I'm running in parallel
I don't understand why
I've downloaded
I checked the source code in
Each second I cannot understand why What do you think? Thanks. |
VLC Crashing when loading any video Posted: 08 Jul 2022 10:57 AM PDT When trying to open any video in my Linux distro, be it an mp4 file or movie ISO, VLC would immediately crash. None of the current resources online helped my case. Does anyone have any fixes? |
IP tables forwarding with initial delay Posted: 08 Jul 2022 10:25 AM PDT I have a situation where I would like to forward traffic on a machine to another IP, but with an initial connection delay of x seconds. More specifically, I have a rule like I want that rule to take effect immediately, but I also want to delay actually sending traffic to 1.1.1.1 for x seconds, so clients would see a delay of up to x seconds in getting a response from 1.1.1.1, but only initially. Is there a way to achieve this with iptables (or any other unix networking tools)? |
Malformed hostname in an MX record, possible? Posted: 08 Jul 2022 11:41 AM PDT I'm wondering if it's possible to publish (and receive) a malformed hostname (e.g. a hostname starting with a digit or with a hyphen, etc.) in MX lookups? Does the DNS server usually validate MX records before accepting them? For example,
Even if it's not allowed, let's assume that a malformed hostname was published somehow. Can I assume that a "good" DNS server (e.g., Google DNS) will not forward such a malformed hostname in MX lookup? I'm implementing something relevant and need to know if I can "trust" MX lookups to return well-formatted hostnames all the time. |
PXE server on centOS 7 to network boot to a separate physical client machine with no virtualization Posted: 08 Jul 2022 09:20 AM PDT I am trying to setup a PXE server on my laptop on CentOS 7 to network boot to a separate physical client machine with no virtualization, following the tutorial on: https://www.linuxtechi.com/configure-pxe-installation-server-centos-7/#comment-35567 All of the configuration files and setup procedures are from this website. I also received some help from the user telcoM from a previous question I posted: "systemctl start dhcpd.service" command not working for PXE server setup virtual There are the files that were edited based on telcoM's suggestions. /etc/dhcp/dhcpd.conf Virsh net-edit default Terminal command For /etc/libvirt/qemu/networks With telcoM's advice and edits, I was able to get through the tutorial to: Step:7 Boot the clients with pxe boot option I connect the PXE server laptop to my separate physical client machine, I turn on the server laptop first to load it up. I manually turn on xinetd, dhcp, and vsftpd according to "Step:6 Start and enable xinetd, dhcp, vsftpd service." Then I turn on the separate client machine and I receive the following message when booting up: [This message repeats itself] What configuration files do I need to edit and what do I need to change/add/remove in those configuration files to make the PXE server laptop with separate physical client machine with no virtualization setup to actually work? |
disable S0 standby and enable S3 on ubuntu? Posted: 08 Jul 2022 09:06 AM PDT This article explains how to disable S0 and replace it by S3 on windows: https://www.notebookcheck.net/Useful-Life-Hack-How-to-Disable-Modern-Standby-Connected-Standby.453125.0.html What are the equivalent commands for Ubuntu? How to check what standby is currently used on Ubuntu and how to change it? |
can sed add a new line after matching a pattern while not editing line pattern is on? Posted: 08 Jul 2022 10:12 AM PDT I need to find a way to add a line to files after a pattern, but I don't want to edit the line the pattern is on. For example, my original file will look something like and I'd like to get it to something like The difficulty is i need to match on "host:" but the name after host will be different every time. I haven't found a way for sed to respect the rest of the line, and instead dumps the new lines immediately after finding "host:" leaving the hostname orphaned after the new line. |
how to combine the two file by awk Posted: 08 Jul 2022 09:07 AM PDT Here is my Here is my I want to get my final file And I try to and then but I want to get the |
What option provide to CMake to demangle stackframe output? Posted: 08 Jul 2022 09:33 AM PDT To print the stackframe this method is used. But it prints mostly executable name with addresses. The project itself uses |
How do I get the version of a command inside a bash script Posted: 08 Jul 2022 10:43 AM PDT So as the question suggests, I want to get the version of a command inside a bash script, instead of using the terminal. I know that all available commands are present as files inside the directory /usr/bin. But it does not give the versions and it gives some funny information when you use cat for one of the (command) files. for example - What is this and how do I get the version? I am using Ubuntu 20.04. I know its a stupid question to ask here but I wasn't able to find anything :/ Supposedly the final edit - the accepted answer works for me, I am using the function. I did also realise later that something like But, if you are using a variable to store the version then you need to be careful about the syntax, I was doing it the wrong way. Thanks to @Romeo Ninov for pointing out that I am really sorry for these silly mistakes. |
Why does `ip route replace` add a duplicate new route? Posted: 08 Jul 2022 09:00 AM PDT These are my I used However, this didn't replace the route, it added to it, now I've got, Is there anyway to change the metric on this line, Without adding a new route? |
Exclude matched rows based on first column of two files Posted: 08 Jul 2022 09:49 AM PDT I have two tab delimited text file. The larger main file 1 with multiple columns and the file 2, smaller file, that only share the first two columns for limited rows with file 2. I want a file 3 as an output that exclude the rows that match between first column of these two files and print all other columns in file 1 as well. I tried file 1: file 2: output (file 3): |
Why does awk -F work for most letters, but not for the letter "t"? Posted: 08 Jul 2022 11:50 AM PDT Why does |
How to convert aggregated data to narrow 2 columns table by the first column of numbers Posted: 08 Jul 2022 12:01 PM PDT I have a big data with rows like this: This data is in txt format And I want to create new file and convert this data into 2 columns like this: I will appreciate any help! |
Virt-Manager internal error: process exited while connecting to monitor Posted: 08 Jul 2022 11:46 AM PDT Arch Linux I created a qcow2 on the other drive using Virtual Manager. I'm trying to use another drive for my VM's, But When i try to create a new VM From an ISO i get:
I have tried the following: adding user=root and group=root to /etc/libvirt/qemu.conf, user=myuser group=kvm, made sure my user is part of the kvm and libvirt group, running "sudo virt-manager" also tried "chown qemu:qemu /run/media/myuser" and messing around with those permissions but still no change. |
Posted: 08 Jul 2022 11:38 AM PDT I am trying to install qemu and KVM on my MX-Linux 21, however my system is booted with sysvinit. As all the articles regarding installing and setting KVM use systemctl, I cannot find one to enable libvirt using sysvinit.
Is there any way to start and enable |
Posted: 08 Jul 2022 09:19 AM PDT My Makefile: When I delete What causes problem here and how can I solve? |
Failed to restart nfs-server.service: Transaction order is cyclic Posted: 08 Jul 2022 10:33 AM PDT NFS has been working for more than a year with the current configuration but has recently developed this issue: Ubuntu 20.04 Kernel 5.40.0-40 NFS nfs-kernel-server/focal-updates,focal-security,now 1:1.3.4-2.5ubuntu3.3 amd64 [installed] systemctl status : From journal /etc/fstab /etc/exports |
How to recursively remove all SELinux contexts? Posted: 08 Jul 2022 11:22 AM PDT I am trying to make my production environment equivalent to my staging environment. On production, SELinux contexts were applied. If I list the files in a directory, I see the dot at the end of the permission string, like... How can I recursively remove all contexts? I have disabled SELinux at /etc/selinux/config, but when I reboot, the contexts still are visible when I list the files in a directory. |
X11 forwarding from Linux cluster to windows 10 personal computer via SSH Posted: 08 Jul 2022 10:02 AM PDT Our cluster runs Linux, and I can successfully ssh login to it using my windows 10 PC. However, when I'm trying to use X11 forwarding I always get the error: I've tried everything: using Xterminal, PuTTY, Ubuntu (from the windows 10 store), MobaXterm - and nothing works. I've tried the export display command, and when I'm logging in I'm using -X (also tried -Y). I read online but couldn't find anything to work. Also, my colleague has a personal Macbook with the same user properties, and she managed to do X11 using XQuartz. Any ideas what can I try? |
ssh through authentication requiring proxy Posted: 08 Jul 2022 11:53 AM PDT At work we have of course a company's-proxy. I need to ssh to some machines out of the company's network. The proxy, though, requires authentication. Let's assume we have the following variables: When setting the env-variable http_proxy and https_proxy as follows, tools like wget work fine (on the remote server, there is also a web_server installed): But with ssh it does not work: After googl-ing a little, I found out, that ssh needs a "ProxyCommand". "nc" is not longer recommended here; "ssh -W" shall be used. But I couldn't find an example where authentication was needed. I tried so far: I guess I'm missing something somewhere, but couldn't find a good hint (neither in the manuals, nor on Google). I hope that some of you guys might help me out. |
Is -d64 required for java on linux? Posted: 08 Jul 2022 09:06 AM PDT We are generating scripts for running java on RHEL or an Amazon Linux ami. The scripts all now contain the
So it seems like Is it required? What would be the harm in removing it from our scripts? |
Recover overwritten CCTV footage from hard drive Posted: 08 Jul 2022 11:20 AM PDT I am trying to recover deleted footage from a DVR. I pulled the hdd(Toshiba DT01ABA100v) from the DVR to look at the data in the drive and run carving tools(foremost and scalpel). My problem is that I am unable to mount the hdd. The following are the outputs of some of the commands I tried Is there something I can use to find the file system and be able to mount the hdd? |
How can I assign the last element of an array to a another array? Posted: 08 Jul 2022 09:22 AM PDT Let say I have an array $Info whose elements are ; and I want to take its last element , split it with spaces and give to an another array $LastInfo. How can I do that ? I tried this; But as posted in here the code doesn't work. |
how to use libreoffice --headless export more than one png image from ppt or pptx Posted: 08 Jul 2022 12:05 PM PDT I use libreoffice export images, command like: $ libreoffice --headless --convert-to png ./ /tmp/example.ppt but this command only export one page, is first page image, how can export few image or specify page image? |
Is there any way to resize scale application GUI window? Posted: 08 Jul 2022 10:13 AM PDT Is there any way to run an application scaling its GUI window? (Well, I'm using MATE but hope for universal solution). For example, up scale small window of an old game running under wine on high-resolution display or shrink windows that doesn't fit low-resolution display and so on. I'm not looking for any way of changing running Xorg resolution. I'm looking for a way to scale specific program. I'm not looking for any type of VM solution. However there might be an X server displaying and scaling applications inside a window. Magnifying part of the screen to whole screen might be acceptable solution also. But screen magnifiers like kmag is not suitable since it makes duplicate of picture and do magnify its own windows too disabling be full-screen expanded and doesn't support mouse clicks on magnified area. P.S. Well, if there is no such way, is there a way to force application running full screen? |
Is it possible to use the meta-files in rtorrent? Posted: 08 Jul 2022 10:22 AM PDT I've used Is there a way to somehow use these meta-files to start |
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