Ubuntu 14.04 LTS VirtualBox Personal installation settings

Source: Internet
Author: User

Reprint Please specify:

http://blog.csdn.net/beijiwei/article/details/42386805

Http://www.cnblogs.com/ntsk13/p/4200404.html

January 2, 2015, do not know which root hair neuropathy, hand shake VB virtual hard disk deleted, and a lot of information is also gone.

The original use is Ubuntu 10.04 LTS, very handy. Anyway, in order to keep up with the situation, switch to Ubuntu14.04 LTS, although I am very dissatisfied with the UI, rather uncomfortable.

Following is installed after the installation process, not to be continued, at any time to add:

=====================================================================
<1> how to log in as root user under ubuntu14.04


1. First unlock the root and set the password for the root user
Open terminal input: sudo passwd root


Password: <---Enter your current user's password


Enter New UNIX Password: <---The new root user password


Retype new UNIX Password: <---Repeat the root user password


passwd: Password has been successfully updated


2. Input sudo gedit/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
In the pop-up edit box, type: Greeter-show-manual-login=true save to close.


3. Log off the current user and log in as root
Shutdown reboot in the extra login box, enter root and your password!

=====================================================================
For those who do not want to enter a password, there is no privacy can be grilled students, you can set the root automatic login

<2> Set Root Automatic login


1. Setting-->user Account---enable auto log in
2. Edit gedit/etc/lightdm/lightdm.conf (You can not create a new one by yourself)


[Seatdefaults]
Autologin-user=root # # # # # # # # # Just one sentence, to bet the content can be opened as needed
#autologin-user-timeout=2
#autologin-session=lightdm-autologin
#user-session=ubuntu
#greeter-session=unity-greeter
#greeter-show-manual-login=true #手工输入登陆系统的用户名和密码
#allow-guest=false #不允许guest登录



The following example is for reference only

[Seatdefaults]
Autologin-user=root #启动后以root身份自动登录
Greeter-session=unity-greeter
User-session=ubuntu

Greeter-show-manual-login=true #手工输入登陆系统的用户名和密码
Allow-guest=false #禁用guest用户
======================================================================================================


<3> Virtual machine window size issues


This requires the installation of the guest additions (enhanced package) in the installation directory with this ISO
======================================================================================================


<4> Shared Folders

1. Installation: Virtualboxguestaddition
VirtualBox This ISO file, you can find it in the root directory of the VirtualBox installation file.
Click "Install Enhancements" directly on the main menu of the virtual machine and Unbuntu will automatically mount an ISO. Open terminal, Cd/media/cdrom0 directory, Shipping


Line sudo./vboxlinuxadditions-x86.run. The following information appears to complete to indicate that the installation was successful.


Verifying Archive Integrity ... All good.
uncompressing VirtualBox 3.0.4 Guest Additions for Linux

Installation ..... ..... ..... ..... ........................... ..... ..... ..... ..... ..... ..... ............ ...........

..................................................................................................................
VirtualBox 3.0.4 Guest Additions Installation
Building the VirtualBox Guest Additions kernel module ...
Building the shared folder support kernel module ...
Building the DRM support kernel module ...
Installing the VirtualBox Guest additions ...
Successfully installed the VirtualBox Guest additions.
You must restart your guest system on order to complete the installation.


After the reboot is installed, the mouse can move freely between the host system and the virtual system without pressing the right CTRL key to switch, and the windows of the virtual system can be pulled,


If the location is right, the Ubuntu desktop will automatically display full screen. If the Clipboard is shared with the host system, it can also be replicated between the host system and the virtual system.


Cut and paste.


2. Setting up Shared Folders
After the reboot is complete, click "Devices" to assign the data space, add a shared folder, the option fixed and temporary refers to whether the folder is persistent. Share name can take one


A favorite, such as "SHD", try to use English name.


D:\Vbox\shd
Shared files can be placed under this path in the future


3. Mount the shared folder

To use the Shared Folders feature, you must install the Linux guest additions, install the enhancements, and take care of this step.


If you do not want to mount each time manually, you can use the following method to execute the hook script when the system starts, to successfully hook up automatically


#vi/etc/rc.d/rc.local
Or
#vi/etc/rc.local


# gedit/etc/rc.local
At the end of the file, join the command that was manually hooked up, such as:


Mount-t vboxsf shd/mnt/shd SHD is the name of the shared data space
cd/mnt/
mkdir SHD


Mount-t vboxsf shd/mnt/This does not have to establish SHD folder The MNT directly corresponds to D:\VBOX\SHD


Note: Be sure to confirm that the VBOXSF module has been loaded before mount.
If you do not load, there will be a situation with mount error.
/sbin/mount.vboxsf:mounting failed with the Error:no such device

Ubuntu 14.04 LTS VirtualBox Personal installation settings

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.