https://github.com/ejcom/k3d_vostok_ssh_logo
Custom MOTD with Vostok ASCII Art for Orange Pi and Raspberry Pi
https://github.com/ejcom/k3d_vostok_ssh_logo
Last synced: 19 days ago
JSON representation
Custom MOTD with Vostok ASCII Art for Orange Pi and Raspberry Pi
- Host: GitHub
- URL: https://github.com/ejcom/k3d_vostok_ssh_logo
- Owner: ejcom
- Created: 2026-06-03T10:21:38.000Z (24 days ago)
- Default Branch: main
- Last Pushed: 2026-06-03T10:56:22.000Z (23 days ago)
- Last Synced: 2026-06-03T12:20:15.734Z (23 days ago)
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom MOTD with Vostok ASCII Art for Orange Pi and Raspberry Pi
This repository provides a custom `05-vostok-header` script that replaces the default login banner (MOTD) on **Orange Pi** (Armbian) and **Raspberry Pi** (Raspberry Pi OS) with a stylish ASCII art of the word **VOSTOK**.
## Preview
When you log in via SSH, you will see:
```
_ _______ ____ __ _____ ____ _____ ___ _ __
| |/ /___ /| _ \ \ \ / / _ \/ ___|_ _/ _ \| |/ /
| ' / |_ \| | | | \ \ / / | | \___ \ | || | | | ' /
| . \ ___) | |_| | \ V /| |_| |___) || || |_| | . \
|_|\_\____/|____/ \_/ \___/|____/ |_| \___/|_|\_\
```
(optional: you can keep the original system information like CPU load, IP, temperature or replace everything)
---
### For Orange Pi
1. **Disable the default Orange Pi header**
The default banner is generated by `/etc/update-motd.d/10-orangepi-header`.
To disable it without editing the script (which will be overwritten on updates), edit the configuration file:
```bash
sudo nano /etc/default/orangepi-motd
```
Add or uncomment the following line:
```bash
MOTD_DISABLE="header"
```
Save and exit (Ctrl+O, Ctrl+X).
3. **Install the custom script**
Copy the 05-vostok-header script from this repository into the MOTD directory:
```bash
sudo cp 05-vostok-header /etc/update-motd.d/
sudo chmod +x /etc/update-motd.d/05-vostok-header
```
5. **Test the new MOTD**
Without logging out, run:
```bash
run-parts /etc/update-motd.d/
```
### For Raspberry Pi
Raspberry Pi OS also uses /etc/update-motd.d/ scripts. The default banner comes from files like 10-uname and 20-raspbian-sysinfo.
1. **Disable the default scripts**
(optional – you can also keep them after your banner)
To show your banner before the system information, we will just add our script with a lower number (05-).
To completely replace the default banner, disable the original scripts:
```bash
sudo chmod -x /etc/update-motd.d/10-uname
sudo chmod -x /etc/update-motd.d/20-raspbian-sysinfo
```
3. **Install the custom script**
```bash
sudo cp 05-vostok-header /etc/update-motd.d/
sudo chmod +x /etc/update-motd.d/05-vostok-header
```
5. **Test**
```bash
run-parts /etc/update-motd.d/
```
### Restore original settings
Orange Pi: Remove `MOTD_DISABLE="header"` from `/etc/default/orangepi-motd` or change it to `MOTD_DISABLE=""`.
Raspberry Pi: Re-enable scripts with `sudo chmod +x /etc/update-motd.d/*` (be careful – only re-enable the original ones you disabled).
Any system: Delete or rename your custom script: `sudo rm /etc/update-motd.d/05-vostok-header`.
### Bonus
1. **Change the static hostname**
This sets the hostname that will be used after system boot.
```bash
sudo hostnamectl set-hostname vostok
```
2. **Update the `/etc/hosts` file**
This is important for proper network service resolution. The old hostname may be tied to the local IP address there.
```bash
sudo nano /etc/hosts
```
Find the line starting with 127.0.1.1 (or sometimes 127.0.0.1). Replace the old hostname (e.g., orangepi4pro or raspberrypi) with your new one (vostok). The line should look like:
```text
127.0.1.1 vostok
```
Save and exit (Ctrl+O, Ctrl+X).
3. ***Reboot the system to apply the changes.**
```bash
sudo reboot now
```
### Для Orange Pi
1. **Отключите стандартный баннер Orange Pi**
Он генерируется скриптом /etc/update-motd.d/10-orangepi-header. Чтобы отключить его без редактирования (при обновлении файл перезапишется), отредактируйте файл настроек:
```bash
sudo nano /etc/default/orangepi-motd
```
Добавьте или раскомментируйте строку:
```bash
MOTD_DISABLE="header"
```
3. **Установите свой скрипт**
Скопируйте файл 05-vostok-header в каталог MOTD и сделайте его исполняемым:
```bash
sudo cp 05-vostok-header /etc/update-motd.d/
sudo chmod +x /etc/update-motd.d/05-vostok-header
```
5. **Проверьте результат**
Без переподключения выполните:
```bash
run-parts /etc/update-motd.d/
```
### Для Raspberry Pi
В Raspberry Pi OS тоже используется каталог /etc/update-motd.d/. Стандартный баннер создают файлы вроде 10-uname и 20-raspbian-sysinfo.
1. **Отключите стандартные скрипты**
(можно оставить их после своего баннера)
Чтобы показать свой баннер перед системной информацией, достаточно добавить скрипт с меньшим номером (05-).
Если нужно полностью заменить стандартное приветствие, отключите оригинальные скрипты:
```bash
sudo chmod -x /etc/update-motd.d/10-uname
sudo chmod -x /etc/update-motd.d/20-raspbian-sysinfo
```
3. **Установите скрипт**
```bash
sudo cp 05-vostok-header /etc/update-motd.d/
sudo chmod +x /etc/update-motd.d/05-vostok-header
```
5. **Проверьте**
```bash
run-parts /etc/update-motd.d/
```
Примечание: На некоторых версиях Raspberry Pi OS MOTD также может браться из статического файла /etc/motd. Если старый баннер всё ещё виден, очистите этот файл:
```bash
sudo truncate -s 0 /etc/motd
```
### Восстановление оригинальных настроек
Orange Pi: Удалите `MOTD_DISABLE="header"` из `/etc/default/orangepi-motd` или измените на `MOTD_DISABLE=""`.
Raspberry Pi: Верните права на выполнение скриптам: `sudo chmod +x /etc/update-motd.d/*` (только тем, которые вы отключали).
Любая система: Удалите или переименуйте свой скрипт: `sudo rm /etc/update-motd.d/05-vostok-header`.
### Бонус
1. **Измените статическое имя хоста**
Эта команда устанавливает имя, которое система будет использовать после загрузки.
```bash
sudo hostnamectl set-hostname vostok
```
2. **Обновите файл /etc/hosts**
Это необходимо для корректной работы сетевых служб. В этом файле старое имя хоста может быть привязано к локальному IP-адресу.
```bash
sudo nano /etc/hosts
```
Найдите строку, начинающуюся с 127.0.1.1 (иногда 127.0.0.1). Замените в ней старое имя хоста (например, orangepi4pro или raspberrypi) на новое (vostok). Строка должна выглядеть так:
```text
127.0.1.1 vostok
```
Сохраните и выйдите (Ctrl+O, Ctrl+X).
3. Перезагрузите систему, чтобы изменения вступили в силу.
```bash
sudo reboot now
```