Create a linux-based system monitor (similar to HTOP).
- Clone repository into
/home/workspace/
cd /home/workspace/
git clone https://github.com/mirkoviviano/CppND-System-Monitor
-
Follow along with the lesson and make sure you complete the
ProcessParserandProcessclasses before attempting to run the project. -
Install
ncursespackage
sudo apt-get install libncurses5-dev libncursesw5-dev
- Compile and run
g++ -std="c++17" main.cpp -lncurses
./a.out
- In case of error that looks like the following:
root@77e30fca8a01:/home/workspace/CppND-Object-Oriented# ./a.out
*** %n in writable segment detected ***
Aborted (core dumped)
just keep trying ./a.out and it should work eventually!