VBox install Ubuntu After installing the shared folder without access to the problem and changed the hostname, causing the command line can not resolve the host name problem

Source: Internet
Author: User

1. Mount method The virtual machine gives the command when it is mounted

2. Sudo adduser yourusername vboxsf (vboxsf is the user group of the Mounted folder, can be seen in/media directory under ls-l command)

3. The command to modify the host name is

sudo gedit/etc/sudoers

Pressing ENTER will open the/etc/sudoers file, giving the Hadoop user the same permissions as the root user. Add Hadoop all= (All:all) all under root all= (All:all) all

4. The command line cannot parse the new host name

sudo gedit/etc/hosts
Locate the following line:
127.0.1.1 XXX
Modify it to:
127.0.1.1 (your current host name)
Note: You can use all substitutions, or you can append them in the following format

VBox install Ubuntu After installing the shared folder without access to the problem and changed the hostname, causing the command line can not resolve the host name problem

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.