Detailed steps for installing Linux on vaware (Slackware10.2)

Source: Internet
Author: User

Environment: HostOS Win2K SP4
GuestOS Slackware10.2
VMware Workstation 5.5.1 b19175

[1. Create a virtual machine]
Create a new Linux virtual machine with the 2.4.x Kernel on VMware, because the Slackware10.2 kernel is version 2.4.31. No way. He doesn't like follow suit, so we have to use it first.
When creating a VM, the memory is generally 192 mb. If your memory is large enough to exceed MB, you can give it MB.
Select "only host (hostonly)" for network connection )". For the settings and differences of other methods, we will provide a special introduction on the Internet.
Although we recommend using SCSI hard disks for VMware, I recommend using IDE hard disks for our installation.
[2. Install Slackware 10.2]
2.1 partitions
Put the iso file into the virtual optical drive, and we start the virtual machine.
If it is an IDE hard disk, enter bare. I during boot or press enter directly, and then OK. Corresponding Hard Disk:/dev/hda
For a SCSI hard disk, enter scsi. s and press Enter. The corresponding hard disk is/dev/sda.
Using fdisk or cfdisk for partitioning, I use cfdisk, which is divided into two areas. The first 8 GB, 2nd around MB, is used for swap partitioning.
The process is basically [New]-> type [Primary], enter 8000, press enter, and select [Bootable];
[New]-> press enter, [Type]-> enter 82, and press Enter;
Then [Write]-> [Quit] is complete.
2.2 installation Initialization
Enter setup on the terminal to start installation.
Starting from Add swap, the installer recognizes/dev/hda5 as the swap partition. Just confirm it. Format/dev/hda1 as follows. Select ext2 or ext3 as the format. If you select the file system at the bottom, remember to check the corresponding driver when selecting the installation package.
After formatting is complete, click OK until the installation package is selected.
2.3 select the installation package
Slackware divides installable software into many classes. Only Series A (including the basic Linux operating system) is required, but you can only do A limited job on A system that only installs Series. The following is an overview of the software categories available for installation, as well as the size of all the packages in each series and the approximate disk space required to install the entire series:

A basic Slackware system. (41.2 Mbps/102 MB)
AP Linux application. (53.9 Mbps/161 MB)
D program development tools. (78.7 Mbps/269 MB)
E gnu Emacs (not installed ). (21.4 MB/74 MB)
F Linux FAQ. (9.02 MB/34 MB)
K Linux 2.4.31 kernel source code (not installed ). (37.6 Mbps/196 MB)
Kde k desktop environment, applications, and Qt. (239 Mbps/675 MB)
Kdei k desktop environment language support. (244 Mbps/621 MB)
L system library. (101 Mbps/318 MB)
N network applications and tools. (58.0 Mbps/161 MB)
T Tex typographical language (not installed ). (96.4 Mbps/266 MB)
TCL Tcl/Tk/TclX script language and tool (not installed ). (6.22 MB/19 MB)
X Window System graphical user interface. (59.7 Mbps/144 MB)
Xap x Window System Application. (130 Mbps/384 MB)
Y classic text interface BSD game (not installed ). (2.22 MB/6 MB)

