Recent Questions - Unix & Linux Stack Exchange |
- Linux scrollwheel "Jump back" when I scroll
- How do I kill all subprocesses spawned by my bash script?
- identify writable files and duplicates them, making the duplicate hidden and read-only
- Make Samba report 0 bytes free to Windows
- What is the equivalent of "task_struct" in linux's <linux/sched.h> for Mac OS?
- Restoring filesystem of an extended root partition
- How Can I Open Multiple Files With xdg-open
- can't connect to my minecraft server that uses ngrok
- How to update kernel and which version do I need to update to to fix usb driver
- Using "chmod -R 666 filename" does not give all files writing permissions
- Write a regular expression whose output will only be rows in a range 01/03/2021 - 01/03/2020
- Would a carriage return ^M in SSH key make a difference?
- How can I repeat only a part of a command in bash?
- Why is my command giving wrong output?
- systemd resource control -- all users/root
- Cannot shutdown computer or connect to Wi-Fi when /proc is mounted with hidepid=noaccess
- Postfix: enable DKIM signing on local non-secure submissions to port 25
- How Can I Find Five Numbers Between Two Numbers
- Linux gpg Conflicting values set
- Connection refused to connect a TCP/IP device
- AMD GPU not being used by Debian
- Set retries on rsync to have fixed time between them
- grub2 error disk 'hd0,msdos1' not found, ls shows no disk
- How to use mapfile/readarray
- How to set NTP tinker step (which unit)? and how to query?
- Any better alternative to chroot on an OpenVZ VPS?
- Limit memory usage for a single Linux process
Linux scrollwheel "Jump back" when I scroll Posted: 19 Jun 2022 01:19 PM PDT I have a very frustrating problem, I THINK the real problem is bad hardware, but I have had the problem with multiple brands (including logitech) so I assume the windows driver fix this and thus no reason to spend money on proper hardware. Using to track events on mouse gives this when scrolling down on wheel. Do anyone have a fix for this problem, I figure it should just ignore any 0x10 if there is no 0x1010 Have anyone a solution |
How do I kill all subprocesses spawned by my bash script? Posted: 19 Jun 2022 01:10 PM PDT I have a script that looks like this. Invoked with When i run How do I make this happen? |
identify writable files and duplicates them, making the duplicate hidden and read-only Posted: 19 Jun 2022 12:14 PM PDT I thought through find . -type f -perm and mv test_folder .test_folder, failed |
Make Samba report 0 bytes free to Windows Posted: 19 Jun 2022 11:30 AM PDT I have a Debian server running my samba share and use Win11 clients to mount it. Everything is working, I just had to change the dfree command to per https://www.linuxtopia.org/online_books/network_administration_guides/using_samba_book/ch08_06_02.html because of different mounting points etc. For a particular share I intentionally want to report it as "0 bytes free" always. I tried setting the second parameter $4 to "0" - Windows now shows "1 MB free of ...". Setting it to 1 yields "1 KB free of". The latter I actually understand, since sizes are given in KB. But why does "0" default to 1MB? Setting it to any other size also yields this value in KB. But I want it to be 0! |
What is the equivalent of "task_struct" in linux's <linux/sched.h> for Mac OS? Posted: 19 Jun 2022 10:02 AM PDT I want to understand the Process Control block of Mac OS and Linux. For Lionux it was pretty strightforward, there was a post here asking about the same thing and someone replied to go take a look at "task_struct" in <linux/sched.h>. However i am finding it more difficult to find the equivalent information for Mac OS, someone in apple's developer forum asked a similar question and got told to look at proc_info.h and proc.h, but i am lost as to which struct i should be looking at. Is there a task_struct equivalent in Mac OS? |
Restoring filesystem of an extended root partition Posted: 19 Jun 2022 10:01 AM PDT I have a Debian/Windows 10 dual boot with a shared partition in between and I tried to extend my Linux root partition because I was running out of space. I made some space but splitting the SHARED partition then deleted and re-created the Linux one with a start sector before the former one: (Linux is the 55.40Go partition) Now the Linux partition filesystem is not recognized anymore (For my information, if I had extended it from the end sector or used If not, maybe I can reset it to the former start sector? (I expended it by 10,000 MiB) In any case, I can reinstall everything, I backed up all my data but I am curious to know if I can fix it. |
How Can I Open Multiple Files With xdg-open Posted: 19 Jun 2022 10:28 AM PDT Let's say I run |
can't connect to my minecraft server that uses ngrok Posted: 19 Jun 2022 08:27 AM PDT So I'm in the following situation: I have two computers: Computer A which is Linux: which have ngrok in the background and minecraft forge 1.18.2 server running And computer B which is windows 11: they have Minecraft Java Forge 1.18.2 Problem: On computer B, I can't connect to the URL given by ngrok from computer A Can someone help me? |
How to update kernel and which version do I need to update to to fix usb driver Posted: 19 Jun 2022 08:09 AM PDT I have a problem with the usb driver for my serial port. In the kernel version that I am on (5.15.32-v8+) the driver does not work. It does work on an earlier 5.10.x that was installed as part of Raspberry Pi Os Buster but on the latest (bullseye) it does not work. It seems this was discussed here and presumably a fix put in place. According to this discussion this is the commit that fixes the issue. So I need to try and figure out which version of the kernel includes that fix and then update the kernel on my raspberry pi to that version.
Many thanks |
Using "chmod -R 666 filename" does not give all files writing permissions Posted: 19 Jun 2022 09:02 AM PDT I have been running as root in a Linux Virtual Machine to change permissions to a whole list of files within a directory. When I check the permissions after using The file |
Write a regular expression whose output will only be rows in a range 01/03/2021 - 01/03/2020 Posted: 19 Jun 2022 09:01 AM PDT I have a file that got dates from 01/01/2020 to 04/04/2021 I want to get only the dates between 01/03/2020 to 01/03/2021 by using egrep. I tried to do but it is still giving me all the dates in the file: |
Would a carriage return ^M in SSH key make a difference? Posted: 19 Jun 2022 12:15 PM PDT I cloned a git repo to a server that had same files scattered in different places. Then I compared two directories (cloned one to existing one) to make sure that they were exactly the same. The |
How can I repeat only a part of a command in bash? Posted: 19 Jun 2022 08:20 AM PDT I'd like to know if it's possible to just repeat part of a command. I.e. if I do I know that if I do |
Why is my command giving wrong output? Posted: 19 Jun 2022 10:50 AM PDT I m trying to output lines if col 1 has digit value , but its not working. My sample file doesn't have digit in col 1 so shouldnt awk return nothing in this case? my code cat file my code returns |
systemd resource control -- all users/root Posted: 19 Jun 2022 10:27 AM PDT I'm using Debian Bullseye with The idea is to allow ordinary users to use 80-90% of the memory and most of the CPUs. The other 10-20% of the resources should always be available for other slices and for the But the limits seems to also affect the Proposed answer (June 19th, 2022):I think I managed to do it as described below, but I do not know if this is a "right" way to do it.
Kind Regards |
Cannot shutdown computer or connect to Wi-Fi when /proc is mounted with hidepid=noaccess Posted: 19 Jun 2022 09:37 AM PDT When I modify then I cannot connect to Wi-Fi by NetworkManager, it will say that I do not have the necessary permission: Also, I cannot shut down the computer from the "Logout" menu by the window manager / desktop shell. A similar message appears and/or the button is greyed out (depending on where I try). Is it possible that Is there a way to make these things work again without removing the |
Postfix: enable DKIM signing on local non-secure submissions to port 25 Posted: 19 Jun 2022 09:26 AM PDT I have a Postfix server which accepts outgoing mail submissions from local network on port 587 (TLS) which requires authentication, signs them with OpenDKIM and they get delivered nice and clean into peoples' inboxes rather than spam folders. Not bad. The server also accepts mail on port 25. This works for both incoming mail addressed to the server, and relay submissions addressed outside (allowed from local network only). Not bad too. The only issue is that outgoing messages submitted to port 25 do not get signed with DKIM. For local applications wishing to send mail outside, I want to use port 25 rather than 587 because the local network is trusted — there is no need for either TLS or auth, so no need to complicate the software and compromise on latency and resource use. How do I get Postfix sign outgoing mail with DKIM for local submissions on port 25 — in addition to how it already does it on port 587? Relevant lines from main.cf: |
How Can I Find Five Numbers Between Two Numbers Posted: 19 Jun 2022 08:43 AM PDT Suppose I have these two numbers: 800000 and 3200000. I want to find five numbers with an even difference in between these two numbers. Therefore, I want the output to be: I know about the |
Linux gpg Conflicting values set Posted: 19 Jun 2022 08:48 AM PDT I am using Ubuntu 22.04, How can I fix this problem |
Connection refused to connect a TCP/IP device Posted: 19 Jun 2022 09:32 AM PDT I'm trying to connect a TCP/IP device over ethernet adapter via ethernet cable. The connection is being seen in Network Manager and I can get output of ping command at least and I can't access a built-in web page of device. I am getting error "Connection refused" for telnet command. But, this problems are not in another operating system non-linux. So, I think I should change iptables, firewall or proxy settings. What should I do to connect web page of device and device itself via its default open port that is 8003? Thanks for your help in the future. Several outputs: (the *s is added by me.) There are extra some informations. I can configure device's IP address by hand on its panel (default 169.254.227.2) and its MAC address is 00:19:F9:18:02:E2. And to be able to device, I'm configuring ethernet connection on Network Manager that cover infos (this informations is included device's manual): - The Method: by hand - Adress: 169.254.227.2 - Net Mask: 255.255.0.0 - Gateway: 0.0.0.0 - DNS: 0.0.0.0 But the MAC address is ::::: that belonging to eth0 an I can't change this situation. Actually, I tried to use DHCP but my trying it fails. Can you suggestion how I configure dhcpd.conf file and network connections. Finally, I attached the last outputs. |
AMD GPU not being used by Debian Posted: 19 Jun 2022 09:59 AM PDT I'm running Debian 10 with kernel 5.10 via buster backports. The installed driver for amd is amdgpu and the output of and However when I run I have tried running programs that could use the GPU as well but they seem to keep using the VMWare llvmpipe gpu, the output of |
Set retries on rsync to have fixed time between them Posted: 19 Jun 2022 10:07 AM PDT I have been having The thing is that Command-line Many thanks for any advice! |
grub2 error disk 'hd0,msdos1' not found, ls shows no disk Posted: 19 Jun 2022 09:01 AM PDT I have googled a lot for this problem. I found this, but it didn't solve my problem. Other solutions suggest me to reinstall grub (run grub-install), which didn't work either. Here is what I am doing: (my grub version is 2.02)
3.1. erase /dev/sda in case there are old partitions on it: 3.2. Create 3 primary partitions on /dev/sda as dev/sda1,sda2,sda3 (the size is 100M, 30M and 70M), and toggle sda1 to be bootable 3.3. Format the 3 partitions as ext2, and mount /dev/sda1 3.4 copy files... 3.5 Install grub and make grub config file
It says: And the most strange thing is that |
Posted: 19 Jun 2022 08:38 AM PDT I have some code similar to this: (I'm not actually using The problem is I need a conditional statement if code mapfile contents output String redirect is clearly wrong in this case but I'm not sure how else I can redirect my array. |
How to set NTP tinker step (which unit)? and how to query? Posted: 19 Jun 2022 12:05 PM PDT One of the workaround for old CentOS/CentOS kernel (6.1-6.3) which may "Systems hang due to leap-second livelock." (quoting redhat), is to set What is the exact syntax (unit) for Also, how can I query the current value of |
Any better alternative to chroot on an OpenVZ VPS? Posted: 19 Jun 2022 01:05 PM PDT Are there any better alternative to chroot environment? I'm thinking about running nginx on a jailed environment. BTW, I'm on OpenVZ VPS, so modifying the Kernel is a no-no. (I think that prevents me from installing SELinux, AppArmor, etc.) |
Limit memory usage for a single Linux process Posted: 19 Jun 2022 12:56 PM PDT I'm running So what I'd like to do is put some kind of hard limit on memory usage for a child process I'm about to run--just have the process die if it tries to allocate more than, say, 500MB of memory. Is that possible? I don't think ulimit can be used for this, but is there a one-process equivalent? |
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