User`s manual

Moxa C Programmable RTU Controllers Managing Communications
4-4
Step 1: Check if the system contains enough free space by performing the df -h command.
192.168.127.254 - PuTTY
root@Moxa:/bin# df –h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock2 16.0M 6.7M 9.3M 42% /
/dev/ram0 499.0k 17.0k 457.0k 4% /var
/dev/mtdblock3 12.0M 896.0k 11.1M 7% /tmp
/dev/mtdblock3 12.0M 896.0k 11.1M 7% /home
/dev/mtdblock3 12.0M 896.0k 11.1M 7% /etc
tmpfs 30.4M 0 30.4M 0% /dev/shm
root@Moxa:/bin#
Checking the /dev/mtdblock3 to see if the available space is over 3 MB.
Step 2: Perfrom upramdisk command to create a temporary RAM disk to download and save the package.
192.168.127.254 - PuTTY
root@Moxa:/bin# upramdisk
root@Moxa:/bin# df –h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock2 16.0M 6.7M 9.3M 42% /
/dev/ram0 499.0k 18.0k 456.0k 4% /var
/dev/mtdblock3 12.0M 896.0k 11.1M 7% /tmp
/dev/mtdblock3 12.0M 896.0k 11.1M 7% /home
/dev/mtdblock3 12.0M 896.0k 11.1M 7% /etc
tmpfs 30.4M 0 30.4M 0% /dev/shm
/dev/ram1 31.9M 1.0k 30.3M 0% /var/ramdisk
root@Moxa:/bin#
Step 3: Download the PHP package. Users can locate the package in Software and Document
CD/Software/php/php.tgz
192.168.127.254 - PuTTY
root@Moxa:/bin# cd /mnt/ramdisk
root@Moxa:/mnt/ramdisk# ftp 192.168.127.130
Connected to 192.168.127.130.
220 (vsFTPd 2.0.1)
Name (192.168.127.130:root):
root 331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bin
200 Switching to Binary mode.
ftp> get php.tgz
local: php.tgz remote: php.tgz
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for php.tgz (1789032 bytes).
226 File send OK.
1789032 bytes received in 0.66 secs (2.6e+03 Kbytes/sec)
ftp>