I have a touch screen with events at /dev/input/event12 and /dev/input/event13. /dev/input/event12 is the main touch input, and in essence, I’d like to send instructions to the event directly to control behavior (ie, click location etc). Tools like xdotool do not want to work because this device is bein…
Tag: linux
Linux kernel does not see all components on my at91sam9g20 board
I am working with a Stamp9g20 embedded chip. It is based on the Atmel at91sam9g20 platform. For a client I need to upgrade the kernel to a newer version. After a bit of research, I landed on the Linux4SAM pages and their additional yocto layer, complete with a 4.14 kernel! However, when I compile that kernel,…
why crontab run my shell script successfully but failed to start my binary file program?
i made a shell script like the following: then I use crontab to start it at a fixed time. The result is: crontab run this script(a.log exsited and i can see the log from /var/log/cron , also it shows crontab run it) but mybin is not running (mybin is a while(true) loop program) I can run the script manually f…
Automatic variable not expanding properly in Makefile
I am using the following code: However, when I run the code, I receive the following error, implying that $< is not evaluating to anything: When I use the following code… …the Makefile evaluates to the following command… …which is precisely what I would like. However, I do not want …
How to make command “Hadoop” work in linux 18.04?
I installed Hadoop and now it works with command /usr/local/hadoop/bin/hadoop. Where and how should I add this path to make command hadoop work without a full path to file? I already tried .bashrc and /etc/environment, but it didn’t help. Answer You need to add it to your PATH environment variable. PATH…
Configuring permissions to folder in ubuntu in order to prevent user’s from removing files of others
I have a folder owned by a group named “wheel”. The ‘ls’ command details for that folder is: (tps = a user, owner of the file, wheel = the group, tsreports = name of the folder) I need to configure the folder permissions in such way that files written into it are still owned by the whe…
What does this strange construction “{} ;” means?
Why do we use this strange construction {} ; in linux terminal for exec command? For example, Answer Looking for info I found this post in AskUbuntu which I think is family from StackOverflow where an User ask the same as you. Link Hope It is useful.
loop to test all NFS mount point
this code work very well If I try to put it into a loop for : Aim is to test all mounts points, this code test and read only the first entries from nfs_array. If I swapped testnfs1 with testnfs2 this code will test testnfs2 mount point and forget testnfs1 🙁 Answer In your loop it should be: Currently it’…
ObjectStream’s magic number in the header is changed while putting file on a linux server
Hope you are doing well. The strange thing happened to me since yesterday. I have the following code for saving the JSON. and the following code for reading it. I’m writing the JSON via saveCacheJson and then putting the file to my Server (Linux) and then my ‘front end’ part downloads it and…
Is there a way to sort the groups in an ansible host file without sorting the hosts within the groups?
In an ansible host(or inventory) file, you can group host using brackets. I want to sort these groups using sort function in linux but it will sort the individual hosts, and I want the right host to still be under the correct group. For example, I’m looking for a way to sort by group while keeping the h…