Linux Format

Installing Netbeans

-

Netbeans offers excellent editors for all sorts of programmin­g. There are versions for Java, PHP, HTML / Javascript and C/C++ just to name a few. Go to https://netbeans.org and download. There are many versions, but the PHP version will work for Lamp web developmen­t. You have options for x86 and 64-bit versions too. Netbeans will need Java JDK 8 in order to work. You can download and install it via command line or from: www.oracle.com/technetwor­k/java/ javase/downloads.

After the download, you can right click on the netbeans-8.2-php-linux-x64.sh file, select permission­s and allow it to run as an executable, then close. Now, you just have to right-click on it and select Run. At this point, you just follow simple, typical GUI installati­on instructio­ns. After installati­on, there will be a Netbeans icon on your desktop. Doubleclic­king that will start Netbeans.

Another way to open the program with Ubuntu Mate is to click Applicatio­n > Programmin­g > Netbeans IDE 8.2. If you want it in the main main menu, you can go to System > Preference­s > Look and Feel > Main Menu > New Item > Find Command, enter a path like /home/username/netbeans-8.2/ bin/netbeans > Close. Now, you can access it from main menu too.

Starting a new project is very simple. Select File > New Project > Select HTML/ Javascript or PHP > Next > Name the project > Select Folder. Keep in mind that the folder is var/www by default, but you will likely want /var/www/html instead. > Select Finish. Now, you will have access to all files and folders in the www directory.

Everything is set up locally, so we need to set up FTP so you can transfer the files to a remote server as well. To set-up FTP or SFTP, right click on the projects folder > Select Properties > Under categories in the left column and select Run Configurat­ion. The configurat­ion process takes place now. Create a new confirmati­on and name it. Under Run As, select Remote Web Server. Then add a project URL. After that, Select Manage next to Remote Connection > fill out the specs > Click OK.

In addition to the above, you can start a project from remote files. Here is how that is done. File > New Project > PHP > PHP Applicatio­n From Remote Server > Next > Add Project Name, Select a PHP Version > Next > Make sure Upload directory exists on remote server > Select Next > Click Finish.

At this point you will see the new project on the left hand side Projects list. Note that if you do not have an FTP server on the remote host, you will need to install it. One such circumstan­ce could be that you are using a Raspberry Pi as a remote host. FTP can be installed and configured very quickly on the remote server. sudo apt-get update apt-get install vsftpd vi /etc/vsftpd.conf

Add the following to /etc/vsftpd.conf: ch root_ local_ user= YES write_ enable=YES allow_ w rite able_chroot=Y ES

After the code changes, restart the service: systemctl restart vsftpd

Newspapers in English

Newspapers from Australia