21
votes
0answers
698 views

How to combine zsh autocomplete for wrapper function arguments and existing command

I work mostly in gvim and many terminals. Originally, I preferred to open all my files in a single vim instance. To that end I used an alias to open files from my terminals in the current 'vim ...
14
votes
0answers
777 views

Remapping keys that generate multiple scan codes

I have a ThinkPad W540. On its keyboard there are four multimedia keys above the numpad. Two of those keys generate keycodes (and, apparently, scancodes) that correspond to combination of keys, Win_L ...
12
votes
0answers
1k views

git completion with zsh: filenames with spaces aren't being escaped properly

Git completion: I'm having difficulty with git's filename autocompletions on my system. I'm using zsh (5.0.5) with git (1.9.3) on OS X (10.9.3). Both zsh and git have been installed via homebrew. ...
11
votes
0answers
1k views

Monitor connected via displayport to DVI adapter won't sleep properly

I have a monitor connected to my machine that displays odd behavior when entering power saving sleep mode. When entering sleep, the monitor will alternate between blanking and displaying a default ...
9
votes
0answers
524 views

Simplest possible secure sandboxing (limited resources needed)

I'm working on a project that implements distributed simulations: arbitrary code is executed on multiple nodes and the results are later collected and aggregated. Each node is an instance of an ...
9
votes
0answers
77 views

agrep with directionally biased penalties

I am using tre-agrep (manpage), an implementation of agrep (manpage), to perform approximate pattern matching. This utility searches for matches based on Levenshtein distance, and the user can ...
9
votes
0answers
608 views

How can I get Mumble's overlay working?

Mumble and Team Fortress 2 (TF2) both work fine for me individually, but I cannot get mumble-overlay working, either independently or within TF2. I've tried putting the following launch options into ...
8
votes
0answers
33 views

Completion for the first argument of cd OLD NEW

In zsh, the cd command has a two-argument form: cd OLD NEW changes to ${PWD/OLD/NEW}. With the new-style completion system, zsh is capable of completing NEW: the second argument is completed based on ...
7
votes
0answers
586 views

Use desktop as bluetooth headset

My desktop's speaker is much better than my phones, so I want to use my desktop speakers in place of my cellphone's. It is inconvenient for me to use USB or the audio jack, so I am left with ...
7
votes
0answers
3k views

git-upload-pack hangs indefinitely

I have the following call structure: Jenkins runs fab -Huser@host set_repository_commit_hash:123abc. set_repository_commit_hash runs git fetch with pty = False. The child process ssh git@github.com ...
6
votes
0answers
140 views

State of ZFS xattr support in FreeBSD

I'm trying to work out whether or not, or rather to what extend, xattrs are supported in FreeBSD using ZFS. I've read some conflicting information. zfs get xattr lists it as on (default) for /, /usr ...
6
votes
0answers
61 views

md raid5: translate md internal sector numbers to offsets

TL;DR summary: Translate an md sector number into offsets(s) within the /dev/mdX device, and how to investigate it with xfs_db. The sector number is from sh->sector in ...
6
votes
0answers
228 views

What is using 4GB of memory? (Not cache, not a process, not slab, not shm)

We have some EC2 servers that experience a memory leak over days or weeks. Eventually there gets to be many GB of memory that is used (according to tools like free and htop) and, if we don't restart ...
6
votes
0answers
181 views

Why are slab objects not reclaimed automatically

Everyday after a full system backup, various programs are failing with read errors until I run echo 2 > /proc/sys/vm/drop_caches to free reclaimable slab objects. For example, here's the output of ...
6
votes
0answers
118 views

Why does OS X `install` errors on redirected input when the same version of `install` on linux works fine?

I would like to use install command in order to create a new executable file with pre-populated content (e.g. with single pwd command in it). So I've extended this example which creates a new empty ...
6
votes
0answers
67 views

Why kernel modesetting, instead of privilege separation?

Kernel modesetting was kind of painful to get on Linux at first, but now it's pretty awesome to have. I mean, X not need to run as root? High-res hardware accelerated consoles? Cool stuff. Problem ...
6
votes
0answers
3k views

xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)

I get this error in Xorg.0.log xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted) Googling quickly reveals that this error is caused by starting Xorg as non root user. ...
6
votes
0answers
367 views

Emacs slow loading time with AUCTeX on TeX files

I installed the auctex and emacs packages on two Xubuntu 14.04 computers, both of which have been working fine. Emacs itself works fine on both, but now with the auctex package installed, when I load ...
6
votes
0answers
242 views

Auto-switching PulseAudio profiles based on input(s) channel count

I'm running audio over HDMI to my receiver, which has a full 7.1 setup connected to it. However, most of the stuff that I listen to has far fewer channels—some is mono, most is stereo, a bit is 5.1. ...
5
votes
0answers
64 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 ...
5
votes
0answers
69 views

Perl one liner to find words longer than 63 characters

I have a number of XML files containing sanskrit texts to be converted to tex. Latex has a maximum of 63 characters per word for its hyphenation to work, everything longer than that will not be ...
5
votes
0answers
74 views

CUPS prints n^2 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^2 as many copies as I request. That is, I try to ...
5
votes
0answers
110 views

FreeBSD throttle cpu clock on high temperature

I'm using a laptop with bad cooling system, so my CPU sometimes hits very high temperature, and linux kernel is able to throttle cpu clock to cool it as I can see in dmesg: [22612.245243] CPU3: Core ...
5
votes
0answers
33 views

Why do my xmodmap binds involving AltGr only work one some keys?

I want to remap my AltGR+Right_Windows but I can't figure out how. No matter what I try, pressing the right windows key emits the name keysym when right alt is pressed or not. These are the contents ...
5
votes
0answers
80 views

enable external display on FreeBSD console

tl;dr, I'd like to use the external display with FreeBSD 10.0 on an HP Pavilion g7-2270us. Don't care if it's mirrored or I have to select one or the other. Here's the symptoms: When a display is ...
5
votes
0answers
132 views

How to delete a directory with multiple btrfs subvolumes?

My root file system is on a btrfs partition. My /chroot directory has a number of btrfs subvolumes in it which prevent me from deleting it with rm -rf /chroot. In an attempt to delete all the ...
5
votes
0answers
163 views

Prevent monitors from going to sleep in lock screen on GNOME

I have two monitors running on my Fedora 22 machine, however due to this bug sometimes the second monitor will not wake up after the computer goes to sleep, requiring me to unplug the DisplayPort ...
5
votes
0answers
208 views

allow regular users to use network namespaces

I have an architecture using network namespaces (netns). I would like to allow regular users to do some operations in these netns. I could write a script netns-exec.sh, inspired by this post, ...
5
votes
0answers
116 views

Where in GRUB2 source code is the handover/jump to kernel code?

I'm looking for the line of code where GRUB2 finally jumps to kernel code and thus hands over execution on x86 systems? I guess it's in an assembler file since this is very low architecture stuff. I ...
5
votes
0answers
128 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
9k views

AH00534: httpd: Configuration error: No MPM loaded

I have a CentOS Linux release 7.1.1503 (Core) system and I have installed httpd and the corresponding configuration file is : # # This is the main rConfig Apache server configuration file. It ...
5
votes
0answers
80 views

Why does gnome-keyring-daemon need the public key to cache the passphrase?

I have two Arch Linux machines with virtually identical setup, both running /usr/bin/gnome-keyring-daemon --daemonize --login. They both have the same SSH secret key, but only one of them has the ...
5
votes
0answers
207 views

What are the differences between xdotool and xautomation?

xdotool and xautomation are two command line X11 automation tools. I've used the former for a while and only recently found out about the existence of the latter, and I'm curious to know what someone ...
5
votes
0answers
733 views

Why does Dropbox say “Killed” on Arch Linux?

