Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-01-2022, 12:36 PM   #211
iandol
Enthusiast
iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.iandol ought to be getting tired of karma fortunes by now.
 
iandol's Avatar
 
Posts: 33
Karma: 216612
Join Date: Feb 2022
Device: Kobo Nia
OK, here were the steps I needed to get key-only ssh access to work:
  1. on my computer generate a simple key-pair:
    Code:
    ssh-keygen -f ~/.ssh/kobo
    the default settings work for dropbear ok...
  2. The contents of the public key must be copied into a single line of the file:
    Code:
    /usr/local/niluje/usbnet/etc/authorized_keys
    ... this didn't exist so I had to make (touch) the file first then edit it, I used nano to copy and paste from the output of
    Code:
    cat ~/.ssh/kobo.pub
    from my computer. This file should contain your public key contents on a single line.
  3. Then I needed to edit:
    Code:
    nano /usr/local/stuff/bin/stuff-daemons.sh
    and uncomment the line
    Code:
     SSHD_OPTS="${SSHD_OPTS} -s"
    and I also commented out line
    Code:
    #SSHD_OPTS="${SSHD_OPTS} -n"
  4. I didn't need telnet, and to disable it you have to make a file in a folder:
    Code:
    touch /usr/local/niluje/usbnet/etc/NO_TELNET
  5. Reboot the device.
  6. To use this key:
    Code:
    ssh -i ~/.ssh/kobo root@my.ip.add
iandol is offline   Reply With Quote
Old 04-20-2022, 11:20 AM   #212
visionary
Member
visionary began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2022
Device: Kobo Libra 2
Kobo processes

Hi all,

I am trying to put together something similar to this project:
https://github.com/Mavireck/Kobo-Dashboard

In the code, there is a script that turns off a bunch of Kobo processes:
Code:
# Stop kobo software because it's running
killall nickel hindenburg sickel fickel fmon > /dev/null 2>&1
Could someone elaborate what each of these processes does? From some searches I've come up with the following:
  • Nickel - default ebook manager and reader
  • Hindenburg - ?
  • Sickel - watchdog process? (https://blog.the-ebook-reader.com/20...booting-issue/)
  • Fickel - daemon process that dispatches events from iwlib to a named pipe that the KoboWireless Reader listens on.
  • Fmon - A daemon for launching programs on the Kobo e-readers.

What I'm really interested in figuring out is how to disable the default home page on the Kobo, and to stop the clock from being updated.

Thanks in advance.
visionary is offline   Reply With Quote
Advert
Old 04-20-2022, 05:38 PM   #213
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Hindenburg is the crash handler (for... obvious reasons ^^) .

Fickel is barely used anymore.

The basic idea is that if you want to kill nickel, you *have* to kill the full set of *el daemons + hindenburg to avoid sickel throwing a tantrum .

(PS: The canonical source for that list is the KOReader startup script, as how the environment of whatever kills nickel is set dictates whether you'll be able to restart it sanely without having to reboot).
NiLuJe is online now   Reply With Quote
Old 04-21-2022, 09:56 AM   #214
visionary
Member
visionary began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2022
Device: Kobo Libra 2
Quote:
Originally Posted by NiLuJe View Post
Hindenburg is the crash handler (for... obvious reasons ^^) .

Fickel is barely used anymore.

The basic idea is that if you want to kill nickel, you *have* to kill the full set of *el daemons + hindenburg to avoid sickel throwing a tantrum .

(PS: The canonical source for that list is the KOReader startup script, as how the environment of whatever kills nickel is set dictates whether you'll be able to restart it sanely without having to reboot).
Lol...I guess I should have figured out hindenburg

Perfect thanks for the info, especially the list of processes to bring down with nickel.
visionary is offline   Reply With Quote
Old 02-13-2023, 03:09 PM   #215
Aaron2222
Junior Member
Aaron2222 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2023
Device: Kobo Sage
Quote:
Originally Posted by iandol View Post
OK, here were the steps I needed to get key-only ssh access to work:
  1. on my computer generate a simple key-pair:
    Code:
    ssh-keygen -f ~/.ssh/kobo
    the default settings work for dropbear ok...
  2. The contents of the public key must be copied into a single line of the file:
    Code:
    /usr/local/niluje/usbnet/etc/authorized_keys
    ... this didn't exist so I had to make (touch) the file first then edit it, I used nano to copy and paste from the output of
    Code:
    cat ~/.ssh/kobo.pub
    from my computer. This file should contain your public key contents on a single line.
  3. Then I needed to edit:
    Code:
    nano /usr/local/stuff/bin/stuff-daemons.sh
    and uncomment the line
    Code:
     SSHD_OPTS="${SSHD_OPTS} -s"
    and I also commented out line
    Code:
    #SSHD_OPTS="${SSHD_OPTS} -n"
  4. I didn't need telnet, and to disable it you have to make a file in a folder:
    Code:
    touch /usr/local/niluje/usbnet/etc/NO_TELNET
  5. Reboot the device.
  6. To use this key:
    Code:
    ssh -i ~/.ssh/kobo root@my.ip.add
I also ended up doing the same. Though given /usr/local/stuff/bin/stuff-daemons.sh has been modified, would those changes get overridden on an update with update-kobostuff?
Aaron2222 is offline   Reply With Quote
Advert
Old 02-13-2023, 07:09 PM   #216
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by Aaron2222 View Post
Though given /usr/local/stuff/bin/stuff-daemons.sh has been modified, would those changes get overridden on an update with update-kobostuff?
They will, yeah.

(Hopefully, said update will come Soon(TM)).
NiLuJe is online now   Reply With Quote
Old 01-06-2024, 12:02 PM   #217
Scrath
Junior Member
Scrath began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2022
Device: Kobo Clara 2E
Hey,
sorry if this is kind of a stupid question but how I would I go about password protecting the root SSH access?

I tried logging in as the root user and setting a password for that user using the passwd command but either the password wasn't set for some reason or it isn't checked when logging in over SSH because I can still connect without a password.

There is a second user called admin but I was kind of scared about just changing random user passwords around because I don't know if that could end up with my reader bricked.

On an unrelated sidenote I can confirm for any potential future readers that these tools still seem to work on a Kobo Clara 2E.

Last edited by Scrath; 01-06-2024 at 12:06 PM.
Scrath is offline   Reply With Quote
Old 01-08-2024, 02:21 PM   #218
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@Scrath:

c.f., the comments around `SSHD_OPTS` in `/usr/local/stuff/bin/stuff-daemons.sh`

You might also want to disable telnet, which is also patched for passwordless logins.
NiLuJe is online now   Reply With Quote
Reply

Tags
ssh, telnet, tools


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Package with console tools CGarces Development 0 09-06-2013 05:04 PM
Combined Tools Package Lizj1 Plugins 5 01-11-2013 10:32 AM
USBNetwork USB Driver & Telnet on Windows XP SP3 namati Kindle Developer's Corner 0 02-24-2012 01:20 AM
Instruction to get root on 60x/90x + remote telnet & FTP mamaich PocketBook 17 08-27-2011 07:41 PM


All times are GMT -4. The time now is 01:18 PM.


MobileRead.com is a privately owned, operated and funded community.