Setup to log in and modify the computer name in the Linux system using the root account in Ubuntu 12.04

Source: Internet
Author: User

3. set up a login using the root account in Ubuntu 12.041, first set a root password, sudo passwd root2, root login, su root3, backup lightgdmcp-p/etc/lightdm/lightdm.conf/etc/lightdm/ LIGHTDM.CONF.BAK4, editor Lightdm.confsudo Gedit/etc/lightdm/lightdm.conf5, add: greeter-show-manual-login=true Allow-guset=false modified to: [seatdefaults]greeter-session=unity-greeteruser-session=ubuntugreeter-show-manual-login= True #手动输入登录系统的用户名和密码allow-guest=false #不允许 Guest Login After restarting the login, you can see that we can enter root. Note: If there is no sound after the root login, you can resolve it by doing the following: PulseAudio--start--log-target=syslogubuntu Root Login no sound the root cause of the problem is when you log in with root PulseAudio not started. Add root to the pulse-access group: sudo usermod-a-g pulse-access Root and modify the configuration file/etc/default/pulseaudio, set Pulseaudio_system_start to 1. 4. Modify the computer name in the Linux systemYou can use the hostname command to modify the hostname command format: hostname < new computer name >-$sudo hostname linux After modifying, open a new terminal window, display the successful computer name is: Geclab. Restart the Ubuntu system and find that the computer name you just modified is not saved. Changed back to a computer name that was not modified before. To permanently modify your computer name, you need to make the following modifications: 1. After you have modified the/etc/hostname file $sudo vi/etc/hostname Enter the password, go to the text editor and change the contents of the display to the name of the computer you want to set. Geclab ". 2. You need to continue to modify/etc/hosts. $sudo vi/etc/hosts Open the/etc/hosts file, the name of the 127.0.1.1 in the contents of the file is also changed to the same name as/etc/hostname in Geclab. At this point, the operation to modify the computer name is complete.

Setup to log in and modify the computer name in the Linux system using the root account in Ubuntu 12.04

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.