# Change default credentials

## Password

You can leave the username as it comes, i.e. **pi**. However, I will obviously change the password. This can be done with the command `passwd`.

{% tabs %}
{% tab title="Shell" %}

```
passwd
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
[Raspberry Pi: Default Password & How To Change](https://www.shellhacks.com/raspberry-pi-default-password-how-to-change/), *shellhacks.com, May 7th 2020*
{% endhint %}

## Hostname

Use the system tool `raspi-config` to edit the hostname.

{% tabs %}
{% tab title="Shell" %}

```shell-session
raspi-config
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
[*How to Change Your Raspberry Pi's Hostname*](https://www.tomshardware.com/how-to/raspberry-pi-change-hostname), tomshardware.com, May 1st 2020
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.lcsrg.me/home-setup/raspberry/change-default-credentials.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
