DA-681 Series Linux Manual Fourth Edition, August 2012 www.moxa.com/product © 2012 Moxa Inc. All rights reserved.
DA-681 Linux Introduction 1-7 Component Version Description linux-kernel-headers 2.6.18-7 Linux Kernel Headers for development locales 2.3.6.
DA-681 Linux Introduction 1-8 Component Version Description tcpd 7.6.dbs-13 Wietse Venema's TCP wrapper utilities tcpdump 3.9.5-2etch1
2 2. Software Configuration In this chapter, we explain how to operate a DA-681-LX computer directly or from a PC near you. There are three ways t
DA-681 Linux Software Configuration 2-2 Starting from a VGA Console Connect the display monitor to the DA-681-LX VGA connector, and then power it
DA-681 Linux Software Configuration 2-3 Use a cross-over Ethernet cable to connect your development workstation directly to the target computer, o
DA-681 Linux Software Configuration 2-4 Windows Users Click on the link http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html to downloa
DA-681 Linux Software Configuration 2-5 # date MMDDhhmmYYYY MM: Month DD: Date hhmm: Hour and Minute YYYY: Year Use the following command
DA-681 Linux Software Configuration 2-6 Updating the Time Automatically This section describes how to use a shell script to update the time automa
DA-681 Linux Software Configuration 2-7 Enabling and Disabling Daemons The following daemons are enabled when the DA-681-LX boots up for the first
DA-681 Linux Software Configuration 2-8 # !/bin/sh # Add the daemonyou want to run daemon /root/tcps2-release & 5. After you finish writing
DA-681 Series Linux Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with the te
DA-681 Linux Software Configuration 2-9 MOXA:~# cd /etc/rc2.d MOXA:/etc/rc2.d# MOXA:/etc/rc2.d# ls S19nfs-common S25nfs-user-server S99showread
DA-681 Linux Software Configuration 2-10 1. Write a shell script named fixtime.sh and save it to /home/. #!/bin/sh ntpdate time.nist.gov hwclock
DA-681 Linux Software Configuration 2-11 title Debian GNU/Linux, kernel 2.6.18-5-686 (single-user mode) root (hd0,0) kernel
DA-681 Linux Software Configuration 2-12 ATTENTION Remember to type the command # sync before you disconnect the USB storage device. If you do no
DA-681 Linux Software Configuration 2-13 APT—Installing and Removing Packages APT is the Debian tool used to install and remove packages. Before i
DA-681 Linux Software Configuration 2-14 MOXA:~# df -h Filesystem Size Used Avail Use% Mounted on rootfs 790M 219M 531M 3
DA-681 Linux Software Configuration 2-15 ioctl(swtd_fd, IOCTL_SWATCHDOG_ACK, NULL); … } close(swtd_fd); } For convenient programming
DA-681 Linux Software Configuration 2-16 unsigned long *time – the function will return the current time period. Output: OK will be zero. The
DA-681 Linux Software Configuration 2-17 exit(0); } /* * The convenient watchdog API --- libswtd.c */ #include <stdio.h> #include <s
DA-681 Linux Software Configuration 2-18 struct timeval time; time.tv_sec = msec / 1000; time.tv_usec = (msec % 1000) * 1000; se
Table of Contents 1. Introduction ...
DA-681 Linux Software Configuration 2-19 return ioctl(fd, IOCTL_SWATCHDOG_DISABLE, NULL); } int swtd_get(int fd, int *mode, unsigned long *tim
3 3. Managing Communications The DA-681-LX ready-to-run embedded computer is a network-centric platform designed to serve as a front-end for data
DA-681 Linux Managing Communications 3-2 Changing the Network Settings The DA-681-LX computer has6 Ethernet ports named LAN1 to LAN6. The LAN Port
DA-681 Linux Managing Communications 3-3 Dynamic IP Address using DHCP To configure one or both LAN ports to request an IP address dynamically, re
DA-681 Linux Managing Communications 3-4 Disabling the Telnet Server Disable the daemon by typing “#” in front of the first character of the row t
DA-681 Linux Managing Communications 3-5 /etc/hostname 1. Mount the root file system with write permission. MOXA:~# mount -o remount,rw /dev/hda1
DA-681 Linux Managing Communications 3-6 # `info libc "Name Service Switch"' for information about this file. passwd: co
DA-681 Linux Managing Communications 3-7 echo REMOTE_ADDR = $REMOTE_ADDR echo REMOTE_USER = $REMOTE_USER echo AUTH_TYPE = $AUTH_TYPE echo CONTENT_
DA-681 Linux Managing Communications 3-8 Allow from all </Directory> ... </VirtualHost> ... <VirtualHost *:
DA-681 Linux Managing Communications 3-9 The DA-681-LX supports three types of IPTABLES: Filter tables, NAT tables, and Mangle tables. Filter Tabl
1 1. Introduction Thank you for purchasing the Moxa DA-681 Series of x86 ready-to-run embedded computers. This manual introduces the software conf
DA-681 Linux Managing Communications 3-10 IPTABLES Hierarchy The following figure shows the IPTABLES hierarchy. Incoming Packets Mangle Table
DA-681 Linux Managing Communications 3-11 IPTABLES Modules The DA-681-LX supports the following sub-modules. Be sure to use the module that matche
DA-681 Linux Managing Communications 3-12 -F: Flush the selected chain (all the chains in the table if none is listed). -X: Delete the specifi
DA-681 Linux Managing Communications 3-13 --sport: Source port number. -d: Destination address. --dport: Destination port number. -j: Jump
DA-681 Linux Managing Communications 3-14 NAT Example The IP address of all packets leaving LAN1 are changed to 192.168.3.127 (you will need to lo
DA-681 Linux Managing Communications 3-15 /sbin/iptables -F /sbin/iptables -X /sbin/iptables -Z /sbin/iptables -F -t nat /sbin/iptables -X
DA-681 Linux Managing Communications 3-16 “ “ Send a return (null text followed by the usual return) ogin: username word: password Log in with us
DA-681 Linux Managing Communications 3-17 MOXA:~# ping 129.67.1.165 PING 129.67.1.165 (129.67.1.165): 56 data bytes 64 bytes from 129.67.1.165: ic
DA-681 Linux Managing Communications 3-18 init "/usr/sbin/chat -v -f /etc/ppp/ppp-ttyM0.chat" # Set up routing to go through this PPP l
DA-681 Linux Managing Communications 3-19 4. Edit the file /etc/ppp/pap-secrets and add the following: “[email protected]” * “password” *
DA-681 Linux Introduction 1-2 Overview The DA-681 embedded computer is based on the Intel Celeron M processor and 910GMLE chipset, which supports
DA-681 Linux Managing Communications 3-20 name [email protected] mtu 1492 mru 1492 defaultroute noipdefault ~ ~ "/etc/ppp/options.eth0"
DA-681 Linux Managing Communications 3-21 for the DA-681-LX without worrying about the amount of disk space that will be available. The DA-681-LX
DA-681 Linux Managing Communications 3-22 SNMPv2-MIB::snmpOutGetRequests.0 = Counter32: 0 SNMPv2-MIB::snmpOutGetNexts.0 = Counter32: 0 SNMPv2-MIB:
DA-681 Linux Managing Communications 3-23 2. Generate a preset shared key by typing the command: # openvpn --genkey --secret secrouter.key 3. Co
DA-681 Linux Managing Communications 3-24 6. On machine OpenVPN B, modify the remote address in configuration file /etc/openvpn/tap0-br.conf.
DA-681 Linux Managing Communications 3-25 ATTENTION You can create link symbols to start the OpenVPN service at boot time: # ln -sf /etc/init.d/o
DA-681 Linux Managing Communications 3-26 Ethernet Bridging for Private Networks on the Same Subnet 1. Set up four machines, as shown in the foll
DA-681 Linux Managing Communications 3-27 2. On machine OpenVPN A, modify the remote address in configuration file /etc/openvpn/tun.conf. # point
DA-681 Linux Managing Communications 3-28 The first argument of parameter ifconfig is the local internal interface and the second argument is the
4 4. System Recovery The DA-681-LX is installed with the Embedded Linux operating system, which is located in the Flash DOM (CompactFlash card) sh
DA-681 Linux Introduction 1-3 ATTENTION Refer to http://www.debian.org/ and http://www.gnu.org/ for information and documentation
DA-681 Linux System Recovery 4-2 Recovery Environment The recovery environment includes the DA-681-LX embedded computer and a bootable USB disk wi
DA-681 Linux System Recovery 4-3 b. Power on and press DEL to enter the bios setup menu. c. Select Advanced Hard Disk Boot Priority and then p
DA-681 Linux System Recovery 4-4 4. Recover the Linux system from a USB Disk. a. If the BIOS setup is correct, it will boot from the USB disk. F
DA-681 Linux System Recovery 4-5 d. Choose restore image from Local disk partition. PING (Partition Image Is Not Ghost)! Where do you want
DA-681 Linux System Recovery 4-6 g. Enter “\” to choose the root directory of the restoration image. Enter root directory containing your
DA-681 Linux System Recovery 4-7 5. Set up the BIOS back to boot from DOM or CompactFlash Disk. a. Power on and press DEL to enter the bios set
DA-681 Linux Introduction 1-4 Component Version Description bsdmainutils 6.1.6 Collection of more utilities from FreeBSD bsdutils 2.12r-19etc
DA-681 Linux Introduction 1-5 Component Version Description klibc-utils 1.4.34-2 Small statically-linked utilities built with klibc klogd 1.4
DA-681 Linux Introduction 1-6 Component Version Description libnet-telnet-perl 3.03-1 Script telnetable connections libnewt0.52 0.52.2-10 No
Comentarios a estos manuales