Good day to all habrasoobschestvu.
I understand very well that most of the people present here have long since gone through all the stages of the formation of the Linuxuid, however, I will share an unexpected experience, maybe it will save someone time.
Personally, I am connected with Linux to the extent that (since I exclusively use Ubuntu, I use it from time to time, I installed and configured it several times, in general, a teapot), but the most advanced teapot in this area is the people working in our office.
')
Therefore, it was I who was instructed to get rid, finally, of not quite legal copies of Windows and put it on the Ubuntu 9.04 desktop machines.
Special problems were not foreshadowed - 1C was long ago transferred to terminal access on a far-away server with win 2k3 on board, so ... installation, performance check, "file processing" - proprietary drivers and plug-ins, additional drivers for video and audio, network printers, server smb-ball, terminal. A set of standard and not frightening.
And then I remembered about the hemorrhoids approaching me from the rear in the form of the office fiscal registrar PRIM-07K, who worked on the com-port with the ancient-ancient DOS 'shell.
The hour came, the hard drives were cynically formatted, cd-rom lights flashed merrily, free software was installed on the machines smartly and without conflicts, and I sat and thought ...
- The first and obvious thought - WINE - caused a failure. WINE completely refused to download the damn program. Of course, I guessed that MS-DOS has little to do with WinApi and DirectX , but the hope was ... (I remind you that I am a teapot).
- The next idea and step was the good old DOSbox . He started everything up perfectly and showed, however ... I didn’t find any communication functions with a COM port (I wasn’t looking for it badly?), And therefore I’ve failed again.
- The third in a row, but, in theory, the one that was supposed to be the very first thought, the memory of DOSEMU crept into my head. I got it, installed it, set it up after all (with the mouse and the ports), but ... the fiscal registrar management program running in it tightly hung after clicking. Whatever I tried to do. Failure. Got upset. Depressed
Here, in the head, along with “well it all went,” another idea peeked in, something akin to the hunt for jerboa using nuclear weapons. And she, characteristically, worked. Kick me and tell me that this is not Ubuntu-Way, but ... I really wanted to go home.
So. The virtualbox package was downloaded and installed from the official repositories. On the wild Internet, a ms-dos boot diskette was found (with system files from win98,
Pick up here ), with a file manager, mouse support and a Russian console, as well as
MSDOS 6.22 installation diskettes (
Pick up here ), previously, using a standard gnome CD \ DVD-burner in .iso recorded program management fiscal registrar.
So:
Let the lust begin!$ virtualboxThe virtualizer itself will open. In it, we create a new machine, put the Dos type, 32mb of RAM, create a hard disk of 50 megabytes.
- We connect the floppy disk image of the downloaded boot floppy and cd-rom the created .iso image,
Do not forget about connecting the right ports. This was my first and only COM, so in virtualbox ports I only had to enable com1, associate it with / dev / ttyS0 and remember to check that the operation mode is selected in the host device (this means that the device itself will need to manage the port). - Turn on the virtual machine, boot from the floppy disk, see the forgotten, but still native “starting ms-dos”, and answer the dispatcher’s questions unequivocally - ESC.
- Run fdisk, mark up our small virtual hard disk, go back to the console.
- We start the file manager (on this diskette it is in “BLOCK \ hc.exe”) and copy our program from the connected image to the root of the C: virtual machine.
- Turn off the car.
- Install the floppy disk with the first MS-DOS diskette, turn on the machine, set up, follow the instructions, and turn off the machine again.
- Again, we mount the downloaded boot diskette, boot from it, start the file manager and copy it to C: \ keyrus.com and mouse.com (console russification and mouse driver) from the diskette.
- We do A: \ SYS C: (copying updated system files from disk A: to C :. Without this, the program periodically went into deep depression and finally stopped communicating with me).
- Open for editing C: \ autoexec.bat, (in the file manager on F4), append to the end of this file:
keyrus.com
mouse.com
__.exe ( frs.exe)
- We save.
Basically - everything. We turn off, once again, the virtual machine, go through the options, removing any unnecessary tinsel, such as network interfaces, unnecessary ports, devices mounted on this guest system and so on. We turn on, we look at the EXTREMELY flashed on the windows 98 bootstrap, we let out a dirty tear, we are pleased to see the loading console, which immediately deploys your program.
We test the program, we hear such a welcome sound of a fiscal registrar opening a session ... rejoice.
Well, the last minor touch is quite stupid - we create an application launch button on the desktop, in the “command” field we write for it:
virtualbox -startvm _put the name "Cashier" and ... absolutely everything. The manager works with the cash register almost in the same way as it worked with it in Windows XP.
I apologize for the lack of screenshots - there is no material at hand, I'm at home, and he is at work).
Somehow messy happened. And mostly about DOS, but ... I hope someone will come in handy). And yet - I would very much like to hear fair criticism of such a decision, as well as other possible options. Thanks for attention.
UPD : Thank you for the invitation UFO)
UPD1 : Promised Screenshots:
Dos:

Running program:

Oh my God! What is it? (:

Configured virtual machine:

Start Button:
