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! ^ _ ^, I do not know what is installed and what software is unloaded than Mac. 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
gnome-fallback.desktop xsession.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
Well, you can hide unnecessary startup items. www.linuxidc.com also customizes 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
Drag Common Programs (not a few) to the dock, so that a simple desktop environment can be configured! 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 mind to solve the problem. It is best to solve the problem from the code and configuration file, which is more direct and effective. I opened the Chrome browser and realized the full screen effect!