*New 11.4 series Release:
2020-07-03: XigmaNAS 11.4.0.4.7633 - released!

*New 12.1 series Release:
2020-04-17: XigmaNAS 12.1.0.4.7542 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[HOWTO] Install Midnight Commander (embedded)

XigmaNAS Scripts and shell tips
Forum rules
Set-Up GuideFAQsForum Rules
User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1452
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: [HOWTO] Install Midnight Commander (embedded)

#61

Post by ernie »

Thanks Raulfg3 and Crest.

I follow the advice of Crest:
crest wrote:
22 Aug 2017 05:44
Hello ernie,
ernie wrote:
21 Aug 2017 12:54
I have updated my nas (version 10.3.0.3 - Pilingitam (revision 4107) / x64-embedded with OBI, and MC installed with OBI) to 11.1.0.4 - Atomics (revision 4528) embedded.

Now in CLI I have this:

Code: Select all

nas4free1: ~# mc
Shared object "libssl.so.6" not found, required by "mc"
nas4free1: ~# 
Any advice is welcome.

B.R.

Please check if you have the most recent OBI installed (0.3.4.1) and update it if not. Then activate re-install in OBI and perform the installation of mc again. After that log out from the CLI and login again, mc should start as expected.

Regards
crest
Now it works
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7542) embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, UPS,
NAS2: OBI (zrep (backup mode), themes)

ginggs
Starter
Starter
Posts: 31
Joined: 27 Jun 2012 14:30
Status: Offline

Re: [HOWTO] Install Midnight Commander (embedded)

#62

Post by ginggs »

I finally got around to upgrading my NAS from 9.1.0.1 to 11.1.0.4.

Being unable to upgrade further using the "firmware upgrade" method put me off, and everything was working perfectly for me on 9.1.0.1, and then there was a drive failure, and then one of the RAM sticks developed a fault.

Anyway, I have now updated the script for 11.1.0.4. You can find it at the beginning of this thread.

ginggs
Starter
Starter
Posts: 31
Joined: 27 Jun 2012 14:30
Status: Offline

Re: [HOWTO] Install Midnight Commander (embedded)

#63

Post by ginggs »

Now updated for XigmaNAS 11.2.0.4.

bq23
NewUser
NewUser
Posts: 1
Joined: 03 Mar 2017 09:57
Status: Offline

Re: [HOWTO] Install Midnight Commander (embedded)

#64

Post by bq23 »

Please, :ugeek: update for 12.0.0.4 - BETA

markmarques
Starter
Starter
Posts: 30
Joined: 26 Feb 2018 13:27
Status: Offline

Re: [HOWTO] Install Midnight Commander (embedded)

#65

Post by markmarques »

Hi ...
The Midnight Commander install script only needs a small tweak in order to work correctly with e 12.0.0.4 beta install.

It seems that the MC*.txz file name file in the server has been updated and changed...

wenger
NewUser
NewUser
Posts: 4
Joined: 15 Jun 2019 22:18
Location: Novgorod Russia
Status: Offline

Re: [HOWTO] Install Midnight Commander (embedded)

#66

Post by wenger »

How to get mc work on XigmaNAS 12.0-RELEASE embedded

First, clean <path-to-OBI-common-directory>/midnightcommander directory and get installer script in there

Code: Select all

# fetch https://github.com/ginggs/xigmanas-mcommander/raw/master/mcommander.sh
Make small fixes

Code: Select all

-MCFILE="mc-4.8.20_2.txz"
-LIBSLANGFILE="libslang2-2.3.1_3.txz"
+MCFILE="mc-4.8.21.txz"
+LIBSLANGFILE="libslang2-2.3.2_1.txz"
Then save it and run with full path. If there is existing symlinks warnings, reboot the NAS and run the script again.

Also you'll need to add mcommander.sh (with full path) in System > Advanced > Command Scripts (PostInit type) so it'll automatically restore symlinks under /usr/local after NAS reboot.
XigmaNAS 12.0.0.4 embedded on N3150/8Gb/6Tb ZFS | OBI&TheBrig&Plex&CIFS/SMB&Syncthing&Transmission

ginggs
Starter
Starter
Posts: 31
Joined: 27 Jun 2012 14:30
Status: Offline

Re: [HOWTO] Install Midnight Commander (embedded)

#67

Post by ginggs »

wenger wrote:
24 Jun 2019 07:55
Make small fixes

Code: Select all

-MCFILE="mc-4.8.20_2.txz"
-LIBSLANGFILE="libslang2-2.3.1_3.txz"
+MCFILE="mc-4.8.21.txz"
+LIBSLANGFILE="libslang2-2.3.2_1.txz"
Thanks! I've committed these changes in git now.

