Questions tagged [linux]

These questions are about Linux in general – NOT specific to a particular distribution.  If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the “linux” tag.

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

USB serial port driver

Currently I writing new driver for wp7607 base on GobiSerial and qcserial , in my driver I have only defined the init(), exit() and probe() functions but I can still use the AT command with just such ...
Kien Che's user avatar
0 votes
0 answers
38 views

My linux is using 100% of my ssd for no reason

The largest folders I have on the system WARNING: Full balance without filters requested. This operation is very intense and takes potentially very long. It is recommended to use the balance filters ...
SeriousFreezing's user avatar
-2 votes
0 answers
24 views

how to fix this error in kali liux [duplicate]

──(root㉿kali)-[~] └─# apt-get update Get:1 http://old.kali.org/kali sana InRelease [20.3 kB] ...
Pasindu Gayashan's user avatar
-1 votes
0 answers
30 views

Stuck on black screen log when trying to boot into linux

I'm trying to install Linux on to my computer. The distribution I'm currently trying to install is Ubuntu 22.04.3 LTS but I've had the same issue when trying to install Kali and older versions of ...
vpl2k's user avatar
  • 1
1 vote
0 answers
15 views

Cannot reach internet from wireguard connection in networking namespace

I am following this blog post to experiment with wireguard and networking namespaces on my machine running the Linux Kernel version 5.15.32: https://www.ismailzai.com/blog/creating-wireguard-jails-...
PhilBot's user avatar
  • 79
-1 votes
3 answers
78 views

How to mark things I download automatically executable?

I spend a lot of time downloading things that I am going to execute, without a doubt, after having downloaded them. Out of the 900-ish files in my download folder right now, roughly a third is stuff ...
Jean-Michaël Celerier's user avatar
0 votes
1 answer
8 views

How to build a UBIFS image to make use of the remaining space of MTD?

