Recent Questions - Unix & Linux Stack Exchange |
- How to make KDEsu take root password instead of user password
- Ubuntu 20.04: Permanently disable avahi-daemon
- Why is the SSH key not accessible?
- How can i run specific lines from a file as commands in the shell?
- Manipulating Qtile Margins Through Keypresses
- Resolving paths (with absolute symlinks) against a base prefix
- Unwanted defragmentation of forwarded ipv4 packets
- Array in AWK need clarification on code
- VirtualBox Kali no IP address when using internal network
- Process alert - stop or block user from doing this
- What's wrong with my sed RE? Cannot find the pattern and replace
- How should btime be specified?
- Should I change the "etc_t" SELinux context for a custom application?
- If files are copied from a first volume to a second volume, will the files stay the same?
- Set PDF tags while converting images to PDF with ImageMagick
- Can't access write to home directory after implementing NFS Kerberos mount
- Retrieve job definition of list of jobs listed in the second file
- How to find a specific tag section in an XML file?
- In shell parameter expansion, what’s the difference between ${variable:-} and ${variable-} (colon–hyphen–brace versus hyphen–brace) [duplicate]
- Will the error: "No irq handler for vector" affect my computer?
- How to wake-on-lan via internet with python code?
- Can't set up environment path variables in Kali Linux installation
- Failed to show the preferences dialog GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown
- systemd: How to stop a start-job without limit
- Permanent removal of .repo from /etc/yum.repos.d/?
- How to enable my microphone in Linux Mint?
- How to enable Tap to click on MATE desktop (Debian 8.7 powerpc)
- Recovering data of an formatted ext4 partition
- What is ionice `none: prio 0` equivalent to?
- How to find files with 100% NUL characters in their contents?
How to make KDEsu take root password instead of user password Posted: 21 May 2021 10:20 AM PDT I have just installed Devuan with KDE, and I have been unable to change certain settings graphically. I do have a root user enabled, and for certain tasks, KDE will ask for my root password, which works and is all well and good. However, for other tasks, kdesu asks for my user password, and then throws an error because my user account is not in the "wheel" group. Rather than add my user to the wheel group, I prefer to just enable anyone who has the root password (ie me) to use sudo and su. Complicating matters further, even though it is kdesu that is prompting for my password, "which kdesu" returns nothing, and I can't seem to find any config files for kdesu. Any help figuring out how to setup kdesu to ask for root password is much appreciated. I'm running Devuan Beowulf kernel 4.19.181-1. |
Ubuntu 20.04: Permanently disable avahi-daemon Posted: 21 May 2021 10:18 AM PDT I am using Ubuntu 20.04. I have tried to stop and disable the avahi-daemon as below: However, the service restarts after I reboot. How to disable its start at boot? |
Why is the SSH key not accessible? Posted: 21 May 2021 09:56 AM PDT I have 2 remote servers, and I need to transfer files from one server to another. In serverA I created an SSH key (id_rsa) using the sudo user, and copied the public key into serverB (into authorized_keys file of the same sudo user). Hosts file Play Task When running the playbook an error shows up: The task should look up for the How should I handle this? |
How can i run specific lines from a file as commands in the shell? Posted: 21 May 2021 09:00 AM PDT I am basing my question on the thread here: How can I run a specific line as a command in a text file? How do I run a set of lines from the the text file? Here's what I have tried so far: gives: Why doesn't this execute the rest of the lines? Or as I suspect, is it running it but not giving any output since these commands are run in a new? sh(ell) everytime and not in a single shell session? Thanks! |
Manipulating Qtile Margins Through Keypresses Posted: 21 May 2021 08:39 AM PDT I'm looking to set up keybindings to increase/decrease gaps and margins in Qtile similar to what the following does in i3-gaps: I can somewhat get the equivalent of outer-gaps to work with the following code: I'm not sure this is the right way to do things, though. I'm not sure if this is supposed to be manipulated this way. I'm not really sure that the cmd_resize() function is what I should be using, however from trial and error it's what I've found to work. I'm not sure why the screen[0].bottom.size=20 (20 is the size of my bottom bar. I know I shouldn't hardcode, but I'm trying to produce a proof of concept before I clean the code) is needed, but the bar starts floating if I don't have that there. Finally, increasing and decreasing the gap gets close, but not quite to the original configuration. The gaps look slightly different than the original. So, I'm not sure this is the right way to accomplish this, and I could use the advice. Secondly, though that gets close to accomplishing what I want on the outer gaps, I have not been able to make any headway to getting the inner gaps to work. I initially tried changing the margin parameter of a layout, and when that didn't work I tried simply initializing a new layout and replacing the old one as posted below, but neither approach worked. I've tried going through the code here, but it's a big project and I'm struggling to make heads or tails from it. Any advice would be appreciated. |
Resolving paths (with absolute symlinks) against a base prefix Posted: 21 May 2021 10:10 AM PDT Consider we mount a foreign directory tree under some location and then Is there any tool to resolve paths inside /mnt prefix before (without) doing The Of course it is feasible to write a script what traverses each path level manually and resolves every one of them using |
Unwanted defragmentation of forwarded ipv4 packets Posted: 21 May 2021 09:00 AM PDT I want to handle ip fragments in user-space and am using the iptables NF_QUEUE to direct packets to user-space. The problem is that IPv4 packets are always re-assembled and delivered as one packet rather than individual fragments. For IPv6 fragments are delivered as they should. I thought that the conntracker might be causing it and disabled it in the This is when sending a 30000 byte UDP packet over ipv4. The corresponding for ipv6; This is in virtual environment kvm/qemu with virtio network devices, mtu=1500. Some HW offload does not seem to cause this since I can see all ipv4 fragments with So my question is what in the Linux kernel can force ipv4 pakets to be re-assembled before the I suspect "ingress/qdisc" as it is in between AF_PACKET (tcpdump) and the raw/PREROUTING chain. But I can't find the problem. Packet flow: https://upload.wikimedia.org/wikipedia/commons/3/37/Netfilter-packet-flow.svg Best Regards, Lars Ekman I originally posted this in https://stackoverflow.com/questions/67635016/unwanted-defragmentation-of-forwarded-ipv4-packets but I think the right place is here. |
Array in AWK need clarification on code Posted: 21 May 2021 10:36 AM PDT I've been tasked to create a list whereby one of the codes in the original data is to be replaced by a new code read in from a reference list. In this case there is just one change, but there could be more which would be added to the reference list as and when needed. The reference list (mycodes) has the following value: The data is a stream of three digit codes, but the code for 100 should be written out along with the rest of the stream as a five digit code. I have used an AWK program as follows;- With the input data file containing the following values: the program when run does produce the correct output of However it only works if there is a space in the reference file after the first entry. If the space is missing then the program does not produce anything other than 100007 as output. I don't understand exactly what is happening in the logic of this AWK program and I was wondering if somebody could helpfully explain it - particularly the line about |
VirtualBox Kali no IP address when using internal network Posted: 21 May 2021 07:35 AM PDT I am trying to build a VM lab environment for my class based on this example. I could download the Metasploitable and Securtiy Onion OVA images via my school, they came with pre-configured network settings, as described in the lab description linked above. I wanted to use my own configured Kali VM for the lab. So I figured I just need to change the network settings on the machine. I changed it to "Internal Network, 'internet'", according to the lab description. However, the Kali VM won't get an IP address and is therefore unable to communicate with the other machines. Everything else seems to work fine. What am I missing? Do I need to set the IP address manually? |
Process alert - stop or block user from doing this Posted: 21 May 2021 08:55 AM PDT How would i resolve this issue? I have already tried following How to disable a specific command for a specific user in Linux from The Geek Diary Edit #1 running |
What's wrong with my sed RE? Cannot find the pattern and replace Posted: 21 May 2021 09:46 AM PDT I have a huge text file, there are many lines of pattern of "Document 25characers", i.e. I want to find all the lines and replace with a specified string as below: However, it doesn't work at all. |
How should btime be specified? Posted: 21 May 2021 09:45 AM PDT I have read that Unix systems has not specified btime or generally like POSIX, there is no specification about btime. There is a mention about btime. Therefore the question, how should btime be specified or does it not matter and btime can be set whatever the user wants? Should btime be specified? If so, there are already proposals to add it to POSIX or the successor to POSIX. It would be good if someone can tell me where I can send a proposal. |
Should I change the "etc_t" SELinux context for a custom application? Posted: 21 May 2021 09:11 AM PDT I'm using SELinux (targeted mode) to confine a custom application . I used the command "sepolicy generate --init" to automatically generate the contexts and rules, and everything went suprisingly well: all the ressources are tagged with custom contexts, the applications works well. However, I'm suprised that the configuration files under /etc/customApplication are still tagged with the "etc_t" context. Is there a reason why "sepolicy generate --init" doesn't create a new "etc_t_customApplication" context for these files? |
If files are copied from a first volume to a second volume, will the files stay the same? Posted: 21 May 2021 07:05 AM PDT When I connect the external hard drives to my computer(with FreeBSD or other Unix systems) and copy files from the first external hard drive to the second hard drive, are the files on the second hard drive the same as the files from the source (first external hard drive)? I know there is a hash (checksum). I read somewhere that copying from different volumes will result in different files(since they are 2 different volumes). Only when I copy a file to the same volume, I can guarantee it is the same file. What is the recommendation for copying, and will my files stay the same? |
Set PDF tags while converting images to PDF with ImageMagick Posted: 21 May 2021 06:58 AM PDT I'm converting images to a single PDF-file using Resulting document has the following tags set up: Is it possible to override default values for tags like Title and Producer? |
Can't access write to home directory after implementing NFS Kerberos mount Posted: 21 May 2021 08:23 AM PDT I'm using debian Buster where I have Kerberos, LDAP and SSSD working. I was monting my home directory to the client using NFS however I realized it was insecure. So I implemented kerberos mounting and pam_mount. However when trying to login through lightdm on boot it goes black and boots me back to the lightdm login screen with no error. I found this in I can log in on a different tty and home will mount successfully however I just get permission denied on my user folder in home when I try to write to it I can read fine. The uid and perms seem to be set correctly. Here is my Also here is my I suspect perhaps I've confugred pam_mount wrong somehow. |
Retrieve job definition of list of jobs listed in the second file Posted: 21 May 2021 09:18 AM PDT I have a file with 250,000 job details. In this source file, all jobs have different parameters, so the number of lines for each job may vary. The only pattern is that each job definition starts with Target jobs: I need to extract the entries for those jobs from the list above into another file: |
How to find a specific tag section in an XML file? Posted: 21 May 2021 09:46 AM PDT The last few lines of my file If I want to How should I use the |
Posted: 21 May 2021 07:29 AM PDT In a shell script, I'm aware that But what about While I understand the difference between |
Will the error: "No irq handler for vector" affect my computer? Posted: 21 May 2021 07:06 AM PDT While installing Linux Mint on my old laptop, the error shows up briefly whenever it starts. Everything works fine, but I'm wondering if it's safe to ignore it? |
How to wake-on-lan via internet with python code? Posted: 21 May 2021 09:36 AM PDT My home network diagram is simple as below: The ISP provide a static ip ,supposing it's The Login my router remotely: Issue wol command from the router: The pc1 can be waked on from the router! Executing the command Executing the command It encounter no error,why pc1 can't wakeup with |
Can't set up environment path variables in Kali Linux installation Posted: 21 May 2021 10:23 AM PDT I downloaded flutter and Android studio on my linux machine. It is a kali linux installation. I want to add environment path variable for both android studio and flutter permanently so, who when I start a shell, I don't have to add them every time. I want to add to all users. I did some searching and found that you have to add the path in The original content of the file I added my paths using a saved the file and restarted machine, and did in the shell but the output was just this: Then I tried different method removed previous changes and added just before export path, saved restarted the machine and it didn't work either. The How do I accomplish what I am trying to accomplish. I have looked at several similar questions on this site and most suggest what I have done above. Am I doing anything wrong? EDIT This the contents of |
Failed to show the preferences dialog GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown Posted: 21 May 2021 10:23 AM PDT I'm encountering issue with USB Live persistence Kali linux. I've installed it correctly and everything works fine initially. But after running it, the upper panel sometimes disappears. When opening the panel from |
systemd: How to stop a start-job without limit Posted: 21 May 2021 07:42 AM PDT Is there a way I can stop a systemd start-job that is configured without no limit? I am not asking where I can reconfigure the limit - I want to stop while it is waiting for it. I do not have another console to enter the system. If I hit Ctrl+Alt+Del then the jobs went to shutdown. I just want to stop the waiting for this unlimited job that has a problem at startup. |
Permanent removal of .repo from /etc/yum.repos.d/? Posted: 21 May 2021 07:06 AM PDT I'm trying to determine the best method to permanently remove .repo files from /etc/yum.repos.d/ I'm able to remove the repo file itself from the folder, however when a yum upgrade is performed, it reappears. Is there a method that someone is aware of that is persistent through a yum upgrade that doesn't restore the default .repo files? Appreciate the help. |
How to enable my microphone in Linux Mint? Posted: 21 May 2021 08:43 AM PDT I have changed every setting of Pavucontrol and Alsamixer with no results on how to make my microphone work again. When using other live OS, it works just fine but on my Linux Mint it does not work anymore. |
How to enable Tap to click on MATE desktop (Debian 8.7 powerpc) Posted: 21 May 2021 08:00 AM PDT Using advice from this forum, I got tap to click working in LXDE on my Powerbook G4 running Debian 8.7. I have since been experimenting with the MATE desktop, how do I get tap to click working in MATE? Thank you. |
Recovering data of an formatted ext4 partition Posted: 21 May 2021 09:00 AM PDT An ext4 partition of Hard Disk is formatted to ext2 and then again to ext4 using GParted. Is there a way to recover the original data? I want to reconver .webm files. I could not do this with testdisk. |
What is ionice `none: prio 0` equivalent to? Posted: 21 May 2021 10:09 AM PDT The ionice manual states that:
I am post 2.6.26, but that still leaves some open questions (I'm assuming CFQ):
So my assumption at this point is that |
How to find files with 100% NUL characters in their contents? Posted: 21 May 2021 07:21 AM PDT What is the Linux command-line command that can identify such files? AFAIK the Background: Every few days, when my laptop freezes, my btrfs partition looses information: files opened for write gets their contents replaced with zeroes (the size of the file remains more-or-less intact). I use synchronization and I don't want these fake files to propagate: I need a way to identify them so I can grab them from backup. |
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