Moxa DA-685-LX [11/76] Attention
![Moxa DA-685-LX [11/76] Attention](/views2/1199137/page11/bgb.png)
DA-685 Linux Software Configuration
2-6
ATTENTION
Before using the NTP client utility, check your IP address and network settings (gateway and DNS) to make
sure an Internet connection is available.
Updating the Time Automatically
This section describes how to use a shell script to update the time automatically.
Example shell script for updating the system time periodically
#!/bin/sh
ntpdate time.stdtime.gov.tw
# You can use the time server’s ip address or domain
# name directly. If you use domain name, you must
# enable the domain client on the system by updating
# /etc/resolv.conf file.
hwclock –w
sleep 100
# Updates every 100 seconds. The min. time is 100 seconds.
# Change 100 to a larger number to update RTC less often.
Save the shell script using any file name. For example, fixtime.
How to run the shell script automatically when the kernel boots up
Because the root file system is mounted in Read-only mode, we need to re-mount it using writable permission.
# mount -o remount,rw /dev/hda1 /
Copy the example shell script fixtime to directory /etc/init.d, and then use chmod 755 fixtime to change
the shell script mode.
# chmod 755 fixtime
Next, use vi editor to edit the file /etc/inittab.
# vi /etc/inittab
Add the following line to the bottom of the file:
ntp : 2345 : respawn : /etc/init.d/fixtime
After you finish writing or modifying the code, remember to execute “umount /” to change the root directory
back to Read-only mode.
# umount /
Use the command #init q to re-initialize the kernel.
# init q
Enabling and Disabling Daemons
The following daemons are enabled when the DA-685-LX boots up for the first time.
snmpd SNMP Agent Daemon
telnetd Telnet Server/Client Daemon
Содержание
- Da 685 series linux user s manual 1
- Second edition august 2012 1
- Www moxa com product 1
- Copyright notice 2
- Da 685 series linux user s manual 2
- Disclaimer 2
- Technical support contact information 2
- Trademarks 2
- Www moxa com support 2
- Introduction 4
- Attention 5
- Device driver 5
- Hardware 5
- Linux kernel 5
- Micro kernel 5
- Overview 5
- Protocol stack 5
- Software components 5
- Software specifications 5
- Software configuration 6
- Da 685 linux software configuration 7
- Starting from a vga console 7
- The read only file system 7
- Connecting from a telnet console 8
- Da 685 linux software configuration 8
- Adjusting the system time 9
- Connecting from an ssh console 9
- Da 685 linux software configuration 9
- Linux users 9
- Windows users 9
- Da 685 linux software configuration 10
- Ntp client 10
- Setting the time manually 10
- Attention 11
- Enabling and disabling daemons 11
- Example shell script for updating the system time periodically 11
- How to run the shell script automatically when the kernel boots up 11
- Updating the time automatically 11
- Da 685 linux software configuration 12
- Da 685 linux software configuration 13
- Cron daemon for executing scheduled commands 14
- Da 685 linux software configuration 14
- Moxa rm f etc rc2 d s60tcps2 14
- Setting the run level 14
- Da 685 linux software configuration 15
- Inserting a usb storage device into the computer 15
- Apt installing and removing packages 16
- Attention 16
- Checking the linux version 16
- Da 685 linux software configuration 16
- Inserting a compact flash card 16
- Attention 17
- Da 685 linux software configuration 17
- Attention 18
- Da 685 linux software configuration 18
- Managing communications 19
- Attention 20
- Changing the interfaces configuration file 20
- Changing the network settings 20
- Detecting network interfaces 20
- Static ip address 20
- Adjusting ip addresses with ifconfig 21
- Da 685 linux managing communications 21
- Dynamic ip address using dhcp 21
- Telnet ftp server 21
- Da 685 linux managing communications 22
- Disabling the telnet tftp server 22
- Dns client 22
- Enabling the telnet tftp server 22
- Etc hostname 22
- Da 685 linux managing communications 23
- Etc nsswitch conf 23
- Etc resolv conf 23
- Apache web server 24
- Default homepage 24
- Disabling the cgi function 24
- Attention 25
- Da 685 linux managing communications 25
- Saving web pages to a usb storage device 25
- Writin 25
- Attention 26
- Da 685 linux managing communications 26
- Da 685 linux managing communications 27
- Filter table includes three chains 27
- Iptables 27
- Mangle table includes two chains 27
- Nat table includes three chains 27
- Sub tables 27
- Da 685 linux managing communications 28
- Iptables hierarchy 28
- Iptables modules 28
- Attention 29
- Da 685 linux managing communications 29
- Observe and erase chain rules 29
- To maintain the database 29
- Append or delete rules 30
- Da 685 linux managing communications 30
- Define policy for chain rules 30
- Attention 31
- Nat example 31
- Nat network address translation 31
- Da 685 linux managing communications 32
- Enabling nat at bootup 32
- Ppp point to point protocol 32
- Attention 33
- Connecting to a ppp server over a simple dial up connection 33
- Da 685 linux managing communications 33
- Log in with username and password 33
- Checking the connection 34
- Connecting to a ppp server over a hard wired link 34
- Da 685 linux managing communications 34
- Da 685 linux managing communications 35
- Setting up a machine for incoming ppp connections 35
- Attention 36
- Da 685 linux managing communications 36
- And add the following 37
- Da 685 linux managing communications 37
- Edit the file 37
- Da 685 linux managing communications 38
- Attention 39
- Da 685 linux managing communications 39
- Nfs network file system client 39
- Snmp simple network management protocol 39
- Attention 40
- Ethernet bridging for private networks on different subnets 40
- Openvpn 40
- Da 685 linux managing communications 41
- Attention 42
- Da 685 linux managing communications 42
- Da 685 linux managing communications 43
- Ethernet bridging for private networks on the same subnet 43
- Da 685 linux managing communications 44
- Routed ip 44
- Da 685 linux managing communications 45
- Programmer guide 46
- Da 685 linux programmer guide 47
- How the wdt works 47
- Introduction 47
- Rtc real time clock 47
- The wdt api 47
- Wdt watch dog timer 47
- Attention 48
- Da 685 linux programmer guide 48
- Examples 48
- Da 685 linux programmer guide 49
- Dev pled 49
- Moxa lsmod grep moxa_pled moxa_pled 2464 0 49
- Moxa modprobe moxa_pled moxa lsmod grep moxa_pled moxa_pled 2464 0 49
- Programmable leds 49
- System recovery 50
- Da 685 linux system recovery 51
- Hardware 51
- Recovery environment 51
- Recovery procedure 51
- Step 1 prepare your usb drive 51
- Da 685 linux system recovery 52
- Da 685 linux system recovery 53
- Da 685 linux system recovery 54
- Step 2 change the bios settings 54
- Da 685 linux system recovery 55
- Step 3 restore the system from usb drive 55
- Da 685 linux system recovery 56
- Da 685 linux system recovery 57
- Da 685 linux system recovery 58
- Step 4 change the bios settings to boot from the original disk 58
- Da 685 linux system recovery 59
- Saving the system to the usb drive 59
- Step 5 reboot the computer 59
- Da 685 linux system recovery 60
- Da 685 linux system recovery 61
- A software components 62
- Software components 62
- Da 685 linux software components 63
- Da 685 linux software components 64
- Da 685 linux software components 65
- Da 685 linux software components 66
- Da 685 linux software components 67
- Da 685 linux software components 68
- Da 685 linux software components 69
- Da 685 linux software components 70
- Da 685 linux software components 71
- Da 685 linux software components 72
- Da 685 linux software components 73
- Da 685 linux software components 74
- Da 685 linux software components 75
- Da 685 linux software components 76
Похожие устройства
- Moxa DA-685-LX Руководство по подключению
- Moxa DA-685-LX Технические характеристики
- Moxa DA-685-LX Руководство по аппаратной части
- Moxa DA-685-XPE Инструкция по эксплуатации
- Moxa DA-685-XPE Руководство по подключению
- Moxa DA-685-XPE Технические характеристики
- Moxa DA-685-XPE Руководство по аппаратной части
- Moxa DA-685-W7E Инструкция по эксплуатации
- Moxa DA-685-W7E Руководство по аппаратной части
- Moxa DA-685-W7E Руководство по подключению
- Moxa DA-685-W7E Технические характеристики
- Moxa DA-820-C7-SP-HV-T Инструкция по эксплуатации
- Moxa DA-820-C7-SP-HV-T Руководство по аппаратной части
- Moxa DA-820-C7-SP-HV-T Технические характеристики
- Moxa DA-820-C7-SP-LV-T Инструкция по эксплуатации
- Moxa DA-820-C7-SP-LV-T Технические характеристики
- Moxa DA-820-C7-SP-LV-T Технические характеристики
- Moxa DA-820-C7-DP-HV-T Инструкция по эксплуатации
- Moxa DA-820-C7-DP-HV-T Технические характеристики
- Moxa DA-820-C7-DP-HV-T Руководство по аппаратной части