CCilot XA and CCpilot XS
Product revision: 0.12
Software guide
2018-03-19
www.crosscontrol.com
23
Additionally, there’s a specific shutdown script available for user editing. It is called
/opt/shutdown, and is by default an empty script. Any user can add specific shutdown related tasks
in that script, if desired.
7.2.
Text editor
The console text editor
nano
is available per default for text editing, as well as the
vi
editor.
7.3.
IP address configuration
There are several ways of setting the IP address of a device. The default method is DHCP, but a
static IP address can also be used. This can be done through the network interfaces configuration
file.
7.3.1.
File method for IP address configuration
The network interfaces file is located in writable storage, but the edit process has been made
transparent to that fact. This method requires knowledge about the interfaces file format, but a
sample is given below.
# sudo nano /etc/network/interfaces
Sample of interfaces file setting same static address as the graphical method above.
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.2.185
netmask 255.255.255.0
gateway 192.168.2.254
Once the file has been edited, it is recommended to either reboot the device, or to bring the network
interfaces down and up again, for the IP address configuration to take effect.
# sudo ifdown eth0
# sudo ifup eth0
7.4.
Remote access
The methods described in this chapter require an IP address being assigned to the device.
7.4.1.
SSH
To connect to the device, issue the following command (and give password when asked):
# ssh [email protected]
To connect to a host from the device, issue the following command:
~# ssh [email protected]
Above X.X.X.X is known as an SSH server IP address, with username
Username
. A password might
be necessary.