Ubuntu12.04.4 Vmware Virtual Machine Installation Summary
Background: Recently prepared to start a Raspberry Pi (raspberrypi), prepare for the development environment, unfortunately, small machine hard disk, but also reluctant to style Win7, so just installed virtual machine. Considering the familiarity with ubuntu12.04. Also long-term version, out of a period of time have problems to solve.
So it's useless to just Ubuntu14.04 out.
1. Vmware 7.1.6 Installation Ubuntu12.04.4
The virtual machine is too lazy to upgrade. or with the original.
Just install a problem,
Stop at retrieving file 70 of the long-term fixed
I started to think it was the cause of the Internet update, specifically selected host-only.
But still can't.
The workaround is to click on the progress bar to place the area, the Skipbutton will appear, click on the button can!
For example with
Ubuntu 12.04.4 Open Root and log on yourself
After the smooth way, pay attention to choose English, otherwise you will set up a Chinese folder. Easy appears garbled
2. Enable root to log in on its own initiative
As a development machine, nature is universal rootpassword, safe god horse, hehe
2.1 Enable root user password
sudo passwd root
2.2 Set Root to login, edit/etc/lightdm/lightdm.conf
[seatdefaults]allow-guest=falseautologin-user=rootautologin-user-timeout=0autologin-session= Lightdm-autologinuser-session=ubuntugreeter-session=unity-greeter
2.3 Solve the problem of no sound under root
The root cause is that PulseAudio is not started after logging in with Root.
The method is to add root to the Pulse-access group and enter the following command:
sudo usermod-a-g pulse-access Root
Then change the configuration file/etc/default/pulseaudio. Will
Pulseaudio_system_start=1
3. Networking settings 3.1 off the firewall in Ubuntu
sudo ufw disable
3.2 Virtual machine after bridging direct Internet
Sometimes even though the address is acquired. However, and the host cannot ping through. It's time to restart.
3.3 Configure Apt-get, select one of the fastest sources in the software center
All right. The test results are the source of mirror.ustc.edu.cn Zhong Ke.
Update Source Apt-get Update
3.4 Configuring SSH
Apt-get Install Openssh-server
After the installation is good, the service will initiate itself. Root is available!
3.4 Configuring Samba
Apt-get Install Samba Samba-common
Set all folders open to root, edit/etc/samba/smb.conf
[Global]netbios name = Ubuntusecurity = User[root]path=/valid users=rootpublic= yesbrowseable = yeswriteable = yes
Join the root user of Samba
Smbpasswd-a Root
4. Installing VMware Tools
That's what it is. SSH and Samba are already installed. The issue of file copy has been overcome. For performance, temporarily do not install VMware Tools think about it, forget it or install it, their active full-screen function is also very good. Never thought in the installation of Ubuntu12.04.3 smooth sailing vmwaretools.
It's so tough on the 4 version,
4.1 Preparing the installation software
View Linux Versions
[Email protected]:~# uname-alinux anne-virtual-machine 3.11.0-15-generic #25 ~precise1-ubuntu SMP Thu Jan 17:42:40 UTC i686 i686 i386 Gnu/linux
header files that need to download the appropriate Linux version number
Apt-get Install Build-essentialapt-get Install Linux-headers-3.11.0-15-generic
4.2 Downloads VMware Tools
Vmware-tools-linux-8.4.9-744570.i386.component.tar This is not correct due to host is Windows
Down again. This address
Http://softwareupdate.vmware.com/cds/vmw-desktop/ws/7.1.6/744570/windows/packages/tools-linux-8.4.9.exe.tar
Use WinRAR to extract the EXE to execute cmd--[file name]/E [folder name]-and then open with 7-zip. msi can extract the. iso and. SIG two files.
Unzip the ISO file to get vmwaretools-8.4.9-744570.tar.gz
4.3 Installing VMware Tools
Take vmwaretools-8.4.9-744570.tar.gz to the Linux machine, unzip it.
Okay, I made a mistake, and said kernel header was incorrect.
The associated file. Just because I can't find the files. VMware Tools doesn't think the path is valid.
cd/lib/modules/$ (uname-r)/build/include/linuxsudo ln-s. /generated/utsrelease.hsudo ln-s. /generated/autoconf.hsudo ln-s. /generated/uapi/linux/version.h
Eventually we can continue compiling: but it's not going well. Seems to be Hgfs compiled just, it seems that file sharing is not available, probably the new header file does not match it
CC [M] /tmp/vmware-root/modules/vmhgfs-only/dir.o/tmp/vmware-root/modules/vmhgfs-only/dir.c:83:4: Error: Unknown field ' Readdir ' specified in Initializer/tmp/vmware-root/modules/vmhgfs-only/dir.c:83:4: Warning: Initialization from incompatible pointer type [enabled by Default]/tmp/vmware-root/modules/vmhgfs-only/dir.c:83:4: Warning: (near initialization for ' Hgfsdirfileoperations.write ') [enabled by default]make[2]: * * * [/tmp/vmware-root/ MODULES/VMHGFS-ONLY/DIR.O] Error 1MAKE[1]: * * [_module_/tmp/vmware-root/modules/vmhgfs-only] Error 2make[1]: Leaving Directory '/usr/src/linux-headers-3.11.0-15-generic ' make: * * * [Vmhgfs.ko] Error 2make:leaving directory '/tmp/ Vmware-root/modules/vmhgfs-only '
Continue to search the Internet and see an open source project that is specifically patched for VMware Tools. Seems to be enthusiastic netizens very much ah, but this site is clear that only tested the high version of VMware. It seems that my Vmware7 can only try.
Https://github.com/rasa/vmware-tools-patches
Apt-get install git dkms patch Psmiscgit clone https://github.com/rasa/vmware-tools-patches.git# This does not understand CP Great-new.patch VMWARE-TOOLS-PATCHES/PATCHES/VMHGFSCP vmwaretools-*.tar.gz VMWARE-TOOLS-PATCHES/CD vmware-tools-patches./untar-and-patch-and-compile.sh
Put the Vmwaretools in the path folder anyway. Then execute untar-and-patch-and-compile.sh to compile the
Unfortunately, it's all kind of wrong.
/tmp/vmware-root/modules/vmxnet-only/vmxnet.c:in function ' vmxnet_get_stats ':/tmp/vmware-root/modules/ Vmxnet-only/vmxnet.c:2950:25:error: ' struct Net_device ' has no member named ' Priv '/tmp/vmware-root/modules/ vmxnet-only/vmxnet.c:in function ' netif_queue_stopped ':/tmp/vmware-root/modules/vmxnet-only/./shared/compat_ Netdevice.h:223:1: Warning:control reaches end of non-void function [-wreturn-type]cc1:some warnings being treated as ER RORSMAKE[2]: * * * [/TMP/VMWARE-ROOT/MODULES/VMXNET-ONLY/VMXNET.O] Error 1make[1]: * * * [_module_/tmp/vmware-root/ Modules/vmxnet-only] Error 2make[1]: Leaving directory '/usr/src/linux-headers-3.11.0-15-generic ' make: * * * [Vmxnet.ko ] Error 2make:leaving directory '/tmp/vmware-root/modules/vmxnet-only '
The last Vmwaretools available feature is a copy of the file. Text copy. The mouse seamlessly switches. The feature that was not implemented is the host folder share. Self-active fullscreen.
It doesn't matter. Just use the command line just fine.
It is believed that VMware, which installs the high version number, can solve the problem. But I can now, too lazy to toss.
This is the first time I have finished the article with the markdown, although the Markdownpad generated PDF when the hanging off, but still sprinkle flowers.
Hey. Markdown's code effect on the CSDN is completely not AH!
Finally, the method of turning markdown code block into CSDN blog
Replace <pre><code> with <pre name= "code" class= "plain" >
Bar </code></pre> Replace with </pre>
Ubuntu12.04.4 Vmware Virtual Machine Installation Summary