Linux is a great platform for software development targeting servers or backends. In general, working on Linux is very productive. The problem that beginners on Linux face is the the learning curve is steep at the beginning. But believe me, after you get through the initial green steep learning step as in the figure below with some hard work, you will feel like working on a rocket in the yellow part. This post will give you some notes and pointers to information so that you can start with.
Basic knowledge of Linux
Table of Contents
You will need to gain some basic knowledge of Linux tools, like the
screen are also useful and commonly used tools.
bash is very common while I know its manual is very long too. Take a read when you got some time or check the parts when you need them.
Different Linux distros may have different tools to manage packages. There are several flavors of package management on Linux.
Another large community is the
apt and derived tools users on Debian/Ubuntu/Linux Mint and etc. There are also
pacman and etc. Check your most favorite Linux distro’s documents for how to use these tools.
You may need to possibly manually download and install some packages. Usually, the README or INSTALL files in these packages provide instructions on needed packages and steps to configure and install the package.
You can also check the online manual pages of Linux in your browser at https://www.systutorials.com/docs/linux/man/ .
Google usually also gives good results too on tutorials of these commands.
For code-test-debug loops during development, everyone may have its own best way. For me, I usually write code/build it on my local laptop/PC (network latency makes coding remotely inconvenient) and push the code to the remote server to run and test it by
For standalone programs,
gdb sometimes is useful. But for distributed systems, logs with the events/actions/internal states will be very helpful. I ever wrote a C fast in-memory log library named zlog.
Work environment on Linux
You will need a good editor for writing code and documents.
emacs are possibly the 2 most widely used ones. Time is needed to learn both of them. But they will improve your productivity once you master them at certain level. Makefile and compilers (
g++) are usually needed. The Linux tools like ssh/scp/screen will be very useful.
All these seems a lot to learn. But it is not hard to start with and you need not to master all to start working.
After the initial struggling, you will start to love development on Linux. And you can then learn part by part when your work needs more.