
Cryptographic Hash Functions.......................................................................................................5-5
The Apache Web Server ......................................................................................................................5-5
Edit ServerName in Apache Configuration File .................................................................................5-5
SFTP ................................................................................................................................................. 5-6
DNS ..................................................................................................................................................5-6
IPTABLES ..........................................................................................................................................5-7
Observe and Erase Chain Rules .....................................................................................................5-9
Define Policy for Chain Rules....................................................................................................... 5-10
Append or Delete Rules.............................................................................................................. 5-11
rsync............................................................................................................................................... 5-12
Using rsync for External Backups................................................................................................. 5-12
Automating rsync Backups ......................................................................................................... 5-12
NAT ................................................................................................................................................ 5-13
NAT Example ............................................................................................................................ 5-13
Enabling NAT at Bootup ............................................................................................................. 5-13
NFS (Network File System) ................................................................................................................ 5-14
Setting up UC-8100-LX as an NFS Client ...................................................................................... 5-15
SNMP .............................................................................................................................................. 5-15
OpenVPN ......................................................................................................................................... 5-16
Static-Key VPN.......................................................................................................................... 5-17
Package Management........................................................................................................................ 5-18
apt-get .................................................................................................................................... 5-18
apt-cache ................................................................................................................................. 5-18
List All Available Packages .......................................................................................................... 5-18
Find Out Package Name and Description of Software ..................................................................... 5-18
Check Package Information ........................................................................................................ 5-18
Check Dependencies for Specific Packages ................................................................................... 5-18
Check statistics of Cache ............................................................................................................ 5-18
Update System Packages ........................................................................................................... 5-19
Install or Upgrade Specific Packages............................................................................................ 5-19
Upgrade All Software Packages ................................................................................................... 5-19
Install Multiple Packages ............................................................................................................ 5-19
Install Several Packages using Wildcard ....................................................................................... 5-19
Install Packages without Upgrading ............................................................................................. 5-19
Upgrade Specific Packages ......................................................................................................... 5-19
Install Specific Package Version .................................................................................................. 5-19
Remove Packages Without Configuration ...................................................................................... 5-20
Completely Remove Packages..................................................................................................... 5-20
Clean Up Disk Space.................................................................................................................. 5-20
Download Only Source Code of Package ....................................................................................... 5-20
Download and Unpack a Package ................................................................................................ 5-20
Download, Unpack and Compile a Package ................................................................................... 5-20
Download a Package Without Installing ........................................................................................ 5-20
Check Change Log of Package..................................................................................................... 5-20
Check Broken Dependencies ....................................................................................................... 5-21
Search and Build Dependencies................................................................................................... 5-21
Auto Clean Apt-Get Cache .......................................................................................................... 5-21
Auto Remove Installed Packages ................................................................................................. 5-21
6. Programmer's Guide ......................................................................................................................... 6-1
Linux Tool Chain Introduction............................................................................................................... 6-2
Native Compilation ......................................................................................................................6-2
Cross Compilation ....................................................................................................................... 6-2
Obtaining Help ............................................................................................................................6-4
Test Program—Developing Hello.c......................................................................................................... 6-4
Compiling Hello.c with Native Compilation ...................................................................................... 6-5
Compiling Hello.c with Cross Compilation .......................................................................................6-5
Makefile Example................................................................................................................................6-6
Modbus .............................................................................................................................................6-6
RTC (Real Time Clock).........................................................................................................................6-7
WDT (Watch Dog Timer)......................................................................................................................6-8
Cryptographic Hardware Accelerator .....................................................................................................6-9
Diagnostic LED ...................................................................................................................................6-9
Turn on LEDs API ........................................................................................................................6-9
Turn off LED API .........................................................................................................................6-9
Blink LED API..............................................................................................................................6-9
TPM ................................................................................................................................................ 6-10
A. Default Installed Package List........................................................................................................... A-1
B. Extending the Lifetime of the SD Card............................................................................................... B-1
Overview ...........................................................................................................................................B-2
SD Flash Types ...........................................................................................................................B-2
Tips for Running GNU/Linux on an SD Card............................................................................................B-2