We are developing a software using QT creator. The software is meant to run on windows and on an ARM mini-computer running Debian. To test the software on the mini-computer, we logged in on the mini computer using ssh and an exported display. Some programs like Inkscape run fine, but we can’t get to run…
Serial communication on Linux with flow control enabled – bad behaviour
I wrote common functions in order to manage serial ports, based on the following structure: I am calling these functions (see below) in another file in order to test an RS232 serial port. The flow control needs to be enabled. In order to validate the implementation, the pinouts Tx and Rx have been connected t…
Phone Book Access (PBAP) client for Linux (Raspberry Pi)
i want to access the contacts of my smartphone over bluetooth. This should be made as first step of a project of my with a raspberry pi. I read something about the phone bok access protocol (PBAP). But all i could was not very helpful for me. The most examples i found where to old. I already managed to pair
Error in running python locust script from two different Linux Distribution
I write a locust script to test a web site. The script is very simple, just a request repeated several time. In a virtual machine with Linux Mint and Python 2.7.6, the script works in the right way and as I want. For example, I run the script without the Web Interface as write below: and I obtain the right
Issue with installing Python 2.7.8 alongside 2.7.5 on RHEL 7.2
I have an Amazon EC2 instance with Red Hat Linux 7.2 installed. It comes with Python 2.7.5 installed system wide. I’ve compiled an alternative installation of Python 2.7.8 (which is what I use in another environment that I’m trying to replicate). I will use this to create a virtualenv to launch my…
Java executable jar cannot be executed as ./program.jar on OS X
Using Linux, I run some programs I’ve written in Java by compressing them in a jar with a manifest file and then placing them in a personal directory that has been added to my $PATH as follows: program.jar file2 file2. It works well in any directory I point my console to, I can even do program.jar file1…
Is it a good idea to tie Java process to jenkins so that It can be monitored?
I had an independent java process running in linux. I wanted it to be monitored constantly. So I installed jenkins and started the process from jenkins. Jenkins keep showing the process as ongoing through which I know that the process is running. Though it works as per my requirement, I wanted to know if this…
Building Boost unit test framework on Debian 8.3 ARM
I’m trying to port a larger project to an embedded Linux system (Debian 8.3 ARM). The project requires Boost libraries newer than the system’s Synaptic (1.55 vs. 1.58), so I’ll need to build Boost from source. Usually I pick the most recent version, which was 1.60 when I downloaded things tw…
Can I use hexdump in a shell script?
Can I use hexdump in a shell script? When I use it I keep getting an error . syntax error near unexpected token ‘hexdump’ I am not able to figure out why the hexdump code is giving me an error . Please help . Answer You are missing the do in your for loop:
Linux batch rename files
I am going to rename image files and pdf files in a folder in Linux. It should be recursively as some files are in sub-sub folder. Current file name pattern is like: My goal pattern is In a short, I want to remove everything before -NumberString-, and keep everything afterwards (includes the NumberString). Ca…