Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HEADLIGHTER/Born2BeRoot-42
monitoring.sh script, walk through installation and setting up, evaluation Q&A
https://github.com/HEADLIGHTER/Born2BeRoot-42
21born2code 21school 42born2code bash bash-script debian ecole42 education example-project linux system-administration virtualbox
Last synced: 7 days ago
JSON representation
monitoring.sh script, walk through installation and setting up, evaluation Q&A
- Host: GitHub
- URL: https://github.com/HEADLIGHTER/Born2BeRoot-42
- Owner: HEADLIGHTER
- Created: 2021-06-13T04:24:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-21T13:01:29.000Z (over 1 year ago)
- Last Synced: 2024-08-01T10:20:03.960Z (3 months ago)
- Topics: 21born2code, 21school, 42born2code, bash, bash-script, debian, ecole42, education, example-project, linux, system-administration, virtualbox
- Language: Shell
- Homepage:
- Size: 47.9 KB
- Stars: 88
- Watchers: 2
- Forks: 51
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- 42-resources - Born2beroot Walkthrough
README
# Born2BeRoot 42/21
# GRADE: 110/100
If you make only partition from bonus part.Developed 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
# monitoring.sh script
Known issues:
1) 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 :)
Theres also another way to fix it in my rebootfix.txt file, but it may not work anyway...
Try 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.# Please, DO NOT copie + paste this thing with emptiness in your eyes and blank in your head!
It's highly recommended to know what u use and how&why it works even if i leaved an explanation in commentary. At least, it will be usefull for YOURS and ONLY YOURS defense. Google&man all the commands listed here and read about it's options/parameters/etc. Be intellegent, be adaptive, be SMART. Know the tool you use.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To make this works u need to [$ chmod +x monitoring.sh] (ofc lol).
Please note that you should run script as root because journalctl won't
work from user without sudo.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# How to use
First 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:
~~~~~~~~~~~~~~~~~~~~~~~~~~
@reboot /path/to/file/monitoring.sh
*/10 * * * * /path/to/file/monitoring.sh
~~~~~~~~~~~~~~~~~~~~~~~~~~
Dont forget that you should write FULL PATH TO FILE (no ~/*/etc.) due to cron's pecularity.# walkthrough37.txt
Guide how to correctly setup and configure both Debian and software. Including bonus-part partition set up.
# evalknowledge.txt
Little Q&A from Subject and whattocheck as evaluator.I 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.