After removing the unnecessary series, select the expert mode and carefully select the packages to be installed.
[Series A]
Install the package marked with REQUIRED. Although some are useless, they do not occupy much space.
Installed with marked RECIMMENDED
Bzip2 will be used to decompress some installation programs and read man documents
Findutils contains a file search tool. We recommend that you install
We recommend that you install
Install the gettext International script support. Who made the Linux Kernel not designed by Chinese?
Glibc-solibs glibc Runtime Library, installed
Glibc-zoneinfo Time Zone configuration. It is recommended to install
Gpm allows you to cut and paste text packages with your mouse.
The tool used by infozip to process zip files. After installation, the tool is 610 kb and can be installed.
Lilo, we also expect it to start Linux and install
As the name implies, sysklogd is the log daemon process for system and kernel information.
[AP series]
Diffutils is installed by default.
If you need to use the man command to read the manual, install
Lsof lists open files. If you haven't used them before, baidu will find it useful.
Man, this must be installed.
Man-pages if you install this, remember to select the above groff.
If you want to install another latest version of mysql, you can skip this
Sudo tool for switching users, install
Vim can be regarded as an enhanced version of vi.
[D series]
There is not much to mention. Generally, it is configured by default. You can remove several selected packages based on your preferences.
[F series]
There are only two packages installed.
[L series]
If you do not want to install any GTK program, the GTK library may not be installed, including JRE. If you want to run Eclipse, You have to install it.
Atk goes down from here. We will choose libraries of QT, GTK, glibc, and some graphics libraries. The following are the databases I selected:
Gdk-pixbuf, glib, glib2, glibc, glibc-i18n, glibc-profile, gtk +, gtk + 2, imlib, libart_lgpl, libgsf, libidl, libidn, libjpeg, libmng, libpng, libtermcap, libtiff, libungif, libxml2, libxslt, pango, popt, readline
The library that expat parses XML is installed and may be used later.
Glut OpenGL library. If you want to experience 3D animation in Linux, choose
Gnet socket Library
Jre Java Runtime Library, which is required when installing Eclipse
Mhash a thread-safe hash Database
Pcre perl-Compatible Regular Expression Library
Startup-notification allows you to call a cursor that indicates "busy" when running the program.
Svgalib
[N Series]
Apache HTTP Server
Autofs automatic mounting Program
Inetd is a classic network daemon.
As the name suggests, netwatch is a network management tool. You need to install netwatch.
Nmap network scanning tool, depending on personal needs to install
Openssh and the tool below need to be installed.
Openssl
Tcpdump dump is a tool for TCP packets.
Tcpip Installation
Traceroute is a routing tool used to track packets.
[X Series]
X11, X11-devel, x11-fonts-100dpi, X11-fonts-misc, x11-fonts-scale
[XAP series]
Gucharmap Unicode Character ing table
Xvim GTK + version vim, depending on your preferences
Xxgdb GTK +
[KDE and KDEI series]
KDE is the default one, but I usually remove several packages, such as kdeartwork, kdegames, kdemultimedia, kdepim, kdewebdev, and koffice.
For the Language Pack, selecting the kde-i18n-zh_CN is enough. If koffice is installed, you also need to select the corresponding language pack.

