How to run BIOS from 386 motherboard in qemu? [closed] - qemu

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 14 days ago.
Improve this question
I'm trying to start a dd-wired hard drive with the following command:
qemu-system-i386 -drive format=raw,file=dos.img
And it works great:
However, if you try to load an external BIOS, none of the BIOS images in any way wants to start. The emulation system tells me the following message:
Guest has not initialized the display (yet)
And Tried various ways to start, so far the command is this:
qemu-system-i386 -machine pc -bios SER386AD3.BIN -vga cirrus
What am I doing wrong and what are the solutions?
I tried to run the old BIOS in the qemu emulation system.

You shouldn't expect to be able to run a real hardware BIOS image on QEMU. Generally speaking, BIOS binaries are tightly tied to the specific hardware that they are running on (eg which specific motherboard chipset is used on the motherboards they were built for). Even if the BIOS is intended to work with the i440fx or q35 chipsets that QEMU emulates, it may also try to exercise hardware features which QEMU doesn't emulate (because no higher-than-BIOS-level code needs to touch them), or touch motherboard-specific hardware. It's likely that the BIOS has crashed before it was able to get to the point of enabling the display.
The intended BIOS for QEMU is one which is aware of QEMU, such as SeaBIOS (which is the default).

Related

ROS/ROS 2 on non-ubuntu platforms [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 months ago.
Improve this question
I was thinking to learn ROS and I realized that officially ROS only supports ubuntu. I am habitual with another Linux distribution, i.e. Fedora.
So I was wanting to know, that if I install ROS on fedora(which is listed as experimental by the community). Will it work as smoothly and with all available resources/packages/options or not?
Also, the ROS 2 Foxy Fitzro is available on windows, is it fine to use that? or I might some lack of support?
I read somewhere that ROS on other platforms doesn't have all packages and similar problems
Some packages used in ROS are not currently available in the Fedora RPM repositories. Most of the other packages are available in RPM Fusion.Please see RPM Fusion Command Line Setup.
the ROS 2 Foxy Fitzro is available on windows, is it fine to use that?
Yes, ROS 2 Foxy Fitzro is available on windows, but the pre-built binary does not include all ROS 2 packages. All packages in the ROS base variant are included, and only a subset of packages in the ROS desktop variant are included.
This answer concerns only the Fedora section. It works on Fedora 33.
I am not a ROS expert so I can't answer this question:
Will it work as smoothly and with all available resources/packages/options or not?
But I prefer not to be too optimist. If you only want to test ROS it might be fine. But if you are looking for a production development, you should better use Ubuntu instead of losing time to tweak ROS for Fedora compatibility.
However, it is possible to run ROS on Fedora. I was able to run the demo_nodes_py in talker and listener mode. This is the ROS hello world.
Build the source
There is no package to install ROS in one simple command nor I was able to run the CentOS "fat archive". I got errors, I didn't invest more than 15 minutes to solve them. Information on the internet was poor.
The only solution I found so far is to build ROS from the source. The operation was not complex as it is fully documented: https://index.ros.org/doc/ros2/Installation/Foxy/Fedora-Development-Setup/
Note that it took around 2 hours to compile.
Be aware that the compilation might require lots of skills especially when it fails.
Virtualization
Those solutions should even work with other Linux distributions.
Use Docker
You can download this image: https://hub.docker.com/_/ros
If you have already installed Docker and you are familiar with it, it seems a fair solution. It works out of the box and the image webpage is fully documented.
Thanks to the docker volumes, it is possible to develop the code and read the logs from withing your Fedora environment and to run the ROS application within the debian container.
Also, you can connect the containers to your system localhost (on Fedora). It allows to send and receive messages. As an example, I was able to interact in those 2 contexts:
talker (Docker) <-> Listener (Fedora from source)
talker (Fedora from source) <-> Listener (Docker).
Use a Virtual Machine on Ubuntu
This sounds the safer way to use the full potential of ROS. But a VM will require more disk space, more computation and you should learn the Ubuntu style to work within the VM.
You can use it for simple level operations without any problems, but when it comes to more specific issues you are very likely to run into weird problems. The solutions to these problems can be very complex. So it would be much safer to download it to ubuntu somehow.

How can I deploy a local server easily? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm making an application for a research project with interesting requirements. The data we are using right now is private and cannot be online in any form. However, I have to make it so that it could be online since this is a proof of concept.
I am using a MySQL database, Node.js/Express back-end and React (and possibly D3.js) front-end. Right now all I have is a dev environment through Visual Studio Code where I manually run the server and the React app before viewing the app on localhost:3000.
Despite these restrictions I have people who are expected to use this system without much technical background. So I need a way to deploy my local app and database so that these users will be able to set it up and run it simply and easily, without using the internet to host anything (even intranet is not allowed). Any ideas?
Any assistance would be greatly appreciated!
The easiest way would be to create yourself a bash script that starts all required components, e.g.
#!/bin/bash
cd ~/workspaces/frontend/
npm run start
cd ~/workspaces/backend/
npm run start:database
npm run start
You could go as far as checking if the folders exist and if not clone the required repositories and run npm install or git pull as well.
So you only have to teach your coworkers to open a terminal and run one command ./start.sh
You could use docker and docker-compose.
You could also add Makefile.

Is it possible to run "mysqld" without installation in Linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have run mysqld.exe in Windows to run the server without installation. I am able to connect to it via a client and everything works fine.
Is it possible to do the same in Linux? Can we run mysqld without complete installation of the whole MySQL package. I tried several ways but failed.
Q: Is it possible to run “mysqld” without installation in Linux?
A: Short answer: no.
The mysqld executable depends on shared libraries, and on runtime configuration of several different files in several different locations.
Q: Is it possible to create an embedded mySQL configuration, in lieu of the standard install?
A: Depending on your requirements, this might be something you wish to investigate:
https://www.mysql.com/oem/
The Bitnami stack provides what you need.
https://bitnami.com/tag/mysql
Basically, they provide self-contained packages for the different services that are normally available through apt, yum or any other packages manager. I use it for example to install Redmnine (BUG tracking system) and the installation was straightforward.
The good thing is that the installation process doesn't affect your current system (packages, shared libraries etc) since all the dependencies: packages, shared libraries, etc are installed in a single directory. Thus, it's very easy to install, test and delete the whole thing easily if you would like to.
Depending on what you mean by "without complete installation of the whole MySQL package"... the answer is yes.
As a DBA, I don't trust package management to manipulate my MySQL installations, so I never install MySQL Server from package management.
I manage everything myself, and essentially everything is stored under /usr/local/mysql from the Linux Generic binary tarball. There is nothing really "installed" in the sense of mystery files added who-knows-where on the system. Upgrades involve extracting a new tarball and creating a new symlink for the datadir.
The only external dependency is easily resolved with $ sudo apt-get install libaio1.

Boot failure after updating to grub2 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am getting the grub prompt on my machine. I know that I can use the information at https://fedoraproject.org/wiki/GRUB_2 to reboot but I don´t know where the fedora linux partition is located on the harddrive. How can I find the information regarding /dev/sda etc in the grub prompt?
I tried the commands in the above URL concerning the grub prompt but I keep ending on a black screen.
You can use LiveCD distribution of your favourite distro and boot from it. Then use tools like fdisk or gparted to locate your Fedora Linux partition. After that you can chroot inside your Fedora partition and repair your grub using grub-mkconfig or manually.

installing mysql on cygwin [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to install mysql using cygwin. This guide seemed to be exactly what I wanted. I downloaded the bottom item on this page. Then I followed all the instructions however there is no configure file in the mysql directory. There is a cmake directory inside of which there is a configure.pl file. I'm not sure if I'm supposed to run make to compile this .pl file. Given that there are no make files I'm a little confused on how to proceed. Any insights would be awesome.
Why would you install MySQL under Cygwin when there is a perfectly fine Windows version available? Also the version you said you downloaded is for OS X, while Cygwin emulates Linux.
I advice you to use the Windows version because it will probably be far more stable, fast, etc, etc, due to the fact that you don't need to emulate nothing. Further if there is some reason you need to run it under Cygwin use the Linux binaries.
Cygwin lets you choose some binaries to be installed for you at install time, and maybe MySQL is amongst them, so if you rerun the Cygwin installer you might get lucky and avoid the trouble of compiling / configuring MySQL yourself.
Also; This question probably belongs on https://serverfault.com/ or https://superuser.com/ =)