I am working on an embedded Linux system (kernel-5.24) and the development host is running WSL2 in Windows. There is a NAND FLASH of 128MB in the embedded system (PEB is 128KiB, page size is 4096 ...
wangt13's user avatar
  • 327
0 votes
0 answers
22 views

Not cooking USB3 ports on Linux?

I'm still using an 11" Linux notebook bought in 2016 as a beater and "kitchen workstation". It has a single USB3 which works fine in itself but has a tendency to get cooked. I say ...
RJVB's user avatar
  • 171
1 vote
0 answers
35 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 ...
Alexander Prokopenko's user avatar
0 votes
0 answers
30 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 ...
user21379959's user avatar
0 votes
0 answers
20 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?
Adrian Lopez's user avatar
0 votes
1 answer
34 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 ...
Chicken Sandwich No Pickles's user avatar
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 ...
Coderino Javarino's user avatar
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: ...
MOHAMED's user avatar
  • 301
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.
Grigorios's user avatar
  • 163
2 votes
8 answers
300 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 ...
Curiouscat's user avatar
0 votes
0 answers
31 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 ...
username's user avatar
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/...
Martin Vegter's user avatar
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 ...
uncletall's user avatar
  • 101
0 votes
2 answers
66 views

Linux How to find the id of a user who ran some particular command using sudo [duplicate]

In shared environment where multiple users have sudo account, I want to find out underlying user id (not a sudo account) details who has invoked particular script. Thanks. I tried below but it does ...
AshwinD's user avatar
0 votes
0 answers
7 views

SO_TIMESTAMPING: Overhead?

I use SO_TIMESTAMPING with SOF_TIMESTAMPING_RX_SOFTWARE to generate software timestamps for TCP and UDP streams. Is it known what's the overhead for using this flag? Does the throughput or the latency ...
Kevin Meier's user avatar
0 votes
0 answers
10 views

nmtui unable to activate wireless connection, nmcli dev status says wifi unavailable

I'm very new to using linux. When I try using nmtui to connect to wifi, the only option in "activate a connection" is wired connection. When I use nmcli dev status, it outputs wlo1 wifi ...
SmoreBob's user avatar
0 votes
0 answers
37 views

Problem with root fs

I am trying to make my own linux. After I compiled it, I moved bzImage and initramfs to the /boot directory so the directory structure looks like: / boot -bzImage -initrd.img When i then tried to ...
StiglCZ's user avatar
0 votes
1 answer
55 views

zsh: no such file or directory error even though the file exists [duplicate]

I'm getting an error while executing a binary that the binary cannot be found. I can see it using other commands. >> ls -alh ...
Igor's user avatar
  • 3
0 votes
0 answers
13 views

SO_TIMESTAMPING: Which timestamp is used if we read multiple packets at once?

Given Linux is used and packet timestamping is enabled with SO_TIMESTAMPING for a TCP socket and we read now some data, what timestamp will be reported if the byte-stream which we read was merged out ...
Kevin Meier's user avatar
2 votes
1 answer
56 views

Softirq delayed because of the Heavy I/O Operation

I am trying to copy the contents of a 1 GB ISO file (stored in USB) to my internal storage. As part of a test when i am doing repetitive copy operation from USB to my hard drive continuously I observe ...
Eswar Reddy's user avatar
0 votes
1 answer
61 views

freeipa client installation in ubuntu

I am installing freeipa client in ubuntu VM, but getting the following error. failed to obtain host tgt: major (458752): no credentials were supplied, or the credentials were unavailable or ...
Muhammad Naeem Akhtar's user avatar
0 votes
0 answers
29 views

How to determine which Compose file is in use?

My locale is set to "en_NZ.UTF-8". There is no directory by that name listed by ls "$(nix eval -f '<nixpkgs>' --raw xorg.libX11)/share/X11/locale/", and X applications don't ...
l0b0's user avatar
  • 50.9k
1 vote
1 answer
21 views

Optimizing Disk I/O Performance in Linux: Advanced Techniques for High Throughput and Low Latency

I'm currently working on a Linux-based server with high disk I/O demands, and I'm looking for advanced strategies to fine-tune the system for optimal performance. While I've implemented basic ...
MRashad's user avatar
  • 11
-2 votes
2 answers
68 views

Store part of file name as variable in Linux Shell

Current File Name: 017251004_2301941_5193716.xml Require num: 5193716 I need to store the number after last _ and before .xml into a variable. Can someone please provide the syntax for same. I tried ...
user3792741's user avatar
0 votes
2 answers
28 views

Restrict all already running processes to a range of CPU cores

I've got an AMD 7950X3D CPU which has 32 total logical cores, 16 of which (0-15) have access to extra cache. To optimize my system for gaming while multitasking I want to run Steam and all the ...
Dmitri Ranfft's user avatar
0 votes
0 answers
20 views

Grub2 loopback command out of memory

I have an asus rog strix g614 with 32gb ram. I installed fedora 38, and with it grub version 2.06. I made an ext4 partition where I put an image file of Ubuntu so to load it with Grub. I have this ...
AndrewBloom's user avatar
-1 votes
0 answers
23 views

Linux fundamentals [closed]

How you can strong textUse the cat command to find the flag number displayed in the flag.txt file of the Public directory
Zidane Nzobe's user avatar
0 votes
1 answer
19 views

pjllib install on ubuntu

Feel like a total noob,but could someone please guide me on how to install the printer job language commands found at PJL-lib I am not quite sure how to compile this to run the pft command. I am on ...
SilverSurfer's user avatar
2 votes
0 answers
23 views

Linux reboots with no panic when booting SMP configuration from kexec

I'm working on a project involving kexec. I have it working on some of our hardware platforms. On one platform, I'm getting sudden reboots with no panic dump during SMP setup: [ 25.219028] smpboot: ...
Sarvadi's user avatar
  • 121
3 votes
4 answers
146 views

How does Linux know there is a MBR partition table?

You might think this question is trivial because an msdos partition table MBR ends with 55 AA (hex). But it's not because disks formatted as FAT32 (with no partition table) end with 55 AA too. I ...
zomega's user avatar
  • 873
0 votes
0 answers
15 views

Driver Bluetooth Debian 12 [closed]

Buen día gente, Tengo un problema con el controlador de Bluetooth, no se porque Debian no me lo reconoce, he instaldo otros discos con otras distribuciones por ejemplo MX Linux y lo reconoce perfecto, ...
migzam's user avatar
  • 1
-1 votes
1 answer
64 views

rsync takes long time to start

I'm running on Ubuntu 18.04 and the rsync command takes a long time to start. Given a file to transfer of 0 byte, it still takes more than 5 seconds to transfer. Version of rsync: 3.1.2 time rsync ...
Julien Greard's user avatar
1 vote
0 answers
27 views

Why does setreuid have this limitation on setting ruid to current value of suid?

According to the docs for setreuid: Unprivileged processes may only set the effective user ID to the real user ID, the effective user ID, or the saved set-user-ID. Unprivileged users may only set ...
quixotrykd's user avatar
1 vote
1 answer
43 views

systemd ignores /etc/hostname at startup

Our team works with a custom, barebone linux distro for an embedded device, and it uses systemd. The system used to rely on SystemV init scripts until stuff got migrated to systemd (including network ...
luis.espinal's user avatar
0 votes
0 answers
28 views

Fedora 38 x86-64 Live environment doesn't boot past Grub

The issue: I tried another distro for Sh*ts and giggles. Downloaded the Fedora ISO again and passed the checksums. However, it doesn't boot passed Grub. I was on Fedora 38 on this laptop before. What ...
Wesley Blake's user avatar
0 votes
0 answers
22 views

pkg-config cannot find any libraries without manual intervention

I am not a C++ developer or typically work with Conan, CMake, or Makefiles. The first time I had heard of pkg-config was yesterday when conan started erroring on it, unable to resolve a gl package. I ...
Xevion's user avatar
  • 101
0 votes
1 answer
36 views

Remove all lines after line contains? [duplicate]

I have a script which I want to delete every line after a specific line. I have a command, but it just wipes the entire file? sed -n '/twm &/q;p' ~/.xinitrc > ~/.xinitrc Convert something like: ...
AAA's user avatar
  • 101
0 votes
1 answer
19 views

CentOS Stream 9 image has predictable interface naming disabled

I'm using a qcow2 image from here. Note the net.ifnames=0 cat /proc/cmdline BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.14.0-366.el9.x86_64 root=UUID=<uuid> ro console=ttyS0,115200n8 no_timer_check ...
user avatar
1 vote
0 answers
32 views

Is it possible to limit the accessible fonts for some GUI (GTK) program?

Because of different reasons, it is useful to limit particular program from accessing all installed in the system fonts. For example, some programs works very slow when big amount of fonts are ...
johnfound's user avatar
  • 283
0 votes
0 answers
20 views

How can i fix dropbear-initramfs filtrated port on boot?

I have installed dropbear-initramfs (last version) on my physical server but it works on random, when i restart it, the port i set can be open or filtrated. I red a lot about it and found out that it ...
danny's user avatar
  • 1
1 vote
3 answers
93 views

How to rename large number of randomly named file at one go?

In a directory I have large number of randomly named '.wav' files. For example 090913yui.wav jiyafa123.wav . . . awe-6rt.wav I want to change the file names to file1.wav file2.wav . . and so on Can ...
Turing101's user avatar
  • 157
0 votes
0 answers
44 views

How to rename connected computer monitors in linux using wayland?

I have two identical computer monitors, both from the same manufacturer, with matching models and revisions. These monitors are connected to a Thunderbolt 4 docking station via DisplayPort, and the ...
Simon Schürg's user avatar
0 votes
0 answers
56 views

Samba file/folder deletion error after Debian 12 upgrade

I recently installed Debian 12 for Raspberry Pi and configured a Samba server. But now when I delete a file or a folder over the network I get an error, Samba object not found and then the file or ...
Neha's user avatar
  • 1
0 votes
1 answer
39 views

linux ls -l ACL +, . , gap How to make gap

drwxr-xr-x+ 4 root root 4096 Sep 21 04:00 test << + drwxrwxrwt. 10 root root 250 Sep 21 04:03 tmp drwxr-xr-x. 12 root root 144 Sep 19 03:42 usr << . drwxr-xr-x. 20 root ...
박용원's user avatar

1
2 3 4 5
762