In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
What this article shares with you is about how to solve the static IP problem of Ubuntu root system permissions. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Ubuntu root is often used, so I studied Ubuntu root and took it out here to share with you. I hope it will be useful to you. Your own virtual machine Ubuntu has always been logged in and used under the zhangcheng account name, and is also identified with the $symbol in terminal. One of the problems is that when performing certain operations, it is always prompted that there are not enough permissions: either the execution permissions are not enough, or the file permissions do not match. So if you log in with Ubuntu root, you can avoid this problem.
Steps:
1. After the terminal executes the sudo passwd root instruction, you will be prompted to set a new Ubuntu root account password.
2, click System-> Administration-> login window, switch to the security options page, and then select "Allow local system administrator login" under it.
Restart the system and log in with your Ubuntu root account and password when logging in. It is identified by a # symbol in terminal.
4. If you want to disable the Ubuntu root account again, you can execute sudo passwd-l root.
Why set static IP? The reason is that although I use UBUNTU to connect to the auto eth0 in my company, the network manager only assigns me an IP. Every time I log on to UBUNTU, I only log on to an IP, whether source insight or secure CRT visits the same IP. But when I use UBUNTU to connect to the Internet at home, each time I use a different IP address, one trouble is that the established source insight project and the set secure CRT cannot be used every time ubuntu is restarted, and must be reset, which is very troublesome, so I must specify a static IP. Open the network configuration file: $sudo gedit / etc/network/interfaces:
Auth lo
Iface lo inet loopback, this is the lo loop.
Auth eth0 / / eth0 network, this line is the only one by default
Iface eth0 inet dhcp / / No.
The above is to obtain IP to enter the network through DHCP. If you need to specify an IP or gateway to enter the network, assume the following:
Iface eth0 inet static
Address 192.168.1.1
Netmask 255.255.255.0
Gateway 192.168.1.254 / IP of VM NET8 for gateway
There are two ways for network settings to take effect:
One is to restart.
The second is to execute sudo / etc/init.d/networkding restart. As long as you can ping the gateway, it means OK.
If you want to access the browser, you also need to set up DNS:sudo gedit / etc/resolv.conf and add:
Nameserver xxx.xxx.xxx.xxx, just save it.
You can set up up to three server here. I have added a gateway address here. You can use the browser.
The above is how to solve the static IP problem of Ubuntu root system permissions. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.