![]() |
#1171 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Nov 2023
Device: Paperwhite 5
|
@NiLuJe,
If we enable SSH over WIFI and enable USBnet start at boot, will SSH over USB also work? I.e. will SSH over USB still work if WIFI daemon fail to start for any reason? |
![]() |
![]() |
![]() |
#1172 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
There's still a single daemon, so it's irrelevant.
What it *will* affect is that enabling SSH over WiFi *requires* valid authentication, unlike the defaults. So, make sure you have a working keypair setup first. |
![]() |
![]() |
![]() |
#1173 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,510
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
In Battery Status was able to change the Temperature units with:
Code:
eips_print_bottom_centered "Temperature: $(gasgauge-info -k)°C ($(printf "%.*f" "2" "$(echo "$(gasgauge-info -k | awk '{print $1}')" | awk '{print ($1 * (9/5) + 32)}')") °F)" 1 I am not sure how to nicely truncate units, take only value, divide by 1000 and attach unit. Should be trivial, I'll give it a try ![]() Last edited by mergen3107; 11-24-2023 at 07:19 PM. |
![]() |
![]() |
![]() |
#1174 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,510
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
Alright, here is the fixed version. Tested on 5.16.2.
I also put it in the root of KUAL menu. |
![]() |
![]() |
![]() |
#1175 |
Trans girl (she/her)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 73380
Join Date: Nov 2023
Device: KOA3 5.13.6 JB
|
I'm thinking about how to adapt this to oasis3 but without changing the scribe version and how to center the text to the colons...
|
![]() |
![]() |
![]() |
#1176 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Nov 2023
Device: Paperwhite 5
|
Whats the most earliest point in boot process where one can start any SSH server (e.g. Dropbear)?
At what point in boot process network protocols are initialized? Is it initialized in the kernel or by some daemon? Any other dependencies needed for Dropbear/SSH? For specificity we can concentrate on KT2 or higher. Are there any library dependencies for Dropbear? |
![]() |
![]() |
![]() |
#1177 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
USBNet should already be running as early as I deemed safe the last time I looked at the upstart depgraph (which, granted, was years and years ago).
You're welcome to revisit that, but fair warning: upstart's can be pretty annoying to deal with, and fucking things up *will* soft-brick a device. TL;DR: Don't play with this on a device without serial access. |
![]() |
![]() |
![]() |
#1178 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Nov 2023
Device: Paperwhite 5
|
Thank you for your response.
My question isn't really about USBnet, but rather if there's any way to get any console over USB earlier in boot process? (doesn't have to be SSH) I'm not going to move USBnet priority in upstart, but rather hope to add smth very simple, hopefully not even requiring network. Is there a way to organize communication over USB w/o TCP/IP stack similar to serial protocol? Is there any protocol for USB supported by kernel? (3.xxx I guess in KT2) |
![]() |
![]() |
![]() |
#1179 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Nov 2023
Device: Paperwhite 5
|
Whats the file name of USB port in say KT2?
Couldn't find any device containing "usb" string. |
![]() |
![]() |
![]() |
#1180 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,510
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
Quote:
This only happens when I have `Enable SSH on boot` in USB Network. Can this be fixed? |
|
![]() |
![]() |
![]() |
#1181 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,510
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
What logs can I provide you?
|
![]() |
![]() |
![]() |
#1182 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,510
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
I found this in the USBnet README_FIRST.txt file:
Keep in mind that OpenSSH will *ALWAYS* check the passwords, unlike dropbear in non-wifi mode, so, make sure you auth via shared keys, or have switched/know your passwords! (Hint: run kindletool info $(cat /proc/usid) on your device ![]() On my Kindle Scribe 5.16.2 it shows: Code:
[root@kindle root]# kindletool info $(cat /proc/usid) Unknown device 23M (0x875). I mean, I don't need the password since since I am using ssh-key pair, but maybe usbnet relies on this to be found at some point? |
![]() |
![]() |
![]() |
#1183 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,510
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
I enabled verbose mode in USBnet.
1) In normal restart without cable, after the **** JAILBREAK **** meassage under the boy under the tree, it says "N Switching from mass storage to usbnet", then two more lines (something like "starting sshd" and something about iptables). 2) With the cable, it only shows the first line, "N Switching from mass storage to usbnet". How else can I see what is going on? |
![]() |
![]() |
![]() |
#1184 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
|
![]() |
![]() |
![]() |
#1185 | |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Quote:
1/ Yes. 2/ It probably does the same but the backlog and/or timing is different so what ends up being *visible* is different. (There are only three lines available, and different hacks, or even different parts of a single hack can step over each other. i.e., it's not the source of truth, it's just a general indication of "something happened"). |
|
![]() |
![]() |
![]() |
Tags |
hacks, kindle, niluje |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
I removed the hacks, installed 3.1, then new hacks, and now Kindle is dead | cloudyvisions | Amazon Kindle | 55 | 11-29-2023 07:27 PM |
Tools Snapshots of Coplate's packages | coplate | Kindle Developer's Corner | 104 | 10-23-2022 11:41 PM |
NiLuJe offline? | picree | Kindle Developer's Corner | 1 | 09-28-2016 10:29 PM |
Snapshots test in Live version | Michele Clinco | OpenInkpot | 7 | 09-08-2009 02:42 PM |