After the basic system installation is complete, we need to install some applications for server management and desktop environments to further improve the usability of the server. What we have chosen here is
How to Install code package compilation
zhcon Chinese Virtual Console.
Here we can do a simple exercise.
After root login, mount the CD image of Linux. (Linux installation disk Linux-system.iso to be inserted in advance)
Mkdir Benet
Mount/dev/cdrom Benet
First, unpacking.
Unpack the Zhcon two files into the/usr/src/directory.
Tar zxf zhcon-0.2.5.tar.gz-c/usr/src/
Gzip-d zhcon-0.2.5-to-0.2.6.diff.gz
Cp zhcon-0.2.5-to-0.2.6.diff/usr/src/
ls/usr/src/
Second, the configuration.
The source directory is patched using the patch command first .
cd/usr/src/zhcon-0.2.5/
Patch-p1 </usr/src/zhcon-0.2.5-to-0.2.6.diff
(Patch is a command program that is designed to apply . diff format patch files,-p1,1 to numbers, to remove extraneous directory parameters, This option is typically used when patching operations are performed in the source code directory of the software;< indicates a redirect input action that specifies the location of the patch file's Origin )
configuration:./configure--prefix=/usr/local/zhcon
Third, compile.
Make (generate binary from source code file compilation)
Four, installation.
Make install
or you can use Make && make install to perform the compilation and installation together.
If you are installing Linux did not tick the software development of this item, it is necessary to install the Ncurses-devel package beforehand, to prevent the compile and install the times wrong.
R pm-ivh/media/cdrom/server/ncurses-devel-5.5-24.20060715.i386.rpm, after the installation is complete, you can install Zhcon properly.
V. Use.
(1) You can use "--help" To understand how the software program is used.
confirm the installed Zhcon program Directory
ls/usr/local/zhcon/
View The use Help for the executable program Zhcon under the bin subdirectory.
/usr/local/zhcon/bin/zhcon--help
(2) set the ASCII keyboard mode so that the hotkey can be toggled normally using IME.
Kbd_mode-a
/usr/local/zhcon/bin/zhcon--utf8
(3) shortcut key switch
Open /Close Chinese Input method: Ctrl+space
exit Zhcon Console: ctrl+d
in the Chinese input state, the switch between different input methods:Ctrl+shift
Direct switch to full spell, Wubi Input method:ctrl+alt+1, ctrl+alt+2
Installation and management of applications in Linux