Run the following command to check which Linux distribution you are using
lsb_release -a
Depending on your Linux distribution you will use a different package manager.
For Fedora based distributions (e.g. RHEL, CentOS) you will use dnf
.
For Debian based distributions (e.g. Ubuntu) you will use apt
.
NB: dnf
is the next-generation version of yum
. To install dnf
run yum install dnf
.
For Fedora based distributions
sudo dnf install git-all
For Debian based distributions
sudo apt install git-all
To attach your full name to every commit you make simply add this line (of course, change it to your own name):
git config --global user.name "Jane Doe"
You can keep your email addresses private by using <username>@users.noreply.github.com
. Just replace <username>
with your actual GitHub username (e.g. [email protected]
)
git config --global user.email "<username>@users.noreply.github.com"
Add the following recommended configurations:
git config --global push.default simple
git config --global credential.helper cache
git config --global core.autocrlf input
git config --global pull.rebase true
git config --global rebase.autoStash true
git config --global core.editor 'code --wait'
Official Node.js binary distributions for various Linux distributions are provided by NodeSource.
For Fedora based distributions, refer to installation instructions here.
For Debian based distributions, refer to installation instructions here.
When developing sofware for various projects, it is not uncommon to deal with multiple versions of Node.js. The best way to manage these versions is to use a Node Version Manager.
We recommed using n
. You can read their documentation and install it by running the following command:
npm install -g n
Most Linux distributions use bash as its default shell. There are other shells that you can optionally use instead of bash. For example, there is Z shell and C shell among many others.
Many programmers like to use Z shell along with Oh My Zsh (a configuration tool for Z shell).
If you would like to install Oh My Zsh, follow the instructions here.
Chrome and Firefox are two recommended browsers that you should install for web development.
To install Chrome browser, follow the instructions here.
To install Firefox, follow the instructions here.