Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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.

10,871 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
17 votes
4 answers
7k views

Microphone volume on USB soundcard very low, snd_usb_audio options?

I have a C-Media USB soundcard installed on my Raspberry Pi: Bus 001 Device 004: ID 0d8c:0008 C-Media Electronics, Inc.. It is a USB cable with an XLR end on the other side, to which I have an XLR ...
Christian's user avatar
  • 421
12 votes
3 answers
9k views

USB ports keep resetting on Linux

Problem USB Ports (2.0) keep resetting causing connected peripherals to stop working after some time. Hardware Motherboard: ASUS J1800I-C CPU: Intel(R) Celeron(R) CPU J1800 @ 2.41GHz RAM: 4GB ...
Hasan's user avatar
  • 221
12 votes
2 answers
4k views

Benefiting of sched_autogroup_enabled on the desktop

I am running a 2.6.37 kernel with sched_autogroup_enabled set to 1. I am not certain that I am seeing the benefits of this patch since: I am launching my applications from the desktop; applications ...
Robert Munteanu's user avatar
10 votes
1 answer
8k views

How to run linux perf without root

I want to benchmark an application of mine. Up to now I used gnu time, but perf yields much better stats. As a matter of principle I would like to go the route of a decicated perf user instead of ...
Eike's user avatar
  • 211
10 votes
0 answers
1k views

What does hierarchy support do in cgroup?

cgroup has 2 options for memory control: memory.use_hierarchy = 1 : use hierarchy memory.use_hierarchy = 0 : use flat hierarchy, according to this answer What is the difference between the two? I ...
Amumu's user avatar
  • 563
9 votes
0 answers
9k views

ASUS Zenbook UX433/UX333 --- Configure Touchpad-embedded numpad on Linux

