Linux - Will be the death of me
Posted: Mon Jul 02, 2018 11:40 am
Not having the greatest start to using linux recently.. although Im running it through a VM which I think is probably half the issue. My poor work bench is beginning the grow a hole as I slowly etch my frustrations into it with a screwdriver
Theres two things Iv needed to do:
1) Mount a SD card which is linux formatted to edit and change files
2) Compile C code to linux format to run off of linux server
Here I am thinking, going to have a relaxing weekend, playing with something new. But nooooooooo, everything I play with cant just go smoothly like show in tutorials!
First problem, SDCard mounting. The inbuilt card reader on my laptop doesnt show as a device in VMware.. meaning my Ubuntu install doesnt see a SDcard, I can get it to recognise it by adding another hdd device in vmware but I dont think its quite the same or worked correctly. Iv gone and bought a SDcard reader but still having same problems with an error message of "wrong fs type, bad option, bad super block, missing codepage or helper program , or other error".
Would rather not have to install linux natively onto a hdd to solve this.. unless anyone has had previous experience/solutions?
Second issue.. compiling C code. Fairly straight forward in what was require:
1) Install GCC libraries
2) Compile all C files to Objective files
3) use 'sudo make' (Make file is present) to put everything together and compile program
It compiles successfully, and I can use the application happily in the Ubuntu OS installed. But as soon as I put it onto the website (Running linux... apache 2.2.. I think??), Im unable to communicate with it. I verified my hoster (godaddy) does allow running linux applications in php using simple commands like exec_shell by making a few linux programs to execute and check for a response (like hello world)... but no go with the bigger application
This has lead me to wonder if the problem is that Iv compiled the application in a different linux OS, and some of the libraries/functions used are not present on the hosters system? Or, compiled app is using newer libraries not availablein the old linux OS run on the server?
The C code provided is designed to be compiled on any system so that it can be integrated onto the desired platform (linux, unix, windows ect), which then communicates with your application software via a standard API, looking at the coding, its using standard libraries.. so I dont see why there would be any problems... but.. not my case!
Suggestions.. comments.. thoughts?

Theres two things Iv needed to do:
1) Mount a SD card which is linux formatted to edit and change files
2) Compile C code to linux format to run off of linux server
Here I am thinking, going to have a relaxing weekend, playing with something new. But nooooooooo, everything I play with cant just go smoothly like show in tutorials!

First problem, SDCard mounting. The inbuilt card reader on my laptop doesnt show as a device in VMware.. meaning my Ubuntu install doesnt see a SDcard, I can get it to recognise it by adding another hdd device in vmware but I dont think its quite the same or worked correctly. Iv gone and bought a SDcard reader but still having same problems with an error message of "wrong fs type, bad option, bad super block, missing codepage or helper program , or other error".
Would rather not have to install linux natively onto a hdd to solve this.. unless anyone has had previous experience/solutions?
Second issue.. compiling C code. Fairly straight forward in what was require:
1) Install GCC libraries
2) Compile all C files to Objective files
3) use 'sudo make' (Make file is present) to put everything together and compile program
It compiles successfully, and I can use the application happily in the Ubuntu OS installed. But as soon as I put it onto the website (Running linux... apache 2.2.. I think??), Im unable to communicate with it. I verified my hoster (godaddy) does allow running linux applications in php using simple commands like exec_shell by making a few linux programs to execute and check for a response (like hello world)... but no go with the bigger application

This has lead me to wonder if the problem is that Iv compiled the application in a different linux OS, and some of the libraries/functions used are not present on the hosters system? Or, compiled app is using newer libraries not availablein the old linux OS run on the server?
The C code provided is designed to be compiled on any system so that it can be integrated onto the desired platform (linux, unix, windows ect), which then communicates with your application software via a standard API, looking at the coding, its using standard libraries.. so I dont see why there would be any problems... but.. not my case!
Suggestions.. comments.. thoughts?