Recent Questions - Unix & Linux Stack Exchange |
- How to check Processor Generation?
- how to create a project having following dependencies?
- Linux Mint 20.1 : No wireless internet connection option
- Bash Script copy each zip file which is listed in a Text file to another folder and zip this folder
- How read file paths mentioned in a text file inside a Korn shell script?
- How to ovewrite plugins configuration with user configuration?
- Why does this disk img mount only though a CDROM block device?
- Try to mount SMB share on NAS and get "Operation not supported"
- Unix shell script to filter the log result based on time and status
- Test if a command's output is an empty string and print its results if its not empty
- Sleep while process uses more than n% CPU
- Application that logs the program executed
- How to sort uniq values from a text file?
- Cannot build kgdboe against kernel headers
- How to redirect ls output into `less -R` if the output size is large
- keystroke in x11 cannot be repeated onpress
- How to logging IP address with firewalld SNAT?
- Regular expression for a string
- grep/awk for matching both strings
- PAM unable to dlopen(sensepam.so): /lib/security/sensepam.so: undefined symbol: OPENSSL_init_crypto
- How to concatenate a specific column from several file
- VirtualBox/Android - Unable to run Google Play Apps
- I messed with Fstab, my computer wont boot anymore - debian 10
- Fail to enable NFS on Yocto Linux
- Script that groups backups by date then deletes files+folders older than X days
- Pairing bluetooth headset fails with error org.bluez.Error.AuthenticationTimeout
- alsa 16 channel audio playback using dshare plugin is getting stuck at poll function on /dev/snd/timer
- error: disk lvmid/... not found Entering rescue mode
- fstab mount problem
- Btrfs/ZFS Network Replication
How to check Processor Generation? Posted: 05 Jul 2021 09:52 AM PDT I was trying to exchange my laptop in an online site and i need to provide them my processor generation. They have shown how to check that in windows machine but i'm using a linux machine. How to check my processor generation in linux? |
how to create a project having following dependencies? Posted: 05 Jul 2021 09:48 AM PDT |
Linux Mint 20.1 : No wireless internet connection option Posted: 05 Jul 2021 09:30 AM PDT I installed Linux Mint and connected the PC to my wifi network without problems. I updated drivers, rebooted and now there is no option to connect to wireless connections, I mean, I left-click the icon on the task bar and only "Wired" option appears. If I open "Driver Manager", no drivers about wireless connection appear, only about NVIDIA graphic card I've already tried (Linux Mint-17) Unable to connect to wireless network Operating System Linux Mint 20.1 Cinnamon Cinamon Version 4.8.6 Linux Kernel 5.4.0-74-generic Processor Intel© Core™ i5-8300H CPU @ 2.30GHz × 4 Memory 15.5 GiB Hard Drives 1756.4 GB Graphics Card Intel Corporation UHD Graphics 630 (Mobile) (prog-if 00 [VGA controller]) |
Bash Script copy each zip file which is listed in a Text file to another folder and zip this folder Posted: 05 Jul 2021 09:50 AM PDT Hello i have some trouble to get a script working. Here are my requirements what i want to do
The Problem is now the loop doesnt work he does copy only 1 file and loops trough this 5000 times. Can one of you support me or point me to the correct path :) what am i doing wrong? Here is my code: regards chrootENV |
How read file paths mentioned in a text file inside a Korn shell script? Posted: 05 Jul 2021 08:42 AM PDT I am writing a script to read multiple log files and find lines with a specific string. However I am getting an error when trying to egrep/grep on the file. I have a file that has the names of the log files to read (see below) files.txt log_analysis.ksh ERROR
However I don't get this error if I run the same |
How to ovewrite plugins configuration with user configuration? Posted: 05 Jul 2021 08:28 AM PDT I'd like to use tmux-pain-control but I have C-h set to move window right, and since tpm says it needs to go at the very bottom of the configuration file, the plugins always overwrite my configuration. How can I make it so I can overwrite the plugin configuration? |
Why does this disk img mount only though a CDROM block device? Posted: 05 Jul 2021 08:40 AM PDT I've created a disk image (not just a partition) of an SD card using I've been trying to mount this img on Debian via a loopback mount, but it refuses to detect and mount the ext4 that is contained in it. The only way I was able to mount it was through a VM where I attached this img file to the CDROM device. After which I was able to mount it through the CDROM block device ( Attempting to mount after doing a losetup: What gives? |
Try to mount SMB share on NAS and get "Operation not supported" Posted: 05 Jul 2021 08:08 AM PDT I have several Synology NAS, running DSM 6.2.2-24922 Update 5, which I successfully mount on Ubuntu 18.04 with: I have bought a new one, which is running DSM 6.2.4-25556. I attempt to mount in the same way and I get this error: Enable SMB Share is enabled on the new NAS, with the same settings as the others. Can anyone advise? |
Unix shell script to filter the log result based on time and status Posted: 05 Jul 2021 08:01 AM PDT Suggest a script or a command, which will pick log entries recorded from the time 11:30:40 to 12:10:20 inclusively and write to console only those, which are related to 'accepted' invoices? Given : Log entries- billNo, customerName, Company, Amount, Status(accepted/declined). Example [INFO ] 2020-06-02 11:40:26.145 [main] [Server Logger] – Customer1 has uploaded an invoice for company 'ABCD'. Amount = 100$. State: declined [INFO ] 2020-06-02 14:35:58.332 [main] [Server Logger] – Customer2 has uploaded an invoice for company 'EFGH'. Amount = 11$ . State: accepted [INFO ] 2020-05-12 11:52:26.145 [main] [Server Logger] - Customer3 has uploaded an invoice for company ''. Amount = 30$. State: accepte [INFO ] 2020-05-12 12:00:26.145 [main] [Server Logger] – Customer4 has uploaded an invoice for company 'ASWE'. Amount = 500$. State: declined [INFO ] 2020-05-12 13:40:26.145 [main] [Server Logger] – Customer5 has uploaded an invoice for company 'FDFDF'. Amount = 80$. State: declined |
Test if a command's output is an empty string and print its results if its not empty Posted: 05 Jul 2021 08:06 AM PDT I am using solutions from Test if a command outputs an empty string. In addition to those solutions, I want to print command's output if its not empty. I was wondering would it be possible to print command's output if its not empty by calling the command only one time. I can do it by re-calling the same command inside the Possible approach could be, where the same command is called two times: |
Sleep while process uses more than n% CPU Posted: 05 Jul 2021 07:37 AM PDT I am on macOS. I want to write a bash script which pauses for 0.5 seconds (i.e. sleeps) while a certain process (which I know by command name only) uses more than, say 5% CPU. I could
and then
to get the CPU usage and use this number in a while loop. Can this be done more elegantly (ideally in one line of code)? |
Application that logs the program executed Posted: 05 Jul 2021 07:25 AM PDT I am new to Linux. I have installed mx Linux 19.I wanted to know availability of any software application that logs the cpu activity similar to the one seen while disabling quite splash for debugging purpose to know execution history and status of programs by the OS. |
How to sort uniq values from a text file? Posted: 05 Jul 2021 10:00 AM PDT I have a text file as shown below: I want to sort it based on first column values and keep it in separate files. Desired output: A.txt: B.txt: Tried it with |
Cannot build kgdboe against kernel headers Posted: 05 Jul 2021 07:13 AM PDT I am trying to build kgdboe according to the following tutorial. I am running Ubuntu 20.04 with an updated kernel 5.9.0 as I needed a driver which was not available in stock kernel. I updated the kernel by downloading the headers, modules and kernel image .deb packages and installing them manually. My I have also manually downloaded complete Linux kernel source tree from GIT and checked out 5.9.0. If I make this module with path in make command pointing to the full source tree, the module buids. But since the module magic version and uname -r output doesn't match, I am unable to insert the module even with My question is, why am I not able to build with only the linux headers? Am I missing some step that prepares the headers folder for building modules? I am trying to find a way of building this module against the kernel headers or if I could update the version magic of built module (5.9.0) to |
How to redirect ls output into `less -R` if the output size is large Posted: 05 Jul 2021 08:03 AM PDT If the count of When I do In case if its over 200, or based on the height of the terminal, somehow can we redirect the results into I have tried following solution but right after I press my setup: |
keystroke in x11 cannot be repeated onpress Posted: 05 Jul 2021 06:18 AM PDT I am using nixOS on a 2017 Macbook pro, and I want to use a tiling window manager for my workflow. The keyboard is working normally in console, which can repeat keypress when I hold the button. But when I start x11 and use a display manager(tried lightdm and gdm) and a window manager (tried i3, xmonad, leftwm), my keystroke there cannot be repeated on hold. I have been searching around, yet I can barely found clue showing me whats wrong. This is the result of |
How to logging IP address with firewalld SNAT? Posted: 05 Jul 2021 06:22 AM PDT I try to setting up SNAT with firewalld on my CentOS 8 PC to make NAT router like below. Users access to the Web Server via CentOS8. I want to logging 4 IP addresses at a line, like a firewall appliance.
I found the 1.UserPC and 2.WebServer in the /var/log/firewall file. But I can't logging "3.UserPC(After NAT)" and "4.Web Server(After NAT)". My CentOS8 PC has 2 NICs.
Here are my firewall-cmd rules. I checked the access.log in the WebServer, source IP address is "10.0.0.3". I wonder the order of firewalld rules is not good, I changed the rules order. But it does not work well. Next I checked nft list ruleset, I found the rules below. I think I need to add some statements or keyword or something. How and what do I have to add to this meta line? And is my thought correct ? I would be grateful if anyone could tell me. Thank you. |
Regular expression for a string Posted: 05 Jul 2021 09:44 AM PDT Hi I have a md file containing the below string and I want to write a regular expression for this. Conditions
So I want to check the string is in a proper format in bash script otherwise will through an error. Current code look like this . The below code is working for me without an ID. But I need to add a regex for id as well Please help |
grep/awk for matching both strings Posted: 05 Jul 2021 08:59 AM PDT I need to use an if statement that is true only if "is loaded" AND "is running" occur in a service status command output: As already mentioned I've tried to use this: but I dont' get any output. The only way to run it is in this way: but I'd prefer to use a shorter expression. Where am I wrong? thank you |
PAM unable to dlopen(sensepam.so): /lib/security/sensepam.so: undefined symbol: OPENSSL_init_crypto Posted: 05 Jul 2021 08:49 AM PDT I'm write a linux pam authentication module with c programming under ubuntu.My idea is when login input username and password that compare with web server saved username and password, if they are the same,then you can get into system,or you can't enter system. Because web server is like https://xxxxxxxxx.com , so I write c code with openssl, my c code(sensepam.c) is like this: my gdm-password is like below: my system infomation is like below: I have installed openssl : I use below command to compile: But when I try to login system,it can't work,so I view the log at /var/log/auth.log I think the error point is : so Is there any way to solve this problem?Thanks! |
How to concatenate a specific column from several file Posted: 05 Jul 2021 09:53 AM PDT I have a data file
And I want to concatenate all the file into one, knowing that the only column that is different between all the file is the column So far I tried : But it didn't works. Do you have a way to do that ? Thanks PS: Here is a sample test, in my real condition I have more than 3 files. But like the example, there are not two file with the same thing in the |
VirtualBox/Android - Unable to run Google Play Apps Posted: 05 Jul 2021 06:32 AM PDT I'll provide more details below, but the bottom line is that I have android running in a virtual machine with a Ubuntu 20.04 host. For any app that I've downloaded from the Google Play store, I get the following error message when I click on it:
where "[App Name]" is Doodle Jump or whatever. Also, when I click on the app, text output on a black background appears for a tiny amount of time. Other apps that came with the android installation appear to work fine. I installed the Android x86 8.1 ISO. I am using VirtualBox 6.1 installed on Ubuntu 20.04. During the VM setup, I selected that the "Type" of the VM was Linux and the Version was "Other (64-bit)". It has 8gb of storage and 2gb ram. Also, I had to set the "Graphics Controller" setting to "VBoxSVGA" to get the graphics to work properly. Let me know if there are any more details I should add. Any help is greatly appreciated. |
I messed with Fstab, my computer wont boot anymore - debian 10 Posted: 05 Jul 2021 06:21 AM PDT Earlier today, I thought it would be a good idea to add two hard drives to my After reading about these kind of problems on the internet, I tried to boot from a Ubuntu Live USB, mount my Debian partition in To clarify, when I try to start on my regular partition, I manage to go to Here is what my
Also, I have noticed that an empty folder I'm not too sure what to do anymore, I'm pretty sure I restored the |
Fail to enable NFS on Yocto Linux Posted: 05 Jul 2021 09:42 AM PDT I'm trying to enable NFS on a Linux image built using Yocto. The image is running on a dev board - Qualcomm RB5. After booting up, mount.nfs didn't seem to work, complaining When I check using dmesg | grep nfs, I got the following info but can't figure out myself what's the reason for the failure When I check using " which is confusing since I thought I enabled nfs. I made sure I enabled NFS support in local.conf. The following are the lines that I used to enable NFS: Anything that I missed? |
Script that groups backups by date then deletes files+folders older than X days Posted: 05 Jul 2021 09:11 AM PDT We have 30 days of backups = 30 folders, the backup runs hourly so in each of these folders, there are 24 files in each folder. We need to run a script that keeps the five latest dates of files. For example, if today is June 30 and I run that script, it doesnt matter how many files are in the folders June 25, June 26, June 27, July 28, July 29 it will keep all five folders and only delete the folders from June 24 and older. Would also be nice to skip folders that have data < 10kb incase a backup task created an empty zip file. What I have been testing so far: Is this logic correct? I also need some kind of xarg to execute "rm -R" on the resultant list of "old backups". Thanks in advance! |
Pairing bluetooth headset fails with error org.bluez.Error.AuthenticationTimeout Posted: 05 Jul 2021 07:01 AM PDT I'm having a problem connecting to my Bluetooth headset. I can pair it to other systems, so I know it's working, however, on my new laptop on which I recently installed Manjaro i3, it fails. This is what I'm doing (and the output I see): I've been going through the internet for the past 4 hours, but I didn't find any solution. Any help is sincerely appreciated |
Posted: 05 Jul 2021 08:22 AM PDT Problem: Send 16 channel audio TDM stream over SAI(5) datalines using freescale IMX8m. There's no codec termination on the HW. only the data is framed in a TDM fromat and sent over the I2S Datalines. There's an FPGA that receives the data on the other end of Imx8m datalines and de-multiplexes it to multiple audio out sources. Issue: When playing 8 (4 stereo sources) channels, the TDM frame seems to be working without any issues. But when i increase the TDM frame size to 16 channels (8 stereo sources), once in a while the playback is stuck before even beginning the playback. it remains stuck in the poll() function and never returns. this poll function is called at the top level from snd_pcm_write_areas() in /alsa-lib/src/pcm/pcm.c Here's what I have found during my debug between aplay app/alsa-lib <=> alsa-pcm-snd-driver <==> fsl_sai driver > HW
I am not sure which one leads to the other and which one is the bug that needs to be fixed. The poll function getting stuck due to timer getting into bad state or the timer getting into bad state leading to the poll getting stuck. Some details of how we creating the TDM frame we have a 16 channel audio (8 independent stereo pairs) that need to be sent as a frame to the HW to be written out on one of the SAI datalines (4 data lines). These 8 sources can be played independently and the sources will occupy the slots in the TDM frame according to the channel map as specified in the asound.conf configuration file. The dshare plugin is being used to create the shared buffer that will hold the frame. I have created 8 virtual sources in the conf file, one for each playback process. each source can be used in a separate aplay process for playing a 8 different source. see the batch file that plays all the 8 sources. output from aplay -L/l asound.conf file batch file for playing all 8 sources Please let me know if there's something that can be modified in asound.conf file or if there's any limitation that i am hitting when playing 16 vs 8 channels in the alsa-lib that's causing this issue. The other links that i have seen regarding this issue are below. they are very old links and some say its fixed but i am not sure how it was fixed or what those patches were. our system is using alsa version 1.1.6 with kernel 4.14 and is present in this build. please point me to any patchset or link that shows how to resolve this issue. i have hit a dead end at this time regarding this issue and also due to my limited knowledge in this area. [https://bugzilla.redhat.com/show_bug.cgi?id=534130][1] [https://www.raspberrypi.org/forums/viewtopic.php?t=64936][2] [https://sourceforge.net/p/alsa/mailman/message/26464680/][3] |
error: disk lvmid/... not found Entering rescue mode Posted: 05 Jul 2021 08:01 AM PDT I deleted the partition containing Fedora to install Ubuntu (in Win 10), but after I rebooted I'm getting the following error message: I think I lost my bootloader. How to recover the bootloader? |
Posted: 05 Jul 2021 09:02 AM PDT Fresh install Of Mint 17. I have few partition and 3 OSs Win/Ubuntu-Gnome/ and this newly installed Mint. One of these partition is a storage disk for all documents, photos etc.. and I used to use it from both Linux OSs without any problem and mount it during start by editing
I tried all possible options via |
Posted: 05 Jul 2021 10:00 AM PDT Is it possible to replicate a ZFS or Btrfs raid volume in real-time (or as close to as possible, network specs aside) over a network? ZFF and Btrfs are ideal because of their CoW properties. I'm thinking something similar to DRBD, but DRBD won't work because it requires a single block device, and we're ruling out the option of exporting each disk as a DRBD device because that would get messy. I don't want to use send/receive because they would be too slow, even if scripted. Ideally, I'd like something relatively simple to avoid unnecessary complexity. |
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