{"id":13460055,"url":"https://github.com/HEADLIGHTER/Born2BeRoot-42","last_synced_at":"2025-03-24T18:32:56.364Z","repository":{"id":38889794,"uuid":"376437824","full_name":"HEADLIGHTER/Born2BeRoot-42","owner":"HEADLIGHTER","description":"monitoring.sh script, walk through installation and setting up, evaluation Q\u0026A","archived":false,"fork":false,"pushed_at":"2023-05-21T13:01:29.000Z","size":49,"stargazers_count":88,"open_issues_count":0,"forks_count":51,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-01T10:20:03.960Z","etag":null,"topics":["21born2code","21school","42born2code","bash","bash-script","debian","ecole42","education","example-project","linux","system-administration","virtualbox"],"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/HEADLIGHTER.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}},"created_at":"2021-06-13T04:24:07.000Z","updated_at":"2024-07-29T16:12:09.000Z","dependencies_parsed_at":"2022-08-09T06:31:15.181Z","dependency_job_id":null,"html_url":"https://github.com/HEADLIGHTER/Born2BeRoot-42","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HEADLIGHTER%2FBorn2BeRoot-42","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HEADLIGHTER%2FBorn2BeRoot-42/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HEADLIGHTER%2FBorn2BeRoot-42/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HEADLIGHTER%2FBorn2BeRoot-42/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HEADLIGHTER","download_url":"https://codeload.github.com/HEADLIGHTER/Born2BeRoot-42/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222004118,"owners_count":16914872,"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":["21born2code","21school","42born2code","bash","bash-script","debian","ecole42","education","example-project","linux","system-administration","virtualbox"],"created_at":"2024-07-31T10:00:34.738Z","updated_at":"2024-10-29T06:30:19.848Z","avatar_url":"https://github.com/HEADLIGHTER.png","language":"Shell","funding_links":[],"categories":["WELCOME"],"sub_categories":["**Born2beroot**"],"readme":"\n# Born2BeRoot 42/21\n\n# GRADE: 110/100 \nIf you make only partition from bonus part.\n\nDeveloped for Debian so i'm not sure that it will run properly on CentOS distributive. Anyway, PM me on Discord if its working on CentOS or you have a suggestion/issues: MMBHWR#0793\n\n# monitoring.sh script\nKnown issues: \n1) Cron may refuse to running script on boot due to bug in Debian (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635473). How to fix? [https://bugs.debian.org/cgi-bin/bugreport.cgi?att=0;bug=635473;msg=70]. Good luck :)\nTheres also another way to fix it in my rebootfix.txt file, but it may not work anyway...\nTry to explain this to your evaluator if he ask you. Because i haven't seen \"monitoring.sh script on boot\" in evaluation checklist and almost nobody asked me about this.\n\n# Please, DO NOT copie + paste this thing with emptiness in your eyes and blank in your head!\nIt's highly recommended to know what u use and how\u0026why it works even if i leaved an explanation in commentary. At least, it will be usefull for YOURS and ONLY YOURS defense. Google\u0026man all the commands listed here and read about it's options/parameters/etc. Be intellegent, be adaptive, be SMART. Know the tool you use.\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nTo make this works u need to [$ chmod +x monitoring.sh] (ofc lol). \nPlease note that you should run script as root because journalctl won't\nwork from user without sudo.\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n# How to use\nFirst off [$ sudo crontab -e] (yep, you need sudo to make cron runnig script as root.[$ crontab-e] will open another file that will run your script as user). Set nano/vi as your text editor for cron and add next lines in your crontab file:\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n@reboot /path/to/file/monitoring.sh\n*/10 * * * * /path/to/file/monitoring.sh\n~~~~~~~~~~~~~~~~~~~~~~~~~~\nDont forget that you should write FULL PATH TO FILE (no ~/*/etc.) due to cron's pecularity.\n\n# walkthrough37.txt\nGuide how to correctly setup and configure both Debian and software. Including bonus-part partition set up.\n# evalknowledge.txt\nLittle Q\u0026A from Subject and whattocheck as evaluator.\n\nI think it's done for now. I won't make \"full guide with bonus part\" just because you can easly find it in another B2BR repo. I highly recommend repeating the installation process several times, if possible, in order to remember and understand everything well. Especially if this is your first time working both Linux and a virtual machine.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHEADLIGHTER%2FBorn2BeRoot-42","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHEADLIGHTER%2FBorn2BeRoot-42","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHEADLIGHTER%2FBorn2BeRoot-42/lists"}