Abstract: This article describes in detail how to install Ubuntu10.04 on Windows 7 to implement dual-system. It briefly describes the configuration details of Ubuntu installation and the network configuration after successful installation. Finally, we provide a method to safely uninstall Ubuntu without using a CD. Intended audience: beginners. Keywords: Linux, Ubuntu, dual-system PARTONEWin7 detailed steps for installing Ubuntu hard disk partition adjustment if
Abstract: This article describes in detailWindows 7InstallUbuntu10.04To implement a dual systemUbuntuThe installation settings and network configuration details are briefly described. Finally, we provide the function of not using a CD pair.UbuntuSecure uninstall method. Intended audience: beginners.
Keywords:Linux,Ubuntu, Dual System
Part one Win7InstallUbuntuDetailed steps
-
Hard Disk Partition Adjustment
If you are not satisfied with the current hard disk partition, you can useAcronis Disk Director 11 (download in http://www.linuxidc.com/Linux/2011-07/39567.htm)You can set partitions as you like. The graphic interface is easy to understand and detailed operations are not described here.
-
DownloadUbuntuImage File andEasyBCD (download in http://www.linuxidc.com/Linux/2007-12/10060.htm)Set the Pilot Point (Entry)
Log onUbuntuThe official website downloads the corresponding image file based on your computer configuration (10.04/11.04, 32bit/64bit), We recommend that you use a newer stable version, such10.04 LTS. You can useWubiNew users should chooseEasyBCD2.0Easier operation, downloadEasyBCD2.0After installation, perform the following steps in sequence:
-
StartEasyBCD2.0In the window panel, clickAdd New EntryButton> NeoGrubTag> InstallButton> ConfigureButton, enter the following content in the opened text file
Title Install Ubuntu 10.04
Find-set-root/vmlinuz
Kernel/vmlinuz boot = casper iso-scan/filename =/ubuntu-10.04-desktop-i386.iso ro quiet splash locale = zh_CN.UTF-8
Initrd/initrd. lz
Where. IsoThe file name must be the same as the downloaded file. Save the file and exit text editing. DisableEasyBCD.
-
DownloadUbuntuImage File (. Iso)UseWinrarOr enable the virtual Optical Drive.Initrd. lz,VmlinuzTwo files, together with undecompressed filesUbuntuImage File (. Iso) MoveCThe root directory, that isC :/.
-
Shutdown and restart. You can see that there is an extra menu for selecting the boot after the boot. Use the direction key to selectWindows 7The followingUbuntuStart item. Wait a moment to prepare for the newOSRight.
-
Next we will introduceUbuntuInitial System Configuration:
-
EnterUbuntuFirst, do not click the Installation System icon in the upper left corner of the desktop, use the shortcut keyCtrl + Alt + TOpenTerminalAre you aware of the window andWinThe following command line is very similar? Enter
Umount-l/isodevice
EnterExit, Press Enter.
-
Double-click the Installation System icon on the desktop to enterUbuntuInstaller, a total7Step 1: You can select the instruction language and follow the prompts step by step.ForwardNext, in addition to the partition step. Note that you have set the password, which will be frequently used in the future. For details about partitioning, refer toSome Suggestions.
-
Complete7After step 1, the system will ask you if you want to restart.
-
Boot point settings after restart
-
UsuallyGrubSelect the Operating System menu. NoWindowsDo not worry, use the direction key to selectXxxxx(The version number depends on the version of the system you have installed.) enter the password you have set at logon and use the key combination introduced earlier to call it up.Terminal, Enter
Sudo mv/etc/grub. d/30_os-prober/etc/grub. d/06_os-prober
Sudo update-grub
Sudo reboot
It will restart again. This time, you canGrubSeeWindows 7.
-
SelectWindows 7, StartEasyBCD2.0, DeleteUbuntuPilot Point,OK.
Part two UbuntuSome basic configurations
-
SetGrubDefault startup options in the menu
Usually after bootGrubThe cursor in the menu points to the first operating system as the default system to start.Grub. cfgMake changes in the configuration file by openingTerminal, Input
Sudo gedit/boot/grub. cfg
You need to enter the password you set before installing the system. OpenGeditIn the text editor, find
Set default = "0"
One line0Change to the serial number you need. The serial number here comes from the bootGrubMenu. For example, if you see3Item isWindows 7, WantGrubDefaultWindows 7Start, change it
Set default = "2"
Save and exit. Note that the serial number is from0Start, that is, the first item you see in the menu, whose serial number is0And so on.
-
SetIP,DNSAndMACAddress
OpenTerminal, Input
Sudo gedit/etc/network/interfaces
TheGeditSee the following two lines
Auto
Iface lo inet loopback
Add the following content
Auto eth0
Iface eth0 inet static
Address xxx. xxx
Netmask 255.255.255.0
Gateway xxx. xxx
Pre-up ifconfig eth0 hw ether xx: xx
Save and exitGedit.Address,Netmask,Geteway,HwFor yourIpAddress, subnet mask, gateway, andMACAddress, which is entered in sequence based on personal data.
InTerminalInput
Sudo gedit/etc/resolv. conf
Will open a blank text file, add
Nameserver xxx. xxx
Nameserver xxx. xxx
First ChoiceDNSServer and backupDNSServer, save and quit.
After completing the preceding steps, enter
Sudo/etc/init. d/networking restart
To restart the NIC, enter
Ifconfig
You can see that your network settings have been updated.
-
Modify Source
Open the following page in the browser:
Http://wiki.ubuntu.org.cn/Qref/Source
In Section3Step, select yourselfUbuntuFor the source of the version, www.linuxidc.com copies the source server suitable for the network on the newly opened page.
OpenTerminal, Input
Sudo gedit/etc/apt/sources. list
Paste the copied source server address in the header of the opened text file, save the address, and exit.
Refresh the list, inTerminalInput
Sudo apt-get update
Part three Some Suggestions
-
InstallUbuntuAlways7Step 4: In the hard disk partition step, select the fourth option "Set Partition by yourself", andAddThe following four partitions
20G ext4Format Partition name/
2G swapFormat You do not need to set the partition name.
8G ext4Format Partition name/Tmp
80GOr aboveExt4Format Partition name/Home
When you have100 GBThe above space isUbuntuYou can use the partitioning method I used above. There are also many suggestions on partitioning on the network, which can be adjusted as needed.
-
UbuntuBuilt-in Open SourceNvGraphics card driver, if you want to try3DFor desktop effects, you must install an official driver corresponding to your own graphics card model. It is not recommended for beginners to try to install the driver independently. I have spent two days tryingGeForce GT540M(Laptop) The installation of the official driver ended in failure. If you are familiar with this, please kindly advise.
-
UseMbrfixRetainedWindows 7, Safely uninstallUbuntuMethod
DownloadMbrfix, SetMbrfix.exeFile placementCRoot directory, right-click, and select Properties>Compatibility>Select "run this program as administrator ".Win + ROpen the console and enter
Cd/
Mbrfix/drive 0 fixmbr/yes
Shut down and restarted, and no access is foundGrubSelect the Operating System menuWindows 7Used inAcronis Disk Director 11SetUbuntuPartitionDeleteDrop.