Recent Questions - Unix & Linux Stack Exchange |
- Linux: an easy and elegant way to find all files with acl set?
- Getting Error 503 trying to connect with Grouper with user and pass via python
- xdotool requiring matching all options
- What virtual machine software to use on Linux in 2021 for machine learning?
- Why Does Linux Mint Not Connect to the Internet Through Ethernet Cable?
- Hard disk has no size and is unrecognizable by fdisk
- How to crosscompile a kernel for raspbian in an arch linux host?
- bash script to lazy tar to fifo as files arrive
- Generating default gpg.conf with default gnupg2 utils
- Which function is the last function when powering off?
- How to configure powerbroker ;pbrun and switch user in Linux
- How to change the output of ls -li by a shell script
- Cannot get FreePBX to route with dual NICs
- In triple boot how to find the swap area of kali and ubuntu individually
- How to get only memory peak usage with /usr/bin/time?
- None of the NVIDIA devices were initialized
- How can I exclude all keys with a specific value inside a JSON with jq?
- Regain sudo access after nuking secondary groups
- How to repair linux after failed to start file system
- Break down string into array in shell script
- In Linux, which filesystems support reflinks?
- termux grep fails to detect chinese character
- LVM - Renaming a Volume Group and ensuring system can boot?
- Stop systemd user services as root user
- Unable to access GitHub; Couldn't connect to server
- dh_install not finding files that clearly exist
- Cannot login into GNOME, kicking me back to login screen
- Background color mismatch in vim and tmux
- Boot to Windows installer from USB drive in GNU GRUB
- How do I generate SSHFP records?
Linux: an easy and elegant way to find all files with acl set? Posted: 18 Jun 2021 12:41 PM PDT I want to find all files with acl set. I know this dirty solution: for find all files with acl set in dir. /etc Someone know a more elegant solution? |
Getting Error 503 trying to connect with Grouper with user and pass via python Posted: 18 Jun 2021 12:23 PM PDT I have an apache proxy server setup with following in my .htaccess file I am using python to connect using the below code but I get a 503 error. Any pointers appreciated Was trying to translate to Basic Auth to Header auth using |
xdotool requiring matching all options Posted: 18 Jun 2021 12:37 PM PDT with xdotool I want to identify that dialog box that appears when you use a master password with Firefox. I tried this command: But, it gives an error: xdotool: Unknown command: --classname Run 'xdotool help' if you want a command list I´m not aware what could be wronge here, I have two options and both must match, thus I use --all. |
What virtual machine software to use on Linux in 2021 for machine learning? Posted: 18 Jun 2021 12:02 PM PDT I have not worked with virtual-machines or hypervisors or whatnot before-- this is all new to me. But I am responsible for setting up a powerful server so that every user can have root access. For security and stability, I want to silo each user into their own VM. This is important-- researchers want and need to be able to install and configure things. I don't want one user to accidentally mess up a configuration, or to install a shady docker container and hurt another user. It is also very important that each user has access to GPU resources, so they can do deep learning. My understanding is this is done by installing a "hypervisor" OS to manage multiple VMs, and using either GPU passthrough or GPU virtualization to share GPU resources. If my understanding is correct, then I would love to know how to do this. What hypervisor / VM software would you recommend (preferably self-hosted) that can provide this? Are containers (LXC/LXD/docker) possible to use here and maintain security? (Side note: This question has been asked before, in many ways, but they are all many years old. I haven't found a post here that answers what I need. There is one relevant question here, but the answer is lacking, because I want all my users to be able to have 'root' powers in their own VM: "https://unix.stackexchange.com/questions/420475/best-way-to-share-the-resources-of-a-powerful-workstation-across-multiple-users" There is another relevant question here, but it is 10 years old, and does not especially focus on GPU resources: "https://unix.stackexchange.com/questions/14423/choosing-virtual-machine-software-on-linux" ) |
Why Does Linux Mint Not Connect to the Internet Through Ethernet Cable? Posted: 18 Jun 2021 12:21 PM PDT For some reason my linux mint v20.1 has not been able to connect to the internet through the ethernet cable that is plugged into it. I know that the ethernet cable is not the problem because it works with other computers. This computer was also working with the ethernet cable a few days ago. The ethernet port is glowing orange, meaning that it is not an external problem because it is detecting it. This is the output of lspci (for broadcom): This is the output of lsmod (for tg3): And when I tell system log with this command to report that the card has been initialized there is no output: This is also has no output: But this does, meaning (I think) that the cable is called eth0: The output (I have to type this out so I am going to use some imaginary variables) x = [ 1.629770] y = 0000:02:00.0 but actually, it has been renamed to enp2s0. So I tried this: Output: This is a remade version of my original post: Why Won't Linux Mint Connect With Ethernet? I added a lot more information that will hopefully help with figuring out the issue. |
Hard disk has no size and is unrecognizable by fdisk Posted: 18 Jun 2021 11:43 AM PDT I am using Arch Linux (x86_64), and my 120GB external hard drive isn't working. If I use c/fdisk, c/gdisk or g/parted, they don't see /dev/sdb (my hard drive). Other tools like mkfs work, but spit an error. Output of mkfs.ext4: I have rebooted, updated using pacman, and tried using different OSes (Debian, Venom, Gobo, Windows) but none of them worked. I believe this is a drive problem. How do I fix this? |
How to crosscompile a kernel for raspbian in an arch linux host? Posted: 18 Jun 2021 10:44 AM PDT I have a raspberrypi 3B and want to compile and install a new kernel on it, but I only have an arch linux(x86_64) host to compile it on. Following the official documentation I get stuck trying to crosscompile the kernel, it seems I'm missing the correct crosscompiler. The problem is that I don't know what to install, the package suggested in the documentation Does it have another name in the arch repositories? I installed Also, once I do manage to cross compile it, will I have problems with the different versions of packages (e.g. glibc) in arch vs in raspbian? if so, is there an easy way to deal with this? Any help would be greatly appreciated |
bash script to lazy tar to fifo as files arrive Posted: 18 Jun 2021 10:38 AM PDT Here's the hypothetical scenario: I have an archival process where files are showing up and I append them to tar, and then the tar gets zipped. Something like this: what I really want to happen is for tar to be created and zipped as the cycle goes, so that there is no need to temporary file. Which is not possible to do when you are appending, since you need to open existing file and seek to end. Here's the "sketch" of what I really want: Is there some way to append more files to tar when it goes to stdout? |
Generating default gpg.conf with default gnupg2 utils Posted: 18 Jun 2021 10:58 AM PDT Is there a way to generate the default gpg.conf file? I can't find one in my fs with |
Which function is the last function when powering off? Posted: 18 Jun 2021 10:17 AM PDT I trace the code and got: https://elixir.bootlin.com/linux/latest/source/arch/x86/kernel/reboot.c#L682 but I didn't see any code to shut down the power supply or trigger which CPU register to power down? I got there from: https://elixir.bootlin.com/linux/latest/source/kernel/reboot.c#L287 |
How to configure powerbroker ;pbrun and switch user in Linux Posted: 18 Jun 2021 09:58 AM PDT I have a following requirement: whenever the user tries to switch "xyz" should use pbrun. something like this pbrun su - xyz and shouldn't ask password. How can I accomplish this, any help would be appreciated ? |
How to change the output of ls -li by a shell script Posted: 18 Jun 2021 10:01 AM PDT I want to achieve something which requires me to format the output of So using a shell script, which takes parameters as F: to show the filename, T: to show the time, D: to show the date or -o A or -o D for sorting the output in ascending and descending order. Eg: I don't know how to achieve this, would be really helpful if someone can suggest what commands would be required for this or some pseudo code. |
Cannot get FreePBX to route with dual NICs Posted: 18 Jun 2021 10:55 AM PDT I have a FreePBX server that needs to have a second real-world interface added. As in, both eth0 and eth1 have routable ip addresses. Setting up the second address was relatively simple as per a quick google search: https://www.thomas-krenn.com/en/wiki/Two_Default_Gateways_on_One_System
(where "ip.subnet.on.eth1" "ip.address.on.eth1" and "router.ip.for.eth1" are the addresses needed)
Which gave me some partial success: I could now route to the server's second ip address, such that it would immediately respond to normal requests (ie. icmp, sshd, apache, etc). But it is utterly failing to work with the udp services needed for Asterisk. Any client can connect fine to the "normal" ip address on eth0. But trying to connect to the eth1's ip, the client just times out. I even tried setting the server to accept tcp for sip, which then allowed me to log in; but it was ultimately unsuccessful, as the rtp (voice) traffic is also udp. Now, similar setups DO work, such as when the second eth1 device doesn't need to be globally routable, ie. for an internal LAN. So if the pbx has one real-world ip on eth0, and a private ip on eth1, then it's only using a single unified routing table and everything just works. I can definitively confirm that there is NO firewall blocking traffic to/from the sip server. In fact I've even got an explicit set of entries allowing ALL tcp and udp traffic to my sip client's subnet, bypassing all the fail2ban and other shenanigans. PS. if I haven't made myself pedantically clear, the end-goal is to have the Freepbx/asterisk functioning on BOTH interfaces eth0 & eth1, which both have fully-routeable real-world ip addresses. As it currently stands, only eth0 is functional |
In triple boot how to find the swap area of kali and ubuntu individually Posted: 18 Jun 2021 10:55 AM PDT I have Win10,kali,ubuntu as triple boot and now I have deleted the partition of kali, but I can't identify the swap area of kali. There are two swap areas one for kali and another for ubuntu as I deleted kali I would like to delete its swap area also. But I am not able to find which is the swap area of kali(because both the swap areas are identical). SO is there any way to find which swap area belongs to which so that I can delete kali's swap. |
How to get only memory peak usage with /usr/bin/time? Posted: 18 Jun 2021 12:49 PM PDT I am building a script with
Thanks |
None of the NVIDIA devices were initialized Posted: 18 Jun 2021 11:55 AM PDT Can anyone help me to initialize NVIDIA devices please: UBUNTU 20.04, kernel 5.8.0-55-generic NVIDIA-SMI 465.27 Driver Version: 465.27 CUDA Version: 11.3 20gb of RAM, 2gb Nvidia mx150, Intel Core i7-8550U. |
How can I exclude all keys with a specific value inside a JSON with jq? Posted: 18 Jun 2021 10:04 AM PDT Let's say I have a JSON like the following: I'd like to find a way of excluding all keys with the value I know I can exclude specific keys with their names using |
Regain sudo access after nuking secondary groups Posted: 18 Jun 2021 10:44 AM PDT While setting up docker on Ubuntu 20.04 I did |
How to repair linux after failed to start file system Posted: 18 Jun 2021 10:33 AM PDT I have problem with my linux. I always had small problem with my HHD but my PC always could works correctly but yesterday its stuck and I decided to reboot it. After rebooting I get this error. However, I can boot my Windows, which is on the same HDD as Linux. Please help me fix my computer. I would really appreciate your help. |
Break down string into array in shell script Posted: 18 Jun 2021 11:10 AM PDT I am trying to convert string for example I am new to shell scripting and from what I read, it doesn't have a separator I am stuck. Can someone help me? |
In Linux, which filesystems support reflinks? Posted: 18 Jun 2021 12:03 PM PDT
Are there any other filesystems that support it? |
termux grep fails to detect chinese character Posted: 18 Jun 2021 12:42 PM PDT Given the following file on an Android phone with a Termux installation:
On my Arch Linux system, by comparison, these commands all work as expected. For reference, in Termux, here are the relevant software versions: And on my Arch Linux laptop: I looked on Android Stack Exchange for answers, but didn't find anything. I tried Edit: The output of |
LVM - Renaming a Volume Group and ensuring system can boot? Posted: 18 Jun 2021 11:03 AM PDT I have a fresh install of CentOS 7, which will act as a KVM host. I don't like the default name given to the Volume Group and I'd like to change it. I read somewhere that renaming volume group that contains logical volume for / can cause cause system to not boot after reboot. Why is this by the way? I've seen some guides but I wanted to check here. What are the steps to make sure a system will survive reboot after changing volume group name? Thanks. |
Stop systemd user services as root user Posted: 18 Jun 2021 12:51 PM PDT I have a systemd As root I would like to stop that service for all users when we do maintenance. I haven't found a way in systemd man, not even via Conflict. Is there a way to stop user services as root? |
Unable to access GitHub; Couldn't connect to server Posted: 18 Jun 2021 12:00 PM PDT I've been trying to clone a git repository (several, actually) and I'm getting the following error: My internet connection is working correctly and I've had no issues with it. I can |
dh_install not finding files that clearly exist Posted: 18 Jun 2021 12:53 PM PDT Running Though I'm in the correct directory, and the files are clearly there: And here's my What am I doing wrong? This worked a day ago, and I changed nothing in this directory since then: Additional info: |
Cannot login into GNOME, kicking me back to login screen Posted: 18 Jun 2021 11:56 AM PDT I am not able to login into GNOME desktop, it happened yesterday after upgrade. In login screen, if I enter my password and press ENTER I am getting login screen again. System details:
Logs:
Few tips for you to help me:
Please ask if you need more info. |
Background color mismatch in vim and tmux Posted: 18 Jun 2021 12:29 PM PDT I'm having trouble getting the full range of colors to work in vim when I'm running through tmux. I belive that it's some sort of trouble with TERM variables or 256colors, but I've done everything I have been able to find online to get 256 colors working in vim, tmux, and iTerm, and nothing has fixed it. It's a small problem, but it seriously bugs me. Here's an example code file in vim just through iTerm: and here's the same file in vim through tmux and iTerm: Notice how the background colors seem slightly mismatched, only when code is written there. Why could this be? I have in my |
Boot to Windows installer from USB drive in GNU GRUB Posted: 18 Jun 2021 10:06 AM PDT When I installed Backtrack 5 R3, I chose to dual boot, it completely erased my BIOS and installed GNU Grub as the first thing that shows up when I boot up. The "Press escape for startup options" output still shows, but if I press escape, it says "BIOS is missing or corrupted". I would like to boot the Windows installer from my USB stick (testing out Windows 10), remove GNU GRUB, and flash back my BIOS while still being able to dual boot Backtrack 5 R3. |
How do I generate SSHFP records? Posted: 18 Jun 2021 12:44 PM PDT I need to setup SSHFP records in the DNS for my host. I have done some searching but I haven't found any good example.
|
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