I have an ASUS Zenbook UX433,on which ASUS decided to innovate by embedding a Numpad inside the touchpad (see picture 1). Toggling between classic touchpad mode and numpad (also turns the touchpad ...
Pierre Thalamy's user avatar
9 votes
1 answer
2k views

How can I find out what is making my SLAB Unreclaimable Memory Grow without bound

My SLAB unreclaimable memory (SUnreclaim) grows without bounds and this appears to be the reason why my system eventually runs out of RAM and starts trying to swap until it dies. Here's a graph of my ...
user3421823's user avatar
9 votes
1 answer
869 views

Check syntax of .conf file in /etc/X11/xorg.conf.d

I have a new .conf file located in /etc/X11/xorg.conf.d on my Manjaro Linux box which I would like to validate. Is there a way of syntax checking it before X loads next time?
Tom Hale's user avatar
  • 30.8k
9 votes
1 answer
5k views

Linux 3.x fails assigning PCI BAR memory

I got an IBM x3850 type 8864 machine, I can successfully boot using a 2.6.32 kernel but when I try to use a 3.10 kernel or newer the kernel fails to initialize all PCI slots (I can fix this (manually),...
Jan's user avatar
  • 91
9 votes
0 answers
3k views

Persistent network namespace configuration

When creating a namespace with ip netns add <namespace> the namespace and its related config are deleted on reboot along with created interfaces like veth pairs. What is the correct way to: ...
evgeni tsvetanov's user avatar
9 votes
3 answers
7k views

Cannot see packets arrive on application socket that were seen by Wireshark

Using Ubuntu 14 I have a Linux machine where there are two interfaces: eth1: 172.16.20.1 ppp0: 192.168.0.2 ppp0 is connected to a device which has a PPP interface (192.168.0.1) and a WAN interface (...
nnja's user avatar
  • 199
8 votes
1 answer
432 views

Understanding linux Ethernet devices

I have a small, embedded, completely self cross-compiled installation on a mips SoC. SoC is based on a Mediatek MT7628 sporting a Wifi interface (2.4MHz only), a 100Mbps Ethernet MAC and an internal ...
ZioByte's user avatar
  • 880
8 votes
1 answer
7k views

What is the difference between iptables and ip route table?

Recently I am learning iptables, I know there are 5 independent tables, two of them are filter and nat tables. And I sometimes will look at netatat -r or route table, I know ip command can modify this ...
chengdol's user avatar
  • 183
8 votes
0 answers
10k views

Accessing regular linux commands in Huawei's Dopra Linux

Backstory: I have a Huawei HG8245 router in my house and I want to change the default username/password. I've tried following this guide but the config file always gets reset. My ISP isn't helping ...
Dzeri96's user avatar
  • 211
8 votes
0 answers
3k views

lsof: list only files of a particular type

The lsof man page is a bugger to read. I've tried, but wonder if I've missed something. Is there a way without using pipes to have lsof list only files of a given TYPE? In particular, I'm interested ...
Tom Hale's user avatar
  • 30.8k
8 votes
1 answer
4k views

X11 controlling root window or setting a window to be the background window (wallpaper)

I would like an animated background image. Or better, to make an application be the background, with no interactivity, so I don't accidentally click on it. I've seen many discussions about setting ...
Rain Gloom's user avatar
8 votes
0 answers
2k views

Why are block sizes limited by page size in Linux?

In many (all?) file systems that Linux uses, including ext2/3/4, the maximum block size is the page size of the architecture Linux is running on, ie. 4KiB on x86. Why is there this limit? Might this ...
Mark Raymond's user avatar
8 votes
2 answers
4k views

volume hot keys in Crunchbang don't work

I've spent 2 hours on this and still can't figure this out. It's driving me insane. Please save my sanity. When I press mute, the pnmixer control in the top right shows that I've pressed mute, but ...
Korgan Rivera's user avatar
8 votes
2 answers
8k views

Xorg broken xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted) No devices detected

I am trying to use Xorg instead of Wayland on my Arch Linux. I have two graphics cards in my laptop. An Intel and a Nvidia graphics card. The output of my log file is: [ 53.401] (WW) Failed to open ...
thigi's user avatar
  • 181
7 votes
0 answers
2k views

Include special characters when sorting files

I'm trying to make Linux include special characters when sorting filenames. The sort order I'm trying to achieve is: first all special characters, then numbers, then letters (case insensitive). The ...
wayan's user avatar
  • 91
7 votes
0 answers
543 views

How to compare string values with seccomp?

Some Linux system calls (such as execve, openat) have string type arguments. But the comparison function SCMP_CMP provided by seccomp seems to be comparing two pointers. So how can I limit files that ...
Cyker's user avatar
  • 4,314
7 votes
0 answers
2k views

Passing environment variables around in systemd

EnvironmentFile is not an option as per this answer. I am trying to understand the recommended way of using and passing environment variables. I have a urxvtd.socket: [Unit] Description=urxvt ...
themagicalyang's user avatar
7 votes
0 answers
479 views

no such file or directory trying to list or remove file in btrfs

I have a file system mounted btrfs. I have one directory in particular, that I can't remove, because it's listed as non-empty. In that directory, there's one file, which I can see the name of, but ...
Brian Minton's user avatar
7 votes
0 answers
431 views

How to open different virtual consoles on different monitors?

I use a 2-display set-up (a laptop with a secondary 1280x1024 SXGA monitor attached to it) and whenever I switch to a virtual console (e.g. by pressing Ctrl+Alt+F2) the secondary monitor switches to ...
Ivan's user avatar
  • 17.8k
7 votes
1 answer
1k views

OOM from iterating over very large memory map

I'm writing a simulator that relies on generating a (potentially) very large problem domain. As the data can't fit in RAM, I use 4 four memory mapped files to hold it. This is a 64-bit application ...
cmannett85's user avatar
7 votes
1 answer
3k views

How to run start up scripts on Amazon linux?

I'm trying to create some script that should run on start. Now I've created some myScript file under the /etc/init.d/ and then run sudo chkconfig --add myScript; chkconfig --list myScript output is:...
Silk0vsky's user avatar
  • 213
7 votes
0 answers
15k views

How to change password of LDAP user?

Is it possible to change password for logged in LDAP user using passwd command? I have logged in to server1 using testuser. Trying to change password for itself (testuser) and got the below error. ...
Sourav's user avatar
  • 1,343
7 votes
1 answer
2k views

Mounting Overlayfs in a user namespace

Is it possible to mount an Overlayfs filesystem as an unprivileged user in a user namespace in Linux kernels >4.3.3; it seems that the fix to this vulnerability has blocked this functionality entirely....
Josh Hebert's user avatar
7 votes
1 answer
347 views

group member unable to write to a group-writable file with reiserfs and extended ACLs

Users vi and rust share group rust and want to use some file in shared manner. rust$ ls -l myfile -rw-rw-r-- 1 vi rust 0 May 30 03:48 myfile rust$ stat myfile | grep Gid Access: (0664/-rw-rw-r--) ...
Vi.'s user avatar
  • 5,763
7 votes
1 answer
706 views

Check if a remote machine is in a Veritas cluster

How can I verify that a remote machine is part of a Veritas cluster? I just created the following ssh command to verify if the remote machine is a VRTS cluster or a Linux availability Red Hat cluster ...
yael's user avatar
  • 1,531
7 votes
1 answer
2k views

Tmpfs with overflow on disk?

I'm looking for a way to have a tmpfs-like file system that can be unlimited in size, but will use a specified amount of RAM after which the "oversize" data will be stored on another disk-...
mickael9's user avatar
  • 171
7 votes
0 answers
7k views

Linux strace not following child processes even with -f (multithreaded parent)

Note: there are several similar questions, with the general answer being "If you want to trace a multithreaded process, or follow children, use -f". This doesn't help me, as i am using -f already. I ...
Guntram Blohm's user avatar
7 votes
1 answer
2k views

send super key to remote Citrix session

I use Citrix Receiver on my home GNU/Linux Debian (testing) desktop to remote in to my work Windows machine. I use Emacs extensively and I have many keybindings that use the super key or meta(alt)-...
fommil's user avatar
  • 653
7 votes
1 answer
2k views

Btrfs/ZFS Network Replication

Is it possible to replicate a ZFS or Btrfs raid volume in real-time (or as close to as possible, network specs aside) over a network? ZFF and Btrfs are ideal because of their CoW properties. I'm ...
DevinM's user avatar
  • 151
7 votes
0 answers
4k views

OverlayFS - How to make changes to upper filesystem persistent without unmounting?

I am using an USB drive to start a linux system which needs changes from time to time and also writes some logs. Flash drives tend to fail early if there are many write operations. That brought me to ...
mgabriel's user avatar
  • 361
7 votes
0 answers
2k views

How to read the output of the show-memory-usage SysRq?

I couldn’t find any (recent) documentation on reading the output of the show-memory-usage SysRq (Alt+SysRq+m). So what can one learn from looking at it? Here is an example output form my box (Kernel ...
kirelagin's user avatar
  • 203
7 votes
1 answer
3k views

What is ionice `none: prio 0` equivalent to?

The ionice manual states that: Note that before kernel 2.6.26 a process that has not asked for an io priority formally uses "none" as scheduling class, but the io scheduler will treat such ...
Kyle Brandt's user avatar
7 votes
1 answer
4k views

How to tell Chromium-browser to run a url as single instance not multiple instances?

I have a web application which crawls data and any browser download it first the second one will not get that crawl informations. While using Chromium-browser in a PC i start as below: $ chromium-...
user avatar
6 votes
1 answer
10k views

Rootless podman container with privileged port mapping

Is there a way to start a rootless podman container with mapped privileged port (container service is exposed through host's port 1023 or lower)? Running $ podman run --rm -it -p 80:80 nginx:stable-...
czerny's user avatar
  • 1,657
6 votes
0 answers
2k views

hwinfo --framebuffer shows nothing, can't change grub resolution

I am using a Lenovo Yoga C940 15" with Fedora 34. It has a 4K screen with an nvidia gtx1650 mobile card and integrated intel graphics. I wanted to change the resolution of the GRUB menu because ...
Nicholas Stommel's user avatar
6 votes
0 answers
1k views

man pages have odd characters in the output

I am using Fedora and Gnome. I use GNOME Terminal and I am experiencing some odd output characters which seem to surround certain keywords on output. 1mNAME0m sync - Synchronize cached writes ...
Robert D Weir's user avatar
6 votes
0 answers
2k views

X11 unable to open display after re-logging into a tmux session

I have a desktop at work that I use as a "tmux server." I ssh -Y u@Work_Desktop from home into the Work Desktop then ssh -Y u@Work_Server into another server at work. I run x applications ...
Michael Ehrlichman's user avatar
6 votes
0 answers
647 views

Command on Linux to tell is displayport over USB-C is supported

I am running Linux and kernel 5.3 which has apparently had the DP Altmode supported for some time, but cannot get a monitor to work from an adapter cable. Question: what is a shell command that will ...
Vic K's user avatar
  • 61
6 votes
1 answer
173 views

btrfs "unable to zero output file"

I'm trying to create a btrfs file system with a single volume from a directory 'root', over mtd and nandsim. With a few token files and directories in my root directory, and successfully created and ...
Onofog's user avatar
  • 111
6 votes
1 answer
8k views

device not accepting address 18, error -71

I am using a USB to ethernet converter to connect my laptop to a raspberry pi. But the kernel log shows USB: device descriptor read/64, error -71 I have used this device previously without any ...
Praveen Kumar P S's user avatar
6 votes
0 answers
649 views

What does it mean for the X server to live on a particular tty?

On Linux, how does the X server establish a relationship with a particular tty (such as tty7) so that the X server can receive input and draw on the screen only when that tty is in the foreground? How ...
Brian Bi's user avatar
  • 592
6 votes
0 answers
3k views

How to escape from a hardened chroot on Linux when only file capabilities are available to the attacker?

There is a chroot environment in /var/myroot, and an attacker has obtained arbitrary machine code execution in a process running as root (EUID 0) in the chroot. But the processes under control of the ...
pts's user avatar
  • 1,061
6 votes
1 answer
2k views

What are "self" and "master" options for in "bridge vlan add"?

I'm reading "man bridge" and it says something like: bridge vlan { add | del } dev DEV vid VID [ pvid ] [ untagged ] [ self ] [ master ] What are "self" and "master" options for? man says: self ...
2c9's user avatar
  • 61
6 votes
0 answers
656 views

Running docker in docker in AWS Fargate

I am thinking of running docker in docker using this. Can I run it in AWS Fargate task? It doesn't have underlying host so was not sure that would work or not.
Mirage's user avatar
  • 121
6 votes
1 answer
3k views

undefined reference, even when the linked library does exist

I'm trying to compile VTK from source and I received the following error. I'm running Fedora 27, kernel version 4.14.11-300.fc27.x86_64 /usr/lib64/libSM.so: undefined reference to `uuid_generate@...
senthil ramamurthy's user avatar

1
2 3 4 5
218