{"id":50653983,"url":"https://github.com/ejcom/k3d_vostok_ssh_logo","last_synced_at":"2026-06-07T22:36:52.045Z","repository":{"id":362271578,"uuid":"1258158891","full_name":"ejcom/k3d_vostok_ssh_logo","owner":"ejcom","description":"Custom MOTD with Vostok ASCII Art for Orange Pi and Raspberry Pi","archived":false,"fork":false,"pushed_at":"2026-06-03T10:56:22.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-03T12:20:15.734Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ejcom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-03T10:21:38.000Z","updated_at":"2026-06-03T10:56:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ejcom/k3d_vostok_ssh_logo","commit_stats":null,"previous_names":["ejcom/k3d_vostok_ssh_logo"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ejcom/k3d_vostok_ssh_logo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejcom%2Fk3d_vostok_ssh_logo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejcom%2Fk3d_vostok_ssh_logo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejcom%2Fk3d_vostok_ssh_logo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejcom%2Fk3d_vostok_ssh_logo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ejcom","download_url":"https://codeload.github.com/ejcom/k3d_vostok_ssh_logo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejcom%2Fk3d_vostok_ssh_logo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34041089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-07T22:36:51.396Z","updated_at":"2026-06-07T22:36:52.039Z","avatar_url":"https://github.com/ejcom.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom MOTD with Vostok ASCII Art for Orange Pi and Raspberry Pi\n\nThis 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**.\n\n## Preview\n\nWhen you log in via SSH, you will see:\n```\n _  _______ ____   __     _____  ____ _____ ___  _  __\n| |/ /___ /|  _ \\  \\ \\   / / _ \\/ ___|_   _/ _ \\| |/ /\n| ' /  |_ \\| | | |  \\ \\ / / | | \\___ \\ | || | | | ' / \n| . \\ ___) | |_| |   \\ V /| |_| |___) || || |_| | . \\ \n|_|\\_\\____/|____/     \\_/  \\___/|____/ |_| \\___/|_|\\_\\\n```\n(optional: you can keep the original system information like CPU load, IP, temperature or replace everything)\n\n---\n\n### For Orange Pi\n\n1. **Disable the default Orange Pi header**  \n   The default banner is generated by `/etc/update-motd.d/10-orangepi-header`.  \n   To disable it without editing the script (which will be overwritten on updates), edit the configuration file:\n   \n   ```bash\n   sudo nano /etc/default/orangepi-motd\n   ```\n   \n   Add or uncomment the following line:\n   \n   ```bash\n   MOTD_DISABLE=\"header\"\n   ```\n   \n   Save and exit (Ctrl+O, Ctrl+X).\n3. **Install the custom script**\n   Copy the 05-vostok-header script from this repository into the MOTD directory:\n   \n   ```bash\n   sudo cp 05-vostok-header /etc/update-motd.d/\n   sudo chmod +x /etc/update-motd.d/05-vostok-header\n   ```\n   \n5. **Test the new MOTD**\n   Without logging out, run:\n   \n   ```bash\n   run-parts /etc/update-motd.d/\n   ```\n\n### For Raspberry Pi\nRaspberry Pi OS also uses /etc/update-motd.d/ scripts. The default banner comes from files like 10-uname and 20-raspbian-sysinfo.\n\n1. **Disable the default scripts**\n   (optional – you can also keep them after your banner)\n   To show your banner before the system information, we will just add our script with a lower number (05-).\n   To completely replace the default banner, disable the original scripts:\n   \n   ```bash\n   sudo chmod -x /etc/update-motd.d/10-uname\n   sudo chmod -x /etc/update-motd.d/20-raspbian-sysinfo\n   ```\n   \n3. **Install the custom script**\n   \n   ```bash\n   sudo cp 05-vostok-header /etc/update-motd.d/\n   sudo chmod +x /etc/update-motd.d/05-vostok-header\n   ```\n   \n5. **Test**\n   \n   ```bash\n   run-parts /etc/update-motd.d/\n   ```\n\n### Restore original settings\nOrange Pi: Remove `MOTD_DISABLE=\"header\"` from `/etc/default/orangepi-motd` or change it to `MOTD_DISABLE=\"\"`.\n\nRaspberry Pi: Re-enable scripts with `sudo chmod +x /etc/update-motd.d/*` (be careful – only re-enable the original ones you disabled).\n\nAny system: Delete or rename your custom script: `sudo rm /etc/update-motd.d/05-vostok-header`.\n\n### Bonus\n1. **Change the static hostname**  \n   This sets the hostname that will be used after system boot.\n   \n   ```bash\n   sudo hostnamectl set-hostname vostok\n   ```\n   \n2. **Update the `/etc/hosts` file**\n   This is important for proper network service resolution. The old hostname may be tied to the local IP address there.\n   \n   ```bash\n   sudo nano /etc/hosts\n   ```\n   \n   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:\n   \n   ```text\n   127.0.1.1    vostok\n   ```\n   \n   Save and exit (Ctrl+O, Ctrl+X).\n\n3. ***Reboot the system to apply the changes.**\n\n   ```bash\n   sudo reboot now\n   ```\n\n### Для Orange Pi\n1. **Отключите стандартный баннер Orange Pi**\n   Он генерируется скриптом /etc/update-motd.d/10-orangepi-header. Чтобы отключить его без редактирования (при обновлении файл перезапишется), отредактируйте файл настроек:\n   \n   ```bash\n   sudo nano /etc/default/orangepi-motd\n   ```\n   \n   Добавьте или раскомментируйте строку:\n   \n   ```bash\n   MOTD_DISABLE=\"header\"\n   ```\n   \n3. **Установите свой скрипт**\n   Скопируйте файл 05-vostok-header в каталог MOTD и сделайте его исполняемым:\n   \n   ```bash\n   sudo cp 05-vostok-header /etc/update-motd.d/\n   sudo chmod +x /etc/update-motd.d/05-vostok-header\n   ```\n   \n5. **Проверьте результат**\n   Без переподключения выполните:\n   \n   ```bash\n   run-parts /etc/update-motd.d/\n   ```\n\n### Для Raspberry Pi\nВ Raspberry Pi OS тоже используется каталог /etc/update-motd.d/. Стандартный баннер создают файлы вроде 10-uname и 20-raspbian-sysinfo.\n\n1. **Отключите стандартные скрипты**\n   (можно оставить их после своего баннера)\n   Чтобы показать свой баннер перед системной информацией, достаточно добавить скрипт с меньшим номером (05-).\n   Если нужно полностью заменить стандартное приветствие, отключите оригинальные скрипты:\n   \n   ```bash\n   sudo chmod -x /etc/update-motd.d/10-uname\n   sudo chmod -x /etc/update-motd.d/20-raspbian-sysinfo\n   ```\n   \n3. **Установите скрипт**\n   \n   ```bash\n   sudo cp 05-vostok-header /etc/update-motd.d/\n   sudo chmod +x /etc/update-motd.d/05-vostok-header\n   ```\n   \n5. **Проверьте**\n   \n   ```bash\n   run-parts /etc/update-motd.d/\n   ```\n\nПримечание: На некоторых версиях Raspberry Pi OS MOTD также может браться из статического файла /etc/motd. Если старый баннер всё ещё виден, очистите этот файл:\n\n  ```bash\n  sudo truncate -s 0 /etc/motd\n  ```\n\n### Восстановление оригинальных настроек\nOrange Pi: Удалите `MOTD_DISABLE=\"header\"` из `/etc/default/orangepi-motd` или измените на `MOTD_DISABLE=\"\"`.\n\nRaspberry Pi: Верните права на выполнение скриптам: `sudo chmod +x /etc/update-motd.d/*` (только тем, которые вы отключали).\n\nЛюбая система: Удалите или переименуйте свой скрипт: `sudo rm /etc/update-motd.d/05-vostok-header`.\n\n### Бонус\n1. **Измените статическое имя хоста**\n   Эта команда устанавливает имя, которое система будет использовать после загрузки.\n\n   ```bash\n   sudo hostnamectl set-hostname vostok\n   ```\n   \n2. **Обновите файл /etc/hosts**\n   Это необходимо для корректной работы сетевых служб. В этом файле старое имя хоста может быть привязано к локальному IP-адресу.\n\n   ```bash\n   sudo nano /etc/hosts\n   ```\n\n   Найдите строку, начинающуюся с 127.0.1.1 (иногда 127.0.0.1). Замените в ней старое имя хоста (например, orangepi4pro или raspberrypi) на новое (vostok). Строка должна выглядеть так:\n\n   ```text\n   127.0.1.1    vostok\n   ```\n\n   Сохраните и выйдите (Ctrl+O, Ctrl+X).\n\n3. Перезагрузите систему, чтобы изменения вступили в силу.\n\n   ```bash\n   sudo reboot now\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejcom%2Fk3d_vostok_ssh_logo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fejcom%2Fk3d_vostok_ssh_logo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejcom%2Fk3d_vostok_ssh_logo/lists"}