2
0
mirror of https://github.com/pikvm/pikvm synced 2024-11-16 12:12:57 +00:00
pikvm/docs/first_steps.md

165 lines
6.6 KiB
Markdown
Raw Normal View History

2021-10-12 18:45:00 +00:00
# First steps
2023-08-10 02:03:49 +00:00
-----
## First power on
2023-12-03 12:01:03 +00:00
1. Optional: [setting up Wi-Fi or static IP](on_boot_config.md) before booting.<br>
*Remember that there is nothing more reliable than wired Ethernet.*
2023-10-16 18:14:44 +00:00
2023-10-16 18:14:44 +00:00
2. **Power up the device.**
2021-10-16 00:22:15 +00:00
2023-10-16 18:14:44 +00:00
3. **Do not turn off the device until it's fully booted for the first time.**<br>
2023-10-16 18:14:44 +00:00
*After turning on the power, PiKVM OS will generate unique SSH keys and certificates
2023-10-16 18:14:44 +00:00
and perform all necessary operations on the memory card. It takes a few minutes.*
2021-10-16 00:22:15 +00:00
2023-04-14 23:01:16 +00:00
2023-08-10 02:03:49 +00:00
-----
2021-10-12 18:45:00 +00:00
## Getting access to PiKVM
2023-12-03 12:01:03 +00:00
By default, PiKVM receives a dynamic IP address via DHCP. PiKVM V3+ devices show it on the built-in OLED display.
2023-12-03 11:31:12 +00:00
??? example "PiKVM without OLED: finding device in the network"
2021-10-12 18:45:00 +00:00
To determine the IP address of your PiKVM, use one of the following methods:
2023-12-03 12:01:03 +00:00
* **Common way:** Open the web interface of your router and find the list of issued IP addresses there.
2021-10-16 06:36:42 +00:00
* **Linux-only:** Use command `arp-scan --localnet`.
2021-10-12 18:45:00 +00:00
* **Linux, MacOS, Windows:** Download and run [Angry IP Scanner](https://angryip.org).
2021-10-16 06:36:42 +00:00
* **Windows PowerShell:** Use command `arp -a`.
2023-12-03 12:01:03 +00:00
In order to find PiKVM using the ARP commands, you need to look for the following MACs: `B8:27:EB`, `DC:A6:32` or `E4:5F:01`.
2021-10-12 18:45:00 +00:00
2023-12-03 11:31:12 +00:00
For future examples, let's assume that PiKVM has received the address `192.168.0.100`,
which you have successfully detected using the instructions above. The device has also been assigned a hostname `pikvm`.
2021-10-12 18:45:00 +00:00
??? example "Access to PiKVM Web Interface"
2023-12-03 12:06:57 +00:00
**We recommend using the latest Google Chrome or Chromium**, as they support the largest number of PiKVM features.
Safari and Firefox are in second place. Internet Explorer and the pre-Chromium versions of Microsoft Edge are not supported.
2021-10-12 18:45:00 +00:00
2023-12-03 12:01:03 +00:00
For the first time, it is better to use a browser without extensions or incognito mode,
as some extensions may disrupt the work of PiKVM.
2023-12-03 12:06:57 +00:00
**Type the URL in the browser's address bar and press Enter: `https://192.168.0.100/` or `https://pikvm/`.**
2023-12-03 12:01:03 +00:00
**The default user is `admin`, the password is also `admin`, and no 2FA code.**
After logging in, you will get access to the menu with the main functions.
Using the Web Terminal, you can change system settings and passwords.
*The latest versions of Google Chrome on Mac OS do not allow access to the page with a self-signed certificate,
which is used in PiKVM by default. You can proceed by typing `thisisunsafe` and Chrome will then load the page.*
2021-10-12 18:45:00 +00:00
??? example "Access to PiKVM via SSH"
2023-12-03 12:01:03 +00:00
2021-10-12 18:45:00 +00:00
SSH is the most common remote access method in the Linux world. PiKVM is accessible via SSH. This method is used to manage the device:
* **Linux, MacOS:** Open any terminal application and run: `ssh root@192.168.0.100` or `ssh root@pikvm`.
* **Windows:** Use [PuTTY](https://www.putty.org/) for this.
**The default `root` password is `root`.**
2023-10-16 18:14:44 +00:00
!!! tip "Obtaining root access"
2023-12-03 12:01:03 +00:00
2023-10-16 18:14:44 +00:00
* If you have logged in via SSH, then most likely you are already `root`.
* To get `root` in the Web Terminal, use command `su -` and enter the root password.
2023-11-01 12:54:14 +00:00
PiKVM OS often receives software updates. After installation, it makes sense to update the OS.
It's best to do this now, when you have physical access to the device, because if something goes wrong
(for example, the power goes out during the update), you will need to [reflash the memory card](flashing_os.md).
2023-10-28 11:08:24 +00:00
2023-11-01 12:54:14 +00:00
??? example "Updating PiKVM OS"
2023-10-28 11:08:24 +00:00
2023-11-01 12:54:14 +00:00
{!_update_os.md!}
2023-10-28 11:08:24 +00:00
**And now, after all...**
2023-06-08 20:39:51 +00:00
{!_passwd.md!}
2023-01-23 12:44:49 +00:00
2023-04-14 23:01:16 +00:00
2023-08-10 02:03:49 +00:00
-----
2021-10-12 18:45:00 +00:00
## Configuring PiKVM
2023-10-16 18:14:44 +00:00
Most of the PiKVM settings are done through configuration files. All configuration changes must be made from under the `root` user (i.e. the administrator).
2021-10-12 18:45:00 +00:00
The PiKVM memory card is mounted in read-only mode. It protects the filesystem from damage in case of sudden power outage. To edit any files and make changes, it is necessary to remount the file system to the read-write mode.
!!! tip "Enabling write mode"
* To enable write-mode, run command `rw` (under `root`).
* To disable it, run command `ro`.
* If you receive the message "Device is busy", perform `reboot`.
In this handbook, you will often find instructions for editing configuration files. The simplest and most beginner-friendly text editor is `nano`, but you can also use `vim`.
??? example "Editing files in the Web Terminal"
2023-10-16 18:14:44 +00:00
```console
[kvmd-webterm@pikvm ~]$ su -
[root@pikvm ~]# rw
[root@pikvm ~]# nano /etc/kvmd/override.yaml
[root@pikvm ~]# ro
[root@pikvm ~]# exit
[kvmd-webterm@pikvm ~]$
2021-10-12 18:45:00 +00:00
```
-----
## Structure of configuration files
Most of the PiKVM configuration files are located in the `/etc/kvmd` directory.
The `/etc/kvmd/main.yaml` file defines the platform config and **you should never edit it**. To redefine system parameters use the file `/etc/kvmd/override.yaml`. All other files that are also not recommended for editing have read-only permissions.
In the `/etc/kvmd/meta.yaml` file you can specify some information regarding the host that this PiKVM manages.
!!! tip
A complete list of all parameters can be viewed using the `kvmd -m` command.
Files with the suffix `*.yaml` uses the [YAML syntax](https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html)
and describes a parameter tree with key-value pairs of different types.
To define the parameters within one section, an indent of 4 spaces is used.
Comments starts with the `#` symbol.
!!! warning "Only 4 spaces should be used for indentation"
Be careful when editing YAML and follow this rule.
Invalid indentation or tabs instead of spaces will cause an error when starting the services.
??? example "Sections under the same keys should be merged"
* **Wrong:**
```yaml
kvmd:
gpio:
drivers: ...
kvmd:
gpio:
scheme: ...
```
* **Correct:**
```yaml
kvmd:
gpio:
drivers: ...
scheme: ...
```
-----
## What's next?
2023-08-10 02:03:49 +00:00
2021-10-12 18:45:00 +00:00
* Set up Internet access using [port forwarding](port_forwarding.md) or [Tailscale VPN](tailscale.md).
* Explore PiKVM features using the table of contents on the left.
* Join our [Discord](https://discord.gg/bpmXfz5) to contact the community and developers.
* Check out the [GitHub](https://github.com/pikvm) - PiKVM is a fully Open Source project!
2023-12-03 11:31:12 +00:00
* For Mac OS client: [pin your PiKVM device as an app](https://github.com/pikvm/pikvm/issues/965) for quick access.
2021-10-12 18:45:00 +00:00
-----
## FAQ and Troubleshooting
2023-08-10 02:03:49 +00:00
2021-10-12 18:45:00 +00:00
If you have any questions or run into problems, take a look at the [FAQ](faq.md).
2023-08-10 02:03:49 +00:00
Seriously, it's really useful!
2021-10-12 18:45:00 +00:00
For any other help and support, you can contact us via the [Discord chat](https://discord.gg/bpmXfz5).