Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

far2l ecosystem #647

Open
unxed opened this issue Dec 16, 2019 · 67 comments
Open

far2l ecosystem #647

unxed opened this issue Dec 16, 2019 · 67 comments

Comments

@unxed
Copy link
Contributor

unxed commented Dec 16, 2019

Let's make something like wiki page here on github with links to all projects related to far2l. One of main advantages of Far for Windows was rich ecosystem, and I see no reason why far2l should have lesser possibilities to have a wider one (actually ecosystem already exists and growing, even although main project still declared as alpha). As we have no wiki page (or something like plugring ;) yet, let's start right here.

Macros
A collection of keyboard macros for Linux port of FAR v2:
https://github.com/corporateshark/far2l-macros, useful for example if you use a MacBookPro 13" keyboard, which doesn't have keys such as Ins.

Plugins
GVFS plugin (rich set of network protocols supported): https://github.com/cycleg/far-gvfs
FUSE plugin (sshfs usage simplified): https://github.com/unxed/far2l-fuse
editwrap plugin port: https://github.com/unxed/far2l-EditWrap (good example of rather simple plugin porting)
Lua plugin: https://github.com/shmuz/LuaFAR-2L
sample plugin in FreePascal: https://github.com/unxed/far2l-fpc-helloworld

Compatible apps
putty4far2l - putty fork with far2l terminal extensions (all hotkeys, clipboard):
https://github.com/unxed/putty4far2l
kitty - terminal with far2l extensions also supported:
https://github.com/cyd01/KiTTY
Far2lRestore - imports Windows Far .reg settings to far2l:
http://alter.org.ua/ru/soft/linux/far2l_reg/

Packages/builds/build scripts
PPA: https://launchpad.net/~far2l-team/+archive/ubuntu/ppa
Custom .deb's: https://github.com/unxed/far2l-deb/
Amazon Linux build script: https://github.com/unxed/far2l-deb/blob/master/misc/amazon_linux_far2l.sh
Fedora build howto: https://github.com/nvv13/far2l/commit/c94226c4ffb68f6a21c263cda6ba94338a03e51d
Alt Linux build spec: vitlav@9e6b6da
Cygwin howto: #583 (comment)
nixpkgs (linux & darwin): https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/misc/far2l
rpm (centos/fedora): https://github.com/polter-rnd/far2l-rpm/
portable build (for "shared" hosting, etc): #647 (comment)

Notable forks (see branches also)
Alter1 (slow copy fix, unicode detection fix, KOI8-U, etc) https://github.com/Alter-1/far2l
ha3flt (hidden files display mode shown) https://github.com/ha3flt/far2l
l-4-l (pdf support in multiarc) https://github.com/l-4-l/far2l
svost (large code cleanup work) https://github.com/svost/far2l
singalen (macos build fixes) https://github.com/singalen/far2l
shmuz (adoption for better Lua support): https://github.com/shmuz/far2l

Colors
Monokai-inspired color theme #791 (comment)

@polter-rnd
Copy link

Added package for Fedora and Centos: https://github.com/polter-rnd/far2l-rpm/
Builds here: https://copr.fedorainfracloud.org/coprs/polter/far2l/

@unxed
Copy link
Contributor Author

unxed commented Aug 1, 2020

@unxed
Copy link
Contributor Author

unxed commented Oct 21, 2020

ebuild for Gentoo

@tdosov
Copy link

tdosov commented Oct 27, 2020

ура! Давно пользуюсь в Ubuntu и Debian. Вот бы ещё и для Астры собрать

@unxed
Copy link
Contributor Author

unxed commented Nov 9, 2020

По предложению коллеги сделал чатик в телеграме для желающих вот https://t.me/far2l_ru

@elfmz
Copy link
Owner

elfmz commented Feb 18, 2021

I'm thinking about migrating coloring palettes from pseudoregistry into ini file to improve startup speed for poor macos users (see #910 ). Is that a big issue> i know there're reg-based themes distributed somewhere...

@elfmz
Copy link
Owner

elfmz commented Feb 18, 2021

For now its about stuff in REG/HKU/c/k-Software/k-Far2/k-Colors/k-Highlight

