Fundamentals of Cloud Technology: Learning Hadoop using 0 basic Linux (Ubuntu)

Source: Internet
Author: User

Learning Linux has a lot of obstacles, versions, permissions, commands.
Different versions, the command is different, the command needs to install the package, to the novice to bring a lot of inconvenience. Here's a summary of some of the experiences you've had with Ubuntu. The following commands can be used directly.
Do you see other people using commands in desktop in Linux and can't find a place for themselves?

One, the following to provide you with four ways:



1. Very good, in the upper left corner of the menu point, out a column, in the [attachment] in the SELECT [Terminal], click on OK.
It is a quick execute icon, you can drag the icon to the desktop and then release it, and then execute it directly on the desktop. In the same vein, you can drag it into the taskbar above. You can just click on the taskbar above.

2. It is not difficult to get, but not easy to find. First hold down ALT, and then click F2, come out a run box, enter gnome-terminal inside to run.
In this run box, you can execute many commands that you want to run as Windows.

3. Put the terminal window open in the right mouse button, the effect is in the desktop or folder in the blank space right click, will appear "open from terminal" shortcut. That requires the use of a software.
The installation is simple, open the terminal, enter inside:

    1. sudo apt-get install nautilus-open-terminal
Copy Code

The shortcut is then automatically added to the right-click.

4.ctrl+alt+t, shortcut key is done

Second, network restart:

After we have configured the network information, and do not want to restart Linux, how to deal with.

    1. Service Network Reastart
Copy Code

I'm sorry, this command doesn't recognize

The commands for the Ubuntu Restart network are as follows

    1. sudo/etc/init.d/networking restart
Copy Code

Third, switch root user:

    1. sudo su
Copy Code

Iv. How to turn off the firewall


Try a lot of methods, no, some need to install the package, also can not surf the internet, how to download the installation package. The following command can be used directly
To turn off the firewall:

    1. sudo ufw disable
Copy Code

Start the firewall:

    1. #sudo UFW Enable
    2. #sudo UFW Default Deny
Copy Code

Linux restart:root user restart can use the following command, but ordinary users do not.

    1. Init 6
Copy Code

Ordinary users use the following command

    1. sudo reboot
Copy Code



Five Tests whether the host and the virtual machine are ping through


1. Set up the IP, it is recommended that you use the Linux interface, which is more convenient to set up. However, it is best to set the interfaces under/etc/network/through the terminal. Because of some Linux bugs, if you do not set this file, it is likely that the IP will be set again.

Details can be viewed to resolve the encounter with Linux network configuration, starting with familiarity with the network configuration file

    1. Iface eth0 inet Static
    2. Address 192.168.3.90
    3. Gateway 192.168.3.16
    4. Netmask 255.255.255.0
Copy Code

Through the above settings. If bridged, it is easy to ping between the host and the virtual machine.
But there is a problem, that is, the host can ping the virtual machine, but the virtual machine ping different hosts.
Because win has two firewalls, for example, Two firewalls need to be shut down . Of course, if you do not ping the virtual machine, you can turn off the virtual machine firewall by using the Shut down firewall command above.

Fundamentals of Cloud Technology: Learning Hadoop using 0 basic Linux (Ubuntu)

Related Article

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.