{"id":16162303,"url":"https://github.com/juanico10/hellosystemboot","last_synced_at":"2025-04-07T03:46:11.293Z","repository":{"id":128126349,"uuid":"436336168","full_name":"juanico10/HelloSystemBoot","owner":"juanico10","description":"Send message notification Telegram on boot","archived":false,"fork":false,"pushed_at":"2024-05-11T20:12:34.000Z","size":111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T08:23:58.666Z","etag":null,"topics":["boot","hello","script","shell-script","system","telegram"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juanico10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2021-12-08T17:35:14.000Z","updated_at":"2024-05-11T20:12:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"9850902a-fc4f-452d-ac16-22744beaf439","html_url":"https://github.com/juanico10/HelloSystemBoot","commit_stats":null,"previous_names":["juanico10/hellosystemboot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juanico10%2FHelloSystemBoot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juanico10%2FHelloSystemBoot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juanico10%2FHelloSystemBoot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juanico10%2FHelloSystemBoot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juanico10","download_url":"https://codeload.github.com/juanico10/HelloSystemBoot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247589834,"owners_count":20963022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["boot","hello","script","shell-script","system","telegram"],"created_at":"2024-10-10T02:29:40.928Z","updated_at":"2025-04-07T03:46:11.275Z","avatar_url":"https://github.com/juanico10.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Enviar notificación al Telegram del arranque del sistema\nPara poder recibir los mensajes en el Telegram, debes obtener el Token y chat_id de tu bot de telegram, puedes solicitarlos aquí desde la App de Telegram:\n- Bot token: \u003ca href=\"https://t.me/botfather\"\u003e\u003cimg src=\"https://img.shields.io/badge/Link-2aa8ff.svg?style=flat\" alt=\"Link\"\u003e\u003c/a\u003e\n- Chat_ID: \u003ca href=\"https://t.me/myidbot\"\u003e\u003cimg src=\"https://img.shields.io/badge/Link-2aa8ff.svg?style=flat\" alt=\"Link\"\u003e\u003c/a\u003e\n\n![alt text](https://github.com/JuanRodenas/HelloSystemBoot/blob/main/hellotelegram.png)\n\nEmpezamos a instalar el bot de inicio. Para que funcione necesita permisos, por lo que instalar en el usuario ROOT:\n### Instalar los paquetes y actualizamos el sistema\n~~~~shell\nsudo apt update \u0026\u0026 \\\nsudo apt upgrade -y \u0026\u0026 \\\nsudo apt install curl -y\n~~~~\n\n### Edita el archivo hello.service para cambiar la ruta donde tienes el script hello.sh\n\u003cp\u003ePueden descargar el archivo del servicio directamente del link: \u003ca href=\"https://github.com/JuanRodenas/HelloSystemBoot/blob/main/hello.service\"\u003e\u003cimg src=\"https://img.shields.io/badge/Link-2aa8ff.svg?style=flat\" alt=\"Link\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eModificamos el archivo para añadir la siguiente ruta, donde irá el \u003ccode\u003ehello.sh\u003c/code\u003ecode\u003e:\u003c/p\u003e\n\u003cp\u003ePodemos modificar el tiempo (en segundos) el retraso en ejecución:\u003c/p\u003e\n\n~~~~shell\nExecStartPre=/bin/sleep 60\nExecStart=/usr/bin/bash\t/root/scripts/hello.sh\n~~~~\n### Copiar el archivo hello.service y asignarle los permisos 0644\n~~~~shell\ncp hello.service /etc/systemd/system/ \u0026\u0026 \\\nchmod 0644 /etc/systemd/system/hello.service\n~~~~\n### Restart service, and enabled\n~~~~shell\nsystemctl enable hello.service \u0026\u0026 \\\nsystemctl start hello.service \u0026\u0026 \\\nsystemctl daemon-reload\n~~~~\n### Edita el script hello.sh, para añadir tu token de bot, y tu chat_id, renombra el script elegido a hello.sh\n\u003cp\u003ePueden descargar el archivo del script directamente del link: \u003ca href=\"https://github.com/JuanRodenas/HelloSystemBoot/blob/main/hello.sh\"\u003e\u003cimg src=\"https://img.shields.io/badge/Link-2aa8ff.svg?style=flat\" alt=\"Link\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eModificamos el archivo \u003ccode\u003ehello.sh\u003c/code\u003e y modicamos lo siguiente:\u003c/p\u003e\n\n~~~~shell\nTOKEN_BOT=\"YOUR_TOKEN_BOT\"\nTOKEN_ID=\"YOUR_TOKEN_CHAT\"\n~~~~\n### Asigna los permisos a+x\n~~~~shell\nchmod a+x /root/scripts/hello.sh\n~~~~\n### Ready!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuanico10%2Fhellosystemboot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuanico10%2Fhellosystemboot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuanico10%2Fhellosystemboot/lists"}