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.

learn more… | top users | synonyms

11
votes
0answers
186 views

CUPS prints n² as many copies as I want

This has baffled me for a few weeks now. I have a Kyocera network printer set up in CUPS, and whenever I try to print to it I seem to end up with n² as many copies as I request. That is, I try to ...
7
votes
0answers
125 views

Synchronising millions of files between two Linux servers

I have a server which exports a directory containing ~7 million files (mostly images) from its local disk to network clients via NFS. I need to add a second one for the sake of HA, and to keep it in ...
7
votes
0answers
620 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" -> "...
6
votes
0answers
138 views

Taking a picture with a laptop webcam after entering an incorrect password

I'd like to set up my laptop so that if a wrong password is entered when the screen is locked, a picture is taken using the laptop's webcam. I examined xlock (from xlockmore package), but there is no ...
6
votes
0answers
84 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
0answers
898 views

Have tmux wait until I SSH in, to complete rest of Tmuxinator script

After recently discovering tmux and Tmuxinator, I've been trying to set up a development environment to use. Per protocol, we aren't allowed to store passwords/passphrases in scripts. So what I'm ...
5
votes
0answers
37 views

How to specify memory region for ramdrive

We are setting up a Linux based benchmarking cluster. Each node is going to be a headless, diskless machine, booted via tftp, the OS copied to a local ramdrive, and the same ramdrive is used as local ...
5
votes
0answers
50 views

How to migrate all the memory pages of a process from one NUMA node to another NUMA node?

In Linux, I want to migrate the memory pages of a KVM virtual machine from one NUMA node to another NUMA node on runtime. But I cannot find any interfaces to do that in the KVM hypervisor or using the ...
5
votes
0answers
55 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--) ...
5
votes
0answers
55 views

LXC: Any security difference between root and end-user owned unprivileged containers?

I intend to use LXC containers to isolate most of the network facing services. As per my understanding, I have mainly two ways to do this: Create unprivileged containers owned by root. In this case,...
5
votes
0answers
151 views

How do I vmtouch a directory (not the files it contains)?

The vmtouch(8) tool allows locking a file or files in memory. It has recursive mode, but the directories are used just for discovering files and are not locked themselves. How do I lock a directory ...
5
votes
0answers
119 views

How are the reserved GDT blocks used after online resizing in ext3 file system

I am working on Ext3 and after looking at FS layout - ext3 reserves ~1024 blocks as Reserved Group Descriptor Table (reserved GDT blocks are between Group Descriptor blocks and Bitmap blocks). These ...
5
votes
0answers
477 views

Scrolling with a WACOM tablet pen

I've got a wacom pen with a button. How can I trigger scrolling when moving the pen with the button pressed? According to xev, below, the triggering events are MotionNotify with state 0x200. If this ...
5
votes
0answers
763 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) ...
5
votes
0answers
431 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
418 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 ...
5
votes
0answers
239 views

fsarchiver error

I'm running the following fsarchiver command: $ fsarchiver restfs /tmp/backup/c0d0p2.fsa id=0,dest=/dev/cciss/c0d0p2 I get the following error: [errno=22, Invalid argument]: oper_restore.c#213,...
4
votes
0answers
32 views

Change volume % that changes every time I decrease it from keyboard

So basically from what I found out from amixer, every time I press fn and the arrows of the keyboard to change the volume, the % of volume changing is 6%. I would like to make that 1%. How can this be ...
4
votes
0answers
36 views

Git with multiple users on other systems using setfacl?

I'm setting up a git environment where multiple developers will work with per project. We have 1 server running git, and 2 seperate servers, 1 live and 1 dev. on dev I created a group and added the ...
4
votes
0answers
25 views

tcsh shell prompt to show unfinished jobs count

How do I make my tcsh shell prompt to show unfinished background jobs? I understand %j will tell me unfinished job number count but prompt goes stale if I keep it idle. Ideally, I would like prompt to ...
4
votes
0answers
62 views

Check if a remote machine is in a cluster

How can I verify if a remote machine is a cluster machine? I just created the following ssh command to verify if the remote machine is a VRTS cluster or a Linux availability Red Hat cluster ...
4
votes
0answers
115 views

disable a usb port in linux

I've searched a lot for an answer to this, but the closest I can get to finding a solution is this, but it doesn't work for me. Here's my system: # uname -a Linux vin 4.4.0-1-amd64 #1 SMP Debian 4....
4
votes
0answers
32 views

How to forbid the menu item selection by right click?

Clicking the right button prompts a context menu, then we can choose an item from the menu by a left or right click. However, it's really boring that we can use right click to select the item. ...
4
votes
0answers
75 views

Linux + why dropping issue displayed from ifconfig but not from ethtool?

we have Linux VM red hat 7.2 version with two LAN interfaces the Linux machines are ruining on ESXi - 5.5.0 and we have very strange issue , the conflict is between the ifconfig command to ethtool ...
4
votes
0answers
96 views

Simulate a network cable unplugged without login all routes

