how to make img file from buildroot qemu_aarch64_virt_defconfig? - qemu

I have successfully build a buildroot image, but it seperated to linux kernel image and rootfs file:
2 files
I'm really new to this embedded system and didn't know what to do.

Related

Edit an HTML file in Docker Container

I am starting out with programming and am currently working with Docker Containers.
One of the containers is a webserver that takes an input from another container and displays an output on a web page on localhost.
I was wondering if it would be possible to change some comments on the webpage that is part of the container and if so how to go about it?
PS: Pretty new to all this, so please forgive me if I'm asking something really basic
Depends upon the strategy, if you need to change it dynamically when you change the code. You should mount the directory on the container via docker command or docker-compose file. If it is static copy the files via docker file.
It is strange that you are a beginner to programming and are working with docker containers. But now you are here.
Find out if the files you want to edit are part of a container ('baked in') or if they get mounted at container runtime.
If they are baked in, you would go to the bakery (docker build ...) and modify files so that you get modified containers.
If they are mounted at runtime (docker run -v ...) find out where they get mounted from and modify the files over there.
Baked in files cannot be changed just like that, so they reflect an immutable installation. The other files can be changed at runtime. There is no right or wrong, choose the pattern depending on what you want to achieve. That is where the strategy comes into play.

how to create Docker image from ROS packges?

I want to create a Docker Image, which includes my ROS packages that I created in catkin_workspace.
I have already tried: create a container form official ros-kinetic-xenial. Create a catkin_workspace and send my packages into it. And create a image with docker commit.
Is there an another way to do that ? (to hold just Binaries and to make image smaller)
thanks
You might want to look into using a Dockerfile to create the image. You can specify a base image and copy files from the build machine into the image. The Dockerfile snippet below configures an image to build off the ros-kinetic base image, then copies a local directory to the image.
FROM ros:kinetic
WORKDIR /docker/path/to/catkin_workspace
ADD /local/path/to/catkin_workspace /docker/path/to/catkin_workspace

Compiling a program on a server

I'm new to servers and programming in general, and I have a question regarding remote acces to a server, and how much I can actually do on it.
The thin is I have a working program on a linux server, which I acces with my windows machine using mobaxterm. I can acces the server, I see folders and a cmd line, where I can compile a makefile. Everything runs well, however when I run the makefile it just compiles, and doesn't do anything. No error messages, but also no opening of a program. I don't understand anything. Is it a delimitation of the servers structure, that it can only store files on it?
When you compile under linux using a make, it produces an executable but does not run it. Make builds executable objects, but it does not run them. You should include your makefile in the question (reduced to a minimum if it is large). Inside it, you will see that it generates a executable file with a specific name. To run it, you need to invoke this from the command line.
To find out what it is building, a quick way is to type "make clean" (press enter of course) to clean up any built objects. Then type the "ls" command to see what is in your directory.
Next, build the program with the "make" command, then type "ls" to see what has been added. Ignore any new files that end in .o or .a or .so and look for any new files. These are the files built by make and at least one of them is the program you built.
Assuming you found a new file called "myprogram". To run it, type:
./myprogram

tcl expect creating starpack

I'm using starkit/starpack with tcl8.5 and expect 5.44.1.15 under linux, after creating the starkit and putting the directory for expect under lib directory of the created vfs directory and wrap it back to starkit file, I could create the starpack file, after checking that everything's working fine on my linux system, I use this standalone file on another linux system but there, it doesn't work and I have this error :
couldn't load file "/tmp/tclJ4M144": /lib/libc.so.6: version `GLIBC_2.7' not found (required by /tmp/tclJ4M144)
so trying to solve this, I've removed expect 5.44.1.15 directory from vfs directory and replaced it with expect 5.43 taken from the target linux system (where my standalone starpack file didn't work), I've also adapted its pkgIndex file before recreating the starkit and then the starpack, but this time I have this error :
segmentation fault
Anyone can help me on this ? What do I need to do to make it work on the target linux system ?
Thank you.

gwt tomcat, where are my files saved ?

First i want to appologize for my english skills because I'm a french dev ^^
I got a very simple problem with a gwt project. I want to get a picture from a database and save it on the server. When i run the project on eclipse, java save the picture on my war directory and that's fine.
Bue when i run the project on my tomcat server, java save me the picture on the directory where tomcat is...
that's pretty weird !
Do you have any idea ?
Thanks for your time !
Each running application on a computer has a "current working directory" assigned to it. If you're not specifying the path where the file should be saved then it will be saved to the CWD by default. This CWD will vary depending on which container you use to run your application.
It's possible to change the CWD but this is not a good idea in case other parts of the container depend on it. You might like to add a context-param to your web.xml so that you can specify a path where files will be saved.