Skip to content

QtBlueTooth not functional on Linux

I’m developing an embedded application with bluetooth LE function enabled using Qt 5.7. The device I’m developing are meant to act as peripheral role, it can broadcast advertising packets and let smartphones to connect to. The target board are running with Ubuntu Linux 14.04, with bluez version 5.…

LINUX GNU Create New user Postgres DB in Makefile

I’m new with Makefile. I need to automate create user for postgres terminal. I tried this example and it did not work for me: Neither @create user myusername; nor @/q works. When I ran make createuser and exit manually with q from postgres terminal, I receive this error: Answer When debugging makefiles,…

Linux shell script – String trimming for dash

I am attempting to get the mac address from my Raspberry Pi take the last 6 characters of the mac to use as the hostname alongside a fixed string. here is what I’v managed to get working from other sources so far, but I am now totally stuck trying to trim the string down. the shell being used by the

Ubuntu dockerfile – mailutils install

I am installing mailutils via a dockerfile on an ubuntu image. I do this via: RUN apt-get install -y mailutils However, on this line I get the following: When I do exactly the same thing with a Debian image I do not get this option. I use the -y prefix to handle all the yes/no installation questions when usin…

Getting lttng backtraces without liblttng-ust-cyg-profile

Is it possible to get backtraces from lttng without LD_PRELOADing liblttng-ust-cyg-profile and compiling with -finstrument-functions? I can’t see from the lttng code what it’s doing differently when pre-loading that library to allow a trace viewer (tracecompass) to show the backtraces!? Here&#8217…

Unable to start a Python app using Supervisord

I have a small app that I want to start using supervisord. I’ve tried the following Installed supervisord and controlled a small script Read Introduction, Running Supervisord and Configuration File sections from the documentation Setting up groups in supervisord My initial shell script could start and s…

Varnish process not closed and taking huge memory

We are using Varnish cache 4.1 in centos server, When we started Varnish server lots of varnish process starting and its not closing, due to this issue we are facing memory leak issue, pls let us know how we can resolve it My Configuration is: /etc/sysconfig/varnish 34514 89208 83360 5 0.0 4.3 0:00.00 /usr/sb…

Shell script to automate the installation of cpan modules

I am writing a shell script to automate the installation of cpan (Comprehensive Perl Archive Network) modules. The first command is being executed and it enters into the cpan shell, but the later commands are not detected. I think the later commands are not being executed as it is a different shell. Any leads…