After the installation packages are checked, the system automatically copies the files for installation. You only need to change the disk.
2.4 Initial Configuration
After all the packages are installed, create the boot disk. We don't need this dd. Select two skips to go to the boot option.
Select simple as the start option of lilo. You can leave it blank in the next edit box, and then select MBR as the next step. If you select "expert", an error may occur when the startup information is written into MBR. The specific cause is unknown. If the configuration fails, you can run liloconfig after installing the system.
For network configuration, enter the host name (such as hoky) and domain name (such as tencent.com) in sequence. The website uses the static IP address 192.168.0.2, the default mask, and the gateway fills in 192.168.0.1, after several Accept connections, Select Accept to complete the network configuration.
By default, start rc. httpd, rc. inetd, rc. mysqld, rc. sshd.
Select Asia/Shanghai as the time zone.
The default window manager is kde.
Because it is a virtual machine, you can not set the root password.
Installation is complete here.
[3 install VMwaretools]
When restarting, remember to press F2 to enter the BIOS and modify the BIOS to start from the hard disk.
Start the system to the command line mode.
Under normal circumstances, if you click "Virtual Machine"> "Install VMware tool", the VMwareTools will be automatically installed. However, this is normal on my Slackware8.0 and fails on the server Load balancer 10.2 virtual machine. No way. Do it yourself.
Create the directory rc0.d in the/etc/rc. d directory first ~ Rc6.d, a total of 7 directories. The command for creating a directory is similar to the following:
Mkdir/etc/rc. d/rc0.d
Mkdir/etc/rc. d/rc1.d... ...
Then, use the virtual optical drive to mount Linux. iso in the VMware Workstation installation directory, and copy the files to a directory (such as/home) for installation.
Here is a tip: Linux provides a shortcut for file or directory input. For files as long as they are on a CD, you can simply enter the VM and press the Tab key, see what happens.
Mount/mnt/cdrom
Cd/mnt/cdrom
Cp VMwareTools-5.5.1-19175.tar.gz/home (the shortcut above can be used here)
Tar zxvf VMwareTools-5.5.1-19175.tar.gz
Vmware-tools-distrib/vmware-install.pl (start installation)
Some questions are usually asked during the installation process. For the path, the default value is usually returned for the vehicle. For yes or no, the answer is yes.
When compiling vmhgfs, the header file cannot be found according to the default path. You should enter "/usr/include". Don't worry about it. Just answer yes.
After compilation, you can use the folder sharing and other functions of VMware. The shared folder directory is in/mnt/hgfs. If you are careful enough, you will find that there is an additional saying "... Warning: loading/lib/modules/2.4.31/misc/vmhgfs. o will taint the kernel ..." Cloud, this is normal, because the vmhgfs module is not a GPL module. Whatever it is.
After installation, the decompressed tar files and directories are not required and can be deleted. Use the rm command to delete the file, and use rm-fr to delete the directory.
[4. MySQL configuration]
Enter the following command in the command line (the first two are to modify the access permission of the folder, and the last one is to install the initial database)
Chown-R mysql/var/lib/mysql
Chgrp-R mysql/var/lib/mysql
Mysql_install_db
Then run the following command to start MySQL. Because we have selected to automatically start the daemon process, you do not have to execute this command after the system restarts.
/Usr/bin/mysqd_safe &
[5. Other configurations]
5.1 Culture
Although we have installed a Chinese package, if we enter the graphic interface now, we will see a pile of Box garbled characters, which is due to font problems.
Copy the simsun. ttc, tahoma *. ttf, and verdana *. ttf files of windows to the shared directory (assuming the shared directory is "share" in Linux). Then
Cp/mnt/hgfs/share/simsun. ttc/usr/X11R6/lib/X11/fonts/TTF
Cp/mnt/hgfs/share/tahoma *. ttf/usr/X11R6/lib/X11/fonts/TTF
Fc-cache-fv
5.2 Chinese beautification
We only use virtual machines as development tools, so we do not need to pursue perfection for beautification. Paste the following section after a </match> in/etc/fonts/fons. conf to make the Window Font look no different from that in Windows. If there is no change after saving, you can log out and restart startx.
By the way, such beautification is a process that saves time. If you have higher requirements, you can search online and have some special beautification packages.

<! --
This expression is added by Akito Hirai <akito@kde.gr.jp> for convenience.
It can be used to make artificial bold versions in client libraries/applications.
-->
<Match target = "font">
<Test name = "weight">
<Const> medium </const>
</Test>
<Test target = "pattern" name = "weight" compare = "more">
<Const> medium </const>
</Test>
<Edit name = "weight" mode = "assign">
<If>
<More>
<Name> spacing </name>
<Const> proportional </const>
</More>
<Const> demibold </const>
<Const> bold </const>
</If>
</Edit>
</Match>
<Match target = "font">
<Test name = "pixelsize" compare = "less_eq">
<Double> 16 </double>
</Test>
<Test name = "pixelsize" compare = "more_eq">
<Double> 8 </double>
</Test>
<Edit name = "antialias" mode = "assign">
<Bool> f </bool>
</Edit>
</Match>

