DA-710 Series Linux User’s Manual Second Edition, August 2012 www.moxa.com/product © 2012 Moxa Inc. All rights reserved.
DA-710 Series Linux Introduction 1-7 threading mysql-common 5.0.51a-24+lenny2 MySQL database common files ncurses-base 5.7+20081213-1 bas
DA-710 Series Linux Introduction 1-8 sysvinit-utils 2.86.ds1-61 System-V-like utilities tar 1.20-1 GNU version of the tar archiving utility task
2 2. Software Configuration In this chapter, we explain how to operate a DA-710-LX computer directly or from a PC near you. There are three ways to
DA-710 Series Linux Software Configuration 2-2 Starting from a VGA Console Connect the display monitor to the DA-710-LX VGA connector, and then powe
DA-710 Series Linux Software Configuration 2-3 Connecting from a Telnet Console The DA-710-LX computer comes with four basic Gigabit Ethernet ports
DA-710 Series Linux Software Configuration 2-4 Connecting from an SSH Console The DA-710-LX computer supports an SSH Console to offer users with bet
DA-710 Series Linux Software Configuration 2-5 Adjusting the System Time The DA-710-LX has two time settings. One is the system time, and the other
DA-710 Series Linux Software Configuration 2-6 ATTENTION Before using the NTP client utility, check your IP address and network settings to make s
DA-710 Series Linux Software Configuration 2-7 Enabling and Disabling Daemons The following daemons are enabled when the DA-710-LX boots up for the
DA-710 Series Linux Software Configuration 2-8 To run a private daemon, you can edit the file rc.local as follows: 1. Because the root file system
DA-710 Series Linux User’s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with
DA-710 Series Linux Software Configuration 2-9 Setting the Run-Level To set the Linux run-level and execution priority of a program, use the followi
DA-710 Series Linux Software Configuration 2-10 Cron—Daemon for Executing Scheduled Commands The Cron daemon will search /etc/crontab for crontab fi
DA-710 Series Linux Software Configuration 2-11 Inserting a USB Storage Device into the Computer Since mounting USB storage devices manually can be
DA-710 Series Linux Software Configuration 2-12 Inserting a CompactFlash Card into the Computer The CompactFlash card is treated as a local disk dri
DA-710 Series Linux Software Configuration 2-13 APT—Installing and Removing Packages APT is the Debian tool used to install and remove packages. Bef
DA-710 Series Linux Software Configuration 2-14 MOXA:~# df -h Filesystem Size Used Avail Use% Mounted on rootfs 772M 39
3 3. Managing Communications The DA-710-LX ready-to-run embedded computer is a network-centric platform designed to serve as a front-end for data ac
DA-710 Series Linux Managing Communications 3-2 Changing the Network Settings The DA-710-LX computer has four basic Gigabit Ethernet ports named LAN
DA-710 Series Linux Managing Communications 3-3 Dynamic IP Address using DHCP To configure one or both LAN ports to request an IP address dynamicall
DA-710 Series Linux Managing Communications 3-4 # PCI device 0x10ec:0x8139 (8139too) SUBSYSTEM=="net", ACTION=="add", DRIVERS==&
Table of Contents 1. Introduction ...
DA-710 Series Linux Managing Communications 3-5 Configuring Multiple Serial Ports for Expansion Modules This section explains how to configure the s
DA-710 Series Linux Managing Communications 3-6 7. To change the order of device nodes and module names, you can write a rule in /etc/udev/rules.d/
DA-710 Series Linux Managing Communications 3-7 For example, use the following commands to set /dev/ttyM0 to RS-422: MOXA:~# setinterface /dev/ttyM0
DA-710 Series Linux Managing Communications 3-8 DNS Client The DA-710-LX supports DNS client (but not DNS server). To set up DNS client, you need to
DA-710 Series Linux Managing Communications 3-9 /etc/nsswitch.conf This file defines the sequence of files, /etc/hosts or /etc/resolv.conf, to be re
DA-710 Series Linux Managing Communications 3-10 Disabling the CGI Function The CGI function is enabled by default. If you want to disable the funct
DA-710 Series Linux Managing Communications 3-11 AllowOverride None </Directory> ... ... ScriptAlias /cgi-bin/
DA-710 Series Linux Managing Communications 3-12 IPTABLES IPTABLES is an administrative tool for setting up, maintaining, and inspecting the Linux k
DA-710 Series Linux Managing Communications 3-13 IPTABLES Hierarchy The following figure shows the IPTABLES hierarchy. IPTABLES Modules The DA-710-
DA-710 Series Linux Managing Communications 3-14 ipt_TOS.ko ipt_ttl.ko ipt_TTL.ko ipt_ULOG.ko The basic syntax to enable and load an IPTABLES mod
1 1. Introduction Thank you for purchasing the Moxa DA-710 Series of x86 ready-to-run embedded computers. This manual introduces the software config
DA-710 Series Linux Managing Communications 3-15 Define Policy for Chain Rules Usage: # iptables [-t tables] [-P] [INPUT, OUTPUT, FORWARD, PREROUTIN
DA-710 Series Linux Managing Communications 3-16 Example 5: Drop TCP packets addressed for port 21. # iptables –A INPUT –i eth0 –p tcp --dport 21 –j
DA-710 Series Linux Managing Communications 3-17 #ehco 1 > /proc/sys/net/ipv4/ip_forward #modprobe ipt_MASQUERADE #iptables –t nat –A POSTROUTING
DA-710 Series Linux Managing Communications 3-18 PPP (Point to Point Protocol) PPP (Point to Point Protocol) is used to run IP (Internet Protocol) a
DA-710 Series Linux Managing Communications 3-19 192.1.1.17 This is a degenerate case of a general option of the form x.x.x.x:y.y.y.y. Here x.x.x.x
DA-710 Series Linux Managing Communications 3-20 Try typing: #netstat -nr This should show three routes similar to the following: Kernel routing tab
DA-710 Series Linux Managing Communications 3-21 # Keep modem up even if connection fails persist crtscts modem 192.168.16.1:192.168.16.2 debug -det
DA-710 Series Linux Managing Communications 3-22 4. Edit the file /etc/ppp/pap-secrets and add the following: “[email protected]” * “password”
DA-710 Series Linux Managing Communications 3-23 6. If you use LAN1 to connect to the ADSL modem, add file /etc/ppp/options.eth0. If you use LAN2 t
DA-710 Series Linux Managing Communications 3-24 NFS (Network File System) Client The Network File System (NFS) is used to mount a disk partition on
DA-710 Series Linux Introduction 1-2 Overview The Moxa DA-710 Series of x86-based rackmount embedded computers are designed for industrial data acqu
DA-710 Series Linux Managing Communications 3-25 SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance SNMPv2-MIB::sysORDescr.1 = ST
DA-710 Series Linux Managing Communications 3-26 Ethernet Bridging for Private Networks on Different Subnets 1. Set up four machines, as shown in t
DA-710 Series Linux Managing Communications 3-27 And then configure the bridge interface in /etc/openvpn/bridge. #!/bin/bash # Create global variabl
DA-710 Series Linux Managing Communications 3-28 #gw="192.168.8.173" ... Start the bridge script file to configure the bridge interface. #
DA-710 Series Linux Managing Communications 3-29 Ethernet Bridging for Private Networks on the Same Subnet 1. Set up four machines, as shown in the
DA-710 Series Linux Managing Communications 3-30 2. On machine OpenVPN A, modify the remote address in configuration file /etc/openvpn/tun.conf. #
4 4. Programmer’s Guide The following topics are covered in this chapter: Device API RTC (Real Time Clock) UART Digital I/O Programma
DA-710 Series Linux Programmer Guide 4-2 Device API The DA-710 supports control devices with the ioctl system API. The interface is shown as below.
DA-710 Series Linux Programmer Guide 4-3 Example to set the baudrate #include “moxadevice.h” #include <termios.h> struct termios term; int
DA-710 Series Linux Programmer Guide 4-4 IMPORTANT! If the target baudrate is not a special baudrate (e.g. 50, 75, 110, 134, 150, 200, 300, 600, 12
DA-710 Series Linux Introduction 1-3 Software Components The DA-710-LX pre-installed Debian Lenny 5.0 Linux distribution has the following software
DA-710 Series Linux Programmer Guide 4-5 Function int set_din_event(int diport, void (*func)(int diport), int mode, long int duration) Descriptio
DA-710 Series Linux Programmer Guide 4-6 Example: DIO Program Source Code File Name: tdio.c Description: This program connects DO1 to DI1, change
DA-710 Series Linux Programmer Guide 4-7 8. show event and duration \n\ Choose : "); retval =0; scanf("%d&quo
DA-710 Series Linux Programmer Guide 4-8 retval=set_dout_state(i, 1); } else if ( i == 6 ) { // set low data printf
DA-710 Series Linux Programmer Guide 4-9 printf("DIO error control\n"); break; cas
DA-710 Series Linux Programmer Guide 4-10 Programmable LEDs The DA-685 provides 8 user-programmable LED indicators on its front panel. The following
5 5. System Recovery The DA-710-LX is installed with the Embedded Linux operating system, which is located in the Flash DOM (CompactFlash card) ship
DA-710 Series Linux System Recovery 5-2 Recovery Environment The recovery environment includes the DA-710-LX embedded computer and a bootable USB di
DA-710 Series Linux System Recovery 5-3 Step 2: Create a Linux Bootable USB Disk. a. You can find the firmware directory in the Recovery CD shippe
DA-710 Series Linux System Recovery 5-4 Step 3: Set up the BIOS to Boot from a USB Disk. a. Insert the USB disk. b. Power on and press DEL to ent
DA-710 Series Linux Introduction 1-4 findutils 4.4.0-2 utilities for finding files--find, xargs ftp 0.17-18 The FTP client g++ 4:4.3.2-2 The G
DA-710 Series Linux System Recovery 5-5 Step 4: Recover the Linux system from a USB Disk. a. If the BIOS setup is correct, it will boot from the U
DA-710 Series Linux System Recovery 5-6 d. Choose restore image from Local disk partition. PING (Partition Image Is Not Ghost)! Where do you
DA-710 Series Linux System Recovery 5-7 g. Enter “\” to choose the root directory of the restoration image. Enter root directory containing y
DA-710 Series Linux System Recovery 5-8 ATTENTION DO NOT turn off the power during system recovery, as the system may crash. Step 5: Set up the
DA-710 Series Linux Introduction 1-5 libgc1c2 1:6.8-1.1 conservative garbage collector for C and C++ libgcc1 1:4.3.2-1.1 GCC support library lib
DA-710 Series Linux Introduction 1-6 libslang2 2.1.3-3 The S-Lang programming library - runtime version libsnmp-base 5.4.1~dfsg-12 SNMP (Simple
Kommentare zu diesen Handbüchern