Recent Questions - Unix & Linux Stack Exchange |
- Mate desktop does not display properly in CBL-Mariner Linux
- I created and enabled a systemd service that manually starts, but won't auto-start after reboot. How do I figure out why it won't auto-start?
- Can we use $PIPESTATUS with the tee (or pee) command?
- Getting syntax error due to curly braces with multiple commands [duplicate]
- Touchpad (ELAN 04F3:3072) not working/detected after BIOS upgrade (Lenovo Ideapad Flex 3 11ADA05)
- Can GNU Parallel be made to output the command line executed when run in linewise mode?
- gpg2 exports invalid private key
- Unix group becomes everyone when assigned to a group ID that does not exist
- Why I can't move the content of a directory (including hidden files) to a file using only echo?
- How to delay traffic and limit bandwidth at the same time with tc (Traffic Control)?
- Run script without pressing enter
- Segfault when non-sudo
- Engrave on M-Disc
- Apache HTTPD does not list all files in directory
- Merging files from most recent
- I don't understand how "ls" command works
- How can a shell script know it was invoked on the shell's CLI?
- lesskey: add alt+right keybinding to less
- How to identify unknown devices in traceroute or ping
- Finding duplicate files with slight difference in filename
- nftables table and chain priority
- Future-proofing top-level domains for private networks
- Adding persistent routes to Debian 10 without restarting
- Debian 10 - add static route via alternate network link
- systemctl reload networking no longer works on buster
- "Stale file handle" on certain directories occurring immediately after NFS mount; no file handles open
- Add space before uppercase letter
- Is it possible to find which vim/tmux has my file open?
- CPU > 80% - how can I debug?
- How to reduce the volume of a background music stream when a different audio source is playing?
Mate desktop does not display properly in CBL-Mariner Linux Posted: 07 Oct 2021 10:42 AM PDT I have been running MS CBL-Mariner Linux in vmware and I am able to compile, install, and run NsCDE, Lxde, and xfce properly. The only issue I have is that when I downloaded and compiled and installed mate (1.26.0), I have no desktop and an invisible mouse. Apparently, Mate is doing something different and displaying is different than other desktop environments. Anyone have a clue? |
Posted: 07 Oct 2021 10:42 AM PDT I created and enabled a systemd service that launches a CLI application in Tmux (had to disable SELinux) but the service needs to be manually started after reboot. How do I figure out why it won't auto-start? Here's some info on the service: |
Can we use $PIPESTATUS with the tee (or pee) command? Posted: 07 Oct 2021 10:29 AM PDT In my bash scripts, I often use pipes and would like to know which stage of the pipe was causing the problem in case of errors. The basic structure of such snippets is: Now (interestingly enough for the first time) I am in a situation where it would be great if I could use either or I believe that in both cases But this leads me into at least two understanding problems:
Could somebody shed some light on this? |
Getting syntax error due to curly braces with multiple commands [duplicate] Posted: 07 Oct 2021 10:12 AM PDT I am trying to run the following multiple commands a command prompt but I get syntax error near unexpected token '}'. The following page examples where it is working but I am getting the syntax error. I am running Ubuntu desktop 18.04.5. What am I missing? Thanks. |
Touchpad (ELAN 04F3:3072) not working/detected after BIOS upgrade (Lenovo Ideapad Flex 3 11ADA05) Posted: 07 Oct 2021 09:57 AM PDT Reposting this from https://bbs.archlinux.org/viewtopic.php?id=269900, because I suspect that it isn't distribution specific. After a BIOS update from FPCN18WW (2021-07-12) to FPCN24WW (2021-08-19) my touchpad is not recognized in the following distributions:
The touchpad works in Windows and in the BIOS setup menu. The changelog of the new BIOS firmware is: ... Fix win11 TPM 2.0 UEFI Preboot Interface Test fail issue. Optimize Boot Menu UI. ... I know the touchpad is not anymore recognized because of the following missing entries in dmesg: My BIOS settings remain unchanged: Secure Boot is disabled and the AMD PSP is enabled. I've already contacted Lenovo support, but (as I can fully understand), they are not reading my texts correctly and think the device is broken. Since a touchpad on a laptop is a nice feature, I decided to try continue troubleshooting on my own, though I'm now at a dead end. Just today I found out that some I2C device is added under /sys/devices/platform/AMDI0010:01/i2c-1/device/MSFT0001:00, which seems to be my touchpad, maybe. Quick note: All the other touchpad troubleshooting hints were tried before. I've read through the main article about this issue: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1887190, but as the touchpad is different, all suggested solutions failed. Is there any way I can troubleshoot and maybe resolve this issue? |
Can GNU Parallel be made to output the command line executed when run in linewise mode? Posted: 07 Oct 2021 09:53 AM PDT Suppose I have a list of commands in file I run these commands via: One of the commands fails. All of the commands use the exact same CLI tool with different inputs. Right now, I have to run across all of the commands one at a time to find the erroring command by substituting my command list for a command builder loop (much more involved): Is there a mechanic for getting parallel to display the command that failed, or the execution order onto stderr, for example? |
gpg2 exports invalid private key Posted: 07 Oct 2021 09:43 AM PDT I need to export both ssh keys from my gpg authentication subkey First I get the fingerprint from my [A] authentication subkey: Having the fingerprint 15EDA5801C8D18FF, I proceed: Both produced key files look fine to me, yet the code above returns |
Unix group becomes everyone when assigned to a group ID that does not exist Posted: 07 Oct 2021 09:39 AM PDT Can you please assist why the ID is assigned to a group named everyone? #id entitlement uid=315(entitlement) gid=200(everyone) groups=200(everyone) Below commands do not return anything: #cat /etc/group | grep everyone #cat /etc/group | grep 200 No NIS is configured, so ypcat is not available. I tried doing it to another group but this time it is failing. #usermod -g 201 entitlement usermod: group '201' does not exist I am trying to search but can't find any feature of Linux that does this. |
Why I can't move the content of a directory (including hidden files) to a file using only echo? Posted: 07 Oct 2021 10:02 AM PDT I have a directory named However I also want to copy the directory's hidden files and separate them from the "normal" files of the directory with a line break ( I tried these commands but it doesn't work and I don't know why they don't work ? : Can someone explain me? Thanks |
How to delay traffic and limit bandwidth at the same time with tc (Traffic Control)? Posted: 07 Oct 2021 10:46 AM PDT I want to throttle bandwidth and add delay to a network interface to simulate satellite communication. For example 800ms delay and 1mb/s. The following limits the bandwidth correctly but does not increase the latency: I got my information from this site. |
Run script without pressing enter Posted: 07 Oct 2021 08:47 AM PDT Is there any way to run a program without pressing enter? I've been googling this a bit and can't seem to find it. What I'm thinking is to have for instance, a script that cd's one folder up. Then I can hold down ctrl and every time i then hit some button, i cd one folder up via script. Could make life a bit easier in the shell as I could go up the folder struture much faster. And could even clear the screen each time and run ls. Or do whatever by just a single click of a button, while in the shell. I use bash on Linux Mint. My terminal emulator is Mint's default (sorry, not sure which one that is). |
Posted: 07 Oct 2021 08:12 AM PDT For some weird reason, several programs have started to segfault when I try to run them without escalated privileges. Among these are The output I get from running e.g. Any help is greatly appreciated. EDIT: running Please help me "undo" this command. EDIT 2: those two particular packages were updated today, so it seems that something has gone wrong on the devs' end. |
Posted: 07 Oct 2021 07:47 AM PDT I want to use 100GB M-Disc for Backup. How can one determine whether the M-Disc Writing was engraved properly and successfully on the non-volatile substance? I plan to use Brasero for writing. What does one have to do, burn with brasero and everything is figured out automatically when you insert an M-Disc? I have just got a Pioneer BDR-XS07S Blu-Ray Burner. I am using Ubuntu 20.04 LTS. |
Apache HTTPD does not list all files in directory Posted: 07 Oct 2021 09:16 AM PDT When I go to browser and type IP/result I do not see all the files in directory. |
Merging files from most recent Posted: 07 Oct 2021 09:22 AM PDT I wish to get the command for merging files from the most recent to the oldest in bash from a particular directory. Meaning files with newer dates are saved before ones with older dates |
I don't understand how "ls" command works Posted: 07 Oct 2021 10:49 AM PDT I wanted to check what is the size of As seen in the above output, the size is 86 bytes. Hovewer, And then one of these sub-directories contains some big files: I confused why the |
How can a shell script know it was invoked on the shell's CLI? Posted: 07 Oct 2021 09:00 AM PDT I would like to implement a I thought at first that the script could do this by looking for In fact, when I run the script below from the command-line ...the output I get does not include Is there some other way for my shell script to figure out this information? NB: Although I am working on a 1The script's output is |
lesskey: add alt+right keybinding to less Posted: 07 Oct 2021 08:05 AM PDT I used Then I added this escape code to my lesskey file Finally I launch But pressing alt+right does not work. |
How to identify unknown devices in traceroute or ping Posted: 07 Oct 2021 10:43 AM PDT In attempting to troubleshoot a failed ping from the Windows host to the IP address of one Linux guest virtual machine (192.168.1.19), I did a I can ping the host IP (192.168.1.15) from the guest. The thing is, I know what I have on my network, but I have no idea what this My end goal is to get the ping working both ways, but now I also would like to know if there is anything I can do to identify this mysterious device! I've seen a related question but I am not yet trying to block devices, I first want to learn what would be the best next step here, before I reboot the router. If someone can confidently say that there are no Linux tools that can help me solve this or gain further information, that is also a valid answer. Thank you. Update The host machine is running Windows 10, connected to the network on the built-in Wi-Fi interface. The virtual machine is on VirtualBox. I have chosen a "Bridged Adapter" intentionally, to get a dedicated DHCP IP address, which makes it easy and convenient to access its local webserver. This setup was working fine on a previous Ubuntu VM, but the VM in question here is a new Debian 11 minimal (no desktop) install. I have also rebooted the Wi-Fi router, so some things have changed:
I would paste the output of It's now evident that the root of the connectivity issue seems to be that the bridged adapter failed to get its own DHCP IP from the router's DHCP server, which I likely missed before the reboot due to the VM hostname appearing on the list of Wi-Fi devices on the router. This turned out to be more of a VirtualBox troubleshooting than anything, apologies for that. I'll probably just assign a fixed IP to the VM. Any tips on the mystery of the unexpected hop would still be interesting. Second Update Just remembered that I can use |
Finding duplicate files with slight difference in filename Posted: 07 Oct 2021 08:49 AM PDT I'd like to use a bash script or command to find files that have very similar names but differ only in a part inside the brackets. e.g. should match. Or more specifically, should match. |
nftables table and chain priority Posted: 07 Oct 2021 09:03 AM PDT I have a problem with my nftables setup. I have two tables, each one has a chain with the same hook but a different name and priority. The tables are in different files which are loaded by an include argument. Because of the priority, I would think that the VPN-POSTROUTING chain will be executed before the INTERNET chain. But in my setup, the INTERNET chain is executed first. where is my mistake? Edit: I changed the rules and add all chains to the same table, with the same result. In the next step, I followed A.B.'s advice and add counters and logs to the rules. The order of the chains corresponds to the priority, but the accept rule for the VPN is not triggered. When I add the VPN accept rule to the INTERNET chain, right before the masquerade rule, it works like expected. |
Future-proofing top-level domains for private networks Posted: 07 Oct 2021 08:13 AM PDT I recently installed some new servers on my home network to discover that systemd-resolved doesn't resolve hostnames without dots. This got me on a journey on the internet trying to find what is the best practice for choosing a TLD for a private network and future-proof it. To summon it up: there is no possibility to be sure of this. In the early age, during the 90s, the Internet was more a playground for everyone. Then, in the end of the 90s, commercialism took a good grip over the Internet, it's future and over the TLDs. After reading this: https://www.theregister.com/2018/02/12/icann_corp_home_mail_gtlds it is obvious that we will never be sure. The private IP-ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) that will never see the day of light on the public Internet is really common knowledge and regarded as a fact. But concerning TLDs for private networks, there seems to be a lot of confusion. Some of the camps and sources for them are:
As you can see, for example choosing .home as your private local network TLD could be a gamble. Maybe ICANN will drop it for commercial purposes, maybe not. Questions that comes to mind are: why don't we have a plethora of TLDs for private networks? Is it because there is no money for ICANN in this? Is it because there is no advocate for private users there? Of course this is a reflection of where the main body of people come from that are engaged in these organizations: the universities, the commercial sector and the government. Question: what would be the best mature path to take in this matter? ::: UPDATED WITH CONCLUSIONS ::: After further readings on this subject and looking at the answers and discussions on SE and elsewhere, I have come to the conclusion that these are the future-proof TLDs for private networks:
|
Adding persistent routes to Debian 10 without restarting Posted: 07 Oct 2021 07:49 AM PDT I am trying to add a static persistent route on a Debian 10 machine without needing to restart it. My After I issue If I reboot the machine everything - including the new static route - works fine. Can anyone give me a hint on how to add static persistent routes without needing to restart the machine? |
Debian 10 - add static route via alternate network link Posted: 07 Oct 2021 08:01 AM PDT I have a network The server has a VM running on it, which has the network address The link between the desktop and the server is 100 Mb/s. However there exists another link. It is a static link on the network In other words, one end of the cable has ip Since the VM contains a file server, I would like to direct traffic to the ip address I believe this can be done by adding a static route. But I do not know how to do it. I tried to use the command however this produced an error which just displays the command usage. (Implying incorrect syntax.) My system is Debian 10. Am I trying to do something sensible/possible and if so what am I doing wrong at the moment? |
systemctl reload networking no longer works on buster Posted: 07 Oct 2021 08:04 AM PDT On Jessie, the command runs without any complaints. On Buster, it fails with
What should be done instead? (and why is this so? I could not find an easy answer in the systemd docs. https://github.com/systemd/systemd/blob/master/NEWS#L474 mentions that you can reload, but it seems to no longer work) |
Posted: 07 Oct 2021 10:05 AM PDT For some time I've been experiencing a strange issue with NFS where a seemingly random subset of directories (always the same ones) under I've been able to correct the problem by explicitly exporting the seemingly-random set of problem directories, but I'd like to see if I can fix things more completely so I don't have to occasionally add random dirs to the export table. Below, I mount a filesystem, show that there are no open file handles, run The subdirectories in question are not mountpoints; they seem completely normal: There are no related errors in syslog about these directories. The only info that does show up mentions a different set of directories: Here's what The server side is running Arch Linux and currently on kernel 4.10.3. The client side is Slackware 14.1 with kernel 4.1.6. |
Add space before uppercase letter Posted: 07 Oct 2021 10:28 AM PDT I have a strings: and so on. I want to add space before uppercase letters. How can I do it? |
Is it possible to find which vim/tmux has my file open? Posted: 07 Oct 2021 09:40 AM PDT I use Is it possible to find out which one, without manually going through all my windows and panes? In my particular case, I know that I didn't edit it with |
Posted: 07 Oct 2021 09:53 AM PDT I am running a laravel application on a Ubuntu 14.04 digital ocean vps and I am using New Relic to monitor the server. I got an email alert that my CPU usage was above 80%. I logged in to New Relic and now it's showing my CPU usage at 99% for 18 hours now. But when I log into my shell and run 'top' the CPU usage of the processes don't even sum up to 10%. What could be wrong? Which are other commands I could run to check the real usage and what is using it so much? (Perhaps an infinite loop on the application?) This is my htop result: And this is htop after shift+K Any links or help would be greatly appreciated. |
How to reduce the volume of a background music stream when a different audio source is playing? Posted: 07 Oct 2021 08:51 AM PDT With PulseAudio it is possible to manage volume on an application basis, but I find it hardly useful to do it manually. What I'd rather have is the following: I'm usually listening to music but sometimes I want to watch a YouTube video - then I have to manually pause or reduce the volume of the music, often I forget to turn it back on when the video is over. What would I need to do to automatically reduce the volume of a audio stream (the background music) when another application plays sound? |
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