Red hat Linux Enterprise 5.4 Edtion Study Notes [2]

Source: Internet
Author: User
Tags ftp commands gz file imagemagick string find

# Install vmtools under Redhat

1. Click install vmtools on VMWARE.

2. VMWARE will automatically MOUNT the VMTOOLS installation file to the LINUX System

3. Run the TAR command to decompress the package.

4. Run the CHMOD 755 command to add permissions to the decompressed installation directory.

5. Run the vmware-config-tools.pl file, complete the system configuration and installation according to the question.

# English RedHat 5 Chinese Language Pack Installation, There are moreLinux, Linux, linux, and linux video tutorialsInformation.

Body:

1. Install the following packages in sequence:
Chinese support
Fonts-chinese-3.02-12.el5.noarch.rpm
M17n-db-common-cjk-1.3.3-46.el5.noarch.rpm
M17n-db-chinese-1.3.3-46.el5.noarch.rpm
Chinese Input Method
Scim-libs-1.4.4-39.el5.i386.rpm
Scim-1.4.4-39.el5.i386.rpm

Scim-chinese-standard-0.0.2-1.el5.i386.rpm
Scim-tables-0.5.6-7.i386.rpm
Scim-tables-chinese-0.5.6-7.i386.rpm
Scim-pinyin-0.5.91-15.el5.i386.rpm
2. After the installation is complete, click "system-management-language" and select "simplified Chinese" to change the language environment.
3. restart the system for verification. You can also press ctrl + alt + backspace.

By the way, it seems that the following two packages can be installed to support Chinese display:
Install these two packages to support Chinese characters.
Fonts-chinese-3.02-9.6.el5.noarch.rpm
Fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm

You can download the preceding two files at http://ftp.dc.volia.com/pub.

The path of the two files I downloaded is

Http://ftp.dc.volia.com/pub/CentOS/5.4/ OS /x86_64/CentOS/

# Redhat Linux enterprise 5.4 Chinese display and Chinese Input Method

