All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 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 ...
user avatar
0 votes
0 answers
4 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 ...
user avatar
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 ...
user avatar
  • 89.9k
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$/...
user avatar
  • 179
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 ...
user avatar
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. ...
user avatar
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 ...
user avatar
  • 1
0 votes
3 answers
20 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 &...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 11
0 votes
2 answers
36 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 ...
user avatar
0 votes
0 answers
6 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 ...
user avatar
  • 15.4k
1 vote
2 answers
29 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, ...
user avatar
0 votes
1 answer
30 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 ...
user avatar
0 votes
1 answer
13 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 ...
user avatar
0 votes
0 answers
16 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 ...
user avatar
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 ...
user avatar
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/...
user avatar
  • 629
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: &...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 22.5k
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 ...
user avatar
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 ...
user avatar
  • 22.5k
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&...
user avatar
  • 103
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'
user avatar
  • 189
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 &...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 193
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 ...
user avatar
  • 101
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 ...
user avatar
  • 3
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.
user avatar
  • 1
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 ...
user avatar
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 ...
user avatar
  • 119
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 9
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 ...
user avatar
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=...
user avatar
  • 527
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 ...
user avatar
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 ...
user avatar
  • 4,315
-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 ...
user avatar
  • 9
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-...
user avatar
  • 351
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 ...
user avatar
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 ...
user avatar
  • 21
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....
user avatar
  • 50.7k
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 (...
user avatar
  • 351
-5 votes
0 answers
23 views

Write a script using an if..e Write a script for a quadratic equation: ax²+bx+ c=0 and solve for x [closed]

Please is there anyone who can help me with this question.?
user avatar
  • 1
0 votes
0 answers
5 views

How to launch 3+ instances of freerdp for 3 windows VMs from single centos

I have 3 or more windows machines, those I can connect from centos individually using below command xfreerdp /u:username /p:password /v:hostname but what I want is to connect them in parallel, using ...
user avatar
  • 101

15 30 50 per page
1
2 3 4 5
4355