I’d like to install F*EX on my Pioneer Freedombox. I don’t need to have it added to plinth. Just need to install a working version listening on a free port.
“su permission denied” error is because of security settings. You can go to security app in FreedomBox and disable the “Restrict console logins” feature. Do this temporarily while you install the app.
Blockquote
The following packages were automatically installed and are no longer required:
avahi-utils batctl bridge-utils dnsutils fail2ban firewalld flite fonts-fork-awesome fonts-lato gettext gir1.2-atk-1.0 gir1.2-freedesktop
gir1.2-gdkpixbuf-2.0 gir1.2-gtk-3.0 gir1.2-nm-1.0 gir1.2-notify-0.7 gir1.2-pango-1.0 gir1.2-udisks-2.0 haveged iftop ipset ldap-utils ldapscripts
libapache2-mod-auth-pubtkt libflite1 libhavege1 libipset11 libirs161 libiw30 libjs-modernizr libnss-gw-name libnss-ldapd libnss-myhostname libodbc1
libpam-abl libpam-ldapd libpam-tmpdir libpangoxft-1.0-0 libpci3 locales-all node-turbolinks nslcd nslcd-utils pciutils pppoe pwgen python3-argon2
python3-bootstrapform python3-cherrypy3 python3-decorator python3-django python3-django-appconf python3-django-axes python3-django-captcha
python3-django-ipware python3-django-ranged-response python3-django-stronghold python3-docopt python3-keyutils python3-psutil python3-repoze.lru
python3-routes python3-ruamel.yaml python3-selinux python3-slip python3-slip-dbus python3-sqlparse python3-systemd python3-webob rfkill sharutils slapd
sudo tcpdump udiskie whois wireless-tools zile
Use ‘sudo apt autoremove’ to remove them.
The following packages will be REMOVED:
freedombox
Then is asked about removing LDAP configuration from nsswitch.conf
and I went with the default “NO”
Blockquote
The following services are still configured to use LDAP for lookups:
passwd, group, shadow
but the libnss-ldapd package is about to be removed.
You are advised to remove the entries if you don’t plan on using LDAP for name resolution any more. Not removing ldap from nsswitch.conf should, │
for most services, not cause problems, but host name resolution could be affected in subtle ways.
You can edit /etc/nsswitch.conf by hand or choose to remove the entries automatically now. Be sure to review the changes to /etc/nsswitch.conf if
you choose to remove the entries now.
Remove LDAP from nsswitch.conf now?
I then removed fex: “apt remove fex fexutils” and then reinstalled them
“apt install fex fex-utils”
And F*EX successfully installed.
So right now i"ve got these three
apps working on my Pioneer HSK Olimex A20 Lime2 computer::
i2p-Bote,
F*Ex
Hubzilla
They all seem to be working correctly.
Now I’ll try to reinstall Freedombox and see if they break.
Oh, one other thing that came up while uninstalling Freedombox. It said that freedombox ldap user might not be able to login and that therefore I should create a password for root, ie. “sudo passwd” which I did. That might be the real solution to installing F*Ex in debian.
If you manually unpack the F*Ex tarball, then run the installation script, somewhere IIRC it wants to run something like “su -c ‘some command’ fex” which generates a permission denied in debian, even if you first do “sudo su” to become root. Maybe you still actually need a root with password.
Anyhow, debian unpacks/install the fex files to /usr/share/fex and /var/lib/fex and /usr/bin/fexp whereas the fex install script just puts everything in /home/fex.
I needed to send an email with a 40+M attachment for an Easter letter but my protonmail account has a limit of 10M for attachments. My main postfix server had FEx integrated to automatically generate a fex download link for large file attachments, but its motherboard died so I need to buy a new main server. Just haven’t had time to do so yet and I really needed to get this late Easter letter emailed and I couldn’t be bothered with breaking the file up into smaller pieces to email separately. Now that I’ve got FEx installed, I can just paste the download link in my email.
Looks like that should be possible with bepasty as well. Though, with bepasty it seems you would have to fumble around with creating separate password accounts and uploading a file for that login (FreedomBox).
One of the nice features of F*EX seems, to be also able to directly “fex” a file to someone, simply by specifying the upload file and the receiver (email), and it creates the download link and can automatically send the email notification.
nft list ruleset
chain filter_IN_internal_allow {
tcp dport ssh ct state new,untracked accept
ip daddr 224.0.0.251 udp dport mdns ct state new,untracked accept
ip6 daddr ff02::fb udp dport mdns ct state new,untracked accept
udp dport netbios-ns ct state new,untracked accept
udp dport netbios-dgm ct state new,untracked accept
ip6 daddr fe80::/64 udp dport dhcpv6-client ct state new,untracked accept
tcp dport http ct state new,untracked accept
tcp dport https ct state new,untracked accept
tcp dport domain ct state new,untracked accept
udp dport domain ct state new,untracked accept
udp dport bootps ct state new,untracked accept
}
Guess I’ll have to slog through firewall manual.
While I don’t really need to send terabyte files, I often do need to send files from 50M to a few hundred megs. FEx is much quicker than burning the file to a cdrom or putting an a usb flash then mailing or FedEx’ing the media. FEx has always worked like a charm in these situations for me.
The --permanent option to firewall-cmd only edits the configuration files. You need to re-run the command a second time without the --permanent option to effect the currently running rules in nft (or reboot to ensure that the saved configuration is loaded).
Ha, just noticed something in the output of “lsof -i :fex” which shows that xinetd is listening on ipv6 but I’m on ipv4.
Looks like xinetd defaults to ipv6 unless flag is explicity set to ipv4: #cat /etc/xinetd.d/fex
service fex
{
socket_type = stream
wait = no
type = unlisted
protocol = tcp #flags = IPv6
flags = IPv4
bind = 192.168.11.243 127.0.0.1
port = 8888
cps = 10 2
user = fex
groups = yes
server = /usr/share/fex/bin/fexsrv
nice = 0
disable = no
}
Now, listening on ipv4 :8888
lsof -i :fex
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
xinetd 26695 root 5u IPv4 149866 0t0 TCP *:fex (LISTEN)