@unxed
Copy link
Contributor Author

unxed commented Feb 19, 2021

I'm thinking about migrating coloring palettes from pseudoregistry into ini file to improve startup speed for poor macos users (see #910 ). Is that a big issue> i know there're reg-based themes distributed somewhere...

updated my themes with .ini files for highlights. don't know about other themes 🤷‍♂️

@elfmz
Copy link
Owner

elfmz commented Feb 21, 2021

seems coloring themes gonna move again, something frightening ripens at config.ini branch..

@unxed
Copy link
Contributor Author

unxed commented Feb 21, 2021

wow, a war on pseudo registry

@elfmz
Copy link
Owner

elfmz commented Feb 21, 2021

aha, and winner will take away https://github.com/elfmz/far2l/blob/master/far2l/registry.cpp

@unxed
Copy link
Contributor Author

unxed commented Feb 22, 2021

aha, and winner will take away https://github.com/elfmz/far2l/blob/master/far2l/registry.cpp

Small request. If ini file(s) have been changed in far2l's editor, reload the configuration when closing the editor. Or at least not overwrite ini(s) when exiting far2l, even if "automatically save settings" option is enabled.

@elfmz
Copy link
Owner

elfmz commented Feb 22, 2021

Not sure if its possible with feasible effort

@unxed
Copy link
Contributor Author

unxed commented Feb 28, 2021

Portable build. Works even on CentOS 7 :) Only one executable: you just upload it to almost any "shared" hosting, and run. TTY-only as intended for remote use. SMB in NetRocks refuses to work properly in portable mode, so no SMB also.

https://github.com/unxed/far2l-deb/tree/master/portable

Build scrips also published (see howtobuild.txt).

Should run on CentOS 7+, Ubuntu 14.04+, Debian 9+, Amazon Linux 2+ and almost any supported distro :)

@Catty82
Copy link

Catty82 commented Aug 19, 2021

ура! Давно пользуюсь в Ubuntu и Debian. Вот бы ещё и для Астры собрать

https://yadi.sk/d/a9up2j_vNXDkvw

@elfmz
Copy link
Owner

elfmz commented Aug 29, 2021

Its opensource, just need to wait a bit...
image

@unxed
Copy link
Contributor Author

unxed commented Jan 2, 2022

Installation script for Oracle Linux (tested on aarch64)

install_far2l_aarch64_oracle_linux.tar.gz

Sorry, no wx, no libarchive, no samba, no webdav. Also python needs some manipulations by hands, see #1164. All other stuff works as expected.

Portable version for aarch64 (even with webdav and libarchive!):
https://github.com/unxed/far2l-deb/blob/master/portable/far2l_portable_aarch64.tar.gz

@unxed
Copy link
Contributor Author

unxed commented Jan 5, 2022

KiTTY 4 far2l: https://github.com/mihmig/KiTTY
cyd01/KiTTY#74

@unxed
Copy link
Contributor Author

unxed commented Jan 6, 2022

putty-nd with far2l extensions
https://sourceforge.net/p/putty-nd/feature-requests/36/

2021-03-09 224142

@unxed
Copy link
Contributor Author

unxed commented Jan 6, 2022

https://github.com/proffix4/FAR2L-FEDORA

RPM spec of far2l (Linux port of FAR Manager v2).

@unxed
Copy link
Contributor Author

unxed commented Jan 6, 2022

A book about Ruby development mentions far2l as recommended file manager:

There are some other flavors of file managers. However, Far Manager is so useful tool, so programmers have ported this manager to Linux and MacOS. You can find setup instructions by following the link above, but we’ll cover it here for MacOS

https://www.sitepoint.com/premium/books/ruby-is-for-fun/read/1/kkg4ugqh/

@unxed
Copy link
Contributor Author

unxed commented Jan 17, 2022

@elfmz
Copy link
Owner

elfmz commented Jan 17, 2022

wxWidgets over qt? Looks little bit weird :), whats point of such configuration?

@unxed
Copy link
Contributor Author

unxed commented Jan 19, 2022

far2l extensions support merged to mainline KiTTY:
cyd01/KiTTY#357

