All Questions
234,365
questions
0
votes
1
answer
41
views
Is there a tool for collapsing output of a command base on regex?
Let’s say I have a command that outputs the state of some application. This command runs forver (or until C-c) and outputs a single line when something happens inside the application. It outputs the ...
0
votes
0
answers
21
views
Unlocking two LUKS partitions with one password using Kernel parameters
My current setup includes a root partition and a swap partition, both LUKS encrypted. Currently to decrypt them I use the following Kernel paramters: (I am using the systemd and sd-encrypt initramfs ...
1
vote
0
answers
36
views
Linux crashes randomly
In my Linux operating systems, I always have a problem, that my computer or desktop environment(not sure) is crashing randomly. For example, I'm opening settings, then my screen turns into a terminal ...
0
votes
2
answers
57
views
What is the hot key to show the next command of the previous command in history in Linux/bash?
In Windows cmd window, let's say I type and execute 40 commands like this:
echo 1[Enter]
echo 2[Enter]
echo 3[Enter]
...
echo 40[Enter]
If I decide to repeat the 40 commands again, in the same order, ...
0
votes
0
answers
31
views
Systemd service wait wifi adapter to plug in
I have a systemd service that change MAC address every boot to wifi adapter. Systemd service works fine. I want this systemd service not wait 1m 30sec when the wifi adapter is not plug in the usb. I ...
-4
votes
0
answers
22
views
Error installing Tor Browser on Kali Linux in VirtualBox on Windows 10
I have installed Kali Linux in VirtualBox on Windows 10. Now, I am trying to install Tor Browser in Kali Linux, but it's giving me an error whenever I run the following command:
sudo apt install -y ...
0
votes
0
answers
11
views
ath11k_pci: failed to connect to HTT: -110
I have Qualcomm QCNFA765 wifi card.
I am using custom-compiled kernel 6.1.55 and I have ath11k_pci in the kernel, and all firmware files are loaded successfully. Yet, when booting, I see on the ...
0
votes
1
answer
53
views
LUKS on LVM: lvresize won't work - Error: "Cannot find active LUKS dm-crypt device using..."
I have a LUKs-on-LVM setup. I'm trying to lvresize, so I can remove a pv. However, I keep getting an error:
Cannot find active LUKS dm-crypt device using my_vg/luks_lv.
More information:
My setup:
...
-1
votes
0
answers
40
views
Current FTP synchronisation tools
I have access to a very basic FTP server that doesn't have any synchronization software installed on it (so, for instance, unison is ruled out).
In the past, I have used
weex,
lftp_mirror
but those ...
0
votes
0
answers
29
views
Why does `ip route show` not produce any output in my script from systemd service
Service..
[Unit]
Description=testing
Requires=network-online.target
After=NetworkManager.service
[Service]
SyslogIdentifier=testing
Type=oneshot
ExecStart=test.sh
[Install]
WantedBy=network-online....
-1
votes
0
answers
20
views
Trouble with Pacman and Mirrorlist in Arch Linux ARM on Zipit Z2
I am the proud owner of a Zipit Z2, and I recently swapped out Z2Ubuntu for Arch Linux ARM. Everything looks good, except I cannot use Pacman.
Here's my /etc/pacman.d/mirrorlist
# Arch Linux ARM ...
0
votes
0
answers
14
views
What needs to be done, based on the following in order to successfully boot into the system?
Ran this command:
sudo fsck -fvy /dev/mapper/root_vg-home
Here's the output:
fsck from util-linux 2.30
e2fsck 1.46.5 (30Dec-2021)
fsck.ext2: No such file or directory while trying to open /dev/mapper/...
0
votes
1
answer
22
views
How do I increase /proc/sys/fs/mqueue/msgsize_max to more than 8192?
Is it possible to change the default value to be larger? when i try to use it in a C program it fails on values larger than 8192.
printf("create queue size: %lu\n", attr->mq_msgsize);
...
0
votes
4
answers
69
views
Using variables in gawk for the repeat interval value of an interval expression
OS Distribution: Ubuntu 22.04.3 LTS
gawk version: GNU Awk 5.1.0, API: 3.0 (GNU MPFR 4.1.0, GNU MP 6.2.1)
I have a text file that every once in a while a line will have a significant amount of white ...
0
votes
0
answers
15
views
Create bridge with Wifi
I was using a bridge the Ethernet port, but I need to change.
I am trying with this config without success:
# This file describes the network interfaces available on your system
# and how to activate ...
0
votes
0
answers
21
views
How can I assign a mimetype to a file extension?
Sometimes my .tsx files are assigned the mimetype application/javascript. But I'd like my .tsx files to always have the mimetype text/plain.
How can I achieve this?
0
votes
2
answers
89
views
Where Does Aptitude Log Its Warnings?
Aptitude version 0.8.7
Debian 9 (Stretch)
During a recent package upgrade, the Aptitude GUI displayed the following warning, boxed and in bright red:
W: APT had planned for dpkg to do more than it ...
0
votes
2
answers
28
views
How to disown a command in the busybox shell?
I'm trying to write a quick-and-dirty shell script daemon to run on a home router that has a busybox shell, which doesn't support disown. Is there any way to do either of the following?
Run a command ...
0
votes
1
answer
36
views
"mv" command with asterisk character ("*") executed using "ssh"
I am inexperienced with Linux, but I am learning every day.
I have this command.
ssh admin@$host mv repo/environments/qa/* /repo
Does this * character mean that EVERYTHING in the environments/qa ...
0
votes
0
answers
31
views
Move directory to another partition
I would like to move the directory /var/lib/docker to partition dev/sda1
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 338G 11G 314G 4% /
/dev/sdb 295G 180G 101G 65% ...
0
votes
0
answers
25
views
How to modify/extend USB device access permissions in Debian?
I have a PC with Debian 10. I need the USB drives to have broader permissions than those given by default by the system.
I will give an example: with the user "john" being authenticated, ...
0
votes
0
answers
11
views
Computer freezes such that ctrl-alt-f3 doesn't work; what are the alternatives for recovery?
It seems most questions I find is about ctrl-alt-f3 not working at all. However, that's not the case for me, it generally works. However, sometimes when playing video games, the view freezes (albeit I ...
0
votes
1
answer
57
views
Log in to remote server by using a generated public key
I have a zsh script with which I logged into a remote host to copy some folders. The system asks me each time to give the password of the local host which I want to bypass, otherwise I have to enter ...
0
votes
0
answers
26
views
+100
Secondary internal HDD LUKS partition being remounted with different name
I have a laptop with an SSD (/dev/nvme0n1) and a secondary driver (HDD /dev/sda at boot). There's a LUKS module occupying the whole HDD with a ext4 occupying the whole LUKS. I'm running Ubuntu.
From ...
8
votes
3
answers
647
views
Perl: change in interpretation of shell symbols in system() invocation?
Today I noticed that something changed in Perl, probably recently, in the way it runs shell commands. Could someone explain what has changed? I cannot find the answer myself and sadly we learned about ...
0
votes
0
answers
6
views
Unable to run Julia "BinaryBuilder" as part of a CI process in Ubuntu 22.04 environment
We have a GitLab CI runner set up on an on-prem computer. The runner is using the "shell" executor," so the jobs are running directly in the host environment.
We have an analysis tool ...
1
vote
1
answer
25
views
Convert csv out of json in new coloumn
The below is my json code
[
{
"kind": "user",
"version": "v2",
"metadata": {
"name": "person1"
},
"...
0
votes
0
answers
37
views
Can't access file even though I am the user, I have permissions, I have chowned/chmod'd the entire directory structure, selinux off
Sorry for the copy/paste, doing this over a remote screen share:
I am on Rocky Linux and I am at a total loss as to what is going on here. I can't cat/vim this file but as you can see, I am the owner,...
0
votes
0
answers
11
views
clone uboot and embedded linux fw (openwrt) to a single binary image
I have my embedded device with the following partition:
# cat /proc/mtd
dev: size erasesize name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: ...
0
votes
4
answers
566
views
how to get the size of the folder in GB which are very large
How can I get the size of a large folder with lot of small sub folders on Linux? I just want the overall size the parent folder.
I tried du -s myfolder/ but it is taking a long time to execute and I ...
1
vote
2
answers
40
views
Limit outgoing traffic per month
I am looking at a virtual server tariff that has limited outgoing traffic for a month, with billing if the traffic is exceeded.
I would like to track the outgoing traffic automatically somehow, so ...
0
votes
1
answer
27
views
Name Server Daemon (NSD), possible to use PostgresQL/MARIADB as backend for DNS zone data?
Is it possible to store DNS zone data in a database with NSD? I have not found any documentation for that.
0
votes
0
answers
15
views
Handle automated post installation setup
I'm running a post installation setup after installing a new linux distro. Currently not all of these steps can be automated because they have circular dependencies which I would like to resolve.
...
1
vote
0
answers
11
views
Unclear delays pinging over IPsec VPN
What could be the cause if every second ping is delayed for a second when pinging through the host-to-network VPN while at the same time pinging the security gateway outside the VPN takes 13 ms on ...
2
votes
8
answers
301
views
Replace last word occurrence in file
The scenario is I want to comment out the last occurrence of a word in shell script using sed.
Assume I have temp.sh with the following content:
Abc 123 Abc
Sdf 2
Abc
Abc
Utyr
Qww
I want to replace ...
0
votes
0
answers
20
views
Does dnsmasq have a functionality to create the DNS entries automatically for the addresses it is listening on?
I'm running dnsmasq as a caching name server on a LAN facing bridge named br4. /etc/dnsmasq.conf contains "bind-interfaces" and "interface=br4". Currently I'm running a script ...
1
vote
2
answers
29
views
Multiple alternative ProxyJump for ssh profile
If there is one end server that can be either connected via proxy server a or proxy server b, but sometimes only one of them is working. Is there a way to specify that the ProxyJump can either be ...
0
votes
1
answer
28
views
Can Wine and/or Playonlinux be used to fix ntfs errors the way Windows does?
Very often, when a ntfs external drive cannot be mounted in Linux because of some more or less obscure motive, simply plugging it onto Windows fixes it, even without running the tool to scan and fix ...
0
votes
0
answers
19
views
Some files have truncated filenames with mkisofs -J -R [migrated]
I have installed mkisofs 3.02a09 (i686-pc-mingw32) on Windows 10.
I'm trying to create an ISO with mkisofs but some filenames are truncated :
PS C:\tools> mkisofs -J -R -o VDI-Michelin-Editions-...
0
votes
0
answers
32
views
User suddenly changed to nobody, and is restored when changing permission to a file
I was learning about git internals, doing basic commands, when suddenly I encountered this error: fatal: detected dubious ownership in repository at... I then noticed that the user is nobody. I have ...
0
votes
1
answer
14
views
How to ensure that NixOS configuration will build or use the same package versions in the future?
In Software packaging and distribution for LHCb using Nix, the authors write:
In order to facilitate this use, software must be stable for long
periods; much longer than even Long Term Support ...
1
vote
1
answer
24
views
Problems adding rules.d rule for unit with multiple tty devices
I want to add a rule under /etc/udev/rules.d for a Texas Instruments CC1352P-2 development board. On my Ubuntu server it creates two ttyACM devices:
crw-rw-rw- 1 root dialout 166, 1 Sep 28 10:37 /dev/...
1
vote
2
answers
102
views
Fix Linux grub with boot-repair with an old BIOS PC and a GPT drive?
I have a GPT formatted SSD Drive that I have moved from a rather new laptop to an older one that has an old BIOS. The Linux systems installed on it work fine (Kubuntu 22.04 and Mint 21), although I ...
0
votes
0
answers
17
views
Slow query log: where should be configured on mariadb o a debian 12?
If I do
show global variables like "%slow%"
I get these results
But I am not able to find where these values are set up.
I tried to find, litterally
cd /etc/mysql
grep slow -R -n
And ...
0
votes
0
answers
20
views
How to make Tint2 open system tray apps on the current workspace in Openbox?
I'm using Openbox as my window manager on Debian, and I'm facing an issue with system tray icons. When I click on a system tray icon for an application, it doesn't bring the application to the current ...
0
votes
0
answers
31
views
Using Terminal with a serial connection
Hello I am using terminal to output my serial connection device. I was wondering how can I get rid of the spaces when it starts a new line. On Windows I would use Putty and turn on Implicit CR in ...
1
vote
0
answers
33
views
Computer ran out of battery while formatting an MicroSD card, now card is not recognized
I bought a new Samsung 256GB Pro Endurance Micro SD Card. I wanted to format it so I could load an operating system for a Raspberry Pi. My laptop running Ubuntu 23.04 died for lack of power in the ...
0
votes
0
answers
16
views
lilo: Fatal: raid_setup: stat("/dev/nvme0n1")
I have booted Debian Live CD, and I am trying to create lilo boot record on my disk
The disk partition is mounted as /mnt/root and has the linux kernel and /etc/lilo.conf:
boot=/dev/nvme0n1
root=/dev/...
0
votes
0
answers
8
views
avahi-daemon runs with wrong hostname
I have a problem on one device where the avahi-daemon is running with the wrong hostname and it is messing up my system.
The hostname is ABC-100001 but when I check the process list it shows that
...
0
votes
0
answers
13
views
How to solve the following error from petalinux?
I have tried to use petalinux to boot a zynq 7000 board but falied to boot. I have found the following error in the petalinux and never found a solution.
Connection refused
while executing
"error ...