Recent Questions - Unix & Linux Stack Exchange |
- Too many open files error, but only when accessing through a mounted disk
- Is it possible to run a samba server while disabling IPC$ at all?
- podman persistent storage mapping, how to select the home folder to mount?
- How can I prevent a line break between option and parameter using `.RB` and `.IR`?
- What is the best way to back-up the Linux kernel before performing a kernel and device tree update?
- Send audit log to syslog server as independent stream
- Using -enable-kvm inside virtual machine
- How can I list packages selected manually via yum?
- What does SP mean in `CSI Ps SP A` xterm escape command?
- Ubuntu Cursor freezes
- Sniffing traffic and promiscuous mode
- How to check if DST is inactive in CentOS different versions?
- Create SSH tunneling with multiple hosts
- Isolating a cpu with cupset (cgroup v2)
- Cant install Selinux policy
- systemctl + cant restart any systemctl service because Resource temporarily unavailable
- Problems with network connection in Kali Linux
- OpenDNS setup help
- Create a tsv file with data from several files
- KDE Plasma black screen/no video output on login
- how to fire a script when network interface goes down
- gsettings commmands and their gconftool-2 alternatives
- sks-keyservers gone. What to use instead?
- How to print multi-line variables in side-by-side columns in sh?
- Can't restore/reformat my USB flash drive after moving to GPT
- Rlogin prompting for remote password (Kali / Metasploitable)
- davfs unknown option because of secrets file
- How do I use the SED command to remove injected code from multiple files?
- What is the difference between the whatis and apropos commands?
- Change PulseAudio Input/Output from Shell?
Too many open files error, but only when accessing through a mounted disk Posted: 16 Mar 2022 07:31 AM PDT I am having a problem where once I try to copy something from a mounted unit on a windows dfs server (Windows server 2012), I get the "Too many open files" errors from linux, but ONLY if I try to copy something from that mounted unit. The linux server is a Red Hat Enterprise Linux Server release 6.6 (Santiago), the mount was done using mount from util-linux-ng 2.17.2 (with libblkid and selinux support). I also upped the ulimit of open files and processes from our server to a huge amount (2000000) and when the error happens, The error happens suddenly and I haven't been able to reproduce it, but once it does, I could check that I was able to copy and move files freely from linux, but couldnt copy something from the dfs server to linux. I will appreciate any kind of assistance, i've tried looking all over the logs place and I haven't been able to found a single reference to "too many open files" in them. | ||||||||||||||||||||||||||||||||||||
Is it possible to run a samba server while disabling IPC$ at all? Posted: 16 Mar 2022 07:27 AM PDT I ran into the question as stated in the caption of the question: If I run a samba server I usually offer one or more shares. One share that appears to be always there is | ||||||||||||||||||||||||||||||||||||
podman persistent storage mapping, how to select the home folder to mount? Posted: 16 Mar 2022 06:58 AM PDT If I am using a httpd service or rsylog service in a container, and want to use a persistent storage directory on the host, how does directory mapping works. An example I have seen is: A home dir is created
I am wondering why | ||||||||||||||||||||||||||||||||||||
How can I prevent a line break between option and parameter using `.RB` and `.IR`? Posted: 16 Mar 2022 07:04 AM PDT When writing a manual page of a command, the SYNOPSIS contains: Unfortunately when formatting the SYNOPSIS there is a line break between "[-v" and "version]". How can I avoid that? | ||||||||||||||||||||||||||||||||||||
What is the best way to back-up the Linux kernel before performing a kernel and device tree update? Posted: 16 Mar 2022 06:09 AM PDT Is this as simple as duplicating the directory /boot to /boot~ before using dpkg to apply the updated Kernel ? So if the systems is bricked then all I would need to do is put the SD card into another system, erase the upgraded /boot directory and rename /boot~ back to /boot? If not, does anyone know how best to back-up the entire Kernel before applying a kernel update complied from the sources available on kernel.org ? Yesterday upgrading from 5.15.27 to 5.15.28 bricked by embedded controller. I've since got it working, but from a clean pre-built 5.15.27 image. Currently copying my customisations from SD card containing bricked system to the now working system. | ||||||||||||||||||||||||||||||||||||
Send audit log to syslog server as independent stream Posted: 16 Mar 2022 06:08 AM PDT I have a system which is currently set up via One of the easiest ways to do this is by modifying Is there any way to send the raw unmodified audit log to the same server on its own? | ||||||||||||||||||||||||||||||||||||
Using -enable-kvm inside virtual machine Posted: 16 Mar 2022 06:03 AM PDT I have a virtual machine (Ubuntu 20) under VirtualBox (6.1.26). I am trying to run yet another vm inside ubuntu vm using qemu. It works, however, running qemu inside vm with I've already checked that my machine supports VT-x and that VirtualBox nested virtualization is enabled. What could be the problem? | ||||||||||||||||||||||||||||||||||||
How can I list packages selected manually via yum? Posted: 16 Mar 2022 07:00 AM PDT I'm working on a CentOS system where I install packages, occasionally, with Is it possible to get a listing of all those packages which were installed due to specific user request rather than dependency satisfaction? And if so, can this be limited by date range or by whether it was during the initial distribution installation or later? | ||||||||||||||||||||||||||||||||||||
What does SP mean in `CSI Ps SP A` xterm escape command? Posted: 16 Mar 2022 06:36 AM PDT I am learning ansi escape codes with xterm. And according to this there is the following escape code:
Could anyone explain what is But it didn't show any changes in ubuntu terminal. | ||||||||||||||||||||||||||||||||||||
Posted: 16 Mar 2022 05:59 AM PDT Ubuntu version 21.10:
As per one of the posts i've seen: Temporarily enables the cursor but shortly afterwards the same thing happens. Upon reboot of system, cursor works again. Any advice welcome, thank you. | ||||||||||||||||||||||||||||||||||||
Sniffing traffic and promiscuous mode Posted: 16 Mar 2022 05:11 AM PDT I've been playing with tcpdump lately and was surprised to see that traffic not sent to/from the host running tcpdump is not picked up. The default tcpdump mode is promiscuous. I've also seen that the NIC/wNIC has to be put in promiscuous mode. I then read that this would be the case is using a hub. But, since one typically today use a router/switch, packets are only sent to the port that the corresponding mac-address is connected. So traffic not sent directly to/from the host running tcpdump would not be sniffed. I then thought that if a wifi is present, the host running tcpdump should pick up all traffic, as this needs to be sent wireless, and there is no way to directly send wifi-traffic to a specific host; the signal is sent to all connected host. Yet, I do not see this traffic either. What am I missing? Thanks! | ||||||||||||||||||||||||||||||||||||
How to check if DST is inactive in CentOS different versions? Posted: 16 Mar 2022 04:59 AM PDT I have few servers with CentOS 7 and 6 as OS. Previously, the time was changed twice a year for DST and the OS automatically did this on each server. but I can't safely confirm on CentOS 6 that DST is deactivated. I searched everywhere but i couldn't find a command nor a file to show this. so how to check if DST is inactive in CentOS 6? | ||||||||||||||||||||||||||||||||||||
Create SSH tunneling with multiple hosts Posted: 16 Mar 2022 04:21 AM PDT I want to create an SSH tunneling from: What I'm trying is: On 192.168.1.23 to access to the last hop 192.168.6.71:
On 172.11.3.3 to access to 192.168.1.23:
On 192.168.6.66 to access to 172.11.3.3:
And finally My question is - there is a better way to make this SSH tunneling? | ||||||||||||||||||||||||||||||||||||
Isolating a cpu with cupset (cgroup v2) Posted: 16 Mar 2022 04:05 AM PDT The latest raspbian OS based on Debian bullseye doesn't support isolcups anymore and it has cgroup v2. The kernel documentation say that cpuset should be used instead of isolcpus. For some application dealing with the GPIO, I need to isolate a thread on a cpu to get real time performance. So I'm trying to do it with cpusets. After boot, all processes are in the root cgroup and use all cpus. I created a subgroup named What I'm stuck with is how to move all process from the main cgroup into I have the impression that I should create these cpusets at boot time with the very first process. I should then move it in I this impression correct ? How would I do that ? | ||||||||||||||||||||||||||||||||||||
Posted: 16 Mar 2022 05:20 AM PDT I am trying to install | ||||||||||||||||||||||||||||||||||||
systemctl + cant restart any systemctl service because Resource temporarily unavailable Posted: 16 Mar 2022 03:56 AM PDT we saw the following errors , when we restart service by the server is HREL 7.2 server we think its maybe related to /run/systemd/system/sessionscope we saw many sessions as so is it safe to delete all the files under - as or any other idea what is the resolution for this error? or maybe this is some bug that require to upgrade or maybe reboot is the final solution that also clear the relevant sessions ? other related post - https://github.com/systemd/systemd/issues/1961 | ||||||||||||||||||||||||||||||||||||
Problems with network connection in Kali Linux Posted: 16 Mar 2022 07:36 AM PDT This question may seem a duplicate, but I guess it's not. I've read tens and tens of articles and answers, not only on this site, but I didn't find anything. I use Kali Linux in VirtualBox, I installed the Virtual Machine Version, so I did no configuration. Here are the outputs of some commands I found on the web:
shows what happens when I click it. If you want the output of other command ask and I'll edit the question. | ||||||||||||||||||||||||||||||||||||
Posted: 16 Mar 2022 06:14 AM PDT Tried to setup Opendns, but this time it did not work (in my previous install, it worked just fine, unfortunately my pc crashed and had to re-install my OS), followed the setup guide, unfortunately did not work. Can someone please point me to how to fix/troubleshoot where the problem is? into my /etc/dhcp/dhclient.conf (before the 'require subnet-mask'), not sure if there's anything else I need to do. | ||||||||||||||||||||||||||||||||||||
Create a tsv file with data from several files Posted: 16 Mar 2022 05:52 AM PDT How can I create a tsv file from multiple files? I want to be able to create a tsv file from several different files. One sample is associated with five 'region' files that have data in them. For example, sample1's files are: 1_region1.cov, 1_region2.cov, 1_region3.cov, 1_region4.cov 1_region5.cov, where 1_regionx.cov is a tsv with headers. I am interested in the data under the header "meandepth". I want to take the value 1_region1 and then add it to my own tsv file under the header Region1. There are 13 samples, each with five region files, hence a total of 65 .cov files. An example of my output would be:
In this example the numbers are just made up. This is my current attempt: My attempt uses two indexes to loop through the arrays. This is my attempt to get all of the files that are associated with sample 1 in the same row, but after the first sample the numbers no longer match what is in the file, i.e; Sample2 Region1 will report 15 instead of 30. In practice this script is also only able to loop through the first 11 samples. This is likely due to the fact that I'm using modulo six in my conditional. How can I create a tsv file from multiple files such that each of the five files associated with sample1 end up in the same row as sample1? Thanks. | ||||||||||||||||||||||||||||||||||||
KDE Plasma black screen/no video output on login Posted: 16 Mar 2022 05:06 AM PDT What happened:
What can I do? Has someone an idea what causes the trouble or how I can find useful (debugging)information/logs? Thanks in advance :) | ||||||||||||||||||||||||||||||||||||
how to fire a script when network interface goes down Posted: 16 Mar 2022 05:10 AM PDT On my embedded linux board I am using systemd-networkd to manage my network interface configurations. I need to fire some one shot scripts which will start/stop my custom application when the network interface comes up and goes down. I have found networkd dispatcher which does what I am looking for but I am not sure how resource intensive it is and would it be a optimal solution for my need. Is there any alternative to this ? I am aware of systemd-network-wait-online which can be used to wait till network is up but as per my knowledge systemd target dependency is limited to boot-up sequence. | ||||||||||||||||||||||||||||||||||||
gsettings commmands and their gconftool-2 alternatives Posted: 16 Mar 2022 04:25 AM PDT I installed a package But some applications use older databases / schemas that I install with a package But how can I use | ||||||||||||||||||||||||||||||||||||
sks-keyservers gone. What to use instead? Posted: 16 Mar 2022 06:35 AM PDT https://sks-keyservers.net/ says
Which keyservers can I use for | ||||||||||||||||||||||||||||||||||||
How to print multi-line variables in side-by-side columns in sh? Posted: 16 Mar 2022 07:29 AM PDT This question is based on similar question at https://askubuntu.com/a/1066404/1069309, but instead of No issue in bash, it work as expected. However, when I try similar command in Is it possible to get similar output in | ||||||||||||||||||||||||||||||||||||
Can't restore/reformat my USB flash drive after moving to GPT Posted: 16 Mar 2022 04:04 AM PDT I have 8GB flash memory stick. Sometimes ago I formatted it to be able to install Windows from it. I can't remember what exactly I did but I think I wanted to be able to install Win 7 64-bit to boot in EFI mode. Now I can't reformat it nor in Windows nor in Linux. I tried to convert it to MBR from GPT with , opened expert tools with then tried to delete a partition with After this I tried to pull out and plug in the stick again but NTFS mount error window appeared each time. I also tried to rewrite an initial drive area with a test content with and with but I couldn't reformat it to usable state. Is there a way I can restore its factory state? My system: Linux Mint 17.3 UPDATE | ||||||||||||||||||||||||||||||||||||
Rlogin prompting for remote password (Kali / Metasploitable) Posted: 16 Mar 2022 05:06 AM PDT I am following a tutorial that can be found here. http://www.kalitutorials.net/2014/05/metasploitable-2-vulnerability.html Specifically the "Remote access vulnerability - Rlogin" section. When I run the command "rlogin -l root 192.168.154.132" I get a password prompt, as per the below The tutorial states "It's because we don't have ssh-client installed on Kali Linux" However when I try to install the client, using the following command "apt-get install rsh-client", I get the following message: I have tried running "apt-get update && apt-get upgrade" to make sure everything is up to date. I have also tried uninstalling and re-installing the openssh client. However I continue to get prompted by the password box (which according to the tutorial I should not) Any help greatly appreciated. | ||||||||||||||||||||||||||||||||||||
davfs unknown option because of secrets file Posted: 16 Mar 2022 05:32 AM PDT I'm trying to make a WebDAV auto-mount on my machine. I've installed I also added the username and password to Now I can manually mount it by running I then uncommented Why does it say unknown option? How do I fix it? | ||||||||||||||||||||||||||||||||||||
How do I use the SED command to remove injected code from multiple files? Posted: 16 Mar 2022 07:06 AM PDT One of the domains on my Centos 6.5 (64 bit) server has been compromised. Having run a detection script on the public_html folder I have identified all the files with this code injection. I understand the SED command will help me rid the files of the code but I've never used the command before. I need some advice on what syntax to use. Please see the code example below that I want to remove (same code in every infected file): It is quite a large block of code so I'm wondering how I can go about removing it from the many infected files. There are javascript files infected with code as well but if I can get a grasp of how to rid the .php files of the code above then I can modify the command to clean the javascript files. | ||||||||||||||||||||||||||||||||||||
What is the difference between the whatis and apropos commands? Posted: 16 Mar 2022 04:30 AM PDT CentOS 6.3 / RHEL 6.3 Can someone please explain the difference between the | ||||||||||||||||||||||||||||||||||||
Change PulseAudio Input/Output from Shell? Posted: 16 Mar 2022 06:33 AM PDT I have a set of nice wireless headphones which I use from time to time, in addition to my speakers and normal microphone. I'd like to write a script to switch between one input and output source and another, essentially a switch between my headphones and my speakers+microphone. I'd like to change between this:
...and this:
Is there a way for me script a transfer between the two inputs and outputs? Essentially I'm looking for something like this: Is there a way to script this? |
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