How to code with Linux

How to code with Linux

This article is about my first steps and recommendations to start development with Linux. I use ubuntu but I hope that my research is right and the commands are also available in other distros.

I use here apt-get/apt install commands. They work only in Debian based systems like Ubuntu. They will not work for something like Fedora. Fedora uses different packing tool, so if you use that please check how the commands are at your packaging tool.

Necessary tools

Git is a fundamental tool and thanks to Linux should it be already installed. You can check if it is installed with

git --version

and install it with

sudo apt-get install git


SSH-keys are for authenticating necessary if you don't want to type your credentials every time. This is also available for the version control software I use, GitHub. But you can authenticate yourself at other services and servers. I recommend using an ssh key to authenticate your account. For the creation of an ssh key you use


and follow the instructions. When you finished that you have an file in ~/.ssh. I recommend using

cat ~/.ssh/

to get the content, which is needed for your Github ssh settings where you add a new ssh key. You have to enter a title for this key. This title is only for your organization purposes and could be anything but recommended is a device and if necessary user containable name. In the area below the title, you paste the content from the file and press the save button.

Text editor

Then you should install a proper text editor. I use VS Code for that. You can install it with

sudo snap install --classic code # or code-insiders

for more information, I recommend the offical vs code docs. If you are like me and use another IDE instead of VS code you should install it manually. But I have to say that you could also use the text editor of your favor.

Java development

I prefer to use Maven so I have to install it but first, we should install a JDK or a Java development kit. We install the JDK with

sudo apt-get install openjdk-14-jdk

and set JAVA_HOME with

export JAVA_HOME=/usr/lib/jvm/openjdk-14-jdk
export PATH=$PATH:$JAVA_HOME/bin

and finally maven with

sudo apt install maven

then we check if everything is installed correctly with

java --version
mvn --version

If you only develop in Java you are ready now but I recommend installing python and python-pip since its a good language to write small scripts that are more convenient to write in python than java. You can install them with

sudo apt install python3 python3-pip

and check the versions with

python --version
pip3 --version


You can easily install nodejs with these instructions.

Other software

You can install needed software too, I don't use special software on my machine at the moment so I use only connections to my servers with the software if needed.

I recommend some aliases and config changes but I will cover it in a future blog post. I'll link this post here. If you sign up for the newsletter you won't miss the article.