If this is not the case, they are not difficult to install. The Banana Pi should come equipped with the Java development and runtime environments. Hence, in order to make it work, you will require a Java Runtime Environment. It is also used to develop apps for Android (although Android Studio is also available now).Įclipse is written in Java. There are a lot of plugins available in this IDE. This is a tool that can be used to do professional development. You can use it to develop all kinds of systems and use all kinds of programming languages. EclipseĮclipse is a very popular IDE that is available for everything. However, if you have a lot of programs running already, it might cause some performance issues. This is not as much of a big deal on the Banana Pi as it is on the Raspberry Pi, because we have more RAM to play with. These tools are a little heavier than the command-line tools because you will need to not only run the software, but also render the window. There are a couple of choices in this regard that you may be familiar with. If you are more accustomed to graphical tools, you may be more comfortable with a full-featured IDE. With the exception of gVim, all the editors we just talked about live on the command line. You can get help at any time by pressing Ctrl + G. To save and close the editor, use the following key combinations: It comes with several commands that you will use frequently. If, for some reason, you need to install it, you can get it quickly with the help of the following command: sudo apt-get install nano The nano editor is generally considered the easiest to use and is installed by default on the Banana Pi images. This is probably because it was the first editor that I was exposed to when I started to learn Linux and experiment with the servers and eventually, the Raspberry Pi and Banana Pi. The nano editor is my favorite editor for the command line. The following screenshot shows Vim editing the file that we used earlier: This tutorial will teach you how to run this editor, which is awesome because the commands can be a bit complicated at first. You can run the tutorial with the help of the following command: vimtutor The gnome version will open the file in a window There is a handy tutorial that you can use to learn the commands of Vim. You can edit files easily with Vim via the command line for both Vim and Vim-Gnome, as follows: vim You can install it with an identical command: sudo apt-get install vim-gnome You don’t have to be confined to the terminal window. You can install Vim with the command line: sudo apt-get install vimĪlso, there is a GUI version available that allows interaction with the mouse this is functionally the same program as the Vim command line. If you do get good at it, though, you can code very quickly. However, people do find it a bit difficult to remember all the commands. Many won’t personally go out of their way to not use it. Vim is actually an extension of Vi, and it is functionally the same thing. Thus, your document will be saved and closed. You can save and close the editor with a couple of key combinations: You can also use this to create new files. The preceding code will open the file in Emacs for you to edit. Now, you can edit a file via the CLI by using the following code: emacs It is often installed by default, but you can easily install it if it is missing by running a quick command, as follows: sudo apt-get install emacs Emacs is a GNU-flavored editor for the command line. This is my least favorite command-line editor (just my preference). There are many editors like nano (which is my preference), but the war tends to be between the two aforementioned editors. There has been an ongoing war between the users of two editors: GNU Emacs and Vim. There are several editors available for the command line. If you master it, you will rarely need to leave it. The following screenshot shows some JavaScript being edited via nano on the command line: So, depending on whether you have a monitor or not, you will want to choose an appropriate tool. Some tools are available for the command line, while others are GUI tools. Some options that you may be familiar with are available for general purpose code editing. Hence, options such as Sublime Text are not available. When working on the Banana Pi, you’re limited to the software that will run on an ARM-based CPU. There are many different integrated development environments (generally abbreviated as IDEs) to choose from on Linux. (For more resources related to this topic, see here.) Choosing your editor These tools will help you write the code that will interact with the hardware through GPIO and on the Pi as a server. In this article by Daniel Blair, the author of the book Learning Banana Pi, you are going to learn about some editors and the programming languages that are available on the Pi and Linux.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |