33
submitted 3 days ago* (last edited 2 days ago) by ransomwarelettuce@lemmy.world to c/linux@lemmy.ml

Just like the title says I want to turn an old tablet of mine into an ereader.

The tablet in question is samsung galaxy tab 3 in which I installed postMarketOS.

I installed the console version, and once everything was set up I ssd into the machine and installed the following packages :

greetd, greetd-openrc, cage, fuse

Downloaded koreader app image into /bin/

Activated the greetd service

rc-update add greetd default

and configured /etc/greetd/config.toml with the following

[terminal]

vt = 1

[default_session]

command="agreety -c sh"
user="greeter"

[initial_session]

command="cage -s -d -- koreader"
user="me"

and rebooted the tablet, however I am still stuck with the login prompt no matter what I do.

Any tips on how fix this or a other way I could accomplish my goal?

Update

Got autologin working by ditching out greetd and using agetty, and a simple fortune command to run on startup.

After this I went for the kill and tried to install KOreader using flatpak, due to App Images not playing alright with Alpine. However I noticed something there is no arm build of KOreader for linux arm so my plans were cut short.

Will try to compile KOreader to linux arm if not successful will just put a nice UI and use the little guy as a portable hacking machine.

New update

KOreader was mess to compile so I looked for alternatives and found out foliate which fits my criteria (opds, epub and pdf support) and is in the alpine repos.

Played around with cage and got the thing somewhat working, however no virtual keyboard support for now, figuring that out now.

top 12 comments
sorted by: hot top controversial new old
[-] smeg@feddit.uk 4 points 2 days ago

You could try asking in !linuxphones@lemmy.ml, there's usually some good PostmarketOS knowledge over there

[-] ransomwarelettuce@lemmy.world 2 points 2 days ago

Will try to fix this later, but if not, might cross post, thx for the tip.

[-] just_another_person@lemmy.world 5 points 3 days ago

Did you check that your services are actually starting on boot?

[-] ransomwarelettuce@lemmy.world 1 points 3 days ago

Haven't used openrc in a while, but greetd is present and set as default when list the services, rc-update.

[-] just_another_person@lemmy.world 2 points 3 days ago

Okay, but are they actually running?

Login and check that the processes actually started, and check logs to see if they had any failures.

[-] cow@lemmy.world 4 points 3 days ago

App images don’t work on alpine. Use flat pack or run the app image in a chroot

[-] ransomwarelettuce@lemmy.world 3 points 2 days ago* (last edited 2 days ago)

mmm I am now reading on the whole shbangle related to AppImages, will switch to flapak. Been trying for now to get a simple echo to work will address the rest later. Gotta get back to it tomorrow, thanks for the warning !!!

[-] boredsquirrel@slrpnk.net 3 points 3 days ago

Very interesting project. Cage is a wayland kiosk, right?

But what about doing system updates and stuff like shutting down? KOReader doesnt have such an interface

[-] ransomwarelettuce@lemmy.world 2 points 3 days ago* (last edited 3 days ago)

Updates I can ssh into the thing since WiFi is working and turn off I use the power button might have to change some devrules because now it's long press is mapped to reboot a single nothing, but that should be about it.

* Yeah cage is an Wayland kiosk, and for what I tested in my main machine runs KOreader with no problem and should have a virtual keyboard.

[-] markstos@lemmy.world 2 points 2 days ago

Wasn’t the tablet already an eReader?

[-] ransomwarelettuce@lemmy.world 2 points 2 days ago* (last edited 2 days ago)

Yeah let's just say that android 4.x isn't that great.

Could try to flash a custom ROM with a more up-to-date version of android but the 1GB of ram would not help.

Going for the minimal solution with KOreader and Alpine/PostMarketOS might be the best way to bring this buddy back to an useful state.

[-] lurch@sh.itjust.works 1 points 3 days ago* (last edited 3 days ago)

maybe koreader has an error and that causes the autologin session to end and you go to login.

another problem could be another login thingy started first and greetd can't use the tty. check inittab

this post was submitted on 27 Jun 2024
33 points (100.0% liked)

Linux

45418 readers
1878 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS