📜 ⬆️ ⬇️

Developing for Linux from Windows via sshd: setting 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 build it under Linux. You can simply install 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, access the entire virtual system file system and execute all commands directly from Far. Let's see how to configure this using the example of Virtual Box, Ubuntu, Far Manager and the NetBox plugin.

We will need:

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

Ubuntu setup:

1. Launch Ubuntu and Login
2. Raise sshd: sudo apt-get install openssh-server
3. Run ifconfig and write down the virtualka's IP address (it should be under NAT)
4. Go to the VM properties in VirtualBox: Settings -> Network -> Port Forwarding -> Insert new rule and enter:

Rule1 TCP <host IP> 22 <virtualki IP from step 3> 22
Reboot the VM. This completes the Ubuntu setup. Let's go to Far.
')
Setting Far Manager:

1. Unpack the folder with NetBox in the Far plug-in folder (I have C: \ Program Files (x86) \ Far2 \ Plugins) and restart Far
2. Press Alt-F1, NetBox, Shift + F4
3. Select the type of connection: SCP. Enter the IP address of the host and login with a 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 build commands.

Source: https://habr.com/ru/post/197088/


All Articles