Recent Questions - Unix & Linux Stack Exchange |
- Windows host can ping VM but VM cannot ping Windows
- journalctl --user -u myservice "No journal files were found", for sss user
- RHEL8 repo does not have python-sphinx package
- Trying to loop values into curl command from a file
- laptop second hdd in caddy does not show in bios but shows up after ubuntu boots
- How to get the PID of a program executed in a bash script with remote linux
- Ping on LL IPc4 works only few times
- How to run zgrep with multiple AND patterns?
- Strange behavior "find command" while using +mtime , +mmin options
- How to extract the first backup id from a shell output to a variable?
- Pipewire: autoconnect all audio sources to jack sink (instead of manually doing it with Helvum)
- X Fails to start. Fedora 35
- How to monitor systemd timers and path-invoked systemd processes
- How to copy shared library into initrd?
- SSH Forwarding between client and two servers
- awk print does not work in bash -c
- /usr/bin/startx : has anyone ever fullfilled the urgency ? How?
- Where is the official documentation for /etc/fstab?
- Delete three lines in specific step
- How to send systemd Start - Stop - Reload syslog messages to a file
- no public key on debian 11 unable to apt update
- Intel wireless interface not showing up debian 11
- Curl Hangs on Particular Website on Ubuntu 16.04 but not 18.04 Even with Updated Version
- LDAP server setup with GUI on CentOS7
- Hibernate not working on MacBook Pro with Debian
- List all binaries from $PATH
- Listing packages in Yum that depend on another installed package
Windows host can ping VM but VM cannot ping Windows Posted: 18 Mar 2022 07:35 AM PDT |
journalctl --user -u myservice "No journal files were found", for sss user Posted: 18 Mar 2022 07:33 AM PDT Problem: systemd user units journalctl output display "No journal files were found." This only happens for the one sss user I am testing with, all local users seem to work fine. Exact command and output: Troubleshooting: I already read these posts and tried troubleshooting found within each:
I have tried the following:
This problem appears to only happen for the user I am testing with which was built with sss. I am not able to remove or rebuild this user as I do not manage sss on this system. I do have root access to the box but do not feel comfortable restarting sssd service either. I am not sure how to start troubleshoot this issue either. I have not found much posts or documentation about sssd service problems with systemctl or journalctl. Why does the sss user's |
RHEL8 repo does not have python-sphinx package Posted: 18 Mar 2022 07:30 AM PDT Can't seem to find |
Trying to loop values into curl command from a file Posted: 18 Mar 2022 07:43 AM PDT I am not even sure if this is possible or not. I am trying to create a loop where i can curl with different values from a file. I get a response How do i put in the value from $i that i captured earlier into this --data-urlencode field? My id file is very simple, it contains a few numbers like below. 1234 23232 32323 any help is highly appreciated. Thanks. This is my id file. It is basically a list of numbers So my ultimate aim is to go in a loop where the first curl request will go --data-urlencode 'XXID=1761' second request will go --data-urlencode 'XXID=1762', third goes --data-urlencode 'XXID=1763' etc |
laptop second hdd in caddy does not show in bios but shows up after ubuntu boots Posted: 18 Mar 2022 07:02 AM PDT I want to dual boot ubuntu (primary ssd) with Fedora (caddy hdd). Couple of observations:
I saw posts on stackexchange and changed bios settings to disable secure boot. Changed boot to Legacy mode, boot priority is Legacy First, reset settings to default. None of these detected the hdd. Fedora installation was done on this same laptop. My laptop is Lenovo - ideapad 110 - 15ISK I want to know if the problem of not detecting caddy hdd is bios related or the caddy is faulty. Could the community assist me here? |
How to get the PID of a program executed in a bash script with remote linux Posted: 18 Mar 2022 07:02 AM PDT I'm on a Mac computer accessing by ssh a linux machine to run simulations. I'm currently running multiple commands in parallel (I put them in background with &), when they finish I extract the files of interest then delete all commands output and redo it. I wondered if it was possible to check using the PID if those tasks are finished in order to automatically extract the wanted files and launch one more time the exact same command. I'm posting a message here to know to get the PID of a command which is executed through a ssh -c, that is not done by me (as I'm in remote linux). I tried the solutions shown in how-to-get-pid-of-just-started-process in order to get the PID, but neither $! nor ssh -c nor jobs -p give me the correct PID. I'm wondering if it doesn't work because I'm on remote access (the command appearing in htop is a ssh -c ...) or I'm just doing things poorly. Here is my first bash script : When this one is finished I use : And then I loop 5 times those two. And I wanted to know if it's possible to loop automatically 5 times and not having me standing in front of my computer. If any of you have any idea, it would be great :) P.S: I hope it was clear, english is not my native language hihi |
Ping on LL IPc4 works only few times Posted: 18 Mar 2022 06:50 AM PDT I came across a problem that I don't comprehend. Would someone be so kind to help me understand? I have Linux embedded devices and PC on the same link. The embedded devices have avahi-daemon and avahi-autoip to get the LL IPv4 address and advertise by mDNS. They also have a global IP address on the same interface. Device #1: Device #2: The PC has a routable IP address in the same segment as the devices (but even if these are from different segments, it is doing the same). PC: I can ping the devices using their LL addresses between each other with no limits. But if I try to ping the device from PC, using the LL address, it normally passes 8-10 packets, until I start to get 'Destination Host Unreachable'. This applies for both devices and doesn't work until next reboot. Then it again gets another 8 packets. Ping device#1 from device#2 - no problem Ping device#2 from device#1 - no problem After each boot of the device, pinging from PC to device passes just 8-10 times. But for example HTTP requests are passing. I can access the web server on the device using the LL address anytime, even when ping cannot access the device. It also doesn't matter how long I wait after boot with the ping. It always passes 8-10 times. I can live with having just the HTTP access. But ping also used to work just fine yesterday. Today, suddenly (maybe an OS update came) it stopped working. Is there any explanation to why ping will not work, while http, requests do, so TCP/IP connection can be established? Thank you for any thoughts. |
How to run zgrep with multiple AND patterns? Posted: 18 Mar 2022 07:01 AM PDT I know how to do it with I'm using zgrep to match patterns inside a Possible to achieve? |
Strange behavior "find command" while using +mtime , +mmin options Posted: 18 Mar 2022 06:37 AM PDT I have one production server. On that I have 1 directory for particular object, which will keep piling up the files after it gathered from different network nodes. So it have the files in subdirectories from May-2021 . It generally creates hourly subdirectories for a day and pushed the files into those subdirectories. Subdirectory structure - I have used the following command but when I ran the command to check I found that they are sorted in unexpected way. As you can see above, ideally it should short 10-03 files then 11-03 ,but its doing exactly opposite. Another thing is it also listing the current day file(18-03). So can someone shade some light on it? Please note that directory size is 11G . And files generally be keep piling up in every minute ,so does it has any effect on this ? Distro - Red Hat Enterprise Linux Server release 7.6 (Maipo) |
How to extract the first backup id from a shell output to a variable? Posted: 18 Mar 2022 06:59 AM PDT I would like to get a variable named How to do this? I've managed to get the following to arrive at the correct line: but I'm not sure how to get the id out of it into a variable. Thanks! |
Pipewire: autoconnect all audio sources to jack sink (instead of manually doing it with Helvum) Posted: 18 Mar 2022 06:26 AM PDT I'm trying to play VR games on my Oculus Quest 2 via Air Link. This is done using a free source code software called ALVR. I was able to connect by headset to this software with no much problems at all, except the audio part. After some effort, I was able to make it run using a virtual sink created by ALVR with Pipewire. The problem is that this virtual sink is only created when the headset is placed on my head, and it is destroyed when I remove the headset from it. This causes that every time it is destroyed, all audio sources (Steam, Beat Saber, and so on) disconnects from this sink, so when I place again the headset I have to manually reconnect them using the program Helvum. I attached a screenshot of the Helvum program when the headset is connected (audio sink is alsa-jack.jackC.11829). As you can see, 'Beat Saber.exe' isn't connected automatically when the sink is created. |
Posted: 18 Mar 2022 06:23 AM PDT I have upgraded to fedora 35. When i run start x it fails. I am not sure where to start. Here is the log. I dont have a video card. Uses intel graphics. There is this line in log:
|
How to monitor systemd timers and path-invoked systemd processes Posted: 18 Mar 2022 06:19 AM PDT We used to use cron and switched to systemd timers for a number of scheduled tasks on our machines. With cron, the solution wasn't perfect, but when things broke, we sent emails to a mailing list and when it got bad enough, we had to do something to stop the bleeding. With systemd, everything just seems to fail silently. We've got a snmp based monitoring solution, but it has no built in support for monitoring systemd timers. What I'd like to know is, what solutions are there for an off-box Linux monitoring appliance to monitor the status of systemd timers? |
How to copy shared library into initrd? Posted: 18 Mar 2022 06:04 AM PDT My initrd cannot convert text file from UTF-16 to UTF-8 by "iconv" and it seems to be caused by there is no the folder "/main/lib/x86_64-linux-gnu/gconv/" and the file "/main/lib/x86_64-linux-gnu/gconv/UTF-16.so" in initrd. I only know copy_exec in mkinitramfs for copying binary, but how to copy shared library(.so) into initrd? |
SSH Forwarding between client and two servers Posted: 18 Mar 2022 06:15 AM PDT I'm trying to figure out how to set up a shh tunnel between client and two servers. I need client to connect to ServerB via ServerA. These are the facts:
What would be the ssh command(s) to set it up exactly? |
awk print does not work in bash -c Posted: 18 Mar 2022 06:43 AM PDT I noticed that this works fine (will print only the PID of But this effectively ignores the This is an Ubuntu 18.04 and Bash version 4.4.20. What is spacial about |
/usr/bin/startx : has anyone ever fullfilled the urgency ? How? Posted: 18 Mar 2022 06:43 AM PDT I, as I can believe anyone around, have been firing /usr/bin/startx for decades experiencing nothing but 100% satisfaction for the job it serves. If it works… don't fix it ! The author of the script is however explicit :
I am left just curious :
Nota : I see a number of requests to close this question for the reason it would trigger opinion based answers. Just lots of things are opened to changes in that script, from forcing client / server arguments, honoring / ignoring users .*rc to even incidentally forking whatever else than /usr/bin/xinit. All these fiddlings + many more I don't even imagine particularly in the field of security, would certainly depend on perfectly reasonable motives and fit the purpose of special use cases. This is exactly what this question is about. |
Where is the official documentation for /etc/fstab? Posted: 18 Mar 2022 07:21 AM PDT I want to start editing my Specifically, I want to understand the difference between EDIT: Quick answer: The difference should be only in the string (the name) and should only matter to systemd that reads the file when mounting filesystems. |
Delete three lines in specific step Posted: 18 Mar 2022 07:32 AM PDT I have data like that (this is only a small part): I want to delete three lines, the next 9 lines leave alone, and then again delete 3 lines. In this case, I want to delete lines 10,11,12 and 22,23,24. Expected output I tried this: and it doesn't work. I need to dele lines on the whole file, so delete 10-13, then 22-24, then 34-36, 46-48, etc |
How to send systemd Start - Stop - Reload syslog messages to a file Posted: 18 Mar 2022 06:07 AM PDT I'd like to send Start/Stop/Reload systemd messages to a specific file. Specifically, mysqld doesn't seem to send daemon start/stop messages to the I'm at a point now where I'm messing around with |
no public key on debian 11 unable to apt update Posted: 18 Mar 2022 06:54 AM PDT I've tried all methods published in older questions, such as adding from gpg: ubuntu keyserver: pool.sks-keyserver: Edit: List of servers that are apparently down, looking for useful ones in answers box. https://keyserver.ubuntu.com Ubuntu Keyserver https://pgp.mit.edu MIT https://keys.openpgp.org OpenPGP hkp://pool.sks-keyservers.net:80 sus Keyserver |
Intel wireless interface not showing up debian 11 Posted: 18 Mar 2022 06:00 AM PDT I have a Galaxy Book Pro 360 with the onboard intel wifi 6e ax210 chip. I installed a fresh dualboot net-install of debian via ethernet. Now i want to use it with wifi but no success... Here are some informations about my system: lspci -kv: it doesn't show up in
and last but not least Also disabling fast startup in windows 11 dual boot didn't change anything: Windows Dual Boot wifi problems |
Curl Hangs on Particular Website on Ubuntu 16.04 but not 18.04 Even with Updated Version Posted: 18 Mar 2022 06:16 AM PDT Can anyone tell me why or how to diagnose why the following curl command hangs: When run with a -v option this is the output (hangs on "old SSL session..."): Creating new AWS Ubuntu server 16.04 and 18.04 Amazon AMI instances and running the curl command hangs on 16.04 but not 18.04. On a different system running 14.04 I used Conda to update curl and openssl to a newer version than on the 18.04 system and it hangs despite the newer version. Here is the output from running curl --version on the 14.04 system: Here is the same thing run on the Ubuntu 18.04 AWS instance that works: Here's the same thing on another 18.04 system that uses Conda's curl and works correctly: I notice the two working systems have HTTPS-proxy listed as a feature, while the non-working one does not. Could that be the problem? |
LDAP server setup with GUI on CentOS7 Posted: 18 Mar 2022 06:03 AM PDT I have, in the past, set up an LDAP server using OpenSuSE (13.2), which worked well since there was a YaST module which allowed a GUI set-up. Now I have the problem that I must set up an OpenLDAP server on a small department cluster running CentOS 7, which apparently does not have a GUI/TUI for such purposes. Since I am not experienced with the LDIF-based set-up and I fully expect that the maintenance of the cluster is going to be dropped on a different PhD student when I'm gone I want to be able to configure the LDAP server using some sort of GUI. To date I have tried Webmin, which was a total fiasco. It appears to set up the basic configuration of the server OK (at least If I attempt to add a tree (i.e. an organisational unit) using said interface the result is an error stating that Webmin could not find a suitable object class for the new DN. Therefore I'm giving up on this piece of software. My question is thus: Is there a free tool which would allow one to configure an LDAP server in CentOS without having to write the entire configuration by hand? Here I am looking specifically for tools which are not web-based (so not phpLDAPadmin) but come with a GUI/TUI. Something like |
Hibernate not working on MacBook Pro with Debian Posted: 18 Mar 2022 07:07 AM PDT I've installed Debian testing/stretch on a brand new Macbook Pro 13" (early 2015), but hibernation isn't working properly. When I try to hibernate, it appears to work (the screen shuts off after a few seconds), but the system seems to never fully power off (this is demonstrated by the fact that the cooling fan eventuall comes on if I put the laptop in my backpack, and also by the fact that to reboot I first have to do a forced shutdown by holding in the power button for a few seconds). And then when I try to reboot, it never wakes up from hibernation, either. I've been googing for a solution, but can't find anyone else with the exact same symptoms, and can't find anything at all about hibernation on this specific hardware. |
Posted: 18 Mar 2022 07:45 AM PDT Is there a one-liner that will list all executables from $PATH in Bash? |
Listing packages in Yum that depend on another installed package Posted: 18 Mar 2022 06:47 AM PDT I am trying to install a 3rd-party RPM package on RHEL5 which depends on version 3.4 of sqlite. According to Yum I already have 3.3.6 installed. Is there a way to list the installed packages that depend on sqlite 3.3.6? |
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