Libncursesw6 for mosh-server and lynx

hi. Im trying to install mosh-server and lynx on the router. I’ve compiled the packages using the toolchain but there is an unresolved dependency upon libncursesw6:

Installing lynx (2.8.9rel.1-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for lynx:
 *      libncursesw6 * 
 * opkg_install_cmd: Cannot install package lynx.

I didn’t see this library available in menuconfig. Am I missing something? ty.

You need to install “libncurses6”, that provides the libncursesw6 library :slight_smile:

hi. unfortunately I’m unable to find that library even after an update:

y@router:~$ sudo opkg update
Downloading https://fw.gl-inet.com/releases/kmod-3.2/ar71xx/nand/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_core
Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/sync_kmod-3.2/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_sync
Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/base/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_base
Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/gli_pub/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_gli_pub
Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_packages
Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_luci
Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_routing
Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_telephony
Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/glinet/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_glinet
y@router:~$ sudo opkg find libncurses
libncurses - 6.1-1 - Terminal handling library (Unicode)
libncurses-dev - 6.1-1 - Development files for the ncurses library
y@router:~$

and like I said I couldn’t find it via menuconfig in that toolchain thing I downloaded though I built mosh-server and lynx with it alright.

Yes, try installing libncurses. The name might have changed for the package.

y@router:~$ sudo opkg install libncurses
Package libncurses (6.1-1) installed in root is up to date.
y@router:~$ sudo opkg install libncurses-dev
Package libncurses-dev (6.1-1) installed in root is up to date.

I’m worried if I remove and reinstall it’ll I might break something.

That is strange, its already installed and available :confused:

What router are you compiling for?

It’s a GL-AR750S. Maybe those packages linked with something on the system I compiled them with? It’s a different architecture so I wouldn’t think so, Windows Bash Shell Ubuntu something.

I just followed the SDK guide from github:

sudo apt update && sudo apt upgrade -y
sudo apt install asciidoc bash bc binutils bzip2 fastjar flex gawk gcc genisoimage gettext git intltool jikespg libgtk2.0-dev libncurses5-dev libssl1.0-dev make mercurial patch perl-modules python2.7-dev rsync ruby sdcc subversion unzip util-linux wget xsltproc zlib1g-dev zlib1g-dev -y
git clone https://github.com/gl-inet/sdk.git
cd sdk
./download.sh ar71xx-1806
cd sdk/1806/ar71xx/
./scripts/feeds update -f
./scripts/feeds install libncurses
mkdir -p package/lynx/files
cd package/lynx
wget https://raw.githubusercontent.com/openwrt/packages/master/net/lynx/Makefile
cd files
 wget https://raw.githubusercontent.com/openwrt/packages/master/net/lynx/files/lynx.cfg
 wget https://raw.githubusercontent.com/openwrt/packages/master/net/lynx/files/lynx.lss
cd ../../../
make package/lynx/compile V=s

The final package was in bin/packages/mips_24kc/base/ as lynx_2.8.9rel.1-1_mips_24kc.ipk

Copied it using SSH to the router, did:

opkg update
opkg install  lynx_2.8.9rel.1-1_mips_24kc.ipk

and:

05

1 Like

yes that worked, thank you. where did you find these instructions so I can compile mosh_server and joe?

Well its just the instructions for the SDK here:

You can just drop any package folder (the entire tree for it) into the sdk/1806/ar71xx/package folder.

Then as above do make package/<package_name>/compile V=s

Get mosh:

And joe:

How did it go with mosh and joe? :slight_smile:

Using Lynx?? I tried this thing 15 years ago.

Hi. Joe went well but mosh-server required installation of protobuf-compiler. All’s well! Ty :slight_smile:

Glad to hear it :slight_smile:

If you have any more questions or issues, ask :smiley:

Hi,
I’d like to get mosh-server as well on my slate,
any chance yo can post instructions?

For Mosh:

sudo apt update && sudo apt upgrade -y
sudo apt install asciidoc bash bc binutils bzip2 fastjar flex gawk gcc genisoimage gettext git intltool jikespg libgtk2.0-dev libncurses5-dev libssl1.0-dev make mercurial patch perl-modules python2.7-dev rsync ruby sdcc subversion unzip util-linux wget xsltproc zlib1g-dev zlib1g-dev -y
git clone https://github.com/gl-inet/sdk.git
cd sdk
./download.sh ar71xx-1806
cd sdk/1806/ar71xx/
./scripts/feeds update -f
./scripts/feeds install libncurses protobuf
mkdir -p package/mosh/patches
cd package/mosh
wget https://raw.githubusercontent.com/openwrt/packages/master/net/mosh/Makefile
cd patches
 wget https://raw.githubusercontent.com/openwrt/packages/master/net/mosh/patches/010-ffs.patch
 wget https://raw.githubusercontent.com/openwrt/packages/master/net/mosh/patches/020-std.patch
cd ../../../
make package/mosh/compile V=s

got the server up and running, need to use --no-ssh-pty option for it to work for some reason.
tried to install the mosh client on slate as well but it seems to require openssh package so I gave up.

Many thanks for the help!

Try this?

https://oldwiki.archive.openwrt.org/inbox/replacingdropbearbyopensshserver

I eventually got the mosh client working on slate using dropbear:

install perlbase-text package

export TERM=xterm
export LC_ALL=en_US.UTF-8
mosh --experimental-remote-ip=local

gives a couple of warnings of unknown options on startup but seems to work ok.