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.

7,721 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
12
votes
1answer
1k views

ACPI group/action undefined: processor / LNXCPU

If I unplug my laptop from the AC adapter, I will get ACPI errors like these: May 07 21:45:04 veritas root[7067]: ACPI group/action undefined: processor / LNXCPU:00 May 07 21:45:04 veritas root[7076]:...
11
votes
0answers
5k views

Graph is too large for cairo-renderer bitmaps Error

Im trying to use pyreverse to generate images of UML diagrams for a project source code. When I run the pyreverse command and specify to generate .png images, it runs and then after a while, it shows: ...
10
votes
2answers
3k 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 ...
10
votes
2answers
2k 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 ...
9
votes
0answers
2k views

Cannot connect to WiFi with nmcli, although secrets are provided

I am using nmcli on ArchLinux (version 1.14.5dev+17+gba83251bb-1 from the official package repository) to connect to wifi. This works perfectly for all wireless networks apart from this one Vodafone ...
9
votes
0answers
889 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 ...
9
votes
2answers
1k views

How can I configure Yast to switch languages completely?

I have an installation of openSUSE 11.4 which was installed in German. I started Yast2 (which displayed in German, like "Netzwerkdienste") and switched the language to English under "System" -> "...
9
votes
1answer
672 views

Is it possible to send data to the the shell of another pseudo-terminal?

This image shows how pseudo-terminals work: If I have two terminal emulators open, I can send the string "Hello" from the first terminal emulator to the second terminal emulator: echo "Hello" > /...
8
votes
1answer
2k views

Linux Mint - Not detecting monitor connected via USB-C to HDMI hub

I recently bought a laptop (Asus Zenbook Flip) and installed Linux Mint. Now I want to connect two external monitors. Connecting the first through the HDMI port works without problems, but for the ...
8
votes
3answers
2k views

Automatically switch display on lenovo docking and linux

I have a lenovo thinkpad with nvidia optimus and a mini docking station series 3. I want that while docked, it should automatically switch to an external monitor if possible and if I undock it, it ...
8
votes
0answers
4k views

Does the timeslice depend on process priority or not under Completely Fair Scheduling?

I'm trying to understand the Completely Fair Scheduler (CFS). According to Robert Love in Linux Kernel Development, 3rd edition(italics his, bold mine): Rather than assign each process a timeslice,...
7
votes
1answer
248 views

How is it possible to be able to browse the web, when I can't resolve domains?

My networking is clearly bollixed, but I can't figure out how: derek@vinka:~$ nslookup google.com ;; connection timed out; no servers could be reached derek@vinka:~$ curl google.com <HTML><...
7
votes
0answers
129 views

Examining which files are dirty or buffered in Linux

$ cat /proc/meminfo | grep Dirty Dirty: 2396 kB How do I view in which files (at least as a mountid:inode pairs) are those 599 dirty pages located? $ cat /proc/meminfo | grep Cached ...
7
votes
1answer
212 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--) ...
7
votes
1answer
631 views

Simulate ethernet cable unplugged on a remote machine while staying connected

I am working from home on remote embedded Linux machine "X" via ssh. It has one physical network card. I need to simulate Ethernet cable unplugged condition on the same remote machine "X" , while ...
7
votes
1answer
575 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 ...
7
votes
1answer
3k 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-...
7
votes
2answers
3k 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 ...
7
votes
2answers
2k views

How to set up an encrypted directory to be mounted only during samba access?

(This is not about restricting client access, for which ext3 permissions do the trick) I'd like to encrypt the data on my NAS drive (Buffalo LinkStation Pro with SSH access enabled, if that matters) ...
7
votes
1answer
207 views

Has 'sync' been proved to be necessary when writing to a block device with 'dd'?

