Recent Questions - Unix & Linux Stack Exchange |
- systemd-analyze critical-chain doesn't show start time
- Why isn't "Permission denied" in stderr?
- Is setting cgroup_enable=cpuset necessary in this case?
- Debian 11 + Teams - sharing screen not working
- sudo: PAM authentication error: Failure setting user credentials
- bash: "Syntax error near unexpected token 'elif'"
- What is the easiest way to learn shell scripts with language that understandable for Linux software?
- UI to manage users exist in mysql database
- Change default SFTP directory in Cygwin
- Software RAID Issues with Missing Drive from Boot
- Installing redmine 4.0.7-1 with apt in linux debian 11 (bullseye)
- How to install different versions of python on centOS 8?
- Sort line based on the value of a column
- Search for pattern and create file with the same name
- Pooling storage across multiple devices?
- NFS filesystem 100% full - 'No space left on device' error, cannot remove or truncate files
- How can I find the last 10 modified files
- Variable not accepting in awk while passing from a file
- how to use rtl8723bs bluetooth in linux 5.10
- What does LOADADDR=0x20008000 mean in linux kernel make command?
- HDMI audio is pitch-shifted like chipmunk (AMD RX 500 series GPU: RX 570, RX 580, RX 590)
- How to set the timezone of a Linux host to BRT (Brasilia Time)?
- How can I make Linux use super instead of ctrl as the main modifier key?
- How to find last n newest files for each of multiple directories
- Command-line tool to get "click and drag" rectangle coordinates from the screen [duplicate]
- Reverse a hexadecimal number in bash
- how to check if both parameters are set in bash? [closed]
- How to launch shell script with double click in CentOS 7
- Mysql database didn't connect through sqlyog or any other mysql software?
- How to check integrity to HDD with UDF format
systemd-analyze critical-chain doesn't show start time Posted: 25 Oct 2021 10:05 AM PDT I am running In this situation how do I work out the time at which |
Why isn't "Permission denied" in stderr? Posted: 25 Oct 2021 10:03 AM PDT I have a command: Nevertheless, this error message isn't written in the log.txt file, it stays empty... Why?I'd have guessed this message should go to stderr and then in the file but somehow it isn't. |
Is setting cgroup_enable=cpuset necessary in this case? Posted: 25 Oct 2021 10:00 AM PDT I am setting up a raspberry pi based cluster using kubeadm and containerd as the CRI. I have 8GB nodes and I have installed Ubuntu 20.04 on them. I need to setup cgroups and the various instructions in various places is confusing me. I have seen the following to be setup in
Currently From the above I have 2 questions: I believe this indicates that cpuset is already enabled and I believe that doing Moreover, I am finding conflicting guidance on |
Debian 11 + Teams - sharing screen not working Posted: 25 Oct 2021 09:20 AM PDT Using Debian 11 + teams ... screen sharing is not working ... any ideas ? |
sudo: PAM authentication error: Failure setting user credentials Posted: 25 Oct 2021 09:19 AM PDT I am not able to run sudo command. Every time i run with sudo I get the PAM error, Failure setting user credentials. Here is the error with screenshot I tried looking for hints in man access.conf i could not find anything. Any leads would be helpful |
bash: "Syntax error near unexpected token 'elif'" Posted: 25 Oct 2021 09:01 AM PDT The first half of the code is meant to set a countdown timer, when the countdown is finished the script should check to see if two files are in there. If one of the files are missing, then the other file should be deleted and an error message is returned. If both files are deleted, then an error message is returned. If both files are present, the script continues to decrypt them (using gpg) and then combine the two files (this portion has not been implemented yet). Currently I've been running into an issue with line 10 and 12 giving the error main.sh: line 10: syntax error near unexpected token `elif'. I'm guessing it's due to the way I have the condition set up, but I'm not sure at this point. Any help with this would be appreciated. |
What is the easiest way to learn shell scripts with language that understandable for Linux software? Posted: 25 Oct 2021 08:56 AM PDT strststrong textrong textstrong textong text[1]: https://Linux.com |
UI to manage users exist in mysql database Posted: 25 Oct 2021 08:45 AM PDT I am totally new to the frontend coding, I have a mysql database at the backend and looking for few reference through which i can build a simple UI which can connect to the mysql db > fetch the users and has ability to modify it. The end goal is to containerized the ui. Any existing solutions or reference links are appreciated, Thank You!! I found this https://www.youtube.com/watch?v=xTHJ4gGycb0 but doesn't satisfy my requirement. |
Change default SFTP directory in Cygwin Posted: 25 Oct 2021 08:41 AM PDT On a Windows server, I've installed OpenSSH via Cygwin to mainly connect via SFTP. I would like to change the default directory for the SFTP server. When I log via ssh to this server, my entry point is in |
Software RAID Issues with Missing Drive from Boot Posted: 25 Oct 2021 08:36 AM PDT I have a 3-drive software raid1 (on RHEL 7) that I am trying to test the limits on. This system boots in legacy/mbr mode and does not support uefi. One of the problems I have encountered is; from a powered off state, if I remove a drive, the system will boot but just before you are prompted to log in, the system drops to an emergency shell. So that we are clear; the system gets past grub and starts x, then it drops after about 20 seconds of "thinking." (I also observed that /boot and /etc don't exist.) I see that if I properly 'fail' the drive before rebooting, this isn't an issue. This only becomes and issue if the power is off and I remove a drive before powering on. (I see that this is a realistic scenario as, if I lose power and a drive becomes corrupt, then I would encounter this problem). Is there a way to prevent the raid from failing to properly boot? Is it possible to have mdadm rebuild the raid1 so that the system can work in a degraded status (2 of 3 hard drives)? |
Installing redmine 4.0.7-1 with apt in linux debian 11 (bullseye) Posted: 25 Oct 2021 09:46 AM PDT Redmine has typically been something I have been struggling with when it comes to install/upgrade it, owing to the need to work with gems/gemfiles, something I'm not too familiar with. I have had an old version of Redmine working smoothly on my debian LAMP server, however with the recent release of Debian 11 (Bullseye) I decided to finally upgrade my debian version. However I get into the error below where Bundler cannot find rails (~> 5.2.2). However I have updated all my gems and my bundler version is: rails (6.1.4.1, 6.0.3.7). Looking at some reported issued on the internet I only find a few things mentioning similar (indentical?) issues, like this bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=969206 however there is no indication on how can I solve this issue. As such, any help would be very much appreciated. Thank you in advance. Below I am appending the printouts of my apt install logs, and also the list of all my installed gems. Installed GEMS
|
How to install different versions of python on centOS 8? Posted: 25 Oct 2021 08:51 AM PDT I have python3.6 installed on CentOS Linux release 8.3 How would I install python3.7, python3.8,... on the same system? |
Sort line based on the value of a column Posted: 25 Oct 2021 09:43 AM PDT I have to sort a thread dump which looks like this: The dump is pretty big so I'd like to sort it by the column "cpu" (either ascending or descending). It seems the sort command accepts the "k" parameter to indicate the column to used as criteria for sorting. "cpu" is the 5th column, so I've tried with: I see the order has changed yet it does not follow the criteria I'd expect ("cpu"). Any idea if a text like "cpu=value" can be used as criteria to sort or it needs to be combined with other commands? Thanks |
Search for pattern and create file with the same name Posted: 25 Oct 2021 09:16 AM PDT Here's a simple line of my usage: I'm searching a large file with multiple countries and what I would like to do is create a text file with the country name dynamically and store all matches from the same country into that file, which means something like this Example of data: So I need to create 3 separate text files with country names e.g. I'm already using bash scripting so I don't mind that, How could I achieve this? I am using a Linux machine. |
Pooling storage across multiple devices? Posted: 25 Oct 2021 08:05 AM PDT Is it possible to pool storage across multiple (eg.) Raspberry Pi's into one store? For a simple example, say I have 12 Pi's, each Pi has 1TB of on a USB. Can I make a single storage on the network (using samba or something), that would appear as a single 12TB drive, and automatically distribute the data across the various drives as needed? |
NFS filesystem 100% full - 'No space left on device' error, cannot remove or truncate files Posted: 25 Oct 2021 09:23 AM PDT I'm getting a Running and I don't have admin privileges, and so far I've tried multiple methods to manually remove some files to free up space. However, Is there anything else I can do to free up space and fix the issue? |
How can I find the last 10 modified files Posted: 25 Oct 2021 10:00 AM PDT I'm in the root folder and need to find the last 10 modified files of just this folder. Every time I put -mtime like my lecturer said I get 10 days. I need the last 10 modified files, not the last 10 days worth. I have tried find -my time, my time piped with tail. I get a long list of every modified file of the last 10 days. I need just the last 10 modified files of the root directory. |
Variable not accepting in awk while passing from a file Posted: 25 Oct 2021 08:53 AM PDT i reading the file line by line which is having input as can some one please correct me. Tried this also Editing the question for using awk after getting suggestion not to use sh read,my input and desired output are shown below. Input file: xxx: rtyuiol ght: ertyjk expected output Have another file which contains the ght:(any text ) lines in that have to read that and compare with input file ,if ght:(any text) lines matches print the ght:(any text) followed by the previous line of ght:(any text) |
how to use rtl8723bs bluetooth in linux 5.10 Posted: 25 Oct 2021 10:05 AM PDT I have alpine edge (future 3.15) x86 on an HP Stream 7 5709 tablet (tl;dr: Bay Trail, Atom Z3735G), which has an onboard (If you're trying to get wifi to work, alpine 3.14+ has the driver, but the included firmware file set is missing But how to get bluetooth to work, in a situtation like this where I need to add whatever kernel drivers I need because the stock set is too minimal for this purpose? Besides the default modules of the edge's 5.10 kernel I've got the appropriate additional kernel module, with the seemingly relevant additional features turned on, built and installed: Subsequently, booting loads the relevant modules automatically: I can see the But this doesn't automatically make the bluetooth device available; I found the (seemingly older ~ 4.x kernel era) third party repository https://github.com/lwfinger/rtl8723bs_bt and its remaining step is what I expect, some kind of initialization through the UARTs, and then telling the relevant piece of bluetooth driver infrastructure to attach to them, but using its and I can't concoct a command line for More investigation: I see that the ACPI-based device enumeration under The However, sprinkling some extra Oh darn: And in fact From |
What does LOADADDR=0x20008000 mean in linux kernel make command? Posted: 25 Oct 2021 08:16 AM PDT I'm learning about u-boot. using qemu model, I could (using qemu) load the Image on memory location I want and I could run the kernel booting using |
HDMI audio is pitch-shifted like chipmunk (AMD RX 500 series GPU: RX 570, RX 580, RX 590) Posted: 25 Oct 2021 09:44 AM PDT I am a Linux user and have installed a new Sapphire PULSE Radeon RX 580 8GB in my machine and am experiencing audio distortion in the HDMI output from the card. The Linux kernel AMDGPU video driver seems to work as expected for video, but a strange audio pitch-shifting problem (detailed below) persists across various Linux distributions (Fedora, Debian, Ubuntu, Arch Linux) installed freshly on two completely independent systems. Another user has noted in the comments that (s)he can confirm the same issue on the following graphics cards:
ObservationsWhen outputting sound through the HDMI port, all audio is pitch-shifted up, sounding like an Alvin and the Chipmunks cartoon. Depending on the application, either the playback speed is increased (to approx. 2x) to match the sped-up audio, or the playback speed is normal (1x) and the audio becomes choppy (quickly stutters on-and-off) to match it. I have tested audio coming from many different applications and, other than fast playback to match audio vs. choppy audio to match playback described above, the sped-up audio issue is persistent across all of them. Here are a few examples:
Troubleshooting Steps I Have Tried
I have also done a lot of poking around the system (at my intermediate level of knowledge), but nothing stood out to me. I referred extensively to System InformationALSA device listing ( Note in the Partial output of Please advise me if there is any sensitive information below so I can take it down. |
How to set the timezone of a Linux host to BRT (Brasilia Time)? Posted: 25 Oct 2021 10:05 AM PDT I've a scenario that needs the timezone on the host to be BRT which is currently PST. I'm expecting the result of I've checked the Am I missing anything here? or Is there any other way to set the timezone to BRT? [*] |
How can I make Linux use super instead of ctrl as the main modifier key? Posted: 25 Oct 2021 09:19 AM PDT My issue is that I use Ctrl as a modifier in my Vim mappings. I use Alt as a modifier in my TMUX mappings. And coming from the Mac, I've grown accustom to using Command (i.e. Super) as the modifier for general OS shortcuts. I've seen several posts on remapping keys, and perhaps I don't understand what that means in Linux terms, but I'm NOT looking to press Super+N (ex: New window) and have that send Ctrl+N to Linux. Doing this would mean my OS shortcuts would be in the same Ctrl namespace as my Vim mappings, which introduces collisions. Is there a way to force Linux to respond to Super+some command key for all the built-in defaults that would otherwise expect Ctrl+some command key? In other words, can I force Linux to use Super instead of Ctrl? |
How to find last n newest files for each of multiple directories Posted: 25 Oct 2021 09:40 AM PDT I am trying to find a ways how to find last n newest files for multiple directories. The problem with that is that the directories are structured, but not really hierarchical placed, but they have specific names. Example: The problem for me is the following: I can use -regex option in the find command, but that can give me only newest files after further commands for search filtering newest file, but that is only valid for the latest file regardless of the sensor that is used. What am I trying to achieve is to create output in which the latest n files would be shown based on the time stamp. How can I do that as simply as possible? |
Command-line tool to get "click and drag" rectangle coordinates from the screen [duplicate] Posted: 25 Oct 2021 08:01 AM PDT I would like to execute a command-line command that activates "click and drag" mouse selection on a single local X11 screen. The goal is to:
|
Reverse a hexadecimal number in bash Posted: 25 Oct 2021 09:06 AM PDT Is there a simple command to reverse an hexadecimal number? For example, given the hexadecimal number: The output should be: Using the Update |
how to check if both parameters are set in bash? [closed] Posted: 25 Oct 2021 08:56 AM PDT Say I have a executable bash file I want to use it as
So I need to check them before go on executing further in updated: I tried this: but got: |
How to launch shell script with double click in CentOS 7 Posted: 25 Oct 2021 08:19 AM PDT I need to be able to execute an executable shell script ( |
Mysql database didn't connect through sqlyog or any other mysql software? Posted: 25 Oct 2021 09:07 AM PDT I can connect to a MySQL server through a browser and also I can show all database list through PuTTY. But when I try to use
How I give these tools permission? I use this command I get that ERROR |
How to check integrity to HDD with UDF format Posted: 25 Oct 2021 08:05 AM PDT I'm having problem with a USB external drive, which seem to be formatted with UDF and was being used for MAC and Windows (or at least that is what told). When I attached the HDD to my Linux system the next are the With that information the HDD seem to be OK. However I'm unable to identify the type of partition (some commands from Windows console show is UDF but I can't confirm with Linux counterparts) Trying to get more information, the As the partition doesn't mount, tools like I can't find many material about the UDF format (and I don't understand why a HDD use it when is ) and neither what to do when is unable to read any partition at all. Any suggestion? |
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