Moxa TC-SW04-M12-4P-T [22/43] Linux system peripherals programming guide

Moxa TC-SP04-DB44-T [22/43] Linux system peripherals programming guide
TC-6000 Series Expansion Modules Software Installation and Programming Guide
4-2
Linux System Peripherals Programming Guide
Prerequisite for Installing Peripheral Modules
Two methods can be used for installing required drivers and utilities. One method uses APT for an automated
online installation, while the other involves downloading the driver from the Moxa website and installing it by
hand.
Installation of Linux Modules Using APT
To guarantee you are getting safe software from the correct source, Moxa’s repository packages are encrypted
with a Gnu Privacy Guard (GPG) key. Before installing the modules, you should add the Moxa GPG key. You can
find the GPG key on the product CD or at the Moxa website. Upload the key to the TC-6000 and add it with the
following command.
Moxa:~# apt-key add MOXA-SYS-DEBIAN-KEY
To use APT to download and install software, you must first add the Moxa repository to the sources file, found
at
/etc/apt/source.list.
1. First, back up your sources.list file:
Moxa:~# cp /etc/apt/sources.list /etc/apt/sources.listBAK
2. Add the Moxa repository by using the echo command
Moxa:~# echo ‘deb http://debian.moxa.com/debian wheezy main’ >> /etc/apt/source.list
3. Update the package list for retrieving the latest package list.
Moxa:~# apt-get update
Get:1 http://debian.moxa.com wheezy Release.gpg [490 B]
Hit http://debian.moxa.com wheezy Release
Hit http://debian.moxa.com wheezy/main i386 Packages
Ign http://debian.moxa.com wheezy/main Translation-en_US
Ign http://debian.moxa.com wheezy/main Translation-en
Hit http://ftp.us.debian.org wheezy Release.gpg
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://ftp.us.debian.org wheezy-updates Release.gpg
Hit http://ftp.us.debian.org wheezy Release
Hit http://security.debian.org wheezy/updates Release
Hit http://ftp.us.debian.org wheezy-updates Release
Hit http://security.debian.org wheezy/updates/main Sources
Hit http://ftp.us.debian.org wheezy/main Sources
Hit http://security.debian.org wheezy/updates/main i386 Packages
Hit http://ftp.us.debian.org wheezy/main i386 Packages
Hit http://ftp.us.debian.org wheezy/main Translation-en
Hit http://security.debian.org wheezy/updates/main Translation-en
Hit http://ftp.us.debian.org wheezy-updates/main Sources
Hit http://ftp.us.debian.org wheezy-updates/main i386 Packages/DiffIndex
Hit http://ftp.us.debian.org wheezy-updates/main Translation-en/DiffIndex
Fetched 490 B in 2s (195 B/s)
Reading package lists... Done
4. Next, use apt-get search tc6000 to check if your package list has been updated.
Moxa:~# apt-cache search tc6000
tc6000-mpcie-power - utility for control the mini-PCIe power status.
tc6000-mxser - module of MOXA's serial devices
tc6000-qmi-modules - modules for QMI devices
tc6000-setinterface - a utility for get or set the mode for serial interfaces.

Содержание

Скачать