All Questions
217,719
questions
0
votes
0
answers
3
views
how does madm.conf work
I have 2 mdadm arrays.
Long time ago, when there was only one raid, i wrote mdadm.conf and it looked like this:
# mdadm.conf written out by anaconda
MAILADDR root
AUTO +imsm +1.x -all
ARRAY /dev/md/...
0
votes
0
answers
3
views
Not able to enter password when logging in after boot
I'm running a raspberry pi 4b with raspberry pi os lite (which is debian without a GUI) and today while ssh'd in did a sudo apt update. There were a bunch of things that were available to upgrade (&...
1
vote
1
answer
6
views
How to figure out what process or event is waking up laptop from `xset dpms force off`
I have a laptop where I tried xscreensaver auto blanking screen after 1 minute of idle time and even though everything seems idle it doesn't blank the screen.
So then I ran this command to blank the ...
0
votes
0
answers
5
views
update-initramfs is disabled (live system is running without media mounted on /run/live/medium)
I'm trying to install nvidia drivers by following steps in this site. But I'm unbale to update initramfs
as the title says, its showing:
I: update-initramfs is disabled (live system is running ...
0
votes
0
answers
8
views
Is DHCP protocol involved in connecting a network interface to a local network?
I often use this command to connect to a WPA2 wireless network:
wpa_passphrase [SSID] [password] | sudo wpa_supplicant -D nl80211,wext -i [wirelessInteface] -c
I get wireless network immediately ...
0
votes
1
answer
13
views
sed - group does not match when including bracket
hoge.txt
tsar@gmail.com
c2m_@hotmail.com.es
c72@hotmail.com.es.com;es
m7_@hotmail.es.com
cm_@hotmail.com
@pepito.com
Without group, extract email works.
$ cat hoge.txt | sed -nr '/[^@]+@[^.]+\.com$/...
0
votes
1
answer
9
views
Difference between fragment and extent in ext4
In the context of e.g. ext4 fs, I often stumble upon both 'fragment' and 'extent' words.
They appear to be both related to fragmentation, extents for example are pretty extensively (duh) explained ...
0
votes
0
answers
10
views
AWK to replace 2nd column by minus with 1st data from specific line
I would like to get the 1st data on 2nd column (i.e:1.20E-05) and replace the whole second column by minus with this 1st data. Then, i would like to delete the last data line and print to a new file.
...
0
votes
0
answers
4
views
Bluetooth Split Keyboard Delay
I recently just finished building a bluetooth Dactyl Manuform and I'm experiencing delay issues as discussed here. The Bluez solution didn't seem to work along side other solutions I've tried. I'm ...
0
votes
3
answers
25
views
Are they commands or utilities?
I'm trying to figure out the correct term(s) for Unix/Linux "commands." Specifically, I have always understood that technically commands (e.g., cd) are built into the shell, and that other &...
0
votes
0
answers
8
views
Sound immediately crashes on playback
My problem :
Sound stops working immediately after like 1.5 seconds when I try to play a sound (from the "test" button in the sound settings)
The System76 website provides troubleshooting ...
1
vote
2
answers
25
views
What program is best for outputting an image with my inputted text on it?
I'm looking for a program that is able to output an image with my inputted text on it.
Sort of like a template, I would input varying text / numbers and an image, and the program will output the image ...
0
votes
2
answers
37
views
What's stopping us from supporting Windows NT applications on Linux?
Disclaimers:
First off, I'm not 100% sure if I'm in the right StackExchange community for this question, but I couldn't find one for generic operating system questions. Please let me know if I should ...
0
votes
0
answers
7
views
How to perform traceroute through a local socks5 proxy?
Without resorting to iptables /nftables or a proxifier, does traceroute (or similar tool) support options for using a local port for a sock5 proxy?
Here's an example of what I can do with curl. I ...
2
votes
2
answers
36
views
How to get unix time of 11PM, and 11PM CST tonight using BSD's date command?
BSD's date -j -f seems to mix seconds and minutes from the current time of the day while still accepting '%H%p' in the time format. All I want to do is convert input format to correct unix time. Also, ...
0
votes
2
answers
35
views
What is the fastest way of copying long file names for the cp command?
I'm controlling a Linux based NAS through SSH on a Windows computer. What I'm trying to do is use the cp -al command to rapidly hard link folders from one directory to another. Currently what I do is ...
0
votes
1
answer
14
views
How to setup a service that accepts input via ssh, run python scripts using the input and then return the output over ssh?
I have a server that runs ubuntu and has GPUs that run large deep learning models. I would like for this server machine to first accept requests that contain an input over SSH, then feed that input to ...
0
votes
0
answers
17
views
SSH to arbitrary user
I am working on a project where I run some isolated applications in containers.
I want to give certain people access to specific containers over SSH.
Until now I have been able to get it working by ...
0
votes
1
answer
9
views
How are DNS queries are handled in RHEL linux distributions?
When I modify an ifcfg-.... configuration file for a newtork interface and add DNS1 & DNS2 entries, these DNS values are appended to /etc/resolv.conf by Network-Manager service when this service ...
0
votes
0
answers
5
views
Calculate blocksize for encrypted (LUKS) LVM
On the Arch wiki I can this formula:
To calculate the new LUKS volume size, use a simple formula:
NEW_LUKS_SECTOR_COUNT = PV_EXTENT_COUNT * PV_EXTENT_SIZE / LUKS_SECTOR_SIZE
# pvdisplay /dev/mapper/...
0
votes
1
answer
24
views
Remove everything before multiple HTML matching lines using Perl or sed
I am looking to remove everything before multiple HTML matching lines across all the files in current folder using Perl or sed command.
This is what one of my files in the current folder looks like:
&...
0
votes
1
answer
11
views
Red hat visudo read logs for regular user
It is necessary to allow reading logs /var/log/.* by a regular user. I do according to the documentation. This manual
mkdir -p /etc/sudoers.d/
visudo -f /etc/sudoers.d/mikelogger
inside visudo
...
1
vote
0
answers
10
views
How did this Rancher/SUSE packaging problem go so wrong?
This is like a retrospective on a problem I just narrowed down. I believe there must be some kind of solution in the package manager to provide a better user-experience. I'm going to describe what ...
0
votes
1
answer
26
views
How can I mix [ ] single brackets and [[ ]] double brackets in the same if?
I can't make this piece of code that uses single and double brackets work:
if [ ! $# == 1 ] && ! [[ $1 =~ ^[-]?[0-9]$ ]];
then exit 1
fi
How can I mix both single and double types in the same ...
0
votes
0
answers
4
views
Is there a version-specific rdepends check?
According to man apt-cache the syntax for apt cache rdepends is
rdepends pkg [{=pkg_version_number | /target_release}]... |
This is documented as,
rdepends shows a listing of each reverse ...
0
votes
1
answer
14
views
Unzip a zip file whose content's name is too long in Ubuntu terminal
I have a zip file, sample.zip, which contains a PDF whose name is too long. I tried to unzip it in Ubuntu terminal through
unzip sample.zip
however, it shows an error that "File name too long&...
0
votes
0
answers
24
views
Why does alias to move into usr/local/bin fails [duplicate]
I am trying to have an alias to move binaries into a folder on my path.
Currently I have:
alias addapp='sudo mv $1 /usr/local/bin'
0
votes
2
answers
19
views
Print output of httpie command, then pipe to grep
how can I print output of httpie request then pipe to grep to check if request has succeeded or failed?
http --print=hb POST http://localhost:8080 | grep -c "HTTP/1.1 200" && echo &...
0
votes
0
answers
11
views
PulseAudio command to pass application output audio to mic input
I am looking for a pulseaudio command (i.e. pactl or pacmd) to pass any sound that is played by one particular application to my mic input.
Example: I am using a music player app. I want the music ...
0
votes
0
answers
14
views
How do I write a script to sudo, then cd, set an environment variable and run a program?
I'm on ZorinOS 16. I recently set up SearXNG, and every time I reboot my computer I have to run a couple of commands to launch it:
sudo -H -u searx -i
cd /usr/local/searx/searx-src
export ...
0
votes
0
answers
4
views
Can't pin Desktop icon to dock favorites in Pop!_OS
I'm using Pop!_OS 22.04.
I just downloaded and installed a new app (PyCharm), but it didn't come with an icon for my dock. I created a new icon using this ~/.local/share/applications/pycharm.desktop ...
0
votes
0
answers
8
views
How does GPG handle signing encrypted files?
Is the implementation of GPG so that the sender signs the hash of the encrypted or unencrypted file?
And is the signature then encrypted?
The orders make a difference because if the file is first ...
0
votes
0
answers
11
views
Weird issue occurs when using the Alacritty terminal emulator
I have tried asking this on Alacritty's GitHub issues tab and just got this:
This is an issue with your system, likely related to _TERM_ or your _PS1_.
The issue is as follows: SOMETIMES, when a ...
0
votes
0
answers
14
views
Cutefish OS not booting
I was trying to install cutefish OS on my laptop. It gets stuck on a black screen while trying to boot.
1
vote
0
answers
9
views
apt update kills the terminal
I have a Raspberry Pi 4 (4GB of RAM) host with Raspbian 11 bullseye.
Today, I was trying to run an ansible playbook to update the system with apt and it faild with a segmentation fault error, which ...
0
votes
0
answers
7
views
Wi-Fi Access Point has very low speed in one direction
We are creating an Access Point on an embedded device by using hostapd and dnsmasq. No iptables rule is set.
We set it on 5Ghz (a/n) however max transfer speed is 6.1 Mbyte/sec. (Tried with scp and ...
2
votes
1
answer
26
views
Why are many of my packages marked as manually installed
I just realized that many of my packages are "manually" installed:
root@deb:~# apt-mark showhold
root@deb:~# apt-mark showmanual | wc -l
202
root@deb:~# apt-mark showauto | wc -l
371
I know ...
0
votes
1
answer
28
views
accidental sudo rm -rf /* on 32 GB USB 3.0 for 2 sec
I have just executed sudo rm -rf /* for 2 secs on my 32GB SanDisk 3.0 USB.
I have Linux Mint 20.3 Una installed and I thought it would ask for sudo confirmation before executing the command but I ...
0
votes
1
answer
9
views
How can I add an i3 keybinding for i3lock?
On my Ubuntu box, I've added the line
bindsym $mod+Shift+l exec i3lock -c 000000
to my i3 config file. After reloading with $mod+Shift+r and hitting $mod+Shift+l, I just get a L displayed in my ...
0
votes
1
answer
38
views
compare two files in unix
Consider two files like below:
$ cat f1.txt
col_name data_type comment
name string
age int
income int
access_count1 int
...
0
votes
0
answers
6
views
How to install latest CAs onto older Ubuntu server?
I have Ubuntu 14.04 installation I can't upgrade and recently started to encounter SSL errors due to old CAs.
What is the simplest way to keep CAs up-to-date? Like installing ca-certificates from ...
1
vote
1
answer
18
views
functions with their own parameters whitin a bash script
I want to create a script on Linux to create some directories if they do not exists. The directories are declared inside the script itself (not being passed from command line):
#!/bin/bash
varBaseDir=...
0
votes
0
answers
5
views
Interruptible/Pausable/Restartable file locks and descriptors on Linux?
I have this desired use case: unload then reload (a possibly different version of) a file system driver without having first to close processes that have open files on it.
To do this, I am imagining ...
0
votes
1
answer
12
views
Desktop Screen/Mic Sharing - Meeting on LAN
On a 1 gibibit LAN, what is the simplest way I can watch a Windows 10 computer's screen and have a conversation with the user while watching their screen?
Here are some requirements:
The solution ...
-2
votes
0
answers
17
views
multiple text files in one excel
i have a requirement to paste multiple text files into one excel workbook.
Each text files data should be copied in one one sheet of the excel workbook
txt1-> sheet1 of workbook
txt2-> sheet2 of ...
0
votes
0
answers
16
views
is it possible to compact centos 7.x memory
Today I am facing a problem when create kubernetes pod:
Failed create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod "statefulset-apollo-config-server-...
0
votes
0
answers
19
views
Pasting multiple commands from clipboard breaks after a sudo command
I have 2 CentOS systems which I connect to via ssh.
On one of them if I paste multiple commands from the clipboard, it executes them all, unless there's a sudo command in there. If there is, it just ...
0
votes
0
answers
6
views
Pulse Secure VPN slowing down internet connection
I use PulseVPN, which is required for my office work. I noticed that before connecting the
VPN, my internet speed is above 300Mbs (https://www.speedtest.net/). But after connecting, it's around 20 ...
0
votes
0
answers
7
views
Couldn't see process information in wireshark
I'm using bpf to capture packets on MacOS:
sudo tcpdump -i pktap,en0 -k
It prints the related process in console:
20:28:45.486764 (en0, proc curl:34275, svc BE, out, so) IP 192.168.0.122.55996 > 1....
0
votes
0
answers
12
views
SSL connect error (LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to crates.io:443 )
Today when I am using this cargo command in macOS Monteney to build the rust project:
cargo build
shows error like this:
warning: spurious network error (1 tries remaining): [35] SSL connect error (...