Developing on Linux from Windows via sshd: setting up Far and NetBox

    Sometimes it happens that developers are forced to work under Windows (for example, a habit or company policy), but they need to make changes to some portable code to collect it under Linux. You can just put a virtual machine (for example, Oracle Virtual Box) and work directly in it. And you can configure the system to work in Far on Windows, have access to the entire file system of the virtual machine and execute all the commands directly from Far. Let's see how to configure this using Virtual Box, Ubuntu, Far Manager, and the NetBox plugin as an example.

    We will need:

    1. Oracle Virual Box virtual machine with configured Ubuntu inside it and Far Manager outside
    2. NetBox plugin. Choose Far for your version: http://plugring.farmanager.com/plugin.php?pid=859 ( https://github.com/michaellukashov/Far-NetBox/downloads/ )
    3. Oracle VirtualBox: https: // www.virtualbox.org/wiki/Downloads

    Ubuntu setup:

    1. Run Ubuntu and log in
    2. Raise sshd: sudo apt-get install openssh-server
    3. Run ifconfig and write the IP address of the virtual machine (it must be under NAT)
    4. Go to the VM properties in VirtualBox: Settings -> Network - > Port Forwarding -> Insert new rule and enter:

    Rule1 TCP 22 22
    Reboot the VM. This completes the configuration of Ubuntu. Let's move on to Far.

    Setting up Far Manager:

    1. Unpack the NetBox folder into the Far plugins folder (I have C: \ Program Files (x86) \ Far2 \ Plugins) and restart Far
    2. Press Alt-F1, NetBox, Shift + F4
    3. Select the connection type: SCP. Enter the host IP address and login with the password from your Ubuntu
    4. Go to the created account

    Now you can not only steer files in Ubuntu directly from Far, but also execute assembly commands.

    Also popular now: