Moxa Technologies DA-681 Series Spezifikationen

Stöbern Sie online oder laden Sie Spezifikationen nach Vernetzung Moxa Technologies DA-681 Series herunter. Moxa Technologies DA-681 Series Specifications Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken

Inhaltsverzeichnis

Seite 1 - DA-681 Series Linux Manual

DA-681 Series Linux Manual Fourth Edition, August 2012 www.moxa.com/product © 2012 Moxa Inc. All rights reserved.

Seite 2

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.

Seite 3

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

Seite 4 - Introduction

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

Seite 5 - Software Specifications

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

Seite 6 - Software Components

DA-681 Linux Software Configuration 2-3 Use a cross-over Ethernet cable to connect your development workstation directly to the target computer, o

Seite 7

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

Seite 8

DA-681 Linux Software Configuration 2-5 # date MMDDhhmmYYYY MM: Month DD: Date hhmm: Hour and Minute YYYY: Year Use the following command

Seite 9

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

Seite 10 - DA-681 Linux Introduction

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

Seite 11

DA-681 Linux Software Configuration 2-8 # !/bin/sh # Add the daemonyou want to run daemon /root/tcps2-release & 5. After you finish writing

Seite 12 - Software Configuration

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

Seite 13 - Starting from a VGA Console

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

Seite 14 - ATTENTION

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

Seite 15 - Adjusting the System Time

DA-681 Linux Software Configuration 2-11 title Debian GNU/Linux, kernel 2.6.18-5-686 (single-user mode) root (hd0,0) kernel

Seite 16 - NTP Client

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

Seite 17

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

Seite 18

DA-681 Linux Software Configuration 2-14 MOXA:~# df -h Filesystem Size Used Avail Use% Mounted on rootfs 790M 219M 531M 3

Seite 19 - Setting the Run-Level

DA-681 Linux Software Configuration 2-15 ioctl(swtd_fd, IOCTL_SWATCHDOG_ACK, NULL); … } close(swtd_fd); } For convenient programming

Seite 20 - Commands

DA-681 Linux Software Configuration 2-16 unsigned long *time – the function will return the current time period. Output: OK will be zero. The

Seite 21

DA-681 Linux Software Configuration 2-17 exit(0); } /* * The convenient watchdog API --- libswtd.c */ #include <stdio.h> #include <s

Seite 22 - Computer

DA-681 Linux Software Configuration 2-18 struct timeval time; time.tv_sec = msec / 1000; time.tv_usec = (msec % 1000) * 1000; se

Seite 23 - Checking the Linux Version

Table of Contents 1. Introduction ...

Seite 24

DA-681 Linux Software Configuration 2-19 return ioctl(fd, IOCTL_SWATCHDOG_DISABLE, NULL); } int swtd_get(int fd, int *mode, unsigned long *tim

Seite 25 - WDT (Watchdog Timer)

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

Seite 26

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

Seite 27 - Close the file handle

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

Seite 28

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

Seite 29

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

Seite 30

DA-681 Linux Managing Communications 3-6 # `info libc "Name Service Switch"' for information about this file. passwd: co

Seite 31 - Managing Communications

DA-681 Linux Managing Communications 3-7 echo REMOTE_ADDR = $REMOTE_ADDR echo REMOTE_USER = $REMOTE_USER echo AUTH_TYPE = $AUTH_TYPE echo CONTENT_

Seite 32 - Static IP Address

DA-681 Linux Managing Communications 3-8 Allow from all </Directory> ... </VirtualHost> ... <VirtualHost *:

Seite 33 - Telnet Server

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

Seite 34 - DNS Client

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

Seite 35 - /etc/nsswitch.conf

DA-681 Linux Managing Communications 3-10 IPTABLES Hierarchy The following figure shows the IPTABLES hierarchy. Incoming Packets Mangle Table

Seite 36 - Apache Web Server

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

Seite 37

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

Seite 38 - IPTABLES

DA-681 Linux Managing Communications 3-13 --sport: Source port number. -d: Destination address. --dport: Destination port number. -j: Jump

Seite 39 - Sub-tables

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

Seite 40 - IPTABLES Hierarchy

DA-681 Linux Managing Communications 3-15 /sbin/iptables -F /sbin/iptables -X /sbin/iptables -Z /sbin/iptables -F -t nat /sbin/iptables -X

Seite 41 - IPTABLES Modules

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

Seite 42 - Append or Delete Rules

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

Seite 43 - Examples:

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

Seite 44 - Enabling NAT at Bootup

DA-681 Linux Managing Communications 3-19 4. Edit the file /etc/ppp/pap-secrets and add the following: “[email protected]” * “password” *

Seite 45

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

Seite 46 - Checking the Connection

DA-681 Linux Managing Communications 3-20 name [email protected] mtu 1492 mru 1492 defaultroute noipdefault ~ ~ "/etc/ppp/options.eth0"

Seite 47

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

Seite 48

DA-681 Linux Managing Communications 3-22 SNMPv2-MIB::snmpOutGetRequests.0 = Counter32: 0 SNMPv2-MIB::snmpOutGetNexts.0 = Counter32: 0 SNMPv2-MIB:

Seite 49

DA-681 Linux Managing Communications 3-23 2. Generate a preset shared key by typing the command: # openvpn --genkey --secret secrouter.key 3. Co

Seite 50

DA-681 Linux Managing Communications 3-24 6. On machine OpenVPN B, modify the remote address in configuration file /etc/openvpn/tap0-br.conf.

Seite 51

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

Seite 52 - OpenVPN

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

Seite 53

DA-681 Linux Managing Communications 3-27 2. On machine OpenVPN A, modify the remote address in configuration file /etc/openvpn/tun.conf. # point

Seite 54

DA-681 Linux Managing Communications 3-28 The first argument of parameter ifconfig is the local internal interface and the second argument is the

Seite 55

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

Seite 56 - Routed IP

DA-681 Linux Introduction 1-3 ATTENTION Refer to http://www.debian.org/ and http://www.gnu.org/ for information and documentation

Seite 57

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

Seite 58

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

Seite 59 - System Recovery

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

Seite 60 - Recovery Procedure

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

Seite 61

DA-681 Linux System Recovery 4-6 g. Enter “\” to choose the root directory of the restoration image. Enter root directory containing your

Seite 62

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

Seite 63

DA-681 Linux Introduction 1-4 Component Version Description bsdmainutils 6.1.6 Collection of more utilities from FreeBSD bsdutils 2.12r-19etc

Seite 64

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

Seite 65

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

Kommentare zu diesen Handbüchern

Keine Kommentare