Month: July 2022

Converting Russian text from IBM866 to UTF-8

To run the Motorola Advisor Pager programmer I need to follow the instruction, but the extended-ASCII charset wasn’t helping:

1.<8e>âªà®©â¥ ¯¥©¤¦¥à ¨ á­¥¬¨â¥ ¯à¨¥¬­ãî ¯« âã
2.<90> á¯®ïâì ᮡ࠭­ë© ¢ ¬¨ è­ãà (¯® á奬¥) ®â ãáâனá⢠ ­  ¬¨ªà®á奬ã
98<95>05 ¨«¨  ­ «®£¨ç­ãî ¥©,(¯®å®¦  ­  ®â«¨âãî
¨§ ç¥à­®£® ¬ â¥à¨ «  ¯«îèªã)



        ßÚÄÄÁÄÁÄÁÄÁÄÁÄÁÄÄ¿ß 11
        ij               ³Ä
        ij               ³Ä> 9
        ij               ³Ä> 8
        ij     98X05     ³Ä> 7
        ij               ³Ä> 6
        ij       ®       ³Ä
        ÜÀÄÄÂÄÂÄÂÄÂÄÂÄÂÄÄÙÜ
                    2

3. <87> ¯ãáâ¨âì ä ©« digadv.exe
4. <8f>®á«¥ ¢ë¯®«­¥­¨ï ¨­áâàãªæ¨æ
㪠§ ­­ëå ¢ ä ¨«¥ digadv.exe
§ ¯ãáâ¨âì ä ©« dat2pvd.com        

After searching in the Internet I discovered a nice program called “uchardet” that corrected guessed the charset:

$ uchardet INSTR.TXT
IBM866

Next step was to convert it to UTF8:

$ iconv -f IBM866 -t UTF-8//TRANSLIT INSTR.TXT -o INST.TXT

Way better now, at least google translate will help:

1.Откройте пейджер и снемите приемную плату
2.Распоять собранный вами шнур (по схеме) от устройства на микросхему
98Х05 или аналогичную ей,(похожа на отлитую
из черного материала плюшку)

    ▀┌──┴─┴─┴─┴─┴─┴──┐▀ 11             
    ─│               │─ 
    ─│               │─> 9 
    ─│               │─> 8 
    ─│     98X05     │─> 7 
    ─│               │─> 6      
    ─│       о       │─                        
    ▄└──┬─┬─┬─┬─┬─┬──┘▄
                2                                      
  1. Запустить файл digadv.exe
  2. После выполнения инструкциц
    указанных в фаиле digadv.exe
    запустить файл dat2pvd.com


References:
https://stackoverflow.com/questions/805418/how-can-i-find-encoding-of-a-file-via-a-script-on-linux
https://www.tecmint.com/convert-files-to-utf-8-encoding-in-linux/

How to use virtualbox to install OSes on physical disks

In virtualbox it is a little bit more difficult to install an OS in a physical disk, but it is possible.

First you need to create a New image normally, but instead of creating a disk image in the computer select Do not add a virtual hard drive.

Then use the VBoxManage to create disk image that point to your external disk (i.e. /dev/sdb) :

# VBoxManage internalcommands createrawvmdk -filename NewHDOS.vmdk -rawdisk /dev/sda

Now just start the virtualbox and click in the Settings -> Storage and add this vmdk file as your hard disk.

Source: https://www.serverwatch.com/guides/using-a-physical-hard-drive-with-a-virtualbox-vm/
https://pureinfotech.com/mount-iso-virtual-machine-virtualbox/

Update: Today I tried to do it again and faced an issue: the default Controller was DVD instead “Controller: IDE”. So you need to remove the original Empty device and add again as IDE and then select the .vmdk file to use with it.