Skip to content

Tag: linux

How to install libvips on Alpine 3.8?

I try to install vips-dev package to alpine linux 3.8. But get following error: How to solve it? Answer This is a known packaging issue of vips-dev on edge/testing: https://bugs.alpinelinux.org/issues/9561 As a workaround, make sure to add both edge/main and edge/testing repositories to your apk command: Upda…

L2CAP IOS + Linux (Bluez)

I’m trying to make a simple L2CAP Socket communication between IOS and a Linux PC. I’ve been able to: Create an L2CAP connection between two Linux machines (using example code from https://github.com/atwilc3000/sample/tree/master/Bluetooth) Create an L2CAP connection between two Iphones (using exa…

How do I pass –homedir to git when signing using GPG?

I have a custom location where I have my GPG keys, which is different from the default ~/.gnupg directory. I need to sign a git commit using GPG, but I can’t find any option to specify the custom location to Git: it always searches in the default one. Is there an option for this? I tried modifying: prog…

`sudo` with command substitution

I’m working with a remote machine that requires sudo for most docker commands. I often have to perform multiple repetitive commands to stop docker containers, etc: sudo docker stop <container_name>. Normally, I’d use docker stop $(docker ps -q) to stop all the results of docker ps -q, but si…

How do I get just the filename from lsof?

I want to use lsof to create a list of open files in a folder. I’m using macOS, but understand this is common to *nix. In man lsof, it seems the the -Fn option is closest to what I want, but I can’t get further than that. I’m piping to cut to get to just the filename. So this is