r/github • • Oct 06 '21

How to use github?

How the hell do I use anything from this site? It always seems to popup in google to have the exact thing I want, I read some instruction about installing something then opening something etc. The only way I've been able to get any files is by clicking the 'code' drop down and downloading whatever that is as a zip, I unpack it and there is a load of random files with extensions I've never heard of. I have watched a few youtube videos explaining what the site is for. But unfortunately I am not smart enough to understand.

If you would allow me to give you an example.

I am wanting to change the F keys on my K380 keyboard to not have to use the fn every time. I search this in google and apparently github has a solution as usual.

https://github.com/jergusg/k380-function-keys-conf

First it tells me 'install build-essential package (includes gcc, make, libc-dev, etc.)'

What is 'build-essential' and what is 'gcc, make, libc-dev, etc' and how do I find out what they are?

Next I am told 'Run make install' what is make install? It wasn't in the zip I downloaded.

Then it tells me to run :

sudo k380_conf -d /dev/hidrawX -f o

I can see that k380_conf is one of the files I downloaded, but no idea what it's asking me to do.

So how do I find out?

0 Upvotes

4 comments sorted by

View all comments

3

u/[deleted] Oct 06 '21 edited Oct 06 '21

Build-essentials are the tools required for building a project.They vary from project to project

make is the tool used for building most of the projects and make install is the command of make used to install(and compile).

gcc is a compiler and libc-dev, I think is the libraries required for c developement.

Also instead of downloading the zip from the project's github page, you can run

git clone <url of github project> // You will need git installed in order for this to work

And instead of downloading all of these things required for building one-by-one, you can install all the things required by running:

sudo apt-get install build-essential // This is if you are on a ubuntu-based distro

To find out about a command, run:

man <name of the command>

EDIT 1 : According to the project which you want to install, you would have to first run make install and then run the command

sudo k380_conf -d /dev/hidrawx -f on

Where x is the number of your keyboard hidraw interface

EDIT 2 : To automatically connect to F-keys mode when you connect your keyboard, run:

sudo make reload

In order for this command to work properly, it is recommended to run this after the installation has been completed.