Install FAR in Ubuntu Using Wine

    Lovers of "holy wars" are strictly forbidden!

    For many people, FAR has remained and remains one of the most beloved programs. She has many advantages, disadvantages, too. But this topic is not about that. Many people want to continue to use FAR further, but under Linux.

    What we need?

    Go? (Caution, a lot of pictures)

    Program installation


    First we need to unzip the archive with the program. To do this, go to the application center (Applications> Ubuntu Software Center), in the search box, type 7zip, and install the package we need.

    image

    Then install wine. In the application center in the search box, type wine. You need to install Wine Microsoft Compatibility Layer (Beta release) . This is a more recent version of this program.

    image

    In the home directory, I made the wine folder , where I later unpacked the FAR files,

    image

    Right-click on the FAR exe-file, and check its properties, whether the “Allow executing file as program” checkbox is set to access rights.

    image

    If everything is fine, then close the properties window, and start our favorite FAR.

    image

    Now we take a file, and we will make a tank from the combine. First you need to restore the usual actions on the right mouse button.
    Press the right button and set a checkmark near the Shift item.

    image

    Press the Ok button and say that we want to save the parameters for all sessions.

    image

    You can recall this settings panel using the right mouse button and Shift.
    We do not touch the font settings yet.

    Alt + F1 and Alt + F2 problem


    Next we will have the following problem. Pressing Alt + F1 and Alt + F2 will invoke system functions, rather than dialog boxes familiar to everyone. We solve this problem by reassigning these buttons in the system. Go to System> Preferences> Keyboard Shortcuts.

    image

    Find a mention of Alt + F1 and Alt + F2 , and redefine it with a different key combination. You can remove the key assignment using backspace . Item «Show the panel's main menu» is better to establish some specific key combination, otherwise the system will use the Alt + F1

    return to our FAR and try to change discs. It works great.

    Fonts and their smoothing


    Let's deal with the second problem - fonts. First, open the console (Applications> Accessories> Terminal or Ctrl + Alt + T).

    As I said, I created the wine folder in my home directory.
    We type in the console
    cd wine
    then
    wget www.kegel.com/wine/winetricks
    and then
    sh winetricks fontsmooth-rgb allfonts

    Restart the FAR, and go to the program properties by pressing Shift + right mouse button. Change the font to a more suitable one, for example, Andale Mono or Liberation Mono. Save the settings as described above.

    That's what I got
    image

    Beauty, but not really. The color of the dialog boxes is a bit darker than under Windows, and this, if very annoying, can be fixed in the FAR color settings.

    Associate files with native Linux applications



    In the home directory, create a file called winenative.
    Its contents should be like this. We save it, then do the following. Change the owner, set the execution rights and transfer it to the / usr / bin / folder. Next, run FAR and type regedit in the console. In HKEY_CLASSES_ROOT, look for the pngfile key , it will have shell > open In open there may be a ddeexec that I deleted. We need to create or modify the command key. Insert the key value. It should turn out like this:
    #!/bin/sh
    $1 "`wine winepath -u "$2"`"



    sudo chown root:root winanative
    sudo chmod a+x winenative
    sudo mv winenative /usr/bin/







    start /Unix /usr/bin/winenative eog "%1"



    image

    We repeat the same for other types, replacing the Eye of Gnome (eog) with other applications.

    A spoon of tar

    • WinSCP plugin does not work, but it is not needed. You can safely mount the remote file system through fuse and continue to work.
    • I still could not find a way how to execute linux console commands in the FAR console. Windows searches for a command in a list of available commands, and along a specific path. How to make it translate everything into the same bash, I did not find.
    • Sometimes FAR crumbles on file editing.


    UPD: Specified in the installation requirements for wine

    Also popular now: