Giter VIP home page Giter VIP logo

remarkable_entware's Introduction

reMarkable Entware

This is a modified installer for Entware, a lightweight package manager and software repo for embedded devices.

If you'd like to install reMarkable specific packages, you should install Toltec instead, which includes the Entware repositories. WARNING: you may softbrick your device when installing Toltec if Toltec does not support your current version.

See a list of available packages here and here.

Installation

Connect the reMarkable via USB and make sure it has internet access.

Connect to the reMarkable with SSH and execute

wget -O - http://raw.githubusercontent.com/Evidlo/remarkable_entware/master/install.sh | sh

All entware data is located in /opt (which actually points to /home/root/.entware because of size constraints on the root partition). Base installation is ~13MB.

Examples

opkg install git
opkg find '*top*'    # search package names and descriptions

After a reMarkable update

reMarkable updates wipe out everything outside of /home/root. While Entware remains intact in /home/root/.entware, the mount over /opt has to be recreated with entware_reenable.sh.

wget -O - http://raw.githubusercontent.com/Evidlo/remarkable_entware/master/reenable.sh | sh

No space left on device

You can clean up logfiles which take up considerable space on the root partition.

journalctl --vacuum-size=2M

remarkable_entware's People

Contributors

chrisdonlan avatar damienchallet avatar eeems avatar evidlo avatar linuscde avatar siraben avatar thelastzombie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

remarkable_entware's Issues

bug when installing cron

"opkg install" is installing only crontab, and corn (daemon) is not installed.
crontab without cron.d will not work

in comparison, toltec is installing both corn and crontab

Add binaries to PATH when using ssh

It seems I can't change the PATH variable for ssh commands without login.
I added the line PATH=/opt/bin:/opt/sbin:$PATH to the ~/.bashrc and when logged in this is displayed:

reMarkable: ~/ echo $PATH
/opt/bin:/opt/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin

But when running the command without login this is displayed:

$ ssh root@$rssh_ip 'echo $PATH'
/usr/bin:/bin

I tried

  • changing the line in the ~/.bashrc to export PATH=/opt/bin:/opt/sbin:$PATH
  • sourcing ~/.bashrc in ~/.bash_profile
  • sourcing ~/.bashrc in /etc/bash.bashrc

Can someone help?

Wget is not compiled with HTTPS; a manual install of entware's wget-ssl does not resolve

This is an issue I am running into following the README. I have successfully installed opkg and am hitting the entware server over http successfully.

# installing wget-ssl manually over http works
 wget http://bin.entware.net/armv7sf-k3.2/wget-ssl_1.21.3-1_armv7-3.2.ipk
# arrives on drive

# installs and assures that everything is current
opkg install wget-ssl_1.21.3-1_armv7-3.2.ipk

Yet nothing will download over https. This means that tasks like opkg update fail:

reMarkable: ~/ opkg update
Downloading https://bin.entware.net/armv7sf-k3.2/Packages.gz
*** Failed to download the package list from https://bin.entware.net/armv7sf-k3.2/Packages.gz

Collected errors:
 * opkg_download: Failed to download https://bin.entware.net/armv7sf-k3.2/Packages.gz, wget returned 1.

When manually fetching files over https with wget, the error has more information:

reMarkable: ~/ wget  https://bin.entware.net/armv7sf-k3.2/Packages.gz
https://bin.entware.net/armv7sf-k3.2/Packages.gz: HTTPS support not compiled in.

However both wget-nossl and wget-ssl are installed and at the most current available version.

I'll post what I figure out here.

Installer script doesn't have enough space to create /opt

Hey

I'm attempting to install Entware on my reMarkable, running Version 1.8.1.1 and the installer complaints that /opt cannot be created due to insufficient space available.

remarkable: ~/ sh entware_install.sh 
Info: Checking for prerequisites and creating folders...
mkdir: can't create directory '/opt': No space left on device
Encountered error.  Cleaning up and quitting...

It seems that with the new update, 100% of the root partition is used:

remarkable: ~/ df -m /
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/root                  214       210         0 100% /

cd /home before cp opt.mount

The install script contains cd /opt/lib
[...]
cp opt.mount /etc/systemd/system/
systemctl daemon-reload
systemctl enable opt.mount

cp command fails, please add cd /home before the cp line.

Add License

What is this licensed under? I just see a copyright in the code.

Installation error

Is this error related to the network? Should I download on my laptop and transfer files by myself?

Info: Checking for prerequisites and creating folders...
Info: Opkg package manager deployment...
Connecting to pkg.entware.net (95.216.57.164:80)
opkg                 100% |******************************************************************************************|   124k  0:00:00 ETA
Connecting to pkg.entware.net (95.216.57.164:80)
opkg.conf            100% |******************************************************************************************|   142   0:00:00 ETA
Connecting to pkg.entware.net (95.216.57.164:80)
ld-2.23.so           100% |******************************************************************************************|   139k  0:00:00 ETA
Connecting to pkg.entware.net (95.216.57.164:80)
libc-2.23.so         100% |******************************************************************************************|  1198k  0:00:00 ETA
Connecting to pkg.entware.net (95.216.57.164:80)
libgcc_s.so.1        100% |******************************************************************************************| 39632   0:00:00 ETA
Info: Basic packages installation...
Downloading http://pkg.entware.net/binaries/armv7/Packages.gz.
wget: error while loading shared libraries: libc.so.6: internal error
Collected errors:
 * opkg_download: Failed to download http://pkg.entware.net/binaries/armv7/Packages.gz, wget returned 127.
Unknown package 'entware-opt'.
Collected errors:
 * opkg_install_cmd: Cannot install package entware-opt.
wget: error while loading shared libraries: libc.so.6: internal error
ln: error while loading shared libraries: libc.so.6: internal error
ln: error while loading shared libraries: libc.so.6: internal error
ln: error while loading shared libraries: libc.so.6: internal error
ln: error while loading shared libraries: libc.so.6: internal error
ln: error while loading shared libraries: libc.so.6: internal error
Downloading http://pkg.entware.net/binaries/armv7/Packages.gz.
wget: error while loading shared libraries: libc.so.6: internal error
Collected errors:
 * opkg_download: Failed to download http://pkg.entware.net/binaries/armv7/Packages.gz, wget returned 127.
dirname: error while loading shared libraries: libc.so.6: internal error
cp: error while loading shared libraries: libc.so.6: internal error
systemctl: error while loading shared libraries: libgcc_s.so.1: internal error
systemctl: error while loading shared libraries: libgcc_s.so.1: internal error
Info: Congratulations!
Info: If there are no errors above then Entware has been installed.
Info: Add /opt/bin & /opt/sbin to your PATH variable

Installation error: Computed hash did not match

When installing on RM2 with version 3.13.1.1, I am getting this error:

root@reMarkable:~# wget -O - http://raw.githubusercontent.com/Evidlo/remarkable_entware/master/install.sh | sh
Connecting to raw.githubusercontent.com (185.199.111.133:80)
Connecting to raw.githubusercontent.com (185.199.109.133:443)
wget: note: TLS certificate validation not implemented
writing to stdout
Info: Checking for prerequisites and creating folders...
-                    100% |******************************************************************************************************************************************|  3736  0:00:00 ETA
written to stdout
Info: Opkg package manager deployment...
Connecting to bin.entware.net (158.160.45.54:80)
saving to '/opt/bin/opkg'
opkg                 100% |******************************************************************************************************************************************|  734k  0:00:00 ETA
'/opt/bin/opkg' saved
Connecting to bin.entware.net (158.160.45.54:80)
saving to '/opt/etc/opkg.conf'
opkg.conf            100% |******************************************************************************************************************************************|   171  0:00:00 ETA
'/opt/etc/opkg.conf' saved
Connecting to bin.entware.net (158.160.45.54:80)
saving to '/opt/lib/ld-2.27.so'
ld-2.27.so           100% |******************************************************************************************************************************************|  131k  0:00:00 ETA
'/opt/lib/ld-2.27.so' saved
Connecting to bin.entware.net (158.160.45.54:80)
saving to '/opt/lib/libc-2.27.so'
libc-2.27.so         100% |******************************************************************************************************************************************| 1218k  0:00:00 ETA
'/opt/lib/libc-2.27.so' saved
Connecting to bin.entware.net (158.160.45.54:80)
saving to '/opt/lib/libgcc_s.so.1'
libgcc_s.so.1        100% |******************************************************************************************************************************************| 46752  0:00:00 ETA
'/opt/lib/libgcc_s.so.1' saved
Connecting to bin.entware.net (158.160.45.54:80)
saving to '/opt/lib/libpthread-2.27.so'
libpthread-2.27.so   100% |******************************************************************************************************************************************| 92656  0:00:00 ETA
'/opt/lib/libpthread-2.27.so' saved
cat: read error: Is a directory
Computed hash did not match.
root@reMarkable:~# 

