Ubuntu custom logon session and desktop environment

Source: Internet
Author: User

I don't know what I installed and what software I unloaded. In short, I lost my Ubuntu Desktop! It's just an empty desktop, and there's no panel. It's really anxious! This is often the case in the past, mostly related to unity and gnome3. I always thought it was a system bug. I searched the internet and it could be improved! Exactly. With this (the Panel disappears), you can customize a desktop that suits you. Don't use unity, gnome3, or panel, just use a dock! ^ _ ^, Simpler than Mac!

Procedure:

1. custom logon session

If it is not automatic login, there will be a selection of 'login session ', such as: gnome, gnome classic, gnome classic (no effects), Ubuntu, ubuntu-2d, Recovery Console, user defined session, xfce and so on. In fact, many of them are not needed. How can we modify them?

Key Directory:/usr/share/xesssions/LS:

 
Gnome-classic.desktop guest-restricted.desktop
Gnome-classic-guest-restricted.desktop ubuntu-2d.desktop
Gnome. Desktop ubuntu. Desktop
Xsession. Desktop gnome-fallback.desktop
Gnome-shell.desktop xterm. Desktop

We want to modify these configuration files. Let's take a look at Cat ubuntu. Desktop:

[Desktop entry]
Name = Ubuntu
Comment = this session logs you into Ubuntu
Exec = gnome-session -- session = Ubuntu
Tryexec = unity
Icon =
Type = Application
X-Ubuntu-gettext-domain = gnome-session-3.0

Note that the 'name' option in the first line is the name of the session displayed during startup. modify it as needed! There is also '-- session = Ubuntu' in the exec line. This 'ubuntu 'is similar to its identifier. In the future, when automatic logon is set, the 'user-session = *** 'option may use this identifier. After studying these files carefully, you can add the following sentence:

 
Nodisplay =True

In this way, the corresponding options will not appear when you log on to the session. Note that the Recovery Console option is in xterm. desktop, and the user-defined session option is in xsession. desktop. We need to customize this file and share it with me:

 
[Desktop entry]
Name = simple
Comment = custom ~ /. Xsession script simple style
Exec =Default-- Session = simple

Okay, so that you can hide unnecessary startup items and customize a simple option.

Ii. Set automatic logon to simple session

Configuration File:/etc/lightdm. conf Cat:

 
[Seatdefaults]
Greeter-session = unity-greeter
User-session = simple
Autologin-user = myusername # Be sure to change
Autologin-user-Timeout = 0

In this way, automatic logon will load the configuration environment in simple.

Continue to modify the configuration: Cat. dmrc

 
[Desktop]
Language = en_gb.utf8
Layout = us
Session = xsession

III. Further settings

After the system is restarted, the system is automatically logged on. However, there is only one desktop, no panel or menu! Do not be afraid. Press CTRL + ALT + T to call up the terminal. After connecting to the network, install a dock software (as per your preferences). The following is a relatively simple one:

 
Sudo apt-Get install Docky

Program(Not a few) drag it to the dock and configure a simple desktop environment! In fact, many programs can be called using gnome-terminal, such as calling the program menu of gnome2:

 
Gnome-panel

Iv. Summary

When you encounter problems, you need to move your brains.CodeAnd the configuration file, which is more direct and effective. I opened the Chrome browser and realized the full screen effect!

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.