# 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 %}
