Beruflich Dokumente
Kultur Dokumente
5
User Manual
V1.06
Contents
2. AdvLinux Overview
AdvLinux 2.5 is an embedded Linux designed for advantech device, and it is
optimized for the advantech devices including UNO, TPC. It is a migration
production from Fedora Core 13. AdvLinux 2.5 can install on all advantech devices
in theory, but only test on UNO and TPC serials.
1
Advantech Linux 2.5 Manual
Hardware auto detect
When installing AdvLinux 2.5, installation will auto detect hardware and install all drivers it
needs, so when completed installation, no more driver need unless user add some other
devices such as Advantech data collecting card to the UNO or TPC.
Boot logo
Advlinux-2.5 boot with boot logo, user can replace the logo if they need.
Online Installation and Update
AdvLinux 2.5 support online installation and update software with the yum command, it
can extend the AdvLinux’s function.
Software RAID support
AdvLinux 2.5 installer support software RAID support.
VNC support
The AdvLinux 2.5 provide remote desktop service named VNC server, user can use VNC
client to connect the advlinux2.5 remotely through internet to get the devices desktop and
control the remote device.
Suspend and hibernate
Advlinux-2.5 supports suspend and hibernate
Lightweight desktop \
The desktop environment of AdvLinux 2.5 is not the gnome or KED, it use a lightweight
desktop named XFCE, it will boot up the Linux quickly and need less resource and have
same convenient.
Less resource requirement and faster boot up.
Because AdvLinux 2.5 is designed mainly for UNO and TPC, we start to development it
after careful consideration, so it will need less resource and is faster than common Linux
distribution.
Auto login
Installation private an auto login option, if user choose it, after installation, User can auto
login the AdvLinux without password. Of course, user also can modify the AdvLinux
configuration file to auto login or not after installation; we will talk about it in latter section.
Variable configuration tool
AdvLinux 2.5 provide many configuration tools to help user configure the Linux OS if they
need to change the default setting or to customize.
Removable device auto mount
When user insert USB device, AdvLinux will auto detect it and mount it, the disk will show
on the desktop, user can click it to access them; this feature is only for graphic system.
Support Perl and python
AdvLinux 2.5 provides Perl and Python by default.
Backup and Restore
AdvLinux 2.5 provide backup and restore function if user enable backup and restore
function when installing.
Real time kernel
User can install real time kernel to improve the system real-time.
2
Advantech Linux 2.5 Manual
3
Advantech Linux 2.5 Manual
3. Installation guide
In this section, we will introduce the installation guide step by step.
4
Advantech Linux 2.5 Manual
256 M or more
If boot from CDROM successfully, the first installation step is shown as follows:
5
Advantech Linux 2.5 Manual
6
Advantech Linux 2.5 Manual
If the graphic installation mode is selected, the following interface will be shown. Then please
follow the introductions step by step to complete the installation.
Click “next” to continue the installation.
7
Advantech Linux 2.5 Manual
8
Advantech Linux 2.5 Manual
Picture 3.4 select installation process type
Here are two Installation types: auto installation and manual Installation, if choose manual
installation, user will configuration the system step by step which include partition, network
configuration, grub, time and so on. If choose auto installation, these configuration is setting by
default, of course, user can modify them after installation completed and OS boot up.
Note: if choose auto installation, It will formation the entirely disk. All the data in the disk will
be lost.
The backup and restore function can be enable only for auto installation, if user enable backup
and restore function, Installer will prepare 1G disk space for backup OS.
How to backup and restore Advlinux, please refer to Backup and Restore section.
Click <next> to continue the installation.
If choose auto installation, please jump to step 9 directly.
9
Advantech Linux 2.5 Manual
In this step, user should set root password and select “auto login” or “Manual login”.
If user select “auto login”, the Advlinux can auto login and do not need enter password.
10
Advantech Linux 2.5 Manual
11
Advantech Linux 2.5 Manual
12
Advantech Linux 2.5 Manual
13
Advantech Linux 2.5 Manual
14
Advantech Linux 2.5 Manual
15
Advantech Linux 2.5 Manual
Select “Write changes do disk” will write partition tables to disk.
If “Configure advanced boot loader options” on the interface is not selected, then the boot loader
will be installed in MBR by default. If an operating system is previously installed on the same
disk, then the new boot loader will cover the previous data in MBR and the new MBR does not
include the previous operation systems thus they cannot be booted normally. Therefore, the user
should add the booting for the previous operating system into the configuration files of the boot
loader.
The Boot loader installation interface is shown as below:
16
Advantech Linux 2.5 Manual
17
Advantech Linux 2.5 Manual
Real time kernel: In this step user can also chose to install real time kernel to improve system
real-time if they need.
When the Text System type is chosen, user can select other option packages in right list to extend
the OS function on text system.
It mainly contains packages as follows:
1. ipsec : includes IP security tools.
2. ipv6 : includes IPv6 support for iptables.
3. mysql : mysql database; includes client and server.
4 .qt-fb: QT runtime environment based on frame buffer.
5. tftp: includes tftp server.
6. yum : include yum tools.
When the Xorg System type is chosen, user can select other option packages in right list to
18
Advantech Linux 2.5 Manual
extend the OS function of Xorg system.
19
Advantech Linux 2.5 Manual
Note:
The default web browser is dillo, it is a light weight browser, so there are some limitations,
for example, not support java. If user want to use firefox as web browser with java supported,
please choose firefox and jre in this step. If user forgets to choose them, AdvLinux also support
online install fireforx and jre after finished AdvLinux installation.
20
Advantech Linux 2.5 Manual
21
Advantech Linux 2.5 Manual
22
Advantech Linux 2.5 Manual
23
Advantech Linux 2.5 Manual
Burn ISO file to USB disk.
From menu select Bootable->WriteDiskImage. Make sure the Write Method is USB-HDD and
press Write to start burn ISO to USB disk.
24
Advantech Linux 2.5 Manual
Note: We recommend that you use the USB disk to install on UNO-3082/UNO-3084. If you still
want to USB-CDROM to install on UNO-3082/UNO-3084, you should set “USB Operation
Mode” to “Full/Low Speed” in BIOS.
When grub is loading during system is booting, press the direction key and an interface
providing two boot choices for the user to select. The “read & write” mode is set as the default.
In order to enhance its stability, the user had better to select the read only mode after finishing
development.
26
Advantech Linux 2.5 Manual
The read & write mode is the default startup option. In order to change the default startup option
to the read-only mode, follow the command below:
#vi /boot/grub/menu.lst
Then change “default=0” to “default=1”.
27
Advantech Linux 2.5 Manual
For further details, refer to http://www.xfce.org/documentation/
5.4.6 X Terminal
5.4.7 Thunar
It provides folder management functions similar to windows and can be used to configure
desktop icons. It follows the GPL.
28
Advantech Linux 2.5 Manual
5.4.8 Dillo
Dillo is a lightweight browser that follows the GPL. Completely written with the C language, its
speed is fast. It is a graphical browser based on GTK+ and can be used for browsing net pages
29
Advantech Linux 2.5 Manual
and downloading files.
Mouse pad is a text editor for open source code. It follows the GPL and is used for displaying
text files.
30
Advantech Linux 2.5 Manual
Geany is a text editor using the GTK2 toolkit with basic features of an integrated development
environment. It was developed to provide a small and fast IDE, which has only a few
dependencies from other packages. It supports many file types and has some nice features. For
more details see http://www.geany.org/
31
Advantech Linux 2.5 Manual
5.4.11 Screenshot
Screen shooter is a plug-in for the Xfce panel which can take desktop or selected window
screenshots
GQview is an image viewer. Its key features include single click file viewing, external editor
support, thumbnail preview, and zoom features. Some image management features are also
included.
32
Advantech Linux 2.5 Manual
33
Advantech Linux 2.5 Manual
User can open the task manager to monitor the CPU and memory usage. User can use it to stop,
continue, terminate and kill the task and can use it to adjust the priority of task.
34
Advantech Linux 2.5 Manual
Allow XFCE to manager desktop, for example, change desktop background color and set
desktop background image, adjust, brightness, change desktop icons size and so on.
35
Advantech Linux 2.5 Manual
User select suitable item from list to Change the Xog resolution.
36
Advantech Linux 2.5 Manual
37
Advantech Linux 2.5 Manual
If user install the text mode, please run
#alsamixer
The Sound configuration tools will be shown as follows:
Advantech Linux 2.5 supports Advantech TPC products, and it provide touch screen driver,
configuration files and calibrate tools for TPC products.
When the system reboots after the installation has been completed.
User should calibration the touch screen first.
#gCal 16
The following picture will show:
38
Advantech Linux 2.5 Manual
If user installs the AdvLinux 2.5 to TPC device, the virtual keyboard will be installed. On UNO
device, it is not installed by default, but user can install it manually.
39
Advantech Linux 2.5 Manual
40
Advantech Linux 2.5 Manual
Use the date command to modify the date
Usage: date [OPTION]... [MMDDhhmm[[CC]YY][.ss]] [+FORMAT]
For example, Tue Apr 10 15:39:12 UTC 2011
#date 041015392011.12
6.4 IP configuration
By default, device acquires the IP address dynamically by dhcp.
If user wants to set the static IP address, they should modify the configuration file manually.
For example, if configure eth0 to use the IP address 172.21.73.30, then edit the file accessed by
/etc/sysconfig/network-scripts/ifcfg-eth0 as shown below:
DEVICE=eth0
ONBOOT=no
BOOTPROTO=static
IPADDR=172.21.73.30
NETMASK=255.255.255.0
GATEWAY=172.21.73.1
After the file is edited and saved, use ifup eth0 again to enable the network card.
If the static IP is already used, please modify the IP address in the configuration file.
Acquire the IP address dynamically
To acquire the IP address dynamically, edit the file accessed by /etc/sysconfig/network-scripts/
ifcfg-eth0 as shown below:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
41
Advantech Linux 2.5 Manual
42
Advantech Linux 2.5 Manual
Reference Manual:
http://dev.mysql.com/doc/ .
43
Advantech Linux 2.5 Manual
xrandr --output VGA --off --output LVDS --auto
For information, please refer to http://www.x.org/wiki/Projects/XRandR
vi /etc/sysconfig/vncservers
Append the flollwing two line to the end of /etc/sysconfig/vncserver
VNCSERVERS=”1: username”
VNCSERVERARGS=”-geometry 800x600”
Here username adjust to you own, for example changer username to root for root user.
#vncpasswd
To start the vnc server
#service vncserver start
Set vnc login password
vi $HOME/.vnc/xstartup
Mask all lines and append the following line to $HOME/.vnc/xstartup
xfce4-session &
#service vncserver restart
Restart the vnc server
Now super user can use VNC client to login
#vncviewer IP_ADDRESS :1
Then you can control and monitor the remote device desktop.
Note: you may stop iptables to allow use login to your machine
44
Advantech Linux 2.5 Manual
#vi /etc/sudoers
Append the following line to /etc/sudoers
username ALL=/sbin/vncserver,/usr/bin/vncpasswd /etc/sudoers
Here username adjust to you own, for example changer username to root for root user.
#vncpasswd
#vi /etc/sysconfig/vncservers
Append the following line to /etc/sysconfig/vncservers
VNCSERVERS=”1:username”
To start the vnc server
#service vncserver start
vi $HOME/.vnc/xstartup
Mask all lines and append the following line to $HOME/.vnc/xstartup
xfce4-session &
# sudo /sbin/service vncserver restart
Restart the vnc server
Now user can use VNC client to login
#vncviewer IP_ADDRESS :1
Then you can control and monitor the remote device desktop.
46
Advantech Linux 2.5 Manual
#cd /usr/libexec/Plymouth
#./plymouth-update-initrd
After the steps above, you can reboot to test the boot logo.
The user can choose QT runtime environment by select “qt-fb” based on frame
buffer in installing process in section 3.3.9 Picture 3.14.
Currently we only support touch screen on TPC series devices. Here we only introduce the
configuration on TPC devices.
There are two types of touch screen protocol: serial port proto and USB protocol.
a) Enable frame buffer
#vi /boot/grub/menu.lst
add “ vga=0x314” to the line below
kernel /boot/vmlinuz-2.6.33.3-85.fc13.i686 ro
root=UUID=bb915140-8b0d-4d7d-9eb8-f8f0260d36ae rhgb quiet
To find what “vga=0x314” means or change other resolution, please refer Appendix A
b) Configure tslib
For Serial port protocol
Add following to /root/.bash_profile
export QWS_MOUSE_PROTO="Tslib Auto"
export TSLIB_TSDEVICE="/dev/ttySn"
export TSLIB_CONFFILE=/opt/tslib-ttyS/etc/ts.conf
export TSLIB_PLUGINDIR=/opt/tslib-ttyS/lib/ts
Note: you should change “ttySn” to ttyS1, ttyS2…, according to you device.
For USB protocol
Add following to /root/.bash_profile
export TSLIB_CONFFILE=/opt/tslib-usb/etc/ts.conf
export TSLIB_PLUGINDIR=/opt/tslib-usb/lib/ts
source tslib_setenv >/dev/null
The user should logout and login so that the Environment variables take effect.
c)calibrate touch screen and test
#ts_calibrate
Press the point the screen shows and complete the calibration.
#qt-demo -qws
47
Advantech Linux 2.5 Manual
48
Advantech Linux 2.5 Manual
EndSection
Reboot the system to test.
The default browser dillo do not support java, if user want to support java in web browser, please
install firefox and configure it to support java in browser
49
Advantech Linux 2.5 Manual
50
Advantech Linux 2.5 Manual
Online tools will tell you if Java is installed and enabled in Firefox.
• You can visit the Java test page at java.com to test whether jre is install successfully and
whether fire is support java.
o Note: Through the above test, you can also install the appropriate JRE
for your system.
If succeeds you will seen the information marked by red line as follows
51
Advantech Linux 2.5 Manual
In console mode:
#yum install system-config-firewall
After installed, the firewall manager will be show as follows:
52
Advantech Linux 2.5 Manual
Xarchiver is a lightweight desktop independent archive manager built with the GTK+2 toolkit. It
was my intention to develop a simple GUI which could be used with any desktop environment
and would operate using the command line rather than API calls. Xarchiver has been designed
from the ground up to be fast and easy-to-use. Its user interface is clean and intuitive, and does
not include any confusing or useless options.
Xarchiver supports 7-zip, arj, bzip2, gzip, rar, lha, deb, rpm, tar and zip archives, archive
navigation with mimetype icons, archive comment ability and archive listing as HTML or txt.
Cut/Copy/Paste/Rename actions within files of different archives are supported too. Password
detection is automatic for arj, zip and rar files. Password encryption is available for these file
types, as well as 7-zip. Xarchiver can also generate self-extracting binaries from zip, 7-zip and
rar archives and allows solid archives creation. It supports drag and drop through the XDS
protocol, and Firefox-like tabs. An archive multi-extract ability with a progress bar is included.
Last but not least a progress bar window is available when using Xarchiver from the
command-line or from Thunar file-manager.
53
Advantech Linux 2.5 Manual
54
Advantech Linux 2.5 Manual
If user enable the backup and restore function when installation, when
you enter to grub menu, you will see two extra items: “Advlinux Backup”
and “AdvLinux Restore”
If user chose “Advlinux Backup”, the Current Advlinux system will be backed up.
Notes:
If user backup again, the previous backup image will be overwrite. This means that backup tool
only preserve one backup image.
55
Advantech Linux 2.5 Manual
If you have backed up the Linux, when you system crash or you want to restore to the original
state, you can select the “AdvLinux Restore” to restore your system.
56
Advantech Linux 2.5 Manual
After finishing the restore progress, the Advlinux OS will be the OS you backup before.
11 Appendix A
Table of Linux Kernel Video Mode Numbers
Keeping the following table as a reference, you can pass the requisite
number as the value of the vga boot parameter to allow Linux bootloader
to use that particular screen resolution and color.
Note: In the table above, the 0x denotes, the values are in hexadecimal.
57