@spvkgn
Copy link
Contributor

spvkgn commented Mar 20, 2023

Makefile for OpenWRT:

Improved a bit https://gist.github.com/spvkgn/6fbfe7a68dbfec0feade847729117751

@unxed
Copy link
Contributor Author

unxed commented Apr 24, 2023

far2l net interfaces configuration plugin
https://github.com/VPROFi/netcfgplugin

@unxed
Copy link
Contributor Author

unxed commented Apr 25, 2023

Lots of useful info on far2l in Russian:
https://github.com/akruphi/far2l/wiki

@alexmyczko
Copy link
Contributor

Meanwhile: https://packages.ubuntu.com/search?keywords=far2l

@atolismesh
Copy link
Contributor

Since May 18 2023 OpenWRT switched from libpcre to libpcre2.
Use following Makefile to build far2l opkg .ipk for current OpenWRT builds/snapshots:

include $(TOPDIR)/rules.mk

PKG_NAME:=far2l
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=https://github.com/elfmz/far2l.git
PKG_SOURCE_VERSION:=master
CMAKE_INSTALL:=1

PKG_LICENSE:=GPL-2
PKG_LICENSE_FILES:=LICENSE.txt
PKG_MAINTAINER:=Ivan Sorokin <unxed@mail.ru>

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

define Package/far2l
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Far2L File Manager
ifdef CONFIG_PACKAGE_libpcre2
  DEPENDS:=+libstdcpp +libpcre2
else
  DEPENDS:=+libstdcpp +libpcre
endif 
endef

