UbuntuSystem Installation
2009-8-1,FZ
1. Install the Virtual Machine (this process is the same as the general software installation process ).
2. After running the VM, create a new VM in the file-> New-> Virtual Machine menu. Usually choose the second installation method, that is, install from the image file (select the image file location ubuntu-8.10-desktop-i386.iso ):
Next, you can install Ubuntu directly.
Follow the steps above to install UbuntuThe system still has the following problems:
1,The Virtual Machine resolution needs to be adjusted.
2,It is inconvenient to switch the mouse between the VM and the host.
3,You cannot drag/between the VM and the host/Copy an object.
4,Cannot start with RootIdentity login.
5,It is best to install sambaImplements file sharing between virtual machines and hosts.
6,Remote Login is usually used to access virtual machines for convenient operations.
7,Build the compiling environment.
The following describes the solutions to these common problems.
Problem 1: VMware Tools needs to be installed
VM-> install VMware Tools. In this process, the CD/DVD may be locked. This is because of the VM's optical drive or the image file during installation, on this page, double-click the CD/DVD option. In the displayed dialog box, select use physical drive, restart the system and repeat the above operations to mirror the vmware-tools file to the CD-ROM.
The optical drive contains the following content:
The two packages represent two different installation methods of VMware tools. currently, the Linux kernel is based on the vmwarw.ls-6.5.0-118166.tar.gz method.
1. Copy vmwarw.ls-6.5.0-118166.tar.gz to the desired location and run the following command:
Tar-zxvf VMwareTools-6.5.0-118166.tar.gz to decompress the package.
2. Go to the/home/user name/tools/vmware-tools-distrib directory (that is, the path of the extracted file ),
CD/home/user name/tools/vmware-tools-distrib
3. Input: sudo. /vmware-install.pl installation, in the installation process according to the prompts to choose, usually all the way press ENTER can, at the end of the request to select the resolution, according to the need to select can.
Question 2:
After installing the tools file, you can switch back and forth between the VM and the host. However, the switchover may still be slow, that is, you need to click several times to enter the VM interface. Solution: Install the sudo apt-Get install xserver-Xorg-input-wmmouse package, and you can use it with your mouse.
Question 3:
You can drag and drop files between the host and virtual machines and copy files between them to: load/usr/bin/vmware-user to system-> preferences-> sessions, that is, the startup Item, then, enter vmware-user start on the terminal to take effect immediately.
Question 4:
To log on as a root user, first enter the command "sudo passwd root" in the terminal and set the password for the root user.
Choose system-> Administration-> login window. In the security window, select allow local system administrator login. Then you can log on as root on the boot page.
Question 5: Samba Installation Process
1. Install the Samba server
Command: APT-Get install samba
2. Install smbfs. The role of smbfs is to load the shared folder in the network to the local machine.
Command: APT-Get install smbfs
3. modify the configuration file (to implement the simplest function, so that all users can read and write a folder shared by a Samba server ). First, you need to back up the configuration file to avoid improper modification and damage to it.
Command: CD/etc/samba
MV smb. conf SMB. conf_back
4. recreate an smb. conf file.
Command: Touch smb. conf
5. Then we write the following section into smb. conf;
[Global]
Workgroup = samba_fz
NetBIOS name = FZ
Server String = Samba server FZ
Security = Share
[Samba_fz]
Path =/mnt/samba_share
Public = Yes
Writeable = Yes
Browseable = Yes
Guest OK = Yes
6. Create a shared directory, that is,/mnt/samba_share.
Note:
[Global] This section is a global configuration and is required. There are the following rows;
Workgroup is the working group displayed in windows. Here I set samba_fz
NetBIOS name is the name of the computer displayed in windows;
Server String is the description of the Samba server, which can be defined by yourself; this is not very important;
Security is the authentication and login method. Here we use share. There are many authentication methods, one of which is also commonly used as the user authentication method. If share is used, you do not need to set the user and password;
[Samba_fz] the shared directory is displayed in windows;
Path can be used to set the directory to be shared;
Public can achieve empty password access in the window;
Whether writeable can be written. Here I set it to writable;
Whether browseable can be viewed or not;
Guest OK anonymous users log on as guest;
At the same time, I did the following two things (not verified if necessary ):
1. Set the shared directory to readable and writable: chmod 777/mnt/samba_share
2. Create a directory and authorize
Command: # ID nobody
Uid = 99 (nobody) gid = 99 (nobody) groups = 99 (nobody)
# Chown-r nobody: Nobody/mnt/samba_share
Note: For nobody authorization, first use the id command to view the information of the nobody user. If the user group is also nobody, this can be used. In some systems, the nobody user group is not nobody;
In ubuntu, the user group of the nobody user is nogrooup (that is, there is no user group) and must be added to the terminal.
The command is as follows: groupadd nobody, and then add the nobody user to/etc/group, for example, my: Nobody: X: 1001: Nobody. Specific command: in gedit/etc/group, locate the nobody and add the nobody to it.
NobodyRoles of shared directories
7. Start the smbd Server
Command: smbd
8. Check the smbd process and check whether the Samba server is running.
Command: pgrep smbd (pgrep is used to display processes whose names match regular expressions)
13564
13568
9. Access Samba server sharing;
In Linux, you can use the following command to access
# Smbclient-l FZ
Password: Note: Press enter directly.
In Windows, you can use the following method:
In the address bar or start-> running, directly enter // FZ or: // Virtual Machine IP Address