I want to simulate unplugging a cable from a Linux instance. My initial response was ip link set eth0 down. However, this command has impact on higher-level networking functions, e.g. routes (...
4
votes
0answers
193 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 ...
4
votes
0answers
42 views

Why does /proc/*/status not account for all swap used on a system?

I have a system that has been swapping recently and am unable to account for all swap that is shown as in use by tools like free or top. Specifically, I can account for 19GB of 28GB swap used (...
4
votes
0answers
168 views

Mounting a SafeDisc-protected ISO on Linux

I have a copy of a very old and obscure software CD (circa 2004). The disc uses SafeDisc copy protection and needs to be in the CD tray for the program to run. I have been using the original CD under ...
4
votes
0answers
136 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 ...
4
votes
0answers
69 views

Block device naming, how to enable by-name and by-uuid?

While building and using linux kernel for custom boards, when Android is used, usually the MMC partitions appear in /dev/block/mmcblkXpY. And there are also symbolic links created in /dev/block/**/<...
4
votes
0answers
155 views

pppd issue over serial cable

I'm trying to set up a ppp connection between 2 computers via serial cable, to enable TCP/IP over serial. Computer1 -> USB-Serial Converter -> Serial Cable -> Serial port of Computer 2 On computer ...
4
votes
0answers
77 views

FreeBSD shared swap partition with Linux

What must I do, to run these commands before Arch Linux calls swapon -a? mkswap /dev/sdaX swapon /dev/sdaX Just in case it matters, /dev/sdaX was created in FreeBSD 10.1 environment, as soon as ...
4
votes
0answers
268 views

Restore Btrfs snapshot from subdirectory to parent

I have a Btrfs partition which has a single subvolume at the top level (/root). It has subvol=root option in /etc/fstab. Every week, I take a readonly snapshot into /root/snapshots/... using: btrfs ...
4
votes
0answers
29 views

Radiusd(freeradius): User only for a special client

Is it possible to restrict a user from the "users" file to a special client? I try to use one radiusd server for two wifi access points but I will use one user credentials only for one access point ...
4
votes
0answers
194 views

Best practice to customize date/time format system-wide?

I'd like to customize exclusively the date and time format for my system, while sticking to the rest of the locale as is. I know that environment variable LC_TIME will make it possible to customize ...
4
votes
0answers
281 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 ...
4
votes
0answers
503 views

dhcp ipv6 dynamic prefix delegation

I'm trying to setup Linux-based home gateway with IPv6 support. IPv4 configuration is finished and I'm using IPv4 NAT, ISC DHCP for addresses allocation, PowerDNS for local DNS setup, PDNS recursor to ...
4
votes
0answers
466 views

Unmet dependency after linux mint distribution update

I have recently updated to Linux mint rebecca. I am getting unmet dependencies for apt-get when I am trying to apt-get install a package named monodevelop-nunit monodoc-nunit-manual then this happens....
4
votes
0answers
524 views

Multiple wget calls in a single session?

I have the following code to retrieve a page from a website that needs authentication (it uses Sungard Higher Education authentication): wget --delete-after --save-cookies cookies.txt --keep-session-...
4
votes
0answers
254 views

Does Samba 4 actually respect Unix file acls?

After researching the subject on the internet I drew a conclusion that Samba should take into account Unix file acls. During my tests I found the opposite. Only Unix file mode bits are respected, and ...
4
votes
0answers
104 views

Replace webcam transmission with an image from the hard drive

I'm working with an Android app installed in my Arch Linux using the emulator Genymotion. This app is not mine and I have not access to the source code, I'm just working with it. In some part of the ...
4
votes
0answers
126 views

Discover what is cached by dm-cache

I am using dm-cache successfully for quite a while now. Now I would like to know which files are being currently in the cache. I understand that dm-cache works with blocks, not files, but since there ...
4
votes
0answers
97 views

Can't connect to some WiFis, Linux on Macbook Pro

I just recently installed Fedora 20 on my Macbook, with MATE desktop. Everything is fine at home (WiFi WPA2, connects without any issues whatsoever). Today is my first day back at Uni with the new ...
4
votes
0answers
1k 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 ...
4
votes
0answers
713 views

Can inotify be used to watch for a specific file to be created without monitoring the entire directory?

I want to be notified when a specific filename is created. I'm looking at inotify. The IN_CREATE flag is available for monitoring a directory for any changes within it, but I'd prefer not to monitor ...
4
votes
0answers
447 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 ...
4
votes
0answers
894 views

What does the 'barrier' mount flag mean in Linux?

The manual for the 'barrier' mount option is: barrier=0 / barrier=1 This disables / enables the use of write barriers in the jbd code.barrier=0 disables, barrier=1 enables (default). ...
4
votes
0answers
654 views

Where is the input method configuration file?

My ibus input method was broken after an update. So I switched to fcitx. Actually, there are a handful IMs installed in my Fedora19 system, e.g. fcitx, ibus, yong, etc. However, I don't know how to ...
4
votes
0answers
197 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 ...
4
votes
0answers
725 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. ...