All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

PTP4L Not working as expected after changing domainNumber

PTP Not working as expected after changing domainNumber. I am trying to send ptp frames from ptp4l (version 4.3) using the following command: This works as expected sudo ptp4l -i eth0 -m -2 -S -P --...
Shriram Sivakumar's user avatar
1 vote
0 answers
18 views

While Loop Exits After Calling Function [duplicate]

I'm trying to do a db backup script using Bash. When adding a "Resume" feature to the script, I do the following loop calling defined functions to do step by step (depending on the .lock ...
James's user avatar
  • 111
1 vote
1 answer
66 views

Bitwise operator options for a non-gawk awk like mawk?

I would like to make my (g)awk scripts more portable, especially to mawk, since it's Debian's stock awk. I've always avoided things like length(array), and used array[outer, inner] for ...
fedorafan's user avatar
0 votes
0 answers
12 views

How do I make sure two entities manipulating the same SPI line with different linux modules don't collide, or is this handled by the kernel already?

TL;DR I am developing some code for my SPI display that also has an SD card reader on it for use on a Linux board. I'm trying to use mmc_spi with the SD card reader portion, concurrently with a ...
thecreamybeige's user avatar
0 votes
1 answer
49 views

basename complains about missing operand using unshare

If I try to create namespaces, basename complains about missing operand: sudo unshare --mount --ipc --uts --pid --fork --user /bin/bash basename: missing operand Try 'basename --help' for more ...
sebelk's user avatar
  • 4,469
0 votes
1 answer
17 views

Xournal++ how to delete text everywhere in document?

How can I delete a given phrase, say "the quick brown fox", from every page in a PDF? It's >500 pages so I'd rather not remove just every instance manually. I'd be OK with whiteout but ...
joel's user avatar
  • 101
0 votes
1 answer
36 views

Get a list of all user's commands from a non-interactive shell

I am writing a script that would automatically suggest some new aliases/functions to be added to a user's shell config. Before doing that, however, I would like to make sure the aliases being ...
zoickx's user avatar
  • 51
0 votes
0 answers
20 views

What does a locale’s codeset get used for?

According to glibc’s manual: Most locale names follow XPG syntax and consist of up to four parts: language[_territory[.codeset]][@modifier] For example, you could have a locale named zh_CN.GB18030 ...
Ginger Jesus's user avatar
0 votes
1 answer
58 views

Using RS-232 in linux

I have a panel pc which runs ubuntu server 22.04 and has a RS-232 port for communication. I bought a RS-232 to ttl module and connect ttl side to my raspberry pi 4 to create a serial communication. I ...
Saeid Haghighipour's user avatar
-3 votes
1 answer
26 views

Can Linux OpenVPN server be accessed with Windows 10 Build-in VPN?