I was very excited when I installed Redhat Linux Enterprise 5.4, but I want to configure a search environment in Linux. Therefore, I must test Chinese search and support Chinese search.
When I first changed the Language to Chinese, it was a box that made me speechless.
Chinese display problems
Set Windows/fonts/simsun. ttc (the font file of /) is put on ftp, and then downloaded using ftp commands (even on the company's virtual machine, there is a way for meters, or else you can use a USB flash drive)
Cd to/usr/share, mkdir fontstruetype, cd fontstruetype, mkdir simsun
Put simsun. ttc under simsun and log on to the system again. Chinese support has been completed.
Installation of Chinese Input Method
So download little penguin input method, Official Website: http://www.fcitx.org/
I started to download fcitx-3.6.2.tar.bz2, but it seems that I have successfully decompressed the rice.
So use rpm package fcitx-3.0.2-1.rpm.i386.
# Rpm-ivh fcitx-3.0.2-1.i386.rpm
# Cd/usr/bin
# Ln-sf fcitx chinput
Modify the. bashrc file vi ~ /. Bashrc (the root user is not required)
Find this location:
If [-f/etc/bashrc]; then
./Etc/bashrc
Then add the following sentence:
Export LANG = zh_CN.UTF-8
Export LC_CTYPE = zh_CN.UTF-8
Export LC_ALL =
Export XMODIFIERS = @ im = fcitx
Fcitx &
Restart the computer (logoff can also be) and press Ctrl + Space to switch it out.

# Enable Linux to directly access character terminals rather than xwindows at startup, thus saving system resources

Modify/etc/inittab
Change "id: 5: initdefault:" to "id: 3: initdefault:". For specific parameters, see the annotations section in this file.
# Default runlevel. The runlevels used by RHS are:
#0-halt (Do NOT set initdefault to this)
#1-Single user mode
#2-Multiuser, without NFS (The same as 3, if you do not have networking)
#3-Full multiuser mode
#4-unused
#5-X11
#6-reboot (Do NOT set initdefault to this)
[Http://www.sudu.cn/info/html/edu/20080379/300526.html]

Http://www.fcitx.org

# Use Webmin to manage Redhat Enterprise Linux 6.0

1 Webmin installation Configuration

1.1 Webmin Introduction

Most people may feel a headache when configuring Various UNIX services, because there are too many services in UNIX, and each service does not seem easy to configure. People familiar with network service configuration in Windows are not familiar with writing configuration files manually in UNIX. In UNIX, you can install Webmin, a tool that allows you to configure various servers on UNIX servers through a browser. Webmin is an excellent management software for remote UNIX/Linix servers. Through the Control Panel (support for various languages, including simplified Chinese ), it allows users to easily configure various servers in UNIX, and even remotely configure all services running on UNIX. The default port is 10000, and SSL encryption is supported. It also allows users to directly modify user accounts, Apache, DNS, and file sharing settings on the server using browsers on remote computers. Webmin management is implemented through web pages. All operations are simple and intuitive, and they are very suitable for beginners. OS _list.txt IN THE webminobject directory lists UNIX systems currently supported by Webmin.

Compared with other GUI management tools, Webmin has the following significant advantages:

Web management enables Webmin to be able to manage both locally and remotely.

The plug-in structure makes Webmin highly scalable. Currently, the standard management module provided by Webmin covers almost common UNIX management modules, and third-party management modules are constantly developed.

Access Control and SSL support provide sufficient security for remote management.

International support and multi-language version.

In addition to UNIX systems, Webmin also provides modules for Webmin management. The management of Webmin mainly includes the following aspects.

Module management: This part includes inserting a module, deleting a module, copying a module, and resetting the category of the module. In addition, Webmin provides the ability to upgrade directly from the Internet.

Interface style management: Webmin provides multiple interface styles. In version 0.91, KDE and Caldera are provided. The Webmin interface style is actually a module. you can insert a new interface style. In addition, you can modify some Webmin interface parameters, such as the page background color and table background color.

International support: a major feature of Webmin is its multi-language support. Currently, Webmin supports languages such as English, French, German, Italian, Chinese, Japanese, and Korean.

Webmin server group: Webmin also provides the ability to discover and manage multiple Webmin servers, which greatly facilitates managing multiple UNIX servers at the same time.

Activity Log: The Webmin activity log is mainly used to audit the management activities of the system.

1.2 download and install Webmin

  1. # Wget http://download.webmin.com/download/yum/webmin-1.510-1.noarch.rpm
  2. # Rpm-ivh webmin-1.510-1.noarch.rpm
  3. #/Etc/rc. d/init. d/webmin start

Automatically Start the Webmin service: To enable the Webmin service to automatically load as the system starts, run the "ntsysv" command to start the service configuration program and find the "webmin" service, add an asterisk (*) to the front of the asterisk (*) and select "OK.

# Set your host name and general host name resolution IP address in Linux

Open/etc/hosts

We can see that

127.0.0.1 publishingserver localhost. domain localhost

202.112.147.xx databaseserver. domain databaseserver

# RSA host key for has changed and you have requeste


@ WARNING: remote host identification has changed! @

It is possible that someone is doing something nasty!
Someone cocould be eavesdropping on you right now (man-in-the-middle attack )!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
3f: c4: 56: c7: cc: AE: c7: a6: c1: f3: ce: 12: 22: f8: 35: 83.
Please contact your system administrator.
Add correct host key in/home/shetty/. ssh/known_hosts to get rid of this message.
Offending key in/home/shetty/. ssh/known_hosts: 11
RSA host key for mydomainbook.cn has changed and you have requested strict checking.
Host key verification failed.
This is caused by Linux reinstallation or openssh-server reinstallation. Run the following command:
Ssh-keygen-R 192.168.87.36

192.168.87.36Switch to the server you want to connect.

# Install gcc under fedora
Su
Yum install gcc g ++

# Linux yum commands

Yum (all called Yellow dog Updater, Modified) is a Shell front-end Package Manager in Fedora, RedHat, and SUSE. Based on RPM package management, You can automatically download and install the RPM package from the specified server, automatically handle dependencies, and install all dependent software packages at a time, you do not need to download and install it repeatedly. Yum provides commands for searching, installing, and deleting one or more software packages. The commands are concise and easy to remember.

The command Format of yum is generally as follows: yum [options] [command] [package...]
[Options] are optional, including-h (HELP) and-y (when the installation prompt is "yes "), -q (the installation process is not displayed. [Command] is the operation object. [package...] is the operation object.

Some Common commands are summarized as follows:

The fastest image plugin for automatic search: yum install yum-fastestmirror
Install the yum graphic window plug-in: yum install yumex
View the list of possible batch installations: yum grouplist

1 Installation
Install yum install all
Yum install package1 install the specified installation package1
Yum groupinsall group1 installer group group1

2. update and upgrade
Yum update all updates
Yum update package1 update specified package1 package1
Yum check-update check updatable programs
Yum upgrade package1 upgrade specified package1 package1
Yum groupupdate group1 Upgrade Program Group group1

3 search and display
Yum info package1: package1
Yum list displays all installed and installable packages
Yum list package1 displays package1 installation of the specified package
Yum groupinfo group1 display group1 information of the Program Group yum search string find the installation package based on the keyword string

4. delete a program
Yum remove & #124; erase package1 Delete package1
Yum groupremove group1 Delete group1
Yum deplist package1 check package1 Dependencies

5. Clear Cache
Yum clean packages clear software packages in the cache directory
Yum clean headers clear headers in the cache directory
Yum clean oldheaders clear old headers in the cache directory
Yum clean, yum clean all (= yum clean packages; yum clean oldheaders) Clear the packages and old headers in the cache directory

For example, to install a game program group, first perform the following operations:
#: Yum grouplist
It can be found that the installable game package name is "Games and Entertainment", so that you can install it:
#: Yum groupinstall "Games and Entertainment"
All game packages are automatically installed. Here, the names of Games and Entertainment must be selected in double quotation marks, because the names of Games and Entertainment are ended when spaces are encountered in linux, therefore, you must tell the system to install the package named "Games and Entertainment" instead of "Games ".

You can also modify the configuration file/etc/yum. conf to select the installation source. It can be seen that the configuration program of yum is easy for many Parties. For more detailed options and commands, you only need to follow the command prompt line below: man yum

Yum groupinstall "KDE (K Desktop Environment )"

Yum install pirut k3b mikmod

Yum groupinstall "Server Configuration Tools"

Yum groupinstall "Sound and Video"

# Yum groupinstall "GNOME Desktop Environment"

Yum groupinstall "Legacy Software Support"

Yum groupinstall "Development Libraries"

Yum groupinstall "Development Tools"

# Yum groupinstall "Windows File Server"

Yum groupinstall "System Tools"

Yum groupinstall "X Window System"

Yum install php-gd
Yum install gd-devel
Yum groupinstall "Chinese Support"

# Yum install samba-common // This execution will install samba-client together
# Yum install samba

Yum install gcc
Yum install cpp
Yum install gcc-c ++
Yum install ncurses
Yum install ncurses-devel
Yum install gd-devel php-gd
Yum install gd-devel
Yum install gcc
Yum install cpp
Yum install gcc-c ++
Yum install ncurses
Yum install ncurses-devel
Yum install gd-devel php-gd
Yum install gd-devel
Yum install zlib-devel
Yum install freetype-devel freetype-demos freetype-utils
Yum install libpng-devel libpng10 libpng10-devel
Yum install libjpeg-devel
Yum install ImageMagick
Yum install php-gd
Yum install flex
Yum install ImageMagick-devel

# Yum install system-config-bind
# Yum groupinstall "DNS Name Server" // set bind and bind-chroot
Yum groupinstall "MySQL Database "'

Yum clean all

 

Source:

Http://my.oschina.net/u/135304/blog/30417

# Fedora 16 install the Chinese Language Pack

1. Use yum list * Chinese * to list names of supported Language Pack Columns

2. Install kde-l18n-Chinese.noarch

Yum install

3. Select Chinese in Language in SystemTools, log out, and log on again.

# How to interact files between Linux and Windows on the host system in Vmware

Method 1: If your vmware is running on windows, you can use the vmtools sharing mechanism to exchange files, which is the fastest and most convenient.
(1) Install vmtools: After LINUX is started, click "VM-> Install VMware Tools". vmware virtualizes the required files into cdrom and decompress the tar.gz file in the cdrom, then run the vmware-tools-distrib/vmware-install.pl with the default settings until the installation is complete;
(2) In the virtual host settings of vmware for windows, add "share folder" to the LINUX virtual system, for example, c: \ downloads;
(3) in LINUX, under the/mnt/hgfs directory, you can see the shared directory and files in the directory in step 1, which are synchronized in real time with windows and can be read and written directly.
Method 2: Use winiso to make common files into an iso CD image, which can be accessed by linux after being mounted to vmware.

Http://www.eefocus.com/fml927/blog/09-10/178925_75357.html

# In Linux, incorrect DNS settings have caused almost no access to ORACLE Data!

On a linux server, dns is recorded in vi etc/resolv. conf.

Because the network environment is changed, but the nameserver in the resolv. conf file is not modified, the database cannot be accessed!

After changing the resolv. conf file, it is as fast as it is!

# Linux Privilege Escalation

Log On with root
Use the usermod command
Usermod-g group G adm, root your Username

# Mount the ISO file in Linux

Mount-TIso9660/home/xxxx.Iso/Mnt-o loop assumptionISOThe file is in the/home directory. -The-t parameter specifies the file system type, and the disk or image isIso9660, fat3

Of course, to ensure that the mnt directory cannot be overwritten by files, you must first create a folder in mnt or other directories.

# Zip

Zip-r xx.zip/source/files

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.