No packages found

There's nothing when I try to search packages:

remarkable: ~/ opkg search '*shadow*'
remarkable: ~/ opkg search '*top*'

Here's the information of opkg:

remarkable: ~/ opkg -v
opkg version 0.1.8
remarkable: ~/ which opkg
/opt/bin/opkg

Instructions to reset after a failed install?

My first attempt to run the installer glitched for some reason, on my RM3 running 3.9.something. Attempting to re-run it, I'b being told Error: Folder /opt exists! Quitting...

If I attempt to rm -rf /opt, I'm told rm: can't remove '/opt': Device or resource busy

Rebooting the ReMarkable does not solve this; I'm still told /opt is busy.

ls -al /opt shows it as empty.

How can I reset in order to run a fresh install attempt?

(For context: What I'm trying to do is fill in some of the things that codexctl apparently has as prerequisites, so I can use it to roll back far enough to install toltec...

wget: read error: Connection reset by peer

I have tried running the install script, and got the following output:

reMarkable: ~/ wget -O - https://raw.githubusercontent.com/Evidlo/remarkable_
entware/master/install.sh | sh
Connecting to raw.githubusercontent.com (185.199.108.133:443)
wget: note: TLS certificate validation not implemented
writing to stdout
Info: Checking for prerequisites and creating folders...
-                    100% |*****************************|  3700  0:00:00 ETA
written to stdout
Info: Opkg package manager deployment...
Connecting to bin.entware.net (172.67.212.134:80)
saving to '/opt/bin/opkg'
opkg                 100% |*****************************|  734k  0:00:00 ETA
'/opt/bin/opkg' saved
Connecting to bin.entware.net (172.67.212.134:80)
saving to '/opt/etc/opkg.conf'
opkg.conf            100% |*****************************|   171  0:00:00 ETA
'/opt/etc/opkg.conf' saved
Connecting to bin.entware.net (172.67.212.134:80)
saving to '/opt/lib/ld-2.27.so'
ld-2.27.so           100% |*****************************|  131k  0:00:00 ETA
'/opt/lib/ld-2.27.so' saved
Connecting to bin.entware.net (172.67.212.134:80)
saving to '/opt/lib/libc-2.27.so'
libc-2.27.so         100% |*****************************| 1218k  0:00:00 ETA
'/opt/lib/libc-2.27.so' saved
Connecting to bin.entware.net (172.67.212.134:80)
saving to '/opt/lib/libgcc_s.so.1'
wget: read error: Connection reset by peer
Encountered error.  Cleaning up and quitting...

I'm somewhat confused that it seems to fail midway through. I have tried rerunning the command, it seems to always fail when downloading libgcc_s.so.1 in particular.

opkg fails to install any reMarkable-specific packages

I've tried installing entware on 2.1.1.3 (after bricking and recovering) and also on 2.9.1.236. I note during the middle of installation I get:

Connecting to bin.entware.net (104.21.91.83:80)
saving to '/opt/lib/libgcc_s.so.1'
libgcc_s.so.1        100% |**********************************************************************************************| 50848  0:00:00 ETA
'/opt/lib/libgcc_s.so.1' saved
Connecting to bin.entware.net (104.21.91.83:80)
saving to '/opt/lib/libpthread-2.27.so'
libpthread-2.27.so   100% |**********************************************************************************************| 92656  0:00:00 ETA
'/opt/lib/libpthread-2.27.so' saved
cat: read error: Is a directory                                           <----------------this line
pass
Downloading http://bin.entware.net/armv7sf-k3.2/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Downloading https://toltec.delab.re/stable/Packages.gz
wget: note: TLS certificate validation not implemented
Updated list of available packages in /opt/var/opkg-lists/toltec
Installing entware-opt (227000-3) to root...

once installed, opkg does not have access to any of the apps listed at https://toltec-dev.org/stable/
it only has access to the packages at http://bin.entware.net/armv7sf-k3.2/
(These are the pages linked in the README.md as "See a list of available packages here and here."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.