Recent Questions - Unix & Linux Stack Exchange |
- Why am I getting connection refused with IP address even though it works with localhost and firewall is open?
- Settings window not visible in Gnome 3 with Wayland
- What is the use case difference between GRE and GRETAP?
- Reading from a Parallel Port Tape Drive using paraide
- Run a tmux new session with cron, then run a command
- Creating a tar.gz archive of multiple directories of different locations -- "tar: Cowardly refusing to create an empty archive"
- zsh function with fzf selection requires Enter
- Library Permission Error With Python3
- How to tell SELinux to allow a python script to do "everything"
- Use one of batteries in charging
- "apt install <name>.deb" not correctly installing Nvidia driver in the deb package
- How to list files with only name and size
- Rename files to order them using perl substitution
- Extending the available space in a mirrored ZFS pool with zpool add?
- Permissions appear correct, still can't write to directory
- Mounting Network Share on Debian for Plex
- Why k3s is still seeing swap on Debian Bullseye?
- Can I disable one XHCI device from being able to ACPI wakeup the machine?
- What is XHCI ACPI?
- Max number of devices this xHCI host supports is 32
- Fail to install tcpdump package in UBI8 (Red Hat Universal Base Image)
- Which users are necessary on Unix/Linux?
- How to use memmap with U-Boot?
- Linux - Hades Canyon Intel Nuc 8th Generation
- Firewalld: How to whitelist just two IP-addresses, not on the same subnet
- Fail2Ban fails to start on CentOS 7
- Which distributions have $HOME/.local/bin in $PATH?
- What did the sticky bit originally do when applied to files?
- How to change the Xorg gamma/brightness?
- Where should a local executable be placed?
Posted: 24 May 2022 11:49 AM PDT When I run When I access a service running on port But if I use the IP address of the box instead, it does not work. That is: And If I also try accessing from the browser, it is still connection refused. What could be going on here? The output of |
Settings window not visible in Gnome 3 with Wayland Posted: 24 May 2022 11:40 AM PDT I'm running Gnome 3 on Debian testing. So far two applications are affected: totem ("Videos") and Settings. When I try to open one or the other, the icon appears in the status bar below, but no window appears on the screen. Things I tried so far:
I finally found a workaround: to log out and log in again, using the "Gnome 3 Xorg" profile. I can reliably reproduce the problem: if I log in using Wayland, the Settings window does not appear. If I log in using Xorg, the window is there. I can keep using the workaround of course, but since I have a reproducible case, how would I go about further diagnosing this? |
What is the use case difference between GRE and GRETAP? Posted: 24 May 2022 11:22 AM PDT What is the difference use case between GRE nad GRETAP? I understand that GRETAP is layer 2"Ethernet" tunnel. But when to use GRE and when to use GRETAP? Can you give me specific example for each use case? Thanks. |
Reading from a Parallel Port Tape Drive using paraide Posted: 24 May 2022 10:42 AM PDT I have some old QIC-80/DC-2120 tapes in storage that I wanted to pull the data off of. Although the original Colorado 250MB drives can be found on eBay, I didn't have any machines with a floppy controller (needed for these drives), so I purchased an AIWA TD-P250 parallel port tape drive off eBay and purchased a PCI-E parallel port adapter In order to get the correct paraide kernel modules, I ended up using the liquorix kernel and using it with Debian Bullseye. I can see my PCI-E parallel port card being detected: I can Unfortunately, none of the protocols seem to work. For example, when I run The tape drive didn't have the original driver disk, and I can't seem to find a copy online (the filenames on the disk can sometimes indicate the correct protocol to use). I've opened up the unit, but I can't see anything indicating what the IDE->parallel port controller is Is there any way to get this tape drive working in Linux? |
Run a tmux new session with cron, then run a command Posted: 24 May 2022 10:50 AM PDT I have in my cron that auto starts a service inside a tmux if it detects that its not running. The rest of my bash script works, but if the tmux session doesn't exist, it throws an error. Which is why I added in "tmux new ENTER" below. But it still doesn't start tmux session. If I manually started the tmux session, the code works and it will execute the send-keys command. I'm trying to see why the tmux new session doesn't start on cron. Any ideas? |
Posted: 24 May 2022 11:59 AM PDT I'm trying to create an achive: ... which is supposed not to preserve the full path of the directories in it, hence Result Why? How to fix it? |
zsh function with fzf selection requires Enter Posted: 24 May 2022 12:04 PM PDT I wrote a simple zsh function which allows me to select from the My It works fine even some improvements have to be done. The only thing which is very annoying for me is that when I use the keybinding I have to type Enter twice to change to the directory. How can I modify the script to |
Library Permission Error With Python3 Posted: 24 May 2022 10:03 AM PDT I have RHEL 8 with Python3 installed. I am using an EC2 instance with a hardened RHEL image. When trying to run Python from the CLI or use any apps that use Python I get the following error: python3: error while loading shared libraries: libz.so.1: cannot open shared object file: Permission denied If I run the AWS CLI I get the same error just with aws: rather than python3. I have tried making sure that zlib is installed and that it is in my path. I can use python as root. This does not solve the problem as I cannot run the AWS CLI as root. I appreciate any help in figuring out how to Python as the default Amazon user rather than as root. Thanks! |
How to tell SELinux to allow a python script to do "everything" Posted: 24 May 2022 10:41 AM PDT I'm new to SELinux and it is giving me a headache. I have a python service that runs a python script on my home directory (my_script.py). I've been running the service, seeing what aspect of it SELinux is blocking, and adding a new SElinux module However, each time I add a new module it keeps blocking another aspect of my script (reading files, writing files, then reading a socket etc.) I believe I have like 10 modules now, and I'm having trouble keeping track of all of them. I'm also worried that down the road my script might do something that SELinux doesn't like, but didn't come up during testing. Is there a way to tell SELinux, please let my_script.py do whatever it wants (read, write, rename, etc.)? I am about to just disable SELinux, but really would rather not. Thanks! |
Use one of batteries in charging Posted: 24 May 2022 09:37 AM PDT My laptop has 2 batteries. Is there a way to prevent using battery X while charging? I mean that when I use laptop in charge, the OS uses battery Y not battery X. My batteries are Sony 45N1111 and LGC 45N1735. I use debian sid. |
"apt install <name>.deb" not correctly installing Nvidia driver in the deb package Posted: 24 May 2022 10:57 AM PDT EDIT solution: The problem was that I thought the package installs the driver but it was not the case (more about it in the accepted answer). When installing Nvidia driver I suggest going with .run file from archive here - if you need specific version, which was my case so I could not just autoinstall. The .deb package was not working for me. I have Debian 10 (Buster) and I'm trying to install Nvidia driver 460.91. I downloaded it and tried to install as root by executing: What I get is: https://i.imgur.com/FeErHh5.png and the driver is not installed. Why the Nvidia driver is not installed when it is claiming that the package is? Also the first run was extremely fast so it could not possibly install the driver. I tried among other things running but got same result. For some reason it seems that the package is installed however the driver is not. |
How to list files with only name and size Posted: 24 May 2022 09:16 AM PDT I would like to list the content of a directory, 1 line per entry, with only the files names and the files sizes.
I cannot find a command line argument that makes ls do what I want... is there one? If not, what would be a good, short and robust solution to make that kind of listing? |
Rename files to order them using perl substitution Posted: 24 May 2022 10:15 AM PDT I have a set of files like the following I want to add padding 0s to be able to order them and render them I am trying this command but it's not showing anything. How should I modify the command to see the new namings and then apply it? |
Extending the available space in a mirrored ZFS pool with zpool add? Posted: 24 May 2022 11:44 AM PDT I have a mirror pool with two devices ( And now I inserted two additional devices ( Is it done by just I'm a bit scared so I want to make sure. Sorry for the rookie question. Here are the details of my pool: sudo zfs list sudo zpool list sudo fdisk -l Thanks! |
Permissions appear correct, still can't write to directory Posted: 24 May 2022 11:23 AM PDT I have two user with these permissions (id) I have a folder with these permissions. I've already rebooted the system. When I log in as qbtuser, I can touch a file or make changes with no issue. Obviously logging with master also has no issues. But if I log in as sonarr, I get permission denied for the folder. But they have the same groups. What am I not understanding? ..... Edit for better clarification. Yes, the entire tree has r-x permissions for ugo. I even tried changing the whole tree to g+rwx and still no luck. It is a NFS share, version 4. The server has the same mappings for everything except uid 113. Maybe that's my problem? But I thought if the group was included it should work. I will explore this more. To clarify permission denied, I can cd into the directories fine, or run ls fine. But if I try to touch file.txt or mkdir temp I get mkdir: cannot create directory 'temp': Permission denied If I make files w/ master/qbtuser, I can not edit, echo foo >> file, rename, delete or anything. Still the same Permission denied msg. |
Mounting Network Share on Debian for Plex Posted: 24 May 2022 11:26 AM PDT I'm working through setting up a media server running Debian 1.2.0 on a VM with ESXi. I've installed Debian and also installed Plex. The media is on a Netgear ReadyNAS102 and needs to be accessed through the NAS. My Plex folder is currently located at NetgearNAS>Plex Now, while I can navigate in Debian to my Plex folder and see its contents, I cannot get Plex to see the same folder. After digging deeper into this, I understood that Plex cannot access network folders and the way around this is to mount the network folder within the local file system. I followed the advice here at the link below to the T but hasn't helped: https://askubuntu.com/questions/345087/how-do-i-add-a-network-drive-to-plex I opened up fstab and updated it to include a line as follows: Now when I go back to the Terminal and try sudo mount -a, I get this error: This is where I am stuck. I thought of trying something else when I noticed the path I got while hovering over my Plex folder in Files. The path was [smb://ManiaNAS.local/plex/]. So I entered this instead into fstab and got this error: I tried mounting with write permission as well but just got an error that said: My issues/questions:
In Terminal, I tried this: Trying with sudo I have ReadyNAS OS 6+ and according to Netgear (https://kb.netgear.com/30068/ReadyNAS-OS-6-SSH-access-support-and-configuration-guides) the root password is the same as the admin password. I also checked the ReadyNAS users page and there is only an admin user. Netgear suggested trying 'password' as the root password but that returned this message from sudo: Sorry, try again. This led me to believe that I am not entering an incorrect password. I googled the earlier error that I got mount error(13): Permission denied. Refer to the mount.cifs(8) manual page (e.g. man mount .cifs) and kernel log messages (dmesg) and came across this page link and tried it out. The site said to use this (modified for my use case) but it did not work: I then removed items that I didn't think had anything to do with the mount command and ended up at this which seemed to work! I see the mounted folder! Wondering 2 things: This has all been a huge learning exercise for me and I'm very appreciative of the guidance I've been receiving! I'm gonna keep this link for reference once I figure out mounting: Debian server, auto-mount Samba share |
Why k3s is still seeing swap on Debian Bullseye? Posted: 24 May 2022 10:23 AM PDT I've installed k3s on Debian Bullseye (on M1 Pro through qemu/UTM). k3s recommend to disable the swap. After reading the answers of the following questions: I've :
Now I have: But when I run What should I do in order to fully disable the swap in the eyes of k3s? |
Can I disable one XHCI device from being able to ACPI wakeup the machine? Posted: 24 May 2022 10:26 AM PDT Rather than disabling all XHCI ACPI wakeup calls. Is it possible to disable just wakeup calls from one device. Say my integrated, Syntek Integrated Camera, on bus 3 sub device 3. Can I disable just that device from waking up my machine? This is a follow up to "What is XHCI ACPI?" |
Posted: 24 May 2022 10:27 AM PDT I've been having a bear of a time getting this new Lenovo Thikpad X1 Carbon Gen 9 to suspend. I think these are the lines that indicate the cause of my problem After seeing this I wanted to disable XHCI ACPI, because I've seen this suggested on the forums. I did this, And then I disabled |
Max number of devices this xHCI host supports is 32 Posted: 24 May 2022 10:27 AM PDT I have a laptop E5470 and it only has 1 USB controller. My usecase is adding USB external drives. As of now, I am able to support more than 32 devices on a single controller. Now, when I added a new USB controller via (replacing my wifi card and putting in a m2 to mini PCI adapter, and then adding my own mini PCI adapter), it was assigned Bus 4. I get the following (I'm able to add some devices) Now, when I attempt to add more USB devices to Bus 4, I am getting the error. I don't understand.. My Bus 2 USB controller has more devices than my Bus 4.. Yet Bus 4 complains it cant add more devices? How come? I'm expecting Bus 4 to hold the same amount of devices as Bus 2, but it is erroring out How do I find out why Unix is not allowing me to add more devices to a controller? |
Fail to install tcpdump package in UBI8 (Red Hat Universal Base Image) Posted: 24 May 2022 09:51 AM PDT I am building a docker image based on UBI8(Red Hat Universal Base Image), Dockerfile looks like But it failed to install tcpdump package. How to fix it in order to install a tcpdump package in UBI? Thanks. |
Which users are necessary on Unix/Linux? Posted: 24 May 2022 10:19 AM PDT I want to know which users are necessary for a Unix/Linux system. I found a doc which told me that there were three necessary users: root, bin, and daemon. For the user bin and the user daemon, I still can't understand what they are used for. Here is how the doc described them:
|
How to use memmap with U-Boot? Posted: 24 May 2022 10:07 AM PDT I'll like to reserved the first 2 GB to the RAM because my hardware write in this position to the memory RAM and I need to the kernel don't touch this part to the memory. I read to use this option need launch the order memmap in the bootloader and the bootloader to I use is U-Boot because I'm dessing to Driver-Kernel in Yocto OS. I read this to example to use the memmap: And I don't know to use in this case, thankyou EDIT: New question I write this option in the U-Boot, using memmap=2G$0x00000000 and memmap=7fffffff$0x00000000, don't return exception, I guess I write this correctly but in cat / proc / iomem I do not see anything that tells me this memory is reserved for memory. Would you need to modify .dtb? |
Linux - Hades Canyon Intel Nuc 8th Generation Posted: 24 May 2022 11:02 AM PDT I have recently acquired a Hades Canyon (Intel Nuc8i7hvk) and I'm trying to put Linux on it. I have tried Ubuntu 18.04/Debian 9.4. On the Ubuntu 18.04 version I make it to the GRUB options page, and then I see a black screen hanging on the system. On Debian 9.4 I make it to the GRUB options page with the initial screen, and then I see a black screen hanging on the system once I select any option. In both cases I have set the nomodeset option, but I haven't been successful. I have not yet succeeded with the following options: Has anyone been successful in installing Linux on this machine? I was thinking about lack of GPU drivers bundled in the distro. Would it be possible to "attach" those AMDGPU drivers in the distro? I've read elsewhere that I need at least 4.15 Linux kernel which should be available on the Ubuntu 18.04 release. |
Firewalld: How to whitelist just two IP-addresses, not on the same subnet Posted: 24 May 2022 12:01 PM PDT I'm running firwalld on a VPS / webserver. The These are fake IP addresses and notice that they are intentionally not on the same subnet. I think I understand why the following doesn't work (it locks out one or the other IP). What do I need to modify for this to work (so it doesn't lock out one IP or the other or both)? Thank you! :) EDIT: I also tried a I think the logic might sound something like: EDIT2: Posting the output of |
Fail2Ban fails to start on CentOS 7 Posted: 24 May 2022 09:01 AM PDT I'm running CentOS 7, all fully updated, and am trying to get Fail2Ban to work, but I'm running into problems. Specifically, I'm trying to block brute force SSH attacks. I'm pretty sure I've set up everything right – enabled the sshd jail in But when I start Fail2Ban, here's what's in As you'll note, everything runs smoothly until
followed by
If I try to run those myself, the (Oh, SSH is on port 44 because I've found that it massively reduces drive-by attacks, so let's not get into the pros and cons of that! Also, Finally, |
Which distributions have $HOME/.local/bin in $PATH? Posted: 24 May 2022 11:53 AM PDT For example, in Ubuntu, there is always a
This is not exactly mentioned in the XDG directory specification but seems derived from it. What I wonder is if this is common enough that it could be usually assumed to exist in the most common end user distributions. Is it, for instance, in all of the Debian derivatives, or at least the Ubuntu ones? How about the Red Hat/Fedora/CentOS ecosystem? And so on with Arch, SUSE, and what people are using nowadays. To be extra clear, this is only for Out of curiosity, feel free to include BSDs, OS/X and others if you have the information. :) |
What did the sticky bit originally do when applied to files? Posted: 24 May 2022 10:32 AM PDT In various places one can see the "sticky bit" accused of nowadays being a complete misnomer, as its functionality nowadays is to affect the write permissions on directories and act as a restricted deletion flag. In an AskUbuntu answer the answerer wrote that "a sticky bit usually applies to directories". I observed that indeed modern systems seem in practice to never apply it to files, but that a long time ago the usual case was for it to apply to (executable program image) files rather than to directories. (When it comes to the paucity of modern usage on files, there's a related question at Is the sticky bit not used in current file systems .) This prompted the question:
Note the past tense. This is not How does the sticky bit work? now. It's how it used to work then. |
How to change the Xorg gamma/brightness? Posted: 24 May 2022 09:55 AM PDT I'm trying to play a game (Deus Ex) which I have to modify the brightness since it is very dark in my ambiance. The game has a "Brightness" setting, but lately it doesn't work. I tried to figure out how to change it and find out that My system is a desktop. Seemsly Each time I try to change it the following output fill the So, apparently my monitor gets redetected each time. |
Where should a local executable be placed? Posted: 24 May 2022 11:16 AM PDT I have an executable for the perforce version control client ( Does the File System Hierarchy have a convention that says that local executables/binaries need to be placed in I couldn't find such a convention mentioned on the Wikipedia article for the FHS. Also, if there indeed is a convention, would I have to explicitly include the path to 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