optics.csufresno.edu Class Files - ECE 71 HOWTOs
Department of Electrical and Computer Engineering
Dr. Gregory R. Kriehn, Professor

HOWTO Connect to a Remote Host using NetBeans


The NetBeans IDE is an Integrated Development Environment available for Windows, Mac, Linux, and Solaris. The NetBeans project consists of an open-source IDE and an application platform that enable developers to rapidly create web, enterprise, desktop, and mobile applications using the Java platform, as well as PHP, JavaScript and Ajax, Groovy and Grails, and C/C++.

One of the features of NetBeans is that it allows you to develop your code on one machine, and compile and execute it on another.

Setting up a Remote Host

To connect to a remote host, launch Netbeans and perform the following steps:

1.  Click on Window -> Services (or hit CTRL+5).
2.  Right click on C/C++ Build Hosts, and then click on Add New Host...
3.  Under Hostname: type ezekiel.engr.csufresno.edu and click Next >.
4.  Under Login: type your username ece71k[XX], where [XX] is your login number. Click Next >.
5.  If prompted to accept an RSA key fingerprint, click yes.
     If prompted to create a known_hosts file, click yes.
     If prompted to create a .ssh directory click yes, followed by OK.
6.  Under Password: type in your ezekiel password. DO NOT click on the Remember Password box.  Click OK.
7.  When NetBeans is finished configuring, verify the Default Tool Collection: in the drop down menu is GNU.
8.  Change the Access Project files via: drop down menu to Automatic copying.  Click Finish.

Connecting to the Remote Host

In the Services menu, double click on the C/C++ Build Hosts tree to expand it. You should notice the remote host ece71k[XX]@ezekiel.engr.csufresno.edu, where [XX] is your login number. Right click on the remote host, and click on Set as Default.

This will set the default connection to ezekiel whenever we are ready to compile or execute a program.

Whenever you sit down to a computer in the LCOE computer lab, you need to follow this entire procedure to connect the NetBeans to the server. Although the lab computers are rebooted and changed to their default configurations on a nightly basis, DO NOT allow NetBeans to store your password, since Netbeans will automatically provide someone else with access to your code if they launch the IDE for the remainder of the day.