How do you fix Xauthority?
Change the Permissions of Xauthority
Instead of root, your user and group should own that Xauthority file. You can change the ownership by running the chown command with sudo. That should go off without a hitch, so you're ready to try logging in again. Press Ctrl + Alt + F7 to return to your normal login screen.
How do I log into Ubuntu from terminal?
Switch to a Terminal
At the login screen, press Ctrl + Alt + F5 to switch to a TTY. You'll be prompted to enter a login. At the login prompt, enter your username and press Enter . You'll then be prompted for your password.
What is Ubuntu used for?
Ubuntu comes with everything you need to run your organisation, school, home or enterprise. All the essential applications, like an office suite, browsers, email and media apps come pre-installed and thousands more games and applications are available in the Ubuntu Software Centre.