ali_dzi
Starter
Starter
Posts: 23
Joined: 09 Oct 2013 16:17
Status: Offline

Re: [HOWTO] Install Midnight Commander (embedded)

#68

Post by ali_dzi »

Works excellent after reboot (12.1.0.4 - Ingva (revision 7091)

Code: Select all

#cd /mnt/mynas
#mkdir mc
#cd mc
#fetch https://github.com/ginggs/xigmanas-mcommander/raw/master/mcommander.sh
#chmod u+x mcommander.sh
#/mnt/mynas/mc/mcommander.sh
#reboot
Before reboot, add
"/mnt/mynas/mc/mcommander.sh" in
SYSTEM->ADVANCED->COMMAND SCRIPTS
as PostInit type


No need to fix anything, it's already fixed in script (04.dec 2019)

User avatar
xmechanic
NewUser
NewUser
Posts: 1
Joined: 05 Jan 2020 07:45
Status: Offline

Re: [HOWTO] Install Midnight Commander (embedded)

#69

Post by xmechanic »

Thank you ali_dzi! Your script worked perfectly and mc is now available in my SSH sessions. :D

rubbrduck
NewUser
NewUser
Posts: 1
Joined: 12 May 2017 11:56
Status: Offline

Re: [HOWTO] Install Midnight Commander (embedded)

#70

Post by rubbrduck »

Hello, I installed the script via OBI and when I try to run mc I get this error:

Code: Select all

ld-elf.so.1: Shared object "libssl.so.6" not found, required by "mc"
I have poked around in the shell using information taken from the mcommander.sh script and I have found that libssl.so.7 referred to by the script does not exist. The nearest candidate to take its place looks libssl.so.111.

Should I remove the symlink to libssl.so.7 and substitute it with libssl.so.111 for libssl.so.6? if I go

Code: Select all

ln -s /usr/lib/libssl.so.111 libssl.so.6
the answer is:

Code: Select all

ln: libssl.so.6: File exists
Alternatively, could I get a "sure fire" method of cleaning the slate to install mc from One Button Installer again?

Thanks,
Luca

DFRomanov
NewUser
NewUser
Posts: 4
Joined: 19 Sep 2019 09:53
Status: Offline

Re: [HOWTO] Install Midnight Commander (embedded)

#71

Post by DFRomanov »

in mcommander.sh need modify section:

# Symlinks for v10.1.0.2
cd /usr/local/lib
[ -e libssl.so.6 ] || ln -s /usr/lib/libssl.so.7 libssl.so.6
[ -e libcrypto.so.6 ] || ln -s /lib/libcrypto.so.7 libcrypto.so.6

libssl.so.7 to libssl.so.111
libcrypto.so.7 to libcrypto.so.111

DFRomanov
NewUser
NewUser
Posts: 4
Joined: 19 Sep 2019 09:53
Status: Offline

Re: [HOWTO] Install Midnight Commander (embedded)

#72

Post by DFRomanov »

but next trouble

# mc
ld-elf.so.1: /usr/local/lib/libssh2.so.1: Undefined symbol "OPENSSL_add_all_algorithms_noconf"

# ldd /usr/local/lib/libssh2.so.1
/usr/local/lib/libssh2.so.1:
libssl.so.6 => /usr/lib/libssl.so.6 (0x80066d000)
libcrypto.so.6 => /usr/local/lib/libcrypto.so.6 (0x801027000)
libz.so.6 => /lib/libz.so.6 (0x800705000)
libc.so.7 => /lib/libc.so.7 (0x80024a000)
libthr.so.3 => /lib/libthr.so.3 (0x80071f000)

The all files in this locations

kidalabama
NewUser
NewUser
Posts: 2
Joined: 07 Feb 2020 11:49
Status: Offline

Re: [HOWTO] Install Midnight Commander (embedded)

#73

Post by kidalabama »

12.1.0.4 - Ingva (revision 7542)

ld-elf.so.1: Shared object "libssl.so.6" not found, required by "mc"

ldd /usr/local/lib/libssh2.so.1
/usr/local/lib/libssh2.so.1:
libssl.so.6 => not found (0)
libcrypto.so.6 => not found (0)
libz.so.6 => /lib/libz.so.6 (0x80066d000)
libc.so.7 => /lib/libc.so.7 (0x80024a000)

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 549
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [HOWTO] Install Midnight Commander (embedded)

#74

Post by crest »

There is a new release (v0.4.1) of OneButtonInstaller available which includes also an improved/automatic update for Midnight Commander on new releases & changed XigmaNAS firmware.

Regards
crest
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

Post Reply

Return to “Scripts and shell tips”