You will need another computer to connect to the UC-8100-LX and log on to the command line interface. There are two ways to connect: through serial console cable or through Ethernet cable. Refer to the Hardware Manual to see how to set up the physical connections.
The default login username and password are:
Username: moxa
Password: moxa
SSH Console
The UC-8100-LX supports SSH connections over an Ethernet network. Use the following default IP addresses to connect to the UC-8100-LX
LAN1: 192.168.3.127
LAN2: 192.168.4.127
Linux Users
Use the ssh command from a Linux computer to access the UC-8100-LX's LAN1 port
ssh moxa@192.168.3.127
Type yes to complete the connection.
Attention
Rekey SSH regularly
In order to secure your system, we suggest doing a regular SSH-rekey, as shown in the following steps.
When prompted for a passphrase, leave the passphrase empty and press enter.
sudo /etc/init.d/ssh restart
Network Settings
Configuring Ethernet Interfaces
After the first login, you can configure the UC-8100-LX's network settings to better fit your application. Note that it is more convenient to manipulate the network interface settings from the serial console than from an SSH login to avoid reconnections.
Modifying Network Settings via the Serial Console
Access the Console Utility of the target computer via the serial Console port, and then type cd /etc/network to change directories.
cd /etc/network/
Type sudo vi interfaces to edit the network configuration file in the vi editor. You can configure the UC-8100-LX's Ethernet ports to use either static or dynamic (DHCP) IP addresses.
Setting a Static IP address
To set a static IP address for the UC-8100-LX, use the iface command to modify the address , network, netmask, and boardcast parameters of the Ethernet interface.
Setting Dynamic IP addresses:
To configure one or both LAN ports to request an IP address dynamically use the dhcp option in place of the static in the iface command as follows:
Here are some possible settings for the North America Eastern time zone:
TZ=EST5EDT
TZ=EST0EDT
TZ=EST0
In the first case, the reference time is GMT and the stored values are correct worldwide. A simple change of the TZ variable can print the local time correctly in any time zone.
In the second case, the reference time is Eastern Standard Time and the only conversion performed is for Daylight Saving Time. Therefore, there is no need to adjust the hardware clock for Daylight Saving Time twice per year.
In the third case, the reference time is always the time reported. You can use this option if the hardware clock on your machine automatically adjusts for Daylight Saving Time or you would like to manually adjust the hardware time twice a year.
TZ=ESTEDT
export TZ
You must include the TZ setting in the /etc/rc.d/rc.local file. The timezone setting will be activated when you restart the computer.
The following table lists other possible values for the TZ environment variable:
Determining Available Drive Space
To determine the amount of available drive space, use the df command with the -h tag. The system will return the amount of drive space broken down by file system. Here is an example:
df -h`
Enabling and Disabling Daeamons
By default, only the following daemons are enabled in the UC-8100-LX:
sftpd SFTP Server / Client daemon
sshd Secure Shell Server daemon
You can use the insserv command to manage which service run in the background. The following example shows how to add the Apache daemon to the current run level.
sudo insserv -d apache2
The Apache daemon will not get activated in the current boot session, but will be running in the background from the next boot session.
To disable the Apache daemon, use the following command:
sudo insserv -r apache2
You can also write your own script to start and stop a daemon during the system "init" stage:
Linux daemons can be started or stopped in a current boot session by using the scripts in etc/init.d. To start the apache deamon, use:
sudo /etc/init.d/apache2 start
To stop the apache daemon, use:
sudo /etc/init.d/apache2 stop
In comparision to insserv, scripts in /etc/init.d/ will only start or stop the services in the current boot session. Once you reboot the UC-8100-LX, it will go back to the default settings managed by insserv.
Package Management
Most of the software packages are maintained by the Debian community through the Debian official apt repository, whereas features only supported by the UC-8100-LX are maintained by Moxa. Adding the Moxa repository to the /etc/apt/sources.list will allow you to keep your system up to date with the newest UC-8100-LX packages.
cat /etc/apt/sources.list
Shutting Down the Device
To shut down the device, disconnect the power source to the computer. When the computer is powered off, main components such as the CPU, RAM, and storage devices are powered off, although an internal clock may retain battery power.
You can use the Linux command shutdown to close all software running on the device and halt the system. However, main components such as the CPU, RAM, and storage devices will continue to be powered after you run this command.
sudo shutdown -h now`
SSH Console
Linux Users
ssh
command from a Linux computer to access the UC-8100-LX's LAN1 portyes
to complete the connection.Attention
Network Settings
Configuring Ethernet Interfaces
Modifying Network Settings via the Serial Console
cd /etc/network
to change directories.sudo vi interfaces
to edit the network configuration file in thevi
editor. You can configure the UC-8100-LX's Ethernet ports to use eitherstatic
ordynamic
(DHCP) IP addresses.Setting a Static IP address
iface
command to modify theaddress
,network
,netmask
, andboardcast
parameters of the Ethernet interface.Setting Dynamic IP addresses:
dhcp
option in place of thestatic
in theiface
command as follows:Setting the Time Zone
timezone
. One is using theTZ
variable. The other is using the/etc/localtime
file.Using the TZ Variable
/etc/rc.d/rc.local
file. Thetimezone
setting will be activated when yourestart
the computer.Determining Available Drive Space
df
command with the-h
tag. The system will return the amount of drive space broken down by file system. Here is an example:df -h`
Enabling and Disabling Daeamons
insserv
command to manage which service run in the background. The following example shows how to add the Apache daemon to the current run level.etc/init.d
. To start the apache deamon, use:insserv
, scripts in/etc/init.d/
will only start or stop the services in the current boot session. Once you reboot the UC-8100-LX, it will go back to the default settings managed byinsserv
.Package Management
/etc/apt/sources.list
will allow you to keep your system up to date with the newest UC-8100-LX packages.Shutting Down the Device
shutdown
to close all software running on the device and halt the system. However, main components such as the CPU, RAM, and storage devices will continue to be powered after you run this command.sudo shutdown -h now`