define Package/far2l/install
	$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/far2l $(1)/usr/share/far2l
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/far2l $(1)/usr/bin
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/far2l/* $(1)/usr/lib/far2l/
	$(CP) $(PKG_INSTALL_DIR)/usr/share/far2l/* $(1)/usr/share/far2l/
endef

#TARGET_LDFLAGS += -static-libstdc++

CMAKE_OPTIONS += \
    -DUSEUCD=OFF \
    -DUSEWX=OFF \
    -DCOLORER=OFF \
    -DNETROCKS=OFF

ifdef CONFIG_USE_MUSL
    CMAKE_OPTIONS += -DMUSL=ON
endif

ifdef CONFIG_PACKAGE_busybox
    CMAKE_OPTIONS += -DTAR_LIMITED_ARGS=ON
endif

$(eval $(call BuildPackage,far2l))

@spvkgn
Copy link
Contributor

spvkgn commented Jul 12, 2023

Install far2l in Termux from my repository:

echo "deb [trusted=yes] https://spvkgn.github.io/far2l-termux termux extras" | tee $PREFIX/etc/apt/sources.list.d/far2l.list && \
apt update && apt install far2l
~ $ apt list far2l*
Listing... Done
far2l-plugins-colorer/termux,now 2.5.1+git20230717-1 aarch64
far2l-plugins-netrocks/termux 2.5.1+git20230717-1 aarch64
far2l-ttyxi/termux 2.5.1+git20230717-1 aarch64
far2l/termux,now 2.5.1+git20230717-1 aarch64
Screenshot

Снимок экрана в 2023-07-12 20-53-08

@unxed
Copy link
Contributor Author

unxed commented Jul 18, 2023

Ветка форума оригинального Far для Windows, где far2l обсуждать можно:
https://forum.farmanager.com/viewtopic.php?t=12813

@unxed
Copy link
Contributor Author

unxed commented Jul 18, 2023

far2l for Android (Termux): https://t.me/far2l_ru/9771

@elfmz
Copy link
Owner

elfmz commented Jul 18, 2023

да уж, фар на андроиде это конечно занимательно.. а оно без клавы хоть немного юзабельно? думаю там как минимум надо всякие твики делать чтоб долгим нажатием выделять файлы по типу Ins'а и т.п.

@spvkgn
Copy link
Contributor

spvkgn commented Jul 18, 2023

В термуксе есть Ins и другие клавиши (см. https://wiki.termux.com/wiki/Touch_Keyboard) , а так внешняя клавиатура в помощь)

@unxed
Copy link
Contributor Author

unxed commented Jul 23, 2023

3. Install far2l build prerequisites:
yum install epel-release
yum install gawk m4 cmake3 xerces-c-devel uchardet-devel spdlog-devel libarchive-devel

spdlog-devel is optional now.

@unxed
Copy link
Contributor Author

unxed commented Jul 25, 2023

How to build on Ubuntu 14.04:
#1502 (comment)

@unxed
Copy link
Contributor Author

unxed commented Jul 25, 2023

Building far2l without any dependencies:

cmake -DUSEWX=no -DUSEUCD=no -DCOLORER=no -DCMAKE_BUILD_TYPE=Release ..

@spvkgn
Copy link
Contributor

spvkgn commented Aug 4, 2023

FAR2L OpenWrt repo

@alexmyczko
Copy link
Contributor

Building far2l without any dependencies:

cmake -DUSEWX=no -DUSEUCD=no -DCOLORER=no -DCMAKE_BUILD_TYPE=Release ..

This is interesting maybe for embedded/low storage devices. Have to play with this

@unxed
Copy link
Contributor Author

unxed commented Aug 4, 2023

I am now working on alternative sftp plugin that will not require any dependencies also. Just as multiarc can work without dependencies, acting as a wrapper against command line archivers, that plugin will act as a wrapper against comman line sftp tool. That should be ideal for embedded cases such as openwrt as they already have sftp command line tool inside firmware, but installing any additional libs will eat very expansive space.

Also thought about implementing ftp this way, but actually ftp in NetRocks can work without any dependencies, so let's start with sftp for now.

@spvkgn
Copy link
Contributor

spvkgn commented Aug 28, 2023

FAR2L portable nightly builds (x86_64 x86 aarch64 armhf armv7 ppc64le s390x)

@unxed
Copy link
Contributor Author

unxed commented Aug 28, 2023

@spvkgn круто! А вы готовы эту историю тащить дальше? Потому что я бы переключился на другие задачи тогда, и просто поставил ссылку на вас у себя.

@spvkgn
Copy link
Contributor

spvkgn commented Aug 28, 2023

@unxed Без проблем

@unxed
Copy link
Contributor Author

unxed commented Sep 1, 2023

@spvkgn я правильно понимаю, что все скрипты, необходимые для сборки переносимой версии, у вас тоже свои уже есть, так что я могу у себя их выпилить тоже, чтоб не множить сущности и баги?

@spvkgn
Copy link
Contributor

spvkgn commented Sep 4, 2023

все скрипты, необходимые для сборки переносимой версии, у вас тоже свои уже есть

Да
Кстати, добавил еще сборку AppImage с wx-GUI, хотя нет возможности проверить как он будет себя вести на разных линуксах

@unxed
Copy link
Contributor Author

unxed commented Sep 13, 2023

@atolismesh
Copy link
Contributor

atolismesh commented Oct 9, 2023

Для сборки far2l на openSUSE Tumbleweed перед сборкой необходимо установить набор пакетов (названия слегка отличаются от Debian/Ubuntu):
sudo zypper install git-core cmake-full gcc gcc-c++ libuchardet-devel wxGTK3-3_2-devel libarchive-devel libopenssl-devel libssh-devel libneon-devel libnfs-devel libunrar-devel pcre-devel pcre2-devel libxerces-c-devel samba-devel

@unxed
Copy link
Contributor Author

unxed commented Oct 16, 2023

1st Ubuntu with far2l on board! 🎉
https://releases.ubuntu.com/mantic/

btw, has some problems running in lxc. Workaround here:
lxc/lxc-ci#788

@spvkgn
Copy link
Contributor

spvkgn commented Feb 29, 2024

FAR2L Flatpak build (Nightly)

@unxed
Copy link
Contributor Author

unxed commented Feb 29, 2024

С GUI или без?

@cmdorexe
Copy link
Contributor

cmdorexe commented Feb 29, 2024

Доброго дня комрады. Я тут на Rocky Linux release 9.3 (Blue Onyx) ставил far2l.

dnf config-manager --set-enabled crb
dnf install epel-release
yum install far2l-tty

Думаю в вики можно добавить.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

14 participants