From adfa20fc639b88e9ec00fa3bba569ccfdd79e79d Mon Sep 17 00:00:00 2001 From: netbenixcn Date: Thu, 4 Jun 2020 14:24:24 +0200 Subject: [PATCH] Added Distro Specific instructions to README.md --- README.md | 15 ++++++++++++--- main.c | 6 +++--- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9bb215b..4b5ec4f 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ A little project of mine to learn C. Available for: *Linux* +Tested with: *Ubuntu, Debian, Arch* + Used Libs for Linux: *gtk+3.0, libmysqlclient* Version: *0.1.0* @@ -15,11 +17,15 @@ Version: *0.1.0* - Can give you a bit of information about your CPU (but just a little bit) ## Building: -Install packages: *make, gtk3, libgtk-3-dev, gcc, mysql* +Install packages: + +- Ubuntu: ```sudo apt-get install make gcc git libgtk-3-dev libmysqlclient-dev``` +- Debian: ```sudo apt-get install make gcc git libgtk-3-dev libmariadbclient-dev libmariadb-dev-compat``` +- Arch: ```sudo pacman -S make gcc git gtk3 mariadb-libs``` Clone Repositroy: ```git clone https://github.com/netbenix/netbenixCMD.git``` -Go into the just cloned directory +Go into the cloned directory: ```cd netbenixCMD``` Build with command: ```make``` @@ -30,4 +36,7 @@ After building use ```./netbenixCMD ``` to start the program - ```--help``` => Displays all arguments - ```--gtk-test``` => Opens the GTK Test Window - ```--sql-test``` => Makes a test connection to a mysql server -- ```--sys-info``` => Gives you information about your system \ No newline at end of file +- ```--sys-info``` => Gives you information about your system + +##Known Bugs +- ```sql-test``` sha-256 passwords not working on Debian \ No newline at end of file diff --git a/main.c b/main.c index 242a286..771ca7c 100644 --- a/main.c +++ b/main.c @@ -57,9 +57,9 @@ int commandHandler(char* cmd){ arg[i] = p; if(!strcmp(arg[0], "list") && argc < 2){ - printf("\033[0;34mlist\033[0m : this list\n"); - printf("\033[0;34mversion\033[0m : shows the version\n"); - printf("\033[0;34mexit\033[0m : exit the program\n"); + printf("\033[1;34mlist\033[0m : this list\n"); + printf("\033[1;34mversion\033[0m : shows the version\n"); + printf("\033[1;34mexit\033[0m : exit the program\n"); return 0; } else if(!strcmp(arg[0], "version") && argc < 2){ printf("netbenixCMD (Version: \033[1;34m%s\033[0m)\n", VERSION);