I have an OpenVPN server installed on Linux (Linux Wonderland 4.19.0-25-amd64 #1 SMP Debian 4.19.289-2 (2023-08-08) x86_64) and it works fine with OpenVPN client on Windows 10. Is there a way to use ...
Damir Tenishev's user avatar
0 votes
0 answers
21 views

Permission denied when executing an rsync command using a third server to copy a file over to another server

I'm trying to copy files over from one server to another using a bastion server with rsync, so I have the list of origin servers and a list of target servers, the strange part is that when I use the ...
VaTo's user avatar
  • 3,191
0 votes
0 answers
7 views

How to setup strongswan VPN server on Linux Debian so that it could be used with Windows 10 built-in client?

I see that www.strongswan.org could be somehow used as a VPN server on Linux (Linux Wonderland 4.19.0-25-amd64 #1 SMP Debian 4.19.289-2 (2023-08-08) x86_64) which could be accessed by Windows 10 build-...
Damir Tenishev's user avatar
0 votes
1 answer
26 views

How to make sure a service, that may or may not exist/be loaded, is stoped?

I am trying to port a script that have the very banal and common use case: pkill -SIGTERM -eF some_pid_file very simple case: Pid file exist? Pid exist? kill it. If pid is present and we failed to ...
gcb's user avatar
  • 428
-3 votes
1 answer
69 views

How to convert multiple columns to rows in shell (unpivoting)

I have a tab separated table with hundreds of columns and rows, like that: OTUId AC0184 AC0250 AC0257 AC0258 AC0262 AC0263 AC0289 AC0293 OTU549024624 51659 0 0 0 0 0 0 0 OTU565712448 108 0 0 0 0 0 0 0 ...
babinecha's user avatar
0 votes
1 answer
10 views

tcsh piping ONLY stderr to null leaving stdout alone

running a tcsh in RHEL-8.10. doing a grep -l <something> * I get a bunch of Is a directory responses. in bash I would do grep -l <something> * 2>/dev/null to suppress that. What is the ...
ron's user avatar
  • 7,284
1 vote
0 answers
12 views

Group owner cannot write to file despite group permissions [duplicate]

I'm working on Ubuntu 20.04. I have a system user/group systembob and a system user alice. alice is a member of the systembob group, and has been for quite some time: $ getent group systembob ...
Borea Deitz's user avatar
0 votes
1 answer
30 views

Linux Shell Script replace last shown lines at the screen, not write it under the last once

i run a script from bring formated numbers to the screen : #!/bin/sh while true ; do echo awk -v x=987654321 -v n=8 'BEGIN{srand(); while (--n) {$++NF = int(rand() * x / n); x -= $NF}; $++NF =...
user447274's user avatar
0 votes
0 answers
27 views

Updating GRUB; ./configure doesn't make a makefile. Step 5 of INSTALL guide missing?

I am trying to update GRUB from 2.06 to 2.12, following the instructions in the INSTALL textfile included in the tarball (and at the bottom of the post). I am missing some dependencies, so I run: sudo ...
SuperDialga's user avatar
0 votes
1 answer
46 views

Have "ls" read many filepaths from a file

I frequently use the following idiom to find all files in the file tree starting the current directory, then submit the file paths to ls -lt so that they are shown newest-first: $ find * -type f -...
user2153235's user avatar
0 votes
0 answers
30 views

How to extend btrfs subvolumes space using separate SSD?

$ lsblk -f -o +SIZE NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS SIZE sda ...
madzohan's user avatar
  • 103
-2 votes
2 answers
60 views

grep pattern to find word in code

I'm looking for a grep pattern to find occurrences of a word in some code (Python, if it matters). I want to ignore occurrences that are inside a longer word, inside strings, or inside comments (if ...
John Gordon's user avatar
0 votes
0 answers
9 views

Dump timestamps from the whole filesystem akin to `getfacl -R`

I didn't specify the -N flag when rsyncing data from my old laptop, now all the file birth times are lost. Can I dump them to a file, and, ideally, restore on the new system too, like it's easily done ...
bodqhrohro's user avatar
0 votes
0 answers
21 views

pfSense routing issues

Ive got a routing issue on my pfSense box that shows the response to a ping request being routed to a IP in a separate subnet/vlan. 10:25:13.239238 IP 10.2.0.2 > 8.8.8.8: ICMP echo request, id 9374,...
PowerMan2015's user avatar
0 votes
0 answers
15 views

Keybase file explorer integration failed (KDE, Wayland, Dolphin)

Installed and running latest Keybase version using official manual. It says "Keybase is enabled in your File Explorer" but there is neither mounted point, nor "Show in File Explorer&...
madzohan's user avatar
  • 103
2 votes
2 answers
81 views

Finding the processes trying to open some FIFO

In my example, the wc program is trying to open the test FIFO or named pipe. These in-progress open syscalls seem not to be shown by fuser or lsof: mknod /tmp/testpipe p wc /tmp/testpipe & timeout ...
Juergen's user avatar
  • 722
0 votes
0 answers
17 views

mailx doesn't decode Content-Type: text/plain; charset="utf-8"

I'm sending mail from python and am trying to read them on the console with mailx. As long as the body of the mail only contains ascii characters the mail is send with charset="ascii" and is ...
Goswin von Brederlow's user avatar
0 votes
1 answer
60 views

How are EXT4 metadata checksums within group descriptors calculated?

I'm looking at parsing raw EXT4-formatted block devices, just using Python, primarily as a learning exercise, but am having trouble manually generating the expected Group Descriptor checksums - there ...
genericuser99's user avatar
0 votes
2 answers
45 views

What is rigid disk block (RDB) and how can I repair it?

I have a WD P10 external USB disk that is no longer being detected on macOS or Windows (on a different PC). To troubleshoot, I booted Debian (LMDE) from a Live USB and connected the WD drive again. It ...
sfxedit's user avatar
  • 113
0 votes
1 answer
22 views

Cannot ssh to Fedora39 after reboot

I am not an expert of computer and now facing an ssh issue. I hope someone can provide me some idea to solve the problem. Previously, everything goes normal that I can ssh to Fedora39 ("Working ...
user avatar
0 votes
2 answers
21 views

Cannot connect to the Docker daemon on Debian

I try to execute docker run hello-world on a debian bullseye machine where I do not have root user rights, but where I can use sudo. I installed docker (v19.03.13) with sudo according to the docker ...
WolfiG's user avatar
  • 113
-2 votes
0 answers
39 views

[Kali]: Package gtk-sharp2 is not installed

I'm trying to install a screen monitor application on my kali machine, since it's a Debian-based distribution I have to go with the option to download the .deb package file, while installing the app ...
ALLAOUA Okba's user avatar
1 vote
1 answer
26 views

Can Ed be configured to automatically create backup files?

Is there a way to have Ed create backups of the file currently loaded into the buffer. On occasion I have inadvertently overwritten my file and found it's not recoverable. I.e. making a backup file ...
Edman's user avatar
  • 526
0 votes
1 answer
25 views

NFS permission for other - operation not permitted

I have the following problem with NFS: On the server: $ cat /etc/exports /opt/1865/conf/ 10.10.14.196(rw,sync,no_subtree_check) $ id uid=999(usr1) gid=1003(grp1) groups=1003(grp1) On the client: $ ...
Irbis's user avatar
  • 1
0 votes
1 answer
48 views

join a specific number of files/devices in linear mode together in a linux system

For joining in Linux files/devices in linear mode together i have this script dm-joinlinear.sh from join files/devices in linear mode together in a linux system , thanks telcoM #!/bin/sh usage() { ...
user447274's user avatar
-1 votes
1 answer
27 views

wezterm > tmux > nvim colors not forwarded through tmux correctly

I'm currently having the problem that the colors are not forwarded correctly from nvim through tmux to wezterm. I think tmux is to blame since the colors work like expected when I invoke nvim from ...
glades's user avatar
  • 99
1 vote
1 answer
31 views

After trying new distro, how to move grub back to original

This is probably a pretty common problem, but searching seems to find so many different situations and answers that complicate the process for the simple case. Perhaps there is a better way to avoid ...
Marty Fried's user avatar
4 votes
2 answers
863 views

smartctl lies that NVME has lifespan of ~2800TBW? What is the real lifespan of my NVME?

smartctl -x on my Samsung SSD 860 EVO M.2 2TB shows: Device Statistics (GP Log 0x04) Page Offset Size Value Flags Description 0x01 ===== = = === == General Statistics (rev 1) ...
Jack G's user avatar
  • 227
1 vote
0 answers
27 views

Need to expand rootfs online. Looking for alternatives

I am currently working with NXP's iMX8MP-EVK and I created a custom image using yocto. The image is 6.6GB in size and after flashing this image into eMMC and booting through it, I found the remaining ...
G-Smart's user avatar
  • 11
0 votes
2 answers
80 views

Systemd-user-service to enable keyboard gives no error but doesn't work

I have a bad laptop keyboard and a much better Lily58, so I wrote a bash-script to be able to disable my laptop keyboard so I can place the Lily58 on it and re-enable it after. But when I disable the ...
Alexander Praehauser's user avatar
1 vote
0 answers
45 views

How to easily find all executables linked against certain libc6 version?

Background It is an Ubuntu-based OS, where I manually built & installed Arch's pacman, added Arch's repositories to it, and ran pacman --force -S git to test it out. It was a mistake, yes. git had ...
melonfsck's user avatar
1 vote
0 answers
15 views

Redirect socks to another interface with nftable

I want to redirect the tcp port to interfaceX , to new destination : ip 192.168.3.8 on interfaceY with nftable rules. I tried that: nft flush ruleset nft add table ip nat nft add chain ip nat ...
python3.789's user avatar
0 votes
1 answer
25 views

Long running program started from cron

Is there a problem to start long running program from cron? Long running means that it has to run all time without interruption but in case it is closed, cron will restart it again. I don't know ...
i486's user avatar
  • 71
0 votes
0 answers
7 views

i3wm i3lock with 2 monitors - resume from suspend only brings up main monitor

Setup lenovo x1 carbon gen 10 2nd monitor linked through hdmi cable ubuntu 22.04, i3wm, i3lock, i3lock-fancy What's wrong After resuming from suspend, the 2nd monitor is blank, not receiving any ...
vladimir.gorea's user avatar
0 votes
0 answers
23 views

Unusual disk space occupied by wsl (ubuntu 20) in windows 11 system

I have installed WSL (Ubuntu 20.04) on my Windows 11 system with a 1TB SSD. After working with the WSL setup for a couple of weeks, I've noticed that WSL occupies almost 620GB of disk space, whereas ...
the game's user avatar
-1 votes
0 answers
30 views

Linux kernel access to ACPI Tables

How does Linux kernel access ACPI Tables via EFI_SYSTEM_TABLE from the firmware? How does it get the pointer to the EFI_SYSTEM_TABLE, and where is it saved? Is it a global variable in the kernel and ...
Saadhana Kallampalli Illam's user avatar
1 vote
0 answers
10 views

Why might RUNPATH be ignored by the loader after system libraries are found?

I have an executable which is linked with several dynamic libraries (.so). These libraries are found in 2 different local folders. When linking the executable, the RUNPATH of the executable is ...
Patrick B.'s user avatar
-1 votes
0 answers
23 views

Grub2 on dual boot, boots windonws repair

I made a clean install of windows 10 in a acer nitro in a ssd new drive. Then, i installed Zorin OS. The dual boot is not working correctly. It shows Zorin, then 2 option of win system, one in the HDD ...
Renata Mesquita's user avatar
0 votes
0 answers
18 views

Timedatectl output does not change after running ntpdate command in Kali Linux

I am currently doing a pen testing CTF challenge on HacktheBox.com (HTB) that involves manipulation of Kerberos TGT tickets so need to sync my local system time on my Kali Linux instance with the ...
Anthony's user avatar
  • 101
0 votes
1 answer
198 views

XFCE: M-Tab, active windows and „Always on Top“

I run XFCE under X11 with focus policy „focus follows mouse“. What happens when I open an application, create a new (second) window in it, set it to „Always on Top“ from window menu, move the mouse ...
toomas's user avatar
  • 170
6 votes
2 answers
846 views

How to request for a package to be added to the Fedora repositories?

I am a co-maintainer of an eyestrain prevention app called SafeEyes. The app is already available on many distributions, but not in Fedora. What is the procedure to add a new app to the official ...
Archisman Panigrahi's user avatar

15 30 50 per page