I'm trying to install Dropbox on Arch Linux. I've installed both dropbox and dropbox-cli, at least to the point of having the binaries. When I run dropbox on its own, it just responds Killed in red ...
5
votes
0answers
104 views

How to make zsh correct remember my decision

I have enabled correction (I wouldn't call it autocorrection specifically because of this issue) in zsh by enabling setopt correct in my .zshrc. Now, when I type dtae in a terminal, I get: dtae ...
5
votes
0answers
875 views

How to use terminal to access iCloud Drive when Finder is not running

I would like to access iCloud drive from Terminal in order to create an emergency backup. Unfortunately, my installation of Mac OS Yosemite is not operational, so I am using recovery mode to create my ...
5
votes
0answers
545 views

Change Zsh theme in Android Studio

I've recently jumped ship to zsh and I'm using the Oh my Zsh! theme blinks. It looks very nice in the OSX Terminal, but it looks very bad in Android Studio's terminal. So my question is is there a ...
5
votes
0answers
604 views

receive signal before process is being killed by OOM killer / cgroups

In our cluster, we are restricting our processes resources, e.g. memory (memory.limit_in_bytes). I think, in the end, this is also handled via the OOM killer in the Linux kernel (looks like it by ...
5
votes
0answers
337 views

change icon sizes in Gtk+ 3 applications

Using Gtk+ 2, I could use the gtk-icon-sizes option like this: gtk-icon-sizes = panel-menu=32,32:panel=32,32:gtk-menu=32,32:gtk-large-toolbar=64,64:gtk-small-toolbar=48,48:gtk-button=32,32 ...
5
votes
0answers
208 views

Changing the order of workspaces in Gnome Shell

In Gnome Shell, is it possible to change the sequence of workspaces by using drag-and-drop? For instance, is it possible to make Workspace 2 the uppermost one by dragging it above Workspace 1 (which ...
5
votes
0answers
837 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
539 views

forgot to luksClose usb persistent partition, is this a problem?

Following the Kali Linux documentation for "Adding USB Persistence with LUKS Encryption", I created a persistent partition and encrypted the volume with: cryptsetup --verbose --verify-passphrase ...
5
votes
0answers
1k views

Dual monitors with 2 videos driver with xrandr 1.4

I'm trying to dual-screen with 2 differents video card drivers (i915 & nvidia) but as you can see xrandr is only listing nvidia provider. [x@epoch ~]$ xrandr --listproviders Providers: number : ...
5
votes
0answers
725 views

Netboot error: Invalid kernel argument

I'm trying to install Arch using the Netboot Live System following these steps: Install Syslinux on a SD card according to its wiki. Copy the iPXE kernel image to the SD card. Create an syslinux.cfg ...
5
votes
0answers
720 views

Why does pulseaudio handle the sound quality connection to a BT device?

I'm new to Linux and new to Bluetooth scripting too. What I have discovered so far is the following: Bluez is the default BT stack. BluezTools is a set of utilities you can use to more easily ...
5
votes
0answers
976 views

Autostart all LightDM seats and show one as default

I configured a media-center server running Debian with LightDM, Leapcast and Plex. What I want to accomplish is the following. There should be three LightDM seats, one default seat on which I can ...
5
votes
0answers
1k views

A real non-“better touch tools” solution for select-to-copy on Mac OS X

I recently moved to Mac. I am missing my X11 copy-paste style. I can't find a way to exactly emulate X11 behavior "select-to-copy", "middle-click-to-paste" globally on Mac OS X. I am aware that this ...
5
votes
0answers
2k views

Bad utf8 display with tmux

When I press the "é" key multiple times on my keyboard, here is what tmux print (notice the spaces) : arcanis@~ > é é é é é é é é é é é é é It also broke emacs when the file contains utf8 ...
5
votes
0answers
750 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
625 views

No access to symlink folder on NTFS partition

I am using an NTFS parition for storing data I like to access both from Ubuntu and Windows 7. On my Ubuntu HOME partition, I like to link the folder Assets in order to access it from an application ...

15 30 50 per page