Ubuntu 9.04 vs. fiscal registrar (cash register)

    Good day to the entire habrasociety.

    I understand perfectly that most of the people here here have long gone through all the stages of Linux formation, however - I will share unexpected experiences, maybe they will save someone time.

    Personally, I am connected with Linux to the extent that I use it (I exclusively use ubuntu, periodically installed and configured, in general, a teapot), but the most advanced teapot in this area is the people working in our office.

    Therefore, it was precisely I who was instructed to get rid, finally, of not quite legal copies of Windows and put on working machines Ubuntu 9.04.

    No particular problems were foreseen - 1C long ago was transferred to terminal access on a far, distant 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. The set is standard and not at all frightening.

    And then I remembered the hemorrhoids approaching me from the rear in the form of an office fiscal registrar PRIM-07K, working on a com-port with an ancient-pre-ancient DOS ov shell.

    Hour came, the hard drives were cynically formatted, winking cd-rom light bulbs merrily, free software was installed quickly and without conflict on the machines, and I sat and thought ...

    • The first and obvious thought - WINE - led to failure. WINE completely refused to download the damn program. Of course, I guessed that MS-DOS had little to do with WinApi and DirectX , but there was hope ... (I remind you that I'm a teapot).
    • The next idea and step was the good old DOSbox . He started everything up wonderfully and showed, however ... I did not find any communication functions with the COM port (was it poorly searched?), And therefore again failed.
    • The third, but, in theory, the one that was supposed to be the very first thought, a memory of DOSEMU crept into my head . I got it, installed it, set it up after all (with a mouse and ports), but ... the fiscal registrar management program launched in it hung tight after clicking. Whatever I try to do. Failure. Got upset. Depressed.

    Here, along with “it all went,” another idea popped into my head, something akin to hunting jerboas with nuclear weapons. And she, which is characteristic, worked. Kick me and tell me that this is not Ubuntu-Way, but ... I really wanted to go home.

    So. The virtualbox-ose package was downloaded and installed from the official repositories. On the wild Internet, a bootable ms-dos 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 Gnomish CD \ DVD burner in .iso recorded fiscal registrar management program.

    So:
    Let the lust begin!

    $ virtualbox

    The virtualizer itself will open. We create a new machine in it, set it to Dos type, 32mb of RAM, create a 50 megabyte hard drive.
    • We connect the floppy disk image of the downloaded boot diskette and cd-rom'om created image .iso,
      Do not forget about connecting the necessary ports. This was the first and only COM for me, so in the virtualbox ports I had to turn on only com1, associate it with / dev / ttyS0 and remember to check that the operating mode is selected in the host device (this means that the device itself as needed will manage the port).
    • We turn on the virtual machine, boot from the floppy disk, see the forgotten, but still native “starting ms-dos”, we unequivocally respond to dispatcher questions - ESC.
    • We launch fdisk, mark up our small virtual hard disk, and return 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: drive of the virtual machine.
    • Turn off the car.
    • We mount the first MS-DOS diskette with a floppy disk, turn on the machine, set it up, follow the instructions, dos, turn off the machine again.
    • Again, mount the downloaded boot diskette, boot from it, start the file manager and use it to copy the keyrus.com and mouse.com files (Russification of the console and mouse driver) to C: \ from the diskette.
    • We do A: \ SYS C: (copying the updated system files from the A: to C: drive. Without this, the program periodically went into a deep depression and finally stopped talking to 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)


    • Save.
    In principle, that’s all. We turn off, once again, the virtual machine, we go through the options, removing any unnecessary tinsel, such as network interfaces, unnecessary ports mounted on this device guest devices and more. We turn on, look at the Suddenly flashed bootscreen from windows 98, start up a stingy tear, we observe with satisfaction the loading console, which immediately deploys your program.

    We are testing a program, we hear such a welcome sound of a fiscal registrar opening a session ... we are happy.

    Well, the last small touch - completely stupid - we create the application launch button on the desktop, in the "command" field for it we write:

    virtualbox -startvm имя_машины

    put the name "Cashier" and ... that's all. The manager works with the checkout almost in the same way as 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, mainly about DOS, but ... I hope someone comes 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 UFO for the invitation)
    UPD1 : Promised screenshots:

    Dos:
    Dos
    Launched program:
    The program itself
    Oh God! What is it? (:
    )
    Configured virtual machine:
    Configured Virtual Machine
    Start button:
    Button Settings

    Also popular now: