Skip to content

Tag: linux

Couldn’t connect to Docker daemon

I am new in Docker and CICD I am using a vps with Ubuntu 18.04. The docker of the project runs locally and works fine. I don’t quite understand why the server is trying to find the docker on http, not on tcp. override.conf docker service status daemon.json gitlab-ci.yml Error Answer Set the DOCKER_HOST …

Building and using a newer GLIBC on CentOS 7

I use CentOS 7 and would like to use some Anaconda python package that requires GLIBC_2.18 while the host OS only provides 2.17. I tried compiling a newer version of glibc myself following these instructions. When I try to run any executable with this newer glibc I am getting an error: Is there a workaround f…

Read a keystroke from user

I would like to read a single key from the user: letters, numbers, and things like Esc or Del, and the arrow-keys. So far I have been using a 3rd party module called readchar. A few approaches to the task are discussed here: How to read a single character from the user?. They run along these lines: Unfortunat…

Shell Script – Print directories/files & file numbers

I’m trying to write a shell which can print the directories & files in it. I want to add number (for loop) to files in it, but having issues – can you experts look into it and help me out? Thanks Answer Solved – Updated while loop with following – was simple than anticipated 🙂

Stringizing / stringify name mangling

I load a path name with cmake and want to use as a string in my C++ program to load some data. For this the stringification operator # is really handy – I use the macro provided in this answer which is the same as here. Now when I have “linux” or “unix” in my path, this goes horr…