Ubuntu8.10Server installation steps and web Service Configuration

Source: Internet
Author: User
I installed Ubuntu8.10server on the server. Due to lack of experience, some problems in the server have been suffering me for several days, and I have finally made it easy to understand. 0. The purpose and Assumption are to configure a web server based on UbuntuLinux. HTML, JSP, and Socket services are required. Assume that all logs are logged on to the system as root. If not, some commands must be prefixed with The sudo command. 1. system installation 1.

I installed Ubuntu 8.10 server on the server. Due to lack of experience, some problems in the process have been plagued by me for several days, and I have finally made it easy to understand.

0. Purpose and hypothesis

The purpose is to configure a web server based on Ubuntu Linux. HTML, JSP, and Socket services are required.

Assume that all logs are logged on to the system as root. If not, some commands must be prefixed with The sudo command.

1. System Installation

1.1 Basic System

Ubuntu is really a very good Linux implementation. It is very easy to install. If you have manually installed Windows NT/XP/2000/2003, you will find that the process is not much different.

1.2 random components

For web services, it is recommended to select LAMP components for automatic installation and deployment when installing Service Components. I tried to manually install and deploy LAMP on another machine, which is a lot of trouble.

OpenSSH can be installed, and it is very convenient to manage the server remotely.

Install other components as needed.

2. System Configuration

2.1 Nic Configuration

Providing network services is the main significance of Server, so the first step is to ensure network access.

When the system is installed, you may have the opportunity to configure the network card. If the network card is successfully configured, you can access the system after installing www.britepic.org. To modify the configuration or use another driver, you must manually configure the NIC.

The method is to modify the/etc/network/interfaces file (you can use the vi or nano editor, the same below ).

# Configuration of the first Nic

Auto eth0

Iface eth0 inet static

Address 192.168.0.80

Netmask 255.255.255.0

Gateway 192.168.0.1

The above is a static IP address. If the IP address is obtained dynamically, you only need to change static to dhcp without the following parameters.

Without a VPN, the original network, broadcast, and dn-nameservers can all be commented out.

2.2 System Upgrade

After the installation is complete, Ubuntu can run stably without any configuration. However, the system kernel and peripheral patches should be updated in a timely manner. You can use apt-get update to detect and upgrade patches.

(The system's default source (apt sources) may be slow. You can change it to a faster source based on network access conditions. It took nearly five hours for the first udpate to use the cn99 source, and then changed the source of the Shanghai Jiao Tong University Network. The speed will continue .)

2.3 other devices

No. Text-based interface, terminal advantages, video card, sound card and other miscellaneous no need to worry about. The USB standard is unified and can basically be automatically driven by the system.

SCSI, RAID, no environment, no independent configuration.

2.4 default language

I regret installing the Chinese version. Since it is a terminal mode, why do I need Chinese? Instead, many command prompts are displayed as garbled characters. The solution is as follows:

A. Install command line Chinese support

I mentioned zhcon on the Internet, but it was tested that its current version cannot work normally under 8.10. In fact, it also showed that it only supports 8.04 for the time being.

B. Change the default language to English.

# Export LANG = "en_US.UTF-8"

# Export LANGUAGE = "en_US: en"

In this way, all system prompts are in English, but will expire after restart. To be valid for a long time, you need to modify/etc/default/local and add these two lines to it.

2.5 graphic interface

In fact, you do not need to configure the GUI when using the server. However, because of initial installation, you are not familiar with Ubuntu and Linux, so you have installed gnome to assist in management.

It is also convenient to configure gnome for the server version:

A) installation:

# Apt-get aptitude install ubuntu-desktop

After the installation is successful, the system will automatically log on to the desktop.

In GUI, you can perform many operations more conveniently, especially file, directory, and text editing operations.

Complicated work. However, many system operations need to be performed in a terminal more conveniently. Unlike Windows

Server often plays a secondary role.

B) cancel the Automatic startup of the GUI:

# Update-rc.d-f TPD remove

After the desktop is restarted, the desktop can be started with startx.

C) restore the Automatic startup of the GUI:

# Update-rc.d

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.