PlayOnLinux Equivalent for windows - windows

Like the PlayOnLinux do we have a similar application in windows that allows us to run a Ubuntu application on Windows OS. Or is there any simulator to run the ubuntu terminal in Windows(for learning purpose).

you can't
Unfortunately there is no such tools like playonlinux(wine frontend) for simulating linux apps in windows, So you should use virtual machine craigwin

Related

Is there a workaround for a slow X11 server running from WSL?

I recently cloned a GitHub repository into my Windows 10 PC. As the code was mostly in C++ it had to be compiled and built to be able to generate a working GUI.
To do so I used WSL, which allowed me to compile, build and run (using CMake), but as WSL doesn't have it's own display I had to use an X11 program (VcXsrv) for visualization. This last one seems to be making the interface rather slow, because the FPS indicator never goes above 15 and I'm told that the native build works at 60 FPS.
I'd like to know if there is a simple workaround that I can try from WSL to make it faster, as my other option is to try and learn Visual Studio.
The code run in WSL Ubuntu 20.04 is:
git clone --recurse-submodules https://github.com/nmwsharp/vector-heat-demo.git
cd vector-heat-demo
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
export DISPLAY=localhost:0
./bin/vector_heat /path/to/your/mesh.obj
And on the Windows side, I'm using VcXsrv settings: multiple windows, display 0, start no client, disable native opengl, from this answer.
The reason why it’s slow is the architecture of wsl1. See below.
Comparison WSL1 and WSL2
In WSL1 linux kernel is kind of emulated, there is a software layer which maps linux syscalls to windows syscalls (this means you loose some time when accessing devices) which will lead to low FPS in your case.
In WSL2 microsoft created a hypervisor on which win10 and the microsoft linux kernel is running (your ubuntu, debian, ... runs on top of that), which means WSL2 is way faster because of skipping that translation layer (more information can be found here: differences WSL1 & WSL2
I've also created a guide how to use it with X11 see here (which works for me)
VSCode connect to WSL
it’s just for coding not for running your gui
In this scenario a headless VSCode (Server) is started in your WSL. The VSCode on your Windows will than connect to this instance (meaning you'll have the linux filesystem + gcc toolchain available.
VSCode Remote WSL Documentation from microsoft

Can one create an MIQ Dev Appliance in Linux or Windows environment?

This README file provides a link to instructions on how to create the ManageIQ Appliance dev setup for a MAC OSX environment, but it says that Linux instructions are TBD. See Screenshot:
Are we truly limited to MAC OS for development? Are there no instructions out there for setting up in a Linux or Windows environment?
Thank you!
Can one create an MIQ Dev Appliance in Linux or Windows environment?
You can find the detailed guide here for different Linux distros.
Are we truly limited to MAC OS for development?
The main limitation is that Podman client On MacOS doesn't work properly. Since podman a tool for running Linux containers, you gonna need some remote linux machine running, in order to install the remote client and then setup ssh connection information in the podman-remote.conf file. (here)

Developing Linux software on Windows

I want to write software for the Linux platform, but I would like to do this on a Windows OS. I'm only developing Linux software for a remote server of mine, so it wouldn't be worth it to switch to Linux just for that. I don't think it's as simple as using a cross-compiler, because I will be writing code that uses headers specifically for Linux, and I would like to test the programs on Windows. I don't want to use VirtalBox etc.
If possible, install the entire development environment on the linux server. Then install an Xserver (e.g XMing) and an ssh client (e.g putty) on your Windows box. Then run the dev. environment remotely.
The big pro of doing this is that the linux windows integrate seamlessly in the Windows enviornment. I used to work with dual platform development and had a virtual linux box on my PC. Still, I used ssh+X-forwarding to access it. This way I got full copy-paste support etc. between the environments.
Now WSL (also known as "Bash on Windows") exists, you can run native Linux binaries directly on Windows. With snapcraft you can package Linux applications entirely under Windows, without using a VM. Might be a better option. I made a super quick video to explain it.
CoLinux allows you to run linux side-by-side with Windows.
You could try VirtualBox and virtualize a Linux environment from within Windows. I do the reverse of what you are trying to do and run Windows from Linux, and it works quite well.
If you are familiar with .NET and C# you can use Mono for your client.
You can use Visual Studio to develop and the Mono runtime one Linux to run the application.
You do need to keep away from windows specific code.
Maybe Cygwin could help. You don't need an entire virtual machine and only the api is emulated.
You could use g++ in cygwin to target a linux binary. It's a pain to setup as you noted you'll need the entire toolchain (not just the compiler). I've used crosstool (domain name makes me giggle every time) in the past with success. It looks like someone did the work already http://metamod-p.sourceforge.net/cross-compiling.on.windows.for.linux.html
However I've never targeted linux from windows. I'd install a virtual linux box, way easier and you're likely going to want to do your testing on a real linux box before going live.
Cygwin isn't linux so you can't test your linux binaries there.
Out of curiosity what's keeping you from doing the development on linux? If the server the app runs on isn't mission critical you could even develop there.

Can I run a native OS installation as a virtual machine OS?

I am using win7. I wish to use Fedora on my machine, but don't know just how much I will be needing either of my OS. I wish to install Ferdora and configure it as a dual boot system.
At the same time, when time calls for it, I want to run the same Fedora installation as a virtual machine on top of win7. Is there a way to do it?
VMWare Workstation supports this, but I've never tried in Windows.
Here's an article on their site (it discusses VMWare 5 and they're now on 7.1, so a newer one can probably be unearthed):
http://www.vmware.com/support/ws5/doc/ws_disk_dualboot.html

windows for trivial app?

we have a small app that doing trivial stuff, no GUI.
we was using Linux, but the library/framework available for Linux is highly less than that for windows, it was such a pain to develop under Linux.
So we want to use windows, but windows is too big for the trivial app, is there any solution that i can use windows and not losing OS's lightweight?
any advices appreciated.
What kind of applications are you building?
1) some older versions of windows have less bloat, but you wouldn't want these running on public networks because they don't get security updates. Plus, the latest/greatest libraries may not run on them
2) If you're running command-line server utilities, you could try Windows 2008 Server Core, which is a console-only installation
3) You might want to try Wine or Mono to run your windows/.NET framework-based application.
You should try a "Windows PE" (sometimes also called "minint") installation (installation guide here), which is a trimmed-down version based on Windows XP or Vista.
This does not make sense, sorry. If you have a CLI program under Linux why shouldn't you be able to write on CLI program on Windows?

Resources