[6. Enter the graphic interface]
Run startx to enter the graphic interface.
Remember to select Chinese as the region and simplified Chinese as the language.
The following configuration varies from person to person, so my settings are for reference only.
Most operations can also be completed on the command line interface, so it is not necessary to complete in the graphical interface.
6.1 enable slackware to shut down automatically
By default, Server Load balancer cannot shut down its own power supply. This is mainly set for servers, which is inconvenient for common PCs.
Use an editor, such as KEdit, to modify/etc/rc. d/rc. modules. The snippet is as follows (that is, remove the # code ):
#### APM support ###
# APM is a BIOS specification for saving power using several different
# Techniques. This is mostly useful for battery powered laptops.
/Sbin/modprobe apm
6.2 enable normal users to shut down
It is also set for the server. Normal users cannot shut down.
Chmod + s/sbin/halt
In this way, normal users can use/sbin/halt-p to shut down.
6.3 modify the startup wait time to 0
Because we only have one system, we can directly enter the system by default, and the wait time can be set to 0.
Path: [start]-> [control center]-> [System Management]-> [start Manager (LILO)]
6.4 set 3-Key mouse
If you are using a 3-Key mouse, you must use the scroll wheel in X mode. Because the default is a two-Key mouse, you need to make some modifications.
Edit the following section in/etc/X11/xorg. conf (note that these rows may not be directly adjacent and are separated by comments)

Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2" <= Modify here
Option "Device" "/dev/mouse"
Option "Buttons" "5" <== add here
Option "ZAxisMapping" "4 5" <= add here
6.5 installation Input Method fcitx
Slackware does not have its own input method. Unfortunately, we may need to enter Chinese characters. Therefore, we recommend that you install fcitx-penguin input method.
Go to http://www.fcitx.org/to download the latest stable version. What I download is fcitx-3.1.1.tar.bz2, which can be used for reference.
Tar xvf fcitx-3.1.1.tar.bz2
Cd fcitx-3.1.1
./Configure
Make
Make check <= This step is optional
Make install
After installation, the configuration file is ~ /. Fcitx/config
Note: adding a bit above indicates that this is a hidden file or directory. You must select "View"> "Show Hidden Files" in the Konqueror menu. Command Behavior ls-
The meaning of each configuration parameter is expressed in Chinese. Obviously, there is no explanation.
To enable the input method properly, you also need to configure the/etc/profile file. Add two rows:
Export LC_CTYPE = zh_CN.gbk
Export XMODIFIERS = "@ im = fcitx"
Run Command qtconfig to change "Interface"-> "XIM Input Style" to "Over The Spot ". Select "File"> "Save" to Save the settings.
Run fcitx and press Ctrl + space to switch between Chinese and English input. If not, restart XWindows.
6.4 complete the network configuration.
In fact, the network configuration of the virtual machine has been configured. The next step is to configure the host.
In windows, check all network connections (to the "attributes" of "Network neighbors"). You should find that there are more Vmnet1 and Vmnet8 than the original Nic. Vmnet1 is the hostonly interface, while Vmnet8 is the network interface that uses NAT. Here, we only care about vmnet1. On the "share" Page, select "Internet Connection Sharing". If you see a drop-down list, select the NIC corresponding to vmnet1.
After "OK", the TCP/IP address of Vmnet1 will be automatically set to 192.168.0.1.
Start the Konqueror browser on the Virtual Machine taskbar and enter www.baidu.com in the address bar to check whether the browser can access the Internet.
6.5 install Eclipse
To develop C/C ++ programs in Linux, We have installed a popular IDE, Which is Eclipse. I am not arrogant about the introduction of this software. There are a lot of online applications. In line with the principle of simplicity, download the following installation package from www.eclipse.org (you can download it in Linux, but I prefer to download it to Windows and then copy it to a virtual machine, by the way, you can back up one on Windows)
Eclipse-platform-3.1.1-linux-gtk.tar.gz (Platform Runtime Version)
NLpack1_FeatureOverlay-eclipse-platform-3.1.1.zip (this and next are language packs)
NLpack1-eclipse-platform-3.1.1a-gtk.zip
Org.eclipse.cdt-3.0.2-linux.x86.tar.gz (the Runtime version of the CDT plug-in for developing C/C ++ programs)
If you want to develop a java program, run the JDT Runtime package.
Put the above four files in the directory you want to install, such as/usr/local, and then run
Tar zxvf eclipse-platform-3.1.1-linux-gtk.tar.gz
Tar zxvf org.eclipse.cdt-3.0.2-linux.x86.tar.gz
Decompress the Language Pack in the zip file to the eclipse directory. Since unzip is not installed, you have to use the built-in zip file function of KDE to treat the zip file as a folder, double-click the corresponding file, and copy all the content to the corresponding directory.
Run the Chinese interface and enter
/Usr/local/eclipse-nl "zh_CN"
Press enter to go To the Eclipse Chinese interface.
If you do not need a Chinese interface, remove the suffix of the above command and you do not need to enter the Language Pack.

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.