Difference between revisions of "Using the Eclipse Terminal View"

From wiki.emacinc.com
Jump to: navigation, search
(added initial content)
 
(added initial content)
Line 16: Line 16:
  
 
; New Terminal Connection
 
; New Terminal Connection
: When you create a New Terminal Connection, you keep the existing connection(s) and add a new one. This new connection will show up within the same Terminal View as the existing connection(s). To create a new terminal connection this way, use the ''New Terminal'' button, [[File:Terminal_View_New_Terminal_Connection_Icon.png|Terminal View New Terminal Icon]]. <br><br> To move between the connections, use the ''Display Selected Connections'' button, [[File:Terminal_View_Switch_Connection_Icon.png|Terminal View Switch Connections Icon]].
+
: When you create a New Terminal Connection, you keep the existing connection(s) and add a new one. This new connection will show up within the same Terminal View as the existing connection(s). To create a new terminal connection this way, use the ''New Terminal'' button, [[File:Terminal_View_New_Terminal_Connection_Icon.png|Terminal View New Terminal Icon]]. <br> To move between the connections, use the ''Display Selected Connections'' button, [[File:Terminal_View_Switch_Connection_Icon.png|Terminal View Switch Connections Icon]].
  
 
=== Working with Connections ===
 
=== Working with Connections ===
Line 28: Line 28:
  
 
{{mbox | type = warning | text = EMAC recommends using SSH rather than Telnet on shared ethernet or wireless connections since the SSH encryption helps prevent the use of packet analysis to read passwords and data sent over the network. Telnet and other insecure protocols use no encryption, allowing any packet sniffing to intercept the password and login information. This guide covers the use of Telnet under the assumption that customers will not use it over a public network.}}
 
{{mbox | type = warning | text = EMAC recommends using SSH rather than Telnet on shared ethernet or wireless connections since the SSH encryption helps prevent the use of packet analysis to read passwords and data sent over the network. Telnet and other insecure protocols use no encryption, allowing any packet sniffing to intercept the password and login information. This guide covers the use of Telnet under the assumption that customers will not use it over a public network.}}
 +
 +
The first step for any of the three connections types is to initiate a New Terminal Connection dialog as [[#Establish a Terminal Connection|described above]]. Any of the three methods will produce the same result, the only difference being the name of the resulting dialog window.
 +
 +
=== SSH ===
 +
SSH, or Secure Shell, is a protocol by which encrypted data is exchanged between two applications over a network connection. From the Eclipse Terminal View, SSH can be used to send commands to and receive output from a remote machine. The following procedure references Figure 2 to configure SSH settings:
 +
# Initiate a new terminal connection dialog as [[#Establish a Terminal Connection|described above]].
 +
# Choose ''SSH'' from the ''Connection Type:'' drop-down menu.
 +
# Enter the target machine's IP Address in the ''Host:'' text field.
 +
# Enter one of the target machine's user names in the ''User:'' text field and the associated password in the ''Password:'' text field. The '''default username and password for EMAC products''' are ''root'' and ''emac_inc'', respectively.
 +
 +
[[File:Eclipse_New_Terminal_Connection_Dialog.png|center|frame|Figure 1: SSH Connection Dialog]]

Revision as of 06:47, 15 May 2013

The EMAC distribution of Eclipse includes a terminal view plugin which allows the developer to connect to a remote machine from within Eclipse. This feature supports multiple types of connection including SSH, telnet, and serial. These connections can be established within any of the Eclipse Perspectives.

Open the Eclipse Terminal View

To open the Eclipse Terminal View from within any Perspective:

  1. Click Window -> Show View -> Other to open the Show View dialog.
  2. Select Terminal -> Terminal then click OK in the Show View dialog. See Figure 1 below for an example of a newly-opened Terminal View, outlined in red. The example assumes that the View is opened from within the default C/C++ Perspective.
    Figure 1: New Terminal View

Establish a Terminal Connection

There are three ways to establish a terminal connection: new connection, change settings (for the current connection), and new terminal connection. Each of these methods is described in detail below.

New Connection
This method Creates a new connection. This can only be used when no connection is currently established. To create a new connection this way, use the Connect button, Terminal View Connect Icon.
Change Settings
When you change the settings for the current connection, the current connection will automatically switch over to the new settings. To change the current connection this way, use the Settings button, Terminal View Settings Icon.
New Terminal Connection
When you create a New Terminal Connection, you keep the existing connection(s) and add a new one. This new connection will show up within the same Terminal View as the existing connection(s). To create a new terminal connection this way, use the New Terminal button, Terminal View New Terminal Icon.
To move between the connections, use the Display Selected Connections button, Terminal View Switch Connections Icon.

Working with Connections

The next section describes the different connection types that are available when using one of these three methods to establish a Terminal Connection.

Connection Types

This guide covers three different remote connection types:

  • SSH - Secure Shell provides encrypted communications over TCP/IP networks.
  • Serial - Transfers data over a serial cable, typically through an RS-232 port.
  • Telnet - Transfers data over a TCP/IP network in plain text format.

The first step for any of the three connections types is to initiate a New Terminal Connection dialog as described above. Any of the three methods will produce the same result, the only difference being the name of the resulting dialog window.

SSH

SSH, or Secure Shell, is a protocol by which encrypted data is exchanged between two applications over a network connection. From the Eclipse Terminal View, SSH can be used to send commands to and receive output from a remote machine. The following procedure references Figure 2 to configure SSH settings:

  1. Initiate a new terminal connection dialog as described above.
  2. Choose SSH from the Connection Type: drop-down menu.
  3. Enter the target machine's IP Address in the Host: text field.
  4. Enter one of the target machine's user names in the User: text field and the associated password in the Password: text field. The default username and password for EMAC products are root and emac_inc, respectively.
Figure 1: SSH Connection Dialog