Added Distro Specific instructions to README.md
This commit is contained in:
parent
8178550d1a
commit
adfa20fc63
2 changed files with 15 additions and 6 deletions
15
README.md
15
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 <argument>``` 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
|
||||
- ```--sys-info``` => Gives you information about your system
|
||||
|
||||
##Known Bugs
|
||||
- ```sql-test``` sha-256 passwords not working on Debian
|
||||
6
main.c
6
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);
|
||||
|
|
|
|||
Reference in a new issue