Every time I've written a file to an empty raw block device, e.g. # dd if=image.iso of=/dev/sdb status=progress I've never used any type of sync (i.e. sync; conv=fsync; conv=fdatasync; oflag=sync; ...
6
votes
0answers
154 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 ...
6
votes
1answer
212 views

Due to a broken monitor, I need move my screen to the left

A fraction of the right side of my laptop screen is broken, in order to use only the good part the resolution needs to be about 1280x1024, aligned to the left. A simple xrandr -s 1274x1080 will get ...
6
votes
0answers
567 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.
6
votes
1answer
4k 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 ...
6
votes
2answers
2k 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 (...
6
votes
0answers
502 views

cinnamon resize window to default size by hotkey

I'm using mint 18.1 and searching a way to resize of opened window and center it by hotkey (resize to default value that set up). In cinnamon keyboard preferences I found in shortcuts a way to set ...
6
votes
0answers
2k views

Right-to-left reversed text and alignment issue in mobaxterm on Linux

I have install Wine-1.8.0 on Ubuntu 16.04. The issue is that the text in mobaxterm is displayed right-to-left (reversed), aligned to the right, which the screenshot below shows. Other .exe files ...
6
votes
1answer
694 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 ...
6
votes
1answer
476 views

Enable tty console login while “A stop job is running” (stop running forever, preventing shutdown)

A message like this one is often shown on shutdown: "A stop job is running ..." (nfs mount) This apparently even happens when the NFS server did not go away. But even if the connection to the NFS ...
6
votes
0answers
1k views

Persistent network namespace configuration

When creating a namespace with ip netns add <namespace> the namespace and it's related config is deleted on reboot along with created interfaces like veth pairs. What is the correct way to: ...
6
votes
1answer
243 views

Get quota usage information as non-privileged user

I have non-privileged access to a Linux server (shared PHP+MySQL hosting) and there are disk space, memory, CPU usage, I/O quotas. I wonder how can I get information about max/current quota usage ...
6
votes
1answer
3k views

systemd how to run service after docker.service

I have a service file, which executes a shell script, and the script needs to be executed after docker is started. Here is what I tried, but the script is started without waiting for the docker....
6
votes
0answers
993 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 ...
6
votes
0answers
2k views

Understanding Broadcom setup and kernel files

I often install Linux distros form live usb/CDs. For that I would like to be able to setup my wireless without any internet connexion. I have a Broadcom chipset : $ lspci -k 04:00.0 Network ...
6
votes
1answer
2k views

Read Apple nvram

On Mac OS X there is a tool called nvram to get and set EFI properties. As I am now deploying GNU/Linux on Apple hardware, I'd like to have a similar tool that is able to talk to Apple's EFI ...
6
votes
0answers
1k 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 ...
6
votes
1answer
5k views

GNU/Linux: “device mapper: create ioctl failed” “device or resource busy”

I can't mount my encrypted devices anymore. The error is: device mapper: create ioctl failed device or resource busy This error arises both with two different programs to access TrueCrypt ...
6
votes
1answer
847 views

LVM cache and TRIM

I have set up LVM to cache a logical volume (located on an HDD) on a partition of an SSD (in writeback mode if this matters). As far as I can tell, this works correctly and the cache uses all ...
6
votes
1answer
3k views

What happened to `vga=ask` in newer kernels?

I used to activate framebuffer mode in the "older" kernels with vga=ask, and later setting it to a value, once I've figured out which one works best for me. Now, this option seems to be gone, the 3....
6
votes
3answers
7k views

USB Media filesystem problem

My USB is not detected recently, I tried mount, fdisk, dd, gparted, mkfs.vfat :~# tail -f /var/log/syslog Oct 27 12:54:29 mohammad-Inspiron-N5110 kernel: [18843.105772] usb 3-2: New USB device ...
5
votes
1answer
340 views

How to zoom/magnify on linux without compiz (bspwm)

I'd like to have the functionality described in this video. Basically, use super+scrollup/down or pinch in/out on my touchpad to zoom in a certain area of the screen like on a phone or tablet. Sadly ...
5
votes
0answers
920 views

Is it necessary to explicitly flush the HDD on-disk write caches?

Abstract Sometimes, the Linux kernel is not aware of on-drive write caches of external USB storage devices. Is it necessary in such situations to explicitly flush those caches prior detaching these ...
5
votes
0answers
593 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 ...
5
votes
1answer
1k views

unshare --map-root-user switch to original uid/username after setup

I'm using unshare to create per process mounts, which is working perfectly fine by unshare -m --map-root-user However, after having created my bind-mounts by mount --bind src dst I want to change ...
5
votes
0answers
497 views

How to combine linux kernel and initrd without compiling?

I know that it's possible to extract from a linux kernel the embedded initramfs cpio. I want to know if the reverse operation is possible; i.e., given both a compiled kernel and initramfs archive, how ...
5
votes
0answers
636 views

Change Search Highlight Color In Less

I am a bit lost here on customizing the search/find highlight color or font format if you will. I understand that using LESS_TERMCAP_* we can alter the font format of less display. Full capabilities ...
5
votes
0answers
462 views

gdb hangs on “quit()”

When I want to close gdb, I frequently mistype quit() instead of quit Whenever that happens, gdb hangs indeterminately, and I end up using kill -9 gdb_pid to terminate it. I would like to ask: ...
5
votes
0answers
3k views

How to set sftp-server permissions and ownership in a shared sftp-folder? (ACL's ?)

I need a specialized configuration for our companys sftp server to be able to exchange files with our customers in a secure way (The server runs Debian Linux 8.7). We need a "customers" folder where ...
5
votes
0answers
763 views

Vagrant configure eth0

I started using Vagrant recently to quickly install virtual machines. I noticed that my network configuration isn't perfect, but I can't get it right. This is my Vagrantfile: ENV['...
5
votes
0answers
4k views

S.gpg-agent.browser not found while adding ppa in debian

I am using debian strech. I try to add repostory for vim with python support , while adding I encountered gpg-agent.browser not found error sudo add-apt-repository ppa:pi-rho/dev [sudo] password ...

1
2 3 4 5
155