Recent Questions - Unix & Linux Stack Exchange |
- Excel - Highlight selected/active cell keeping old color
- What is the difference between a systemd scope and a systemd slice?
- How to copy multiple files to different locations through package() in PKGBUILD
- Failure while connecting external harddrive
- users command does not show recently added users
- How to use all disk space available on Linux Mint?
- Can I run both Wine and Wine Staging on the same OS without any interference between both?
- How to get the full console log of my tmux session on Linux?
- Why wait in this script is not executed after all subshells?
- top command and + and * symbols
- How to programmatically maintain umask in /etc/profile and /etc/bashrc
- Why can't I install an almost indentical kernel on brand new debian 11?
- Kubuntu 21.10: All ports (open or closed) return ICMP admin-prohibited, even with no firewall enabled. How to fix?
- clock_gettime error logging into VSFTP on Amazon Linux 2 from certain clients only
- Using two variables to form a single text file
- Make OS-dependent Requires section in an RPM spec file
- Storage encryption on Linux desktop: LVM on LUKS or ZFS
- How to write a script that accepts input from stdin or a file?
- sum rows and columns in a table of numbers
- Can I use scp to copy files to the home directory without having to specify it?
- Trying to connect bose quietcomfort 35 headset over bluetooth on arch linux
- find and replace with the value in another file
- Use here-document in a one-liner?
- Get a progress indicator when importing MySQL databases
Excel - Highlight selected/active cell keeping old color Posted: 28 Jan 2022 12:45 AM PST there is here (https://stackoverflow.com/questions/365125/how-do-i-set-the-background-color-of-excel-cells-using-vba#365131) some information about highlighting an active/selected cell in excel, but I cannot manage to restore the old background color of the cell that was set prior to the selection. Does anyone have a suggestion how to solve this issue? Thanks!!! |
What is the difference between a systemd scope and a systemd slice? Posted: 28 Jan 2022 12:05 AM PST What is the difference between a systemd scope and a systemd slice? Both are for resource management. But what can you do only with a slice and what only with a scope? |
How to copy multiple files to different locations through package() in PKGBUILD Posted: 27 Jan 2022 11:23 PM PST I am new to PKGBUILD. I created an AUR installer tool and for that I am creating PKGBUILD file. After so much reading and video tutorials, I have come up with this so far. Basically, I have a Basically, I am copying files to different locations. But when I install through it, I get: I know I am making a mistake it's just I don't know what it is. Need help with this. Thanks. |
Failure while connecting external harddrive Posted: 27 Jan 2022 11:08 PM PST I am trying to connect a seagate external drive to my PC that runs Here is my dmesg output when I plug my drive in. Any kind of help would be appreciated! edit: I think it should be worth mentioning that the drive is not partitioned. |
users command does not show recently added users Posted: 27 Jan 2022 10:42 PM PST I have created few users: These users now exist However these users does not show up on What might be the reason? |
How to use all disk space available on Linux Mint? Posted: 27 Jan 2022 09:39 PM PST I'm new to Linux and Linux Mint - but I recently flashed Linux Mint on my 16 GB USB drive (dual-boot), and for some reason Linux Mint is giving me warnings that there's no space left. When I go to check how much disk space is available, it's saying that there's only 8.3 GB of space available in total, where there should be 16 GB. How do I get Linux to use all of the space on my USB? Am I doing something wrong, or am I just misunderstanding something? Cheers, Tom |
Can I run both Wine and Wine Staging on the same OS without any interference between both? Posted: 27 Jan 2022 09:38 PM PST I'm asking before trying because I already have a few things set up in Wine Stable, so I don't want to mess things up by installing something else over it. Basically, I want to install Staging because I have an app which is said to require the former to function properly under Linux (it's a music player.) Will installing Staging affect the way Wine Stable behaves? If so, how? Can I configure Wine Stable and Wine Staging separately? I'm running Debian Bullseye Stable. Thank you. |
How to get the full console log of my tmux session on Linux? Posted: 27 Jan 2022 09:26 PM PST |
Why wait in this script is not executed after all subshells? Posted: 28 Jan 2022 12:10 AM PST In this script, that pulls all git repositories: the Why is it so and how can I fix it? |
top command and + and * symbols Posted: 28 Jan 2022 12:30 AM PST I am trying to fetch memory usage with below top command. Strangely sometimes I receive the output as I am not able to understand why are the I couldn't find anything in man page about it. What does that mean? How do I make Note : Running in CentOs Machine. |
How to programmatically maintain umask in /etc/profile and /etc/bashrc Posted: 27 Jan 2022 11:31 PM PST I am looking for a way to programmatically maintain a consistent umask in the files So I would like to programmatically check for the first |
Why can't I install an almost indentical kernel on brand new debian 11? Posted: 27 Jan 2022 10:44 PM PST My overall objective is to build an RT_PREEMPT kernel that I can modify. As an intermediate step, I'm trying to build and install (and run as a grub entry) a generic, non-RT_PREEMPT kernel. But I think the question below is valid, even without mentioning RT_PREEMPT. Here's the scenario:
If I press a key, the process continues briefly before the kernel panics because it can't mount root. I'm new to Linux, but this seems like such a basic thing that it should work. So I'm doing something wrong, but don't know what it is. The out of memory error seems not that common, so here I am asking for help. Here are more details of my process:
This part is a little confusing, but I think this means that this is a version 5 kernel, patch level 10 and sublevel 92. On kernel.org, I think the closest version is: So, these are the commands I'm using: And then the reboot fails as described above. I do have to edit the I finally got the Debian instructions to work (with a few added lines). So, to build the same kernel that's on a stock debian 11 system, here is what I did. The scariest part is that you have to remove the stock kernel, so better to have at least one different kernel before doing this: sudo apt-get install build-essential fakeroot sudo apt-get build-dep linux apt-get source linux cd linux-5.10.92/ fakeroot make -j10 -f debian/rules.gen binary-arch_amd64 sudo apt remove --purge linux-image-5.10.0-11-amd64-unsigned sudo dpkg -i linux-image-5.10.0-11-amd64-unsigned_5.10.92-1_amd64.deb sudo reboot Thanks for the help. |
Posted: 27 Jan 2022 11:16 PM PST Running an up-to-date installation of Kubuntu 21.10. If I run any network service on the machine, I'm unable to reach it from anywhere else on my network. The error is always "Host unreachable". A
Here is the Here is what happens when
Services can be accessed locally using I do have Docker on the machine, but for trying to figure this out, I disabled Docker and removed all of its The machine also has VirtualBox installed, if that's relevant, but at the time of testing no VirtualBox machines were running. Also of important note is that the SSH server running on the host can be reached successfully - this is the only service that is reachable, regardless of what else is running: Is there perhaps a kernel setting somewhere that is causing this to occur? Edit: As requested here is |
clock_gettime error logging into VSFTP on Amazon Linux 2 from certain clients only Posted: 28 Jan 2022 12:24 AM PST We have an FTP server VSFTPD running on AWS Linux 2; users are chrooted. Some users can log on fine, others are getting connection failed in WinSCP and an error in Filezilla. On investigation, the error is: Relink Oddly, the exact same configuration which works for some clients fails for the others. This doesn't seems to be a common error and I would value ideas about how to fix it, either in the VSFTPD configuration or the clients. |
Using two variables to form a single text file Posted: 28 Jan 2022 12:24 AM PST I am trying to create a text file with below content I have 10 users and 10 mobile numbers as well. User names are saved in
my output should look like below. I want this output in single file. Could someone please help me with the shell and python script? |
Make OS-dependent Requires section in an RPM spec file Posted: 28 Jan 2022 12:51 AM PST SituationI have an RPM that uses Unfortunately, between RHEL 6/7 and 8, the package containing these tools was renamed from A working spec file for the RHEL8 RPM contains: And a working spec file for the RHEL6/7 RPM contains: What I try to achieveI could live with the two spec files/two RPMs, one for every OS type, but I'm lazy and I want one spec that serves all. What I triedI read about the OS conditional If I check the value of the Installation of this RPM on a CentOS 6/7 instance works fine. However, upon installation of the OS-independent RPM on an CentOS 8 instance, I get: Debug output: It would seem that the What am I not seeing here? Is there anything I can do to debug this? Related and sources |
Storage encryption on Linux desktop: LVM on LUKS or ZFS Posted: 27 Jan 2022 10:50 PM PST I choose solution for storage encryption on Linux desktop. For years LVM on LUKS was a best option with superior performance and reliability. But ZFS on Linux actively develops new functions and now we have options. I compared LVM on LUKS and ZFS with various fio tests with default encryption settings, provided by developers and mantainers: aes-xts-512b at LUKS, aes-256-gcm at ZFS. Here are average bandwidth and latency metrics at RAM block device for each volume type: At the first comparsion on the charts looks controversional. XTS obviously faster than GTC on random small blocks. But on sequentional reads and writes ZFS shows comparable latency with a noticeable increase in bandwidth! Which of these solutions is best suited for desktop tasks in terms of performance? Now I find it difficult to choose and I will be grateful for the advices. UPD1: For example, my typical storage tasks are:
It is easy to optimize system for each individual task. But which of the solutions best fit all of them? UPD2: |
How to write a script that accepts input from stdin or a file? Posted: 27 Jan 2022 11:07 PM PST I have a bash driver for a awk script that should accept input as This works for piping only. I also tried using a for loop to read all the file names, but that doesn't work for piped text. Any input is appreciated. |
sum rows and columns in a table of numbers Posted: 27 Jan 2022 11:43 PM PST I have large and many tables of numbers. Below is just a sample: I want to sum the rows and the columns in each table for further processing so the output look like this: How can I do it? I tried |
Can I use scp to copy files to the home directory without having to specify it? Posted: 27 Jan 2022 10:13 PM PST I've followed this tutorial to see how to use But I'm wondering if there's a way for me to not have to specify the destination with the prepended Or, to clarify, I want to be able to send files to the home directory of the user on the remote computer ( Is it possible? Feasible? |
Trying to connect bose quietcomfort 35 headset over bluetooth on arch linux Posted: 27 Jan 2022 10:05 PM PST There is another question here, but i followed those instructions and it still didn't work. Here is the systemctl status Here are the contents of /etc/bluetooth/main.conf And the contents of /etc/bluetooth/audio.conf Here is what happens when I try to connect via bluetoothctl Here is the relevant information from /etc/pulse/default.pa Any help is appreciated, thanks. Ninja Edit: Pulseaudio-bluetooth IS installed. |
find and replace with the value in another file Posted: 28 Jan 2022 12:08 AM PST I have two files with different formats with columns tab spaced. I have to compare the columns I want to assign the values from file2 to file1 column as I would like to write the updated content into another file editTried the below code as per the comments Got this output |
Use here-document in a one-liner? Posted: 27 Jan 2022 09:05 PM PST I have a simple script that executes commands on remote host using I was trying to do it with a one-liner at command line but I couldn't figure out how to do the here-document outside of a script. Is it possible? I spent some time googling and reading documentation about here-documents, but it wasn't coming to me. This script works fine - I needed the here-document section in order to run I'm probably missing something simple... Anyway thanks for any suggestions :) |
Get a progress indicator when importing MySQL databases Posted: 28 Jan 2022 12:17 AM PST I often import MySQL databases, and this can take a while. There is no progress indicator whatsoever. Can one be shown, somehow? Either records imported, MB imported, or tables imported... anything is better than just waiting. Anybody any idea? I use this command:
Files are between 40-300 MB, and the host is within the local network. |
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