| |||
Home > ARM DS-5 tutorials > Using an SSH connection to set up and run Gnometris on an ARM Linux target |
On some targets you can use a Secure SHell (SSH) connection with the Remote System Explorer (RSE) provided with DS-5.
To set up a Linux SSH connection to an ARM Linux target and run the Gnometris application:
Add the Remote Systems view to the DS-5 Debug perspective:
Ensure that you are in the DS-5 perspective. To change perspective either use the perspective toolbar or select Window → Open perspective → DS-5 Debug from the main menu.
Select Window → Show View → Other... to open the Show View dialog box.
Select the Remote Systems view in the Remote Systems group.
Click OK.
In the Remote Systems view, set up a Linux connection to a remote target using SSH:
Click on Define a connection to remote system in the Remote Systems view toolbar.
In the Select Remote System Type dialog box, expand the General group and select Linux.
Click Next.
In the Remote Linux System Connection, enter the remote target IP address or name in the Host name field.
Click Next.
Select SSH protocol file access.
Click Next.
Select the shell processes for Linux systems.
Click Next.
Select SSH shells.
Click Next.
Select SSH terminals.
Click Finish.
In the Remote Systems view:
Right-click on the Linux target and select Connect from the context menu.
In the Enter Password dialog box, enter a User ID and Password if required.
Click OK to close the dialog box.
Copy the stripped version of the Gnometris application, gnometris
,
and the libgames-support.so
library from the
local file system on to the target file system.
Ensure that the files on the target have execute permissions. To do this, right-click on each file, select Properties from the context menu and change the checkboxes as required.
Open a terminal shell that is connected to the target and launch gdbserver with the application:
In the Remote Systems view, right-click on Ssh Terminals.
Select Launch Terminal to open a terminal shell.
In the terminal shell, navigate to the directory
where you copied the gnometris
application,
then execute the following command:
export DISPLAY=ip
:0.0 gdbserver :port
gnometris
where:
ip
is the IP address of the host to display the Gnometris game
port
is the connection port between gdbserver and
the application, for example 5000
.
If the target has a display that you can use, then you do
not need to export DISPLAY
.