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.

6,340 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
606 views

Dropbear immediately drops connection on DD-WRT

I have a home wireless router running DD-WRT. I am unable to SSH into the router (Dropbear) even after restoring default settings and reinstalling the DD-WRT firmware. So I tried to SSH into the ...
5
votes
0answers
270 views

Restoring in-memory/swapped page state on resume from hibernation

I'm a big fan of Linux's hibernation support, which works extremely well on all the (admittedly slightly older) hardware I've tried it on. I highly prefer it to full shutdown and power up. There's ...
5
votes
1answer
2k 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....
5
votes
1answer
820 views

Can I add iptables rule from the inside of a C Linux program only with capabilities or do I need necessarily root?

I need to add an iptables rule from the inside of a C Linux program. How should I do? Do I need root privilege or can I just grant some capabilities? I tried granting CAP_NET_RAW+iep and using popen(...
5
votes
1answer
250 views

9 Mb Slackware distro - possible?

Is it possible for a slackware distro to be 9 Mb in size, have /bin /dev /var /proc /sys directories completely empty, and have only following content in the rest of the directories: /proc /sbin /sys ...
5
votes
0answers
5k views

Failed unmounting /home during shutdown arch linux

I've installed arch on my system multiple times and everything has worked fine, but since last installation I've been seeing messages : Failed unmounting /home. and Failed unmounting /run/user/1000. ...
5
votes
1answer
807 views

check the current backlog queue size

The sysctl netdev_max_backlog sets a limit to the maximum number of packets allowed in the kernel's backlog queue. Is there a way to check the current queue size (i.e., how many packets are currently ...
5
votes
0answers
2k views

is THP good or bad for MySQL Server?

Linux kernel new feature called Transparent Huge Pages (THP) which is by default enabled on CentOS 6.x and above OS. Is THP good for MySQL DB machine? I am trying following to disabled THP but seems ...
5
votes
0answers
2k views

Routing traffic for specific user to specific interface

I have a Linux box with these interfaces: eth0 Link encap:Ethernet HWaddr 14:da:e9:ef:75:7d inet addr:176.9.85.182 Bcast:176.9.85.191 Mask:255.255.255.224 tun0 Link encap:UNSPEC ...
5
votes
2answers
354 views

linux mint hangs - how to find a reason?

My Linux Mint system (17 Cinnamon, lenovo g565) hangs up frequently during work (say, 2-4 times a day). It usually looks like a white or black screen (or off if the lid was closed). CPU seems to be a ...
5
votes
1answer
486 views

Enable numlock when new external keyboard is connected?

I'm not sure this is possible, but I thought why not to ask. I have a laptop without a numeric block, and use it sometimes with external keyboard. Numlock for the internal keyboard = useless, so I ...
5
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 ...
5
votes
1answer
223 views

How do I temporarily extract a flash drive or HDD in Linux?

Suppose I mounted a disk in this way: mount /dev/sdb /mnt/tmp I have some files opened on this filesystem and don't want to unmount it. However I want to temporarily extract the device, then ...
5
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 ...
5
votes
0answers
549 views

Takeover delay in Heartbeat HA cluster

I have set up a heartbeat HA two node cluster. And both of server have same configuration of ha.cf #cat /etc/ha.cf logfile /var/log/ha-log autojoin none bcast eth1 warntime 20ms deadtime 40ms ...
5
votes
1answer
1k views

linux udev rule to load gadget module for client driver

I'm having a hard time automating loading a gadget module and bringing up the usb0 device as a eth interface. The interface in question is g_ether for a embedded Linux device and connecting to a PC. ...
5
votes
0answers
529 views

Is there a way to show all flags in /proc/mounts?

Some filesystem flags seem to be hidden in /proc/mounts, depending on whether they are defined as defaults. Is there a way to show all flags in /proc/mounts, also including the default ones? And if ...
5
votes
2answers
1k views

Problem when trying to cross-compile an ethernet driver on an old Linux kernel

I'm currently trying to cross-compile a network driver against an old Linux kernel, in version 2.6.27.7 but the compilation fails and prints: make[1]: entering directory « /home/johann/Desktop/linux-...
5
votes
0answers
6k views

How to turn my linux laptop into wireless repeater?

I need to use my laptop to extend the range of my wireless router. I have a Samsung laptop with FEdora19 installed (but those should be irrelevant for a good answer). My wireless card supports master ...
5
votes
2answers
1k views

How to create rootfs for user mode Linux on Fedora 18?

I want to create a rootfs to be used with an UML kernel and be able to use the internet. I was using febootstrap with packages: bash, coreutils, net-tools, iputils. After using febootstrap-supermin-...
5
votes
1answer
344 views

Why Nmap fragmented scan on Linux is only working from virtual environment?

OLD QUESTION AND TITLE (Look further down for the updated question): Why Nmap fragmented scan is only working on Backtrack? I spent quite a few hours today trying to capture and study some ...
5
votes
1answer
494 views

Is there a Linux for an MSM7227 tablet with USB keyboard and touchscreen stylus drivers?

I have a ZTE V9C 7" tablet with 800MHz MSM7227 processor, Snapdragon family (ARM architecture?), Android 2.3, and I want to have a (very lightweight) Linux running on it (I know Android uses a Linux ...
5
votes
0answers
3k views

How do I find out the device node corresponding to my device in SuSE 8?

I'm forced to work with a bunch of point-of-sale systems running SuSE 8. They are my client's computers. We are stuck dealing with these old systems until they get to upgrade their whole fleet to SLE ...
5
votes
0answers
508 views

Setting Framebuffer splash resolution when exiting X

I installed a copy of BackTrack 5 R2 (Ubuntu 10.04) to my HDD and dual-booted with Windows 7. After a bit of tweaking I set about updating the native Intel drivers because it was only allowing me to ...
5
votes
0answers
579 views

Pulseaudio/X permission other user/SSH

My user user1 is running a graphical X session with pulse configured per-user. I need to run a graphical program that uses audio with user2. If I do su user2; program program doesn't start and I get ...
5
votes
0answers
581 views

Increasing serial baud rate within Ubuntu under VirtualBox

I'm debugging a kernel module under VirtualBox with a guest and host OS as Ubuntu 10.10. I'm using the virtualbox serial port but I'm maxing out at the baudrate 115200. My grub config looks like this.....
5
votes
0answers
2k views

Keyboard repeat without pressing a key

Occasionally a key repeats although I do not press the key. I would like to prevent this phenomenon. The phenomenon happens when I am pressing Ctrl+w again and again. After several times of Ctrl+w, w ...
5
votes
1answer
2k 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:...
5
votes
1answer
4k views

load module via /etc/modules

I want to load my kernel module hello.ko on boot in Ubuntu 12.04. I placed it in /lib/modules/3.8.0-31-generic/kernel/ubuntu/hello.ko, ran depmod -a, and added "hello" to /etc/modules. However, when ...
5
votes
1answer
2k 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....
4
votes
0answers
30 views

How to reliably detect a USB drive just after boot on Linux

We're building a device based on Raspberry Pi. And we'd like to add an option to detect plugged USB drive on when the device boots, to e.g. perform a firmware update. There's a problem that the USB ...
4
votes
1answer
34 views

How to disable suspension in Linux Kernel 4.x

I am using full disk encryption, through LinuxPBA and sedutil (https://github.com/Drive-Trust-Alliance/sedutil). In short, at boot, a BIOS-independent piece of code requests the disk passphrase. If ...
4
votes
0answers
54 views

Is there any way to stop Mutter from removing decorations/borders of maximized windows?

I would like to be able to resize maximized windows on Mutter. Is there any way to tell Mutter to not remove the borders when the state is "maximized", so that I can maximize and then resize? Or, if ...
4
votes
0answers
42 views

H265 Supported Hardware

How do I know if underlying hardware supports H.264 or H.265 ? I want to play H.264/H.265 video by hardware encoding only. I am using Ubuntu-19.04 now.
4
votes
1answer
2k views

fontconfig warning: “/etc/fonts/fonts.conf”, line 100: unknown “element blank”

Getting this error on my vps server: fontconfig warning: "/etc/fonts/fonts.conf", line 100: unknown element "blank" This is the file: https://pastebin.com/VqcSgJ9x How to fix it?
4
votes
0answers
61 views

Problem with mouse area not reaching lower section

Under Debian 9.3 and 9.8 with OPENBOX and LIGHTDM. I have a problem with the mouse pointer on screen. Depending on the orientation, there is a section on screen that the mouse pointer doesn’t go. BUT, ...
4
votes
0answers
74 views

Laptop doesn't wake up after suspension

Whenever I enter suspension mode in my laptop, I cannot leave it: I can hear that a fan of the laptop is working, the power indicator shows that the laptop is on, and I can't return to Linux after ...
4
votes
0answers
286 views

Which filesystem will give me the best performance for both writing and reading small files?

My company developed an application that picks up (watches for) xml files of <10kb in size from a directory, reads it in sends the body as an api call to an external service and then moves the ...
4
votes
0answers
587 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 ...
4
votes
0answers
91 views

find and symbolic link

I was skimming over the documentation of find to better utilize the command usage. I was reading the part that says GNU find will handle symbolic links in one of two ways; firstly, it can ...
4
votes
1answer
129 views

How to get power consumption of a PCIe device?

I knew 'powertop' and 'powerstat', but they seem to measure CPU power consumption. any way to get power consumption of a particular PCIe slot? thanks.
4
votes
0answers
1k 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 ...
4
votes
0answers
83 views

Is there a reason why the value of a wchar_t retrieved by mbtowc() is not the UNICODE value?

If I convert the character 'ö' from a UTF-8 locale (where is is represented by the two octetts 0xC3 0xB6) to a wchar_t, I get a wchar_t value that is 0xF6. This applies to Linux and Solaris. If I ...
4
votes
0answers
383 views

How can I put a PCIe device into the D3 cold power state?

How do I transition an arbitrary PCIe device from the D0 state (powered on) to the D3 cold state (no current to the device) using common utilities on a Linux system? Presumably this involves writing ...
4
votes
0answers
76 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 ...
4
votes
0answers
391 views

How to resize2fs ext4 partition that I shrunk with parted without e2fsck -f complaining of superblock or partition table

Please note that if I resize my partition back to original size with parted, I can then mount my /dev/vda1 partition without problems. But how can I get it to mount it after I SHRUNK it to 8GB? (...
4
votes
0answers
429 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.
4
votes
0answers
45 views

Linux security policy plugins

The man page for sudoers(5) on Linux, says: NAME sudoers — default sudo security policy plugin What other "security plugins" are available for Linux systems?
4
votes
0answers
727 views

Shared library link time reference relocation error

I'm using a custom Linux distribution on an ARM box, that is based off of Ångström. Since all of the packages that I could find in the package manager are horribly out of date, I rebuilt all of the ...
4
votes
1answer
1k views

Restore PYTHONPATH after setup.py install with PYTHONPATH

I ran this command on Ubuntu 14.04 Linux while trying to install a package: export PYTHONPATH=/usr/local/lib/python2.7/ && sudo python setup.py install The package I was trying to install is ...