Skip to content

Tag: ubuntu

First file path value not added into array on linux ubuntu

Running a python script on linux The for loop will run twice and 2 pngs will be added into the array. However, only the 2nd one was added into the array. Not too sure why the first one is missing from the array. When i try to print the entire path, the entire path is showing. Example of the file

Why won’t my compiled c++ binary execute?

So I have just compiled my code and when I try to execute the binary I am getting When I do ldd a.out I see everything is there that I need Also doing an ls -la shows the file as such Does anyone have any reason why this isn’t working? I am using Ubuntu 18.04.2 LTS. Answer When I do

Ubuntu compiling kernel module first time

I’m trying to compile a simple kernel module for the first time: I’ve used obj-m += hello-1.o (that’s the name of the module) but i’m getting an error: obj−m: command not found Why is this happening? I tried looking online for a solution, but nothing I found helped.. EDIT: After modify…