Skip to content

Commit 2067e2e

Browse files
authored
Merge pull request #55 from chrizzo-hb/main
Improved SSH and ScummVM doc
2 parents 12a06dc + eeaa0be commit 2067e2e

File tree

3 files changed

+105
-15
lines changed

3 files changed

+105
-15
lines changed

docs/configure/ssh.de.md

+24-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,36 @@
11
# :material-console: SSH
22

3-
Als fortgeschrittener Nutzer möchtest du möglicherweise auf die Kommandozeile (oder Shell) deines KNULLI-Gerätes zugreifen, um Linux-Befehle direkt eingeben zu können. KNULLI stellt dafür einen SSH-Zugang bereit. Es gibt viele verschiedene SSH-Clients, die du nutzen kannst, um Zugriff auf die Shell deines KNULLI-Gerätes zu erhalten. Für Windows-Nutzer empfehlen wir [SmarTTY](https://sysprogs.com/SmarTTY) oder [PuTTY](https://www.putty.org).
3+
Als fortgeschrittener Nutzer möchtest du möglicherweise auf die Kommandozeile (oder Shell) deines KNULLI-Gerätes zugreifen, um Linux-Befehle direkt eingeben zu können. KNULLI stellt dafür einen SSH-Zugang bereit. Es gibt viele verschiedene SSH-Clients, die du nutzen kannst, um Zugriff auf die Shell deines KNULLI-Gerätes zu erhalten. Für Windows-Nutzer empfehlen wir [SmarTTY](https://sysprogs.com/SmarTTY) (das sogar Dateiübertragungen möglich macht) oder [PuTTY](https://www.putty.org).
44

5-
Um mit deinem KNULLI-Gerät eine SSH-Verbindung aufzubauen, musst du das Gerät zuerst mit deinem lokalen Netzwerk verbinden, wie im Abschnitt [Netzwerkverbindungen](../networking) beschrieben.
5+
Es ist allerdings auch möglich, den SSH-Client zu verwenden, der bereits in dein Betriebssystem integriert ist: Die meisten Linux-Distributionen und modernen Windows-Versionen enthalten bereits ein SSH-Programm, das auf der Kommandozeile ausgeführt werden kann.
66

7-
Um die SSH-Verbindung aufzubauen benötigst du dann die folgenden Informationen:
7+
Um auf dein KNULLI-Gerät via SSH zuzugreifen, musst du das Gerät zuerst mit deinem lokalen Netzwerk verbinden, wie im Abschnitt [Netzwerkverbindungen](../networking) beschrieben und anschließend eine SSH-Verbindung aufbauen, wie in den folgenden Abschnitten beschrieben.
8+
9+
## Benötigte Informationen
10+
11+
Um die SSH-Verbindung aufzubauen benötigst du die folgenden Informationen:
812

913
* Host: Entweder der Hostname deines KNULLI-Gerätes (der Standard-Hostname lautet `KNULLI`) oder die aktuelle IP-Adresse (drücke ++"Start"++ und wähle *Network settings* um deine aktuelle IP-Adresse einzusehen)
1014
* Username: `root`
1115
* Passwort: Dein aktuelles Root-Passwort (drücke ++"Start"++ und wähle *System settings* und dann *Security* um dein aktuelles Root-Passwort einzusehen, das Standardpasswort lautet `linux`)
1216

17+
## Option 1: Den integrierten SSH-Kommandozeilenbefehl verwenden
18+
19+
* Öffne ein Terminal bzw. eine Konsole auf deinem Computer.
20+
* Windows-Nutzer können sowohl das neue Windows Terminal als auch die klassische Eingabeaufforderung (CMD) oder die PowerShell nutzen.
21+
* Linux-Nutzer wissen normalerweise eh, wie man die Kommandozeile auf ihrem Gerät benutzt.
22+
* Tippe
23+
```
24+
ssh root@knulli
25+
```
26+
und bestätigte mit ++"Enter"++. (Falls du den Hostnamen deines KNULLI-Gerätes geändert hast, musst du `knulli` mit deinem Hostnamen oder der IP-Adresse deines KNULLI-Geräts ersetzen.)
27+
* Falls du nach Fingerabdrücken gefragt wirst, kannst du das einfach bestätigen.
28+
* Sobald du danach gefragt wirst, gib dein Passwort ein und bestätige.
29+
* Nachdem das Passwort überprüft wurde, solltest du mit deinem Gerät via SSH verbunden sein.
30+
* Wenn du mit deinen SSH-Arbeiten fertig bist, kannst du die Verbindung trennen, indem du `exit` eintippst und bestätigst.
31+
32+
## Option 2: Ein eigenständiges SSH-Programm verwenden
33+
1334
Um eine SSH-Verbindung via SmarTTY aufzubauen, installiere das Programm, starte es und folge diesen Schritten:
1435

1536
<table>

docs/configure/ssh.md

+23-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,36 @@
11
# :material-console: SSH
22

3-
As an advanced user, you might want to access the command line (or shell) of your KNULLI device to enter Linux commands directly. You may do so by connecting to KNULLI via SSH. There are several SSH clients available. For Windows users, we recommmend [SmarTTY](https://sysprogs.com/SmarTTY) or [PuTTY](https://www.putty.org).
3+
As an advanced user, you might want to access the command line (or shell) of your KNULLI device to enter Linux commands directly. You may do so by connecting to KNULLI via SSH. There are several SSH clients available. For Windows users, we recommmend [SmarTTY](https://sysprogs.com/SmarTTY) (which is also able to do file transfers) or [PuTTY](https://www.putty.org).
44

5-
To connect to your KNULLI device via SSH, simply connect the device to your local network as described in the [Networking](../networking) section.
5+
However, it is also possible to simply use the SSH client which is already integrated in your operating system: Most Linux distributions and modern Windows versions come with a SSH command line tool.
6+
7+
To connect to your KNULLI device via SSH, simply connect the device to your local network as described in the [Networking](../networking) section and establish the SSH connection as explained below.
8+
9+
## Required information
610

711
When establishing your SSH connection, you will need the following information:
812

913
* Host: Either the hostname of your KNULLI device (default is `KNULLI`) or the current IP address (press ++"Start"++ and go to *Network settings* to find your current IP address)
1014
* Username: `root`
1115
* Password: Your current root password (press ++"Start"++ and go to *System settings* and *Security* to find your current root password, default is `linux`)
1216

17+
## Option 1: Using SSH from the command line
18+
19+
* Open a command line/terminal on your computer.
20+
* Windows users can use the new Windows Terminal, classic CMD, or PowerShell.
21+
* Linux users probably know their way around the command line anyway.
22+
* Type
23+
```
24+
ssh root@knulli
25+
```
26+
and confirm by pressing ++"Enter"++. (If you changed the hostname of your KNULLI device, you might need to replace `knulli` with the hostname you chose or the IP address of your KNULLI device.)
27+
* If asked, you may confirm fingerprinting.
28+
* When asked, type your password and confirm.
29+
* After the password was verified, you should be connected to your device via SSH.
30+
* Once you are done with SSH, you can quit the SSH client by typing `exit` and confirming.
31+
32+
## Option 2: Using a standalone SSH client tool
33+
1334
To establish a SSH connection via SmarTTY, install and launch the program, then follow these steps:
1435

1536
<table>

docs/systems/scummvm.md

+58-10
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,78 @@ ScummVM is a collection of virtual machines and re-implementations of game engin
88

99
However, KNULLI also supports connecting a mouse via Bluetooth, as explained in the [Controls](../../configure/controls) section.
1010

11+
## Standalone and RetroArch ScummVM
12+
13+
KNULLI comes with two different ScummVM emulators: The RetroArch-integrated ScummVM core (`libretro:scummvm`) and the standalone ScummVM (`scummvm`). Both work fine on most KNULLI-driven handhelds, however, some of the more demanding games might run a little better on the **standalone** version.
14+
15+
Both versions come with the ScummVM launcher which relies on a `scummvm.ini` file to keep all the game-specific settings, however, both versions work slightly different:
16+
17+
* **Standalone** ScummVM
18+
* keeps its `scummvm.ini` in `system/.config/scummvm`.
19+
* will **only** launch games from EmulationStation which have been added to `scummvm.ini`
20+
* either by manually editing the file or
21+
* by adding the games from the **standalone** launcher.
22+
* **Libretro** ScummVM
23+
* keeps its `scummvm.ini` in `bios`.
24+
* will launch games from EmulationStation **without** adding them to the `scummvm.ini`.
25+
* will **not** memorize game-specific settings for games which are launched from EmulationStation.
26+
27+
!!! info "Updated version coming soon"
28+
We already adopted a recent update to Batocera, which improved the behavior of the **libretro** ScummVM emulator. With every KNULLI build **after** August 19th 2024, **libretro** ScummVM will memorize game specific settings if the game was added to `scummvm.ini`, either by manually editing the file or by adding the games from the **standalone** launcher. To call the came as configured in the `scummvm.ini`, the `.scummvm` file needs to **contain** the **exact launcher ID**.
29+
1130
## Adding ScummVM games
1231

13-
Unlike most other systems, your ScummVM games need a little adjustment to be run on your KNULLI device.
32+
Unlike most other systems, your ScummVM games need a little adjustment to be run on your KNULLI device. This guide will help you to set up your ScummVM games properly. To do so, it is required that you understand the difference between the **game ID** and the **launcher ID** of ScummVM.
33+
34+
### Game IDs
35+
36+
Within ScummVM, each game has a dedicated **game ID** that consists of two parts: The ID of the **engine** (or developer) and the ID of the **game** within that engine. Those two values are combined, separated by the `:` character. For example, classic LucasArts adventures run in the SCUMM engine, which has the ID `scumm`. Within that engine, "Indiana Jones And The Fate Of Atlantis" by LucasArts has the ID `atlantis`. Consequently, the **game ID** of "Indiana Jones And The Fate Of Atlantis" is `scumm:atlantis`.
37+
38+
The game "Atlantis: The Lost Tales" by Cryo also goes by `atlantis`, however, the engine for that game has the ID `cryomni3d`, so the **game ID** of "Atlantis: The Lost Tales" is `cryomni3d:atlantis`.
39+
40+
### Launcher IDs
1441

15-
### Step 1: Find out the game ID
42+
When adding a game to the ScummVM launcher (e.g., on your computer or on your emulation device), the game receives another ID - the **launcher ID**. By default, the launcher ID **usually** corresponds to the game-part (the part after the `:`) of the **game ID**, sometimes **followed** by a set of **modifiers** that indicates a language or other version information.
1643

17-
Within ScummVM, every supported game has an **ID**. You will need to find out the ScummVM ID of your game in order to run it on KNULLI. You can do so by opening *ScummVM* on your local PC and have a look at the *Game* tab in the *Game Settings* of each game. Alternatively, you can check out the [compatibility chart at the ScummVM website](https://www.scummvm.org/compatibility/). You will find the game ID in the *ScummVM ID* column. (You only want the part after the colon (`:`), e.g., `comi` from `scumm:comi` for "The Curse Of Monkey Island".)
44+
For example, "Broken Sword" has the **game ID** `sword1:sword1`, the german Windows version of the game gets the **launcher ID** `sword1-win-de` by default. However, it is also possible to add **the same game** multiple times to the ScummVM launcher. In this case, the launcher ID receives a numerical suffix, for example, a second instance of "Broken Sword" would receive the **launcher ID** `sword1-win-de-1`.
1845

19-
!!! info "Some games exist in different versions"
46+
### Step 1: Find out the (default) launcher ID
2047

21-
Be aware that some games have different IDs for different versions, e.g., localized versions, usually indicated by a suffix to the original game ID. For example, the main (US) version of "Day Of The Tentacle" has the ID `tentacle`, the German version has the ID `tentacle-de`.
48+
To run your ScummVM game on KNULLI, you will need to find out the (default) **launcher ID** of the ScummVM game. You can do this by adding the game to the ScummVM launcher on your computer or on your handheld device. Afterwards, go to the *Game Options*, find the *Game* tab and take a look at the *ID* field.
49+
50+
!!! info "Open ScummVM launcher on your device"
51+
The launcher will pop up automatically if you try to launch a game that does not exist. For the **standalone** ScummVM launcher, you need to make sure that *Emulator* is set to `scummvm` in the *Game Settings* (or *System Settings*). Likewise, you will need to set *Emulator* to `libretro:scummvm` if you want to configure the **RetroArch-integrated** ScummVM.
52+
In both cases, create a `.scummvm` file for a game you know not to exist (e.g., `scummvm-launcher.scummvm`) and launch it from EmulationStation to bring up the launcher.
2253

2354
### Step 2: Add your game files
2455

25-
In the [`userdata` folder](../../play/add-games/game-storage), go to `roms`, then go to `scummvm`. Inside this folder, create a subfolder for every game you want to add. Even though you can name the folder however you want, we suggest to name the folder like the game ID, e.g. `roms/scummvm/comi`.
56+
In the [`userdata` folder](../../play/add-games/game-storage), go to `roms`, then go to `scummvm`. Inside this folder, create a subfolder for every game you want to add. You can name the folder however you want.
2657

2758
Depending on the game, you will need some files from your original copy of the game to run it with ScummVM. Have a look at the [Supported Games section of the ScummVM wiki](https://wiki.scummvm.org/index.php?title=Category:Supported_Games) to figure out, which files you will need to run your game and add them to the folder you just created, just as explained in the ScummVM wiki.
2859

29-
Additionally, create an empty text file in the folder of each game and name it `[ScummVM game ID].scummvm`, e.g., `comi.scummvm` for "The Curse Of Monkey Island" or `tentacle-de.scummvm` for the German version of "Day Of The Tentacle".
60+
### Step 3: Create the ScummVM file
61+
62+
After you have added all the game files for a game, create an new text file in the folder of each game. Now, you need to rename this file **exactly** like the **default launcher ID** of this game. So, for example, for the German version of "Broken Sword" for Windows, the file should be named `sword1-win-de.scummvm`. This will allow the **RetroArch-integrated** ScummVM to launch the game from EmulationStation.
63+
64+
However, if you also want to be able to use **standalone** ScummVM **or** if you want to be able to save game-specific settings in the **RetroArch-integrated** ScummVM, you need to take an additional step and **edit** the text file, so that it **contains** the same **default launcher ID** the file is named after.
65+
66+
So, for the German version of Broken Sword, you will have a file `sword1-win-de.scummvm` which contains the following text:
3067

31-
### Step 3: Update gamelists
68+
```
69+
sword1-win-de
70+
```
71+
72+
!!! info "Saving game-specific settings in RetroArch-integrated ScummVM"
73+
Saving game-specific settings is only supported in KNULLI builds which have been released **after** August 19th 2024.
74+
75+
### Step 4: Update gamelists
3276

3377
Press ++"Start"++ to bring up the main menu, go to *Game Settings* and pick *Update Gamelists* to scan for your newly added games. Afterwards, you should find your ScummVM games in the *ScummVM* category.
3478

35-
### Step 4: Scrape media
79+
### Step 5: Add the game to the ScummVM launcher
80+
81+
Depending on your previous steps and the emulator you chose, you might be led directly to the ScummVM launcher when you try to lauch your game for the first time, because it could not be found within the respective `scummvm.ini`. If so, pick *Add Game* in the ScummVM launcher and add the game by browsing to its folder and following on-screen instructions. Afterwards, *Quit* the launcher and try to launch your game again. If it still does not work, go to the *Game Options* within ScummVM, take a look at the *ID* in the *Game* tab and make sure to have the very same ID in your `.scummvm` file and its name.
82+
83+
### Step 6: Scrape media
3684

37-
By default, each ScummVM game will be named after its `.scummvm` file. Since this is not very user-friendly, we recommend scraping for artworks and media. Since the scraper will most likely not be able to identify games based on their sometimes pretty cryptic ScummVM IDs, you may need to do scrape **manually** as explained in the [Scraping](../../play/scraping) section.
85+
By default, each ScummVM game will be named after its `.scummvm` file in your EmulationStation GUI. Since this is not very user-friendly, we recommend scraping for artworks and media. Since the scraper will most likely not be able to identify games based on their sometimes pretty cryptic ScummVM IDs, you may need to do scrape **manually** as explained in the [Scraping](../../play/scraping) section.

0 commit comments

Comments
 (0)