Recent Questions - Unix & Linux Stack Exchange |
- Why does yum install stall when performing an RPM install from my spec file?
- Using a console font with glyphs for Raspberry Pi OS Lite
- REMOTE HOST IDENTIFICATION HAS CHANGED: sftp -v -o HostKeyAlgorithms=... : Cannot use "ecdsa" and "rsa" in parallel
- When udev startet a script accordi to a rule,who user is the caller?
- Graphical lags on hybrid graphics laptop
- On macOS, how do I clear the previous bad returns in iTerm2?
- dhcp: lease expiration vs. infinite lease
- Command-line tool to capture and apply differences between two folders
- Can't add another user to samba
- Is it dangerous to install Debian with an active internet connection?
- boot problem with kali linux 2022.2
- sleep in Bash if/else sleep vs <condition> && sleep clamining cpu
- make append and separate by white space
- How to get total size of folder
- Show the window size while resizing
- Is there a tool or script that can very quickly find duplicates by only comparing filesize and a small fraction of the file contents?
- Clone a running fileystem to an image file
- Remove all dnf modules currently installed
- Why is rsyslog not working properly?
- How to stop LibreOffice Draw from crashing in Debian Bullseye?
- How to know the V4L2 camera's exposure time in ms?
- How do I replace leading tabs with 4 spaces with sed?
- redirecting output to 'wget-log.1'
- Getting values from comma seperated file
- How to completely disable light-locker and replace it with GDM lockscreen
- gdm greeter configuration: Exclude all *except* for one specific user
- How to make log-rotate change take effect
- WBC_ERR_DOMAIN_NOT_FOUND only for a specific account
- How to change desktop environment in Raspbian?
Why does yum install stall when performing an RPM install from my spec file? Posted: 13 Jul 2022 02:42 PM PDT I normally start with a Minimal Centos 7 and run And this works perfectly. However, I am now writing an RPM spec file and trying to get it to do the same thing in the post installation like: However, when I do it stalls on the rpm -i line. The reason I know this is because when I do I can see never completes. Does anyone know why rpm -i does not work in a spec file, but does when in a plain old terminal? |
Using a console font with glyphs for Raspberry Pi OS Lite Posted: 13 Jul 2022 02:22 PM PDT I'm currently using the latest version of Raspberry Pi OS Lite on a 3B+ model. I'm trying to install a font (eg. Caskadia Cove Nerd Font) to use enable the functionality of oh-my-zsh themes (eg. zsh2000). I've tried the steps suggested here, with no luck. What I've come to understand is that the problem is probably the font type being .otf instead of .psf. Is it impossible to use these kind of fonts on this version of the OS? Should I try to convert the font, or is it possible to install another terminal/console which supports .otf fonts? Any suggestions would be greatly appreciated. |
Posted: 13 Jul 2022 01:45 PM PDT When I connect to my "OpenSSH_8.2p1 Ubuntu-4ubuntu0.4" server alternating using " |
When udev startet a script accordi to a rule,who user is the caller? Posted: 13 Jul 2022 12:44 PM PDT When I write my own udev rules to call a shell script, who is the caller user or the group? |
Graphical lags on hybrid graphics laptop Posted: 13 Jul 2022 12:30 PM PDT I've installed Void Linux on Xiaomi Redmibook Pro 15 2022. I assume that the problem is with Intel driver. Because on kernels 5.13 and 5.15 lswh marks iGPU "UNCLAIMED" and I can't start X, but TTY works properly and letters appears immediately. Prerequisites: My ~/.xinitrc Output of glmark2 Output of prime-run glmark2 I've installed Ubuntu alongside with Void and everything works out of the box with kernel 5.15. I tried to find any differences in dmesg and lshw outputs between Ubuntu and Void. I did not find something significant, except: 1)Void: 3)In Ubuntu lshw list devices models, but void lists only vendors. I would really appreciate any suggestion! There are the files containing outputs of corresponding programs/OS |
On macOS, how do I clear the previous bad returns in iTerm2? Posted: 13 Jul 2022 01:18 PM PDT I want to permanently clear the bad returns in iTerm2. I have used "Clear" and "command-k" etc including with "l" shortcuts but it apparently only clears the current terminal. If I restart the terminal, the bad returns appear at the beginning. How can I clear them permanently?[![enter image description here][1]][1] Thank you for any insight. [1]: https://i.stack.imgur.com/d06kA.png |
dhcp: lease expiration vs. infinite lease Posted: 13 Jul 2022 12:12 PM PDT As per RFC2131, when the lease expires the client has to stop using the IP address. So do I understand right that if the lease lifetime is set to infinite on the server, then the client does not need to renew/rebind its IP, and thus the server does not have to provide these timeouts (option 58 and 59) to client? |
Command-line tool to capture and apply differences between two folders Posted: 13 Jul 2022 02:11 PM PDT I am looking for a command line tool that allows me to do two things:
Here is an idea of how it would work, if an existing tool comes to your mind, please let me know, thanks! It would be like archiving (or making an image) of an rsync run, and then applying it (running it) later. |
Can't add another user to samba Posted: 13 Jul 2022 11:54 AM PDT Hello I've made a server using samba and for two people it has been working just fine. But when I try to add a third person it says: failed to add entry for user ___. I attempted to resolve this by first by doing $ useradd ____. But it replies by saying permission denied. Cannot lock /etc/passed; try again later. |
Is it dangerous to install Debian with an active internet connection? Posted: 13 Jul 2022 01:47 PM PDT After installing Debian, I was reading through the Securing Debian Manual [1], and I found a warning to not connect to the internet during installation [2]. This surprised me, because this seems to be the default way of installing Debian, and in fact there are many stories of people getting broken/unusable installations when installing without internet access. Moreover, the installer asked for an internet connection early on in the process with no clear option to opt out (but maybe I missed it), and neither the Debian Installation Guide [3] nor the installer mentioned anything about this being insecure. So my question is: when installing Debian stable (Bullseye) to a laptop in 2022, is it dangerous to connect to the internet during installation? What are the specific risks? For instance, the Securing Debian Manual [2] says:
Which services are meant here? Does this only apply to server installs (which might be running a web server, SSH, etc.), or does this also affect desktop users? References: |
boot problem with kali linux 2022.2 Posted: 13 Jul 2022 12:46 PM PDT My laptop: lenovo ideapad 310 15ISK usb : usb 3.0 sandisk 32GB Kali linux 2022.2 I created usb bootable with this instruction: [url]https://www.kali.org/docs/usb/live-usb-install-with-linux/[/url] An after this I added persistence: [url]https://www.kali.org/docs/usb/usb-persistence/[/url] When I try boot I have got:
Or sometimes I have got symbol underscore in left high corner and nothing else. Or sometimes I have:
|
sleep in Bash if/else sleep vs <condition> && sleep clamining cpu Posted: 13 Jul 2022 12:13 PM PDT I wrote a script to check on the battery and if it is below 5% notify the user. The script is put to sleep for 1 minute after every check. If I write the script in the following way, the cpu workload will rise to great extend: Do you know why the cpu went up? You can see in the image, that a lot of cpu resources are claimed. They will not be cleared. If I write the script in a more conventional way, with simple if/else blocks, everything works as expected and the cpu will only go up for a short time in the beginning and after the sleep period is over: Do you know why this behaviour is happening? |
make append and separate by white space Posted: 13 Jul 2022 10:48 AM PDT https://raw.githubusercontent.com/postgrespro/rum/master/Makefile returns: Not sure why it appended and also separated by one white space. |
How to get total size of folder Posted: 13 Jul 2022 11:24 AM PDT In Solaris server how can i get total size of this output? Could you help me? I need to learn total size of last 1 day file |
Show the window size while resizing Posted: 13 Jul 2022 10:58 AM PDT The question "how to know the geometry of a window, while resizing?" looked promising, but its single, accepted answer suggests to use CLI tools to resize a window to a specific size, so it's not answering my specific questions:
Using the method described in this answer I have the following window, no "Display geometry when moving or resizing" option to be clicked. |
Posted: 13 Jul 2022 10:53 AM PDT Tools like fdupes are ridiculous overkill when dealing with jpg or h264 compressed files. Two such files having the exact same filesize is already a pretty good indication of them being identical. If, say, in addition to that, 16 equidistant chunks of 16 bytes are extracted and compared and they are the same as well that would be plenty of evidence for me to assume that they are identical. Is there something like that? (By the way I am aware that filesize alone can be a rather unreliable indicator since there are options to compress to certain target sizes, like 1MB or 1 CD/DVD. If the same target size is used on many files, it is quite reasonable that some different files will have the exact same size.) |
Clone a running fileystem to an image file Posted: 13 Jul 2022 10:58 AM PDT How can I clone a running Linux file system (Debian 10) to a |
Remove all dnf modules currently installed Posted: 13 Jul 2022 02:02 PM PDT I have a CentOS 8.0 system with quite a few modules installed I don't want. I want to get rid of them to force an upgrade to CentOS 9.0, which I know is not officially supported but it is not actually what this question is really about. This question is only about this one step of removing all modules installed in dnf on my system. The output from A lot of stuff installed on this system is no longer wanted and as you can see there is quite a lot of bloat that this would get rid of. I would like to get parseable output from dnf on the modules list, and I also am not completely sure what I am supposed to do to remove them. On the Fedora wiki there is a page on using dnf modules but I can't seem to remove even just one from the list. I have tried things like this to remove modules... I of course don't actually want to remove each of these modules one at a time by hand, yet I can't find any way to get a parseable list from dnf nor even remove them manually. If I learn how to do both those things some magic with I did manage to disable every module by passing a wildcard to dnf like so... Yet I cannot remove them with this same method... |
Why is rsyslog not working properly? Posted: 13 Jul 2022 11:51 AM PDT rsyslog is failing to send messages to I have an AWS EC2 RHEL 7 instance and an on-premise RHEL 7 instance. They are both minimal installations, standard AMI, etc. The
On the cloud instance there is the addition of And on both instance there is also On both instances Cloud instance: On-Premise instance: The endpoint listed in The AWS instance is working fine. Syslog messages are delivered to the collector and to On the on-premise server, if I rename Why is rsyslog not sending messages to |
How to stop LibreOffice Draw from crashing in Debian Bullseye? Posted: 13 Jul 2022 02:23 PM PDT After I switching from Debian 10 to 11, LibreOffice Draw 7.0 can no longer open. I tried opening an existing file and starting a new file, no matter how I open Draw, it crashes with this message:
If I open an existing file, or try to create a new one, it crashes, then immediately tries to pull up a document recovery for the blank file, then crashes again, no matter which open I choose.
I tried several things:
How can I fix LibreOffice Draw from crashing? Update: journalctl reports this every time I try to open Draw, but not when opening a tool that does work, like Write: Update: I found if I run Stack: /usr/lib/libreoffice/program/libuno_sal.so.3(+0x3dc53)[0x7f3a8d719c53] /usr/lib/libreoffice/program/libuno_sal.so.3(+0x3ddc2)[0x7f3a8d719dc2] /lib/x86_64-linux-gnu/libc.so.6(+0x3bd60)[0x7f3a8d547d60] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x141)[0x7f3a8d547ce1] /lib/x86_64-linux-gnu/libc.so.6(abort+0x123)[0x7f3a8d531537] /usr/lib/libreoffice/program/libmergedlo.so(+0x1188b91)[0x7f3a8e8cab91] /usr/lib/libreoffice/program/libmergedlo.so(+0x2255cf0)[0x7f3a8f997cf0] /usr/lib/libreoffice/program/libmergedlo.so(+0x32fcfb9)[0x7f3a90a3efb9] /usr/lib/libreoffice/program/libuno_sal.so.3(+0x17412)[0x7f3a8d6f3412] /usr/lib/libreoffice/program/libuno_sal.so.3(+0x3dd2f)[0x7f3a8d719d2f] /lib/x86_64-linux-gnu/libc.so.6(+0x3bd60)[0x7f3a8d547d60] |
How to know the V4L2 camera's exposure time in ms? Posted: 13 Jul 2022 01:21 PM PDT with I understand last one |
How do I replace leading tabs with 4 spaces with sed? Posted: 13 Jul 2022 01:34 PM PDT In vim it seems possible to do like this : I didn't find out how this translates into sed. I tried the following : The command seems to have no effect. |
redirecting output to 'wget-log.1' Posted: 13 Jul 2022 10:58 AM PDT I am trying to download the Linux version of Gdrive from GitHub using this command
It's getting stuck with this output.
|
Getting values from comma seperated file Posted: 13 Jul 2022 01:21 PM PDT I have a file structured like this: (The actual values are not in brackets) How do I get (print) a specific value (either IP-Adress, ID or Name) while looping through the lines (preferably with 'sed' since I already started looking into that)? My objective is to send an SSH command to each server by grabbing the IP Address with a script, and then having the ID Number and Name for another program which displays the output of each command in combination with the name (I'm trying to build a monitoring service for our servers). So I need to be able to only grab one or two of those values. |
How to completely disable light-locker and replace it with GDM lockscreen Posted: 13 Jul 2022 02:01 PM PDT I am using cinnamon and I really like it but the only problem I have is I do not want |
gdm greeter configuration: Exclude all *except* for one specific user Posted: 13 Jul 2022 11:06 AM PDT I have Googled this one and tried so many combinations, with no success. I need the GDM login greeter to display one and only one username. In effect, what I need is something like this in /etc/gdm/custom.conf: This does not work, however, because ExcludeAll is not a valid option. IncludeAll=false does nothing either. I've tried every combination that I can think of. Despite being discouraged, I modified /etc/gdm/gdm.schemas, trying a variety of combinations similar to the above. No go. I am aware of: but this is not an applicable solution, as it removes the user list completely. I need one specific username to appear. The only practical solution I can find is to, upon user login, run a script which will append that username to the "Exclude" list in /etc/gdm/custom.conf. This is hacky, and not preferable. This is for a public-use machine. People can log in with their LDAP accounts if they have them, or they can select "Guest" from the login screen. The people who log in with their LDAP accounts should NOT have their names visible on the login screen, but the "Guest" option must remain. Using gnome 2.28. |
How to make log-rotate change take effect Posted: 13 Jul 2022 11:41 AM PDT I followed this link to change log-rotate configuration for RHEL 6 After I made the change to config file, what should I do to let this take effect? |
WBC_ERR_DOMAIN_NOT_FOUND only for a specific account Posted: 13 Jul 2022 10:00 AM PDT Platform: RHEL 5.10 Version: Samba 3.6.6-0.136 Only on a single VM, one of my co-workers is able to log into the VM using his AD credentials without issue, whereas my account appears to have trouble locating user information: Thinking that winbind could have just cached a negative return (for instance AD wasn't available when it had to refresh its cache entry for my user account) I set both I didn't find anything in Which seems like it contains the actual problem but I don't know how to read the error and would like some guidance on this. It seems like it doesn't like the SID associated with my AD account for some reason, but I don't know why or how to work around it. I'm present in the active directory domain referenced, but for some reason it's unable to pull only my account's information. |
How to change desktop environment in Raspbian? Posted: 13 Jul 2022 12:09 PM PDT I'm running Raspbian "wheezy", a Debian based Linux distribution for the Raspberry Pi and I would like to know where I can change the desktop environment that boots with the OS. In particular, how can I replace LXDE with a custom QT or Java program? |
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 |
Inbox too full? Subscribe to the feed version of Recent Questions - Unix & Linux Stack Exchange in a feed reader. | |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment