The basic configuration and interface beautification of Ubuntu

This article introduces the general operations for the Ubuntu system, including some basic configuration and interface beautification, as well as some problems that may occur in the middle.

Basic configuration and software

Modify root password

In order to facilitate the execution of commands, instead of having to sudo every time, we can directly modify the password of the root account, and then switch to the root account to perform related operations, and in the subsequent process, once there is a boot exception, in the case of having the root account password, We can easily enter tty4 through Ctrl+Alt+F4 (or other F1~F6) to repair related configuration files through the command line to repair the boot failure.

tzloop@tzloop-GE62-6QC:~$ sudo passwd root
# Enter your new password

Note: The initial password is random and can only be reset to give a new password.

QQ for Linux

https://im.qq.com/linuxqq/download.html

Sogou for Linux

https://pinyin.sogou.com/linux/

There is a problem in the use process, that is, when using the input method to input numbers and English letters, there will be abnormal characters, "Like this".

Theme and Dock

This includes two parts:

Chrome plug-in, modification details

Download gnome management plug-in, you can easily download and enable related gnome plug-ins. Download the address here, and then you can open the plug-in homepage in Chrome to configure.
Here are a few plugins used:

Beautify the Dock, which is the bottom program tray

first step:

# Add software source
tzloop@tzloop-GE62-6QC:~$ sudo add-apt-repository ppa:noobslab/macbuntu
# Install Plank
tzloop@tzloop-GE62-6QC:~$ sudo apt-get install plank

Fix Plank on the Dock, enter the folder /usr/share/applications, find the relevant software, and drag it to the Dock to OK.

**Step 2: **

[ Download Frost](https://zimocp.github.io/upload/Ubuntu-18-04-LTS-%E7%BE%8E%E5%8C%96-%E4%BB%BFMac-OS-X/frost- plank-theme-2.2.1.zip): Find the folder named Frost in the unzipped folder and copy it to ~/.local/share/plank/themes (create if you don’t have it)
[ Download Mac OS Themes](https://zimocp.github.io/upload/Ubuntu-18-04-LTS-%E7%BE%8E%E5%8C%96-%E4%BB%BFMac-OS-X/ plank-macOS-Themes-Pack.zip): After decompression, enter the folder, you will see a lot of themes, copy the folder you need according to the name to ~/.local/share/plank/themes (create if you don’t have one )
Finally, Ctrl+right click on Plank, click Preferences, and select related topics.

Step 3: Hide the original Dash

Install Dash to Dock

Other configuration

Install Slingscold, Slingscold is a full-screen launcher that is lighter than the GNOME native launcher.

tzloop@tzloop-GE62-6QC:~$ sudo apt-get install slingscold

To fix Slingscold on the Dock, you can enter the folder /usr/share/applications, find the relevant software, and drag it to the Dock.

Use Tweaks to modify the theme

tzloop@tzloop-GE62-6QC:~$ sudo apt-get install macbuntu-os-icons-v1804 macbuntu-os-ithemes-v1804 macbuntu-os-plank-theme-v1804

Install Macbuntu themes, icons and Plank themes through the above commands, open GNOME Tweaks, and set the application cursor icon in the appearance on the left sidebar to Macbuntu.

The final beautification effect

Modify font

The English fonts of the Ubuntu system are very good-looking, but the Chinese fonts are sometimes not so good-looking, so you can replace the corresponding fonts yourself. Here you first need to check whether the Chinese font is installed, enter the following command on the terminal to view the installed font

tzloop@tzloop-GE62-6QC:~$ fc-list :lang=zh

If there is no Chinese font, you can download it from the Internet, or copy it directly to the windows system. After the Chinese font is installed, you need to modify the default font setting file, modify the default alternative font when the default font cannot be found, enter the following path to find the configuration file:

tzloop@tzloop-GE62-6QC:~$ vim /etc/fonts/conf.d/64-language-selector-prefer.conf

Modify (add) the font configuration information in the file, the first line after each is the default new font added.

<? xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd"><fontconfig><alias><family>sans-serif</family><prefer><family>Microsoft YaHei</family><family>Noto Sans CJK JP</family><family>Noto Sans CJK KR</family><family>Noto Sans CJK SC</family><family>Noto Sans CJK TC</family><family>Noto Sans CJK HK</family></prefer></alias><alias><family>serif</family><prefer><family>Microsoft YaHei</family><family>Noto Serif CJK JP</family><family>Noto Serif CJK KR</family><family>Noto Serif CJK SC</family><family>Noto Serif CJK TC</family></prefer></alias><alias><family>monospace</family><prefer><family>Microsoft YaHei</family><family>Noto Sans Mono CJK JP</family><family>Noto Sans Mono CJK KR</family><family>Noto Sans Mono CJK SC</family><family>Noto Sans Mono CJK TC</family><family>Noto Sans Mono CJK HK</family></prefer></alias></fontconfig>

After saving with sudo permission, it will take effect after restarting. The original font will become the Chinese font. The default traditional font will become the new simplified Chinese.

Adjust Ubuntu brightness

This part is more troublesome, and there may be many situations, which are explained separately below.

  1. If it is Fn+Brightness adjustment button, the brightness adjustment icon can appear, but the adjustment is invalid, then the following methods can be used:
tzloop@tzloop-GE62-6QC:~$ sudo gedit /etc/default/grub
# Modify the fields in the file:
GRUB_CMDLINE_LINUX=""Change to GRUB_CMDLINE_LINUX="acpi_backlight=vendor"
# Update
tzloop@tzloop-GE62-6QC:~$ sudo update-grub
# Reboot
tzloop@tzloop-GE62-6QC:~$ reboot

If you want to set the initial value of brightness, you can directly modify the value in the file.

tzloop@tzloop-GE62-6QC:~$ sudo gedit /etc/rc.local
# Add the following code in the open file (added before exit 0)
echo 500>/sys/class/backlight/intel_backlight/brightness

2. If the /sys/class/backlight/ directory is empty
You can adjust the brightness by installing third-party software, install the brightness-controller or brightness-controller-sample software,

tzloop@tzloop-GE62-6QC:~$ sudo add-apt-repository ppa:apandada1/brightness-controller
tzloop@tzloop-GE62-6QC:~$ sudo apt-get update
tzloop@tzloop-GE62-6QC:~$ sudo apt-get install brightness-controller
tzloop@tzloop-GE62-6QC:~$ brightness-controler

On the left is the normal version of the adjustment software, and on the right is the simple version.
3. If it is still invalid, the following dangerous solutions can be used

The following modifications may make it impossible to enter the system after restarting, because the newly added driver configuration may cause the display to be abnormal, so use it with caution, but if you cannot enter the system after restarting, don’t be afraid, use Ctrl+Alt+F4 (or F1~F6) Enter tty4 and delete the newly added configuration file s. Here you need to log in as the root user directly, and then delete the conf file and restart to restore it.

Enter the /etc/X11/ path, if there is no xorg.conf file, create a new one yourself, enter the following content, save and exit.

Section "Screen"
	Identifier	"Default Screen"
	DefaultDepth	24
EndSection
Section "Module"
	Load	"glx"
EndSection
Section "Device"
	Identifier	"Default Device"
	Driver	"nvidia"
	Option	"NoLogo""True"
	Option "RegistryDwords""EnableBrightnessControl=1"
EndSection

If there is this file, type in the terminal:

tzloop@tzloop-GE62-6QC:~$ sudo gedit /etc/X11/xorg.conf
# Change the content of fuiying to the following
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "RegistryDwords""EnableBrightnessControl=1"
EndSection

Then save, exit, and restart, maybe it's normal. If you can't get into the system, then please see the solution at the beginning of this paragraph.

4. If it still has no effect

It is reasonable to suspect that it is due to the graphics card driver. We know that when installing the graphics card driver on a computer with dual graphics cards (single graphics plus integrated graphics), you need to modify the grub file and add the nomodeset field after slpash. This is to prohibit the system from using GTX. The N card driver is explained in detail in the previous article. If the brightness still cannot be adjusted here, please refer to whether the nomodeset field still exists in the file. To delete it.

tzloop@tzloop-GE62-6QC:~$ sudo vim /etc/default/grub
# Delete the nomodeset field, save and exit
tzloop@tzloop-GE62-6QC:~$ sudo update-grub
tzloop@tzloop-GE62-6QC:~$ reboot

This is my final error positioning. After removing the nomodeset, the independent display is actually used. After restarting, some changes will be found. For example, an animation will appear when the program is opened, and an animation will appear when clicking the program menu. The brightness can be adjusted at will, web pages or programs. The rendering speed has also become faster, and the above two brightness adjustment software can also be used.

Reference Materials

https://zimocp.github.io/2019/05/20/Ubuntu-18-04-LTS-%E7%BE%8E%E5%8C%96/https://www.jianshu.com/p/4c95b708ae1dhttps://blog.csdn.net/redstone0001/article/details/17042011https://blog.csdn.net/u013406197/article/details/80773820https://blog.csdn.net/TianliangQiu/article/details/51585398https://blog.csdn.net/HedWater/article/details/75465110https://blog.csdn.net/weixin_41490463/article/details/80987654https://blog.csdn.net/gengyuchao/article/details/101215243

Recommended Posts

The basic configuration and interface beautification of Ubuntu
Ubuntu16.04 configuration OpenCV3.4.2 and basic use
Configuration and beautification after Ubuntu installation (1)
The apt-get command of Ubuntu basic tutorial
Ubuntu basic settings: introduction to the installation and use of openssh-server
Ubuntu20.04 experience and beautification
Basic configuration and common software installation after ubuntu 18.04 installation
Installation, configuration and uninstallation of GitLab in Ubuntu19.1
[Linux] ubuntu install configuration vsftpd and lock the directory
Ubuntu16.04 installation and simple configuration
Ubuntu16.04 install SVN and configuration
Ubuntu PostgreSQL installation and configuration
Centos7 installation and configuration of Jenkins
CentOS 8 install Git and basic configuration
The difference between CentOS and Ubuntu
Ubuntu environment variables and ADB configuration
Overview of the Ubuntu file system
Ubuntu 19.1 installation and configuration Chinese environment
Nginx installation and configuration load (ubuntu12.04)
Coexistence of CUDA8.0 and CUDA9.0 under Ubuntu 16.04
Ubuntu configuration source and installation software
Common exceptions and solutions in the use and development of Ubuntu system
Detailed explanation of quick installation and configuration of Subversion (SVN) under Ubuntu
Detailed explanation of the installation and use of SSH in the Ubuntu environment
Install the latest version of Thunderbird and exchange plugins under ubuntu
ubuntu Docker installation and deployment of Rancher
Installation and configuration of redis under centos7
Installation and uninstallation of CUDA under Ubuntu 16.04
Install docker on ubuntu and basic usage
Installation and deployment of Nginx in Ubuntu
The implementation of the Ubuntu18.04 installation Pycharm tutorial
Installation and use of Win10 subsystem Ubuntu
Ubuntu install PHP and PHP Nginx configuration method
The relationship between Open3D version and Ubuntu
DLNA/UPnP Server installation and configuration under Ubuntu 12.04
Installation and configuration of JDK in CentOS 7 system
Expand the disk size of Ubuntu under VMware
The difference between the syntax of java and python
Solve the problem of installing VMwareTools on Ubuntu 18.04
Debian and Ubuntu installation source configuration file description
ubuntu adjusts the priority of swap swap space usage
Summary of Ubuntu system and privacy cleaning tools
Install the CPU version of Caffe on Ubuntu
Installation of pulseaudio and API usage under Ubuntu 12.04
Install the old version of seurat under Ubuntu
Virtual machine installation and configuration ubuntu shared folder_
The meaning and usage of lists in python
Talking about the first experience of using Ubuntu
First look at the new features of Ubuntu 17.10
The road to reinstallation of ubuntu 18.04 from scratch
Installation and configuration of rsync server under CentOS 6.5
The use of crontab for ubuntu scheduled tasks
Kaldi installation and configuration graphic tutorials under Ubuntu
The consequences of uninstalling python in ubuntu, very
Installation and configuration of CentOS 7 in VMware Workstation
Introduction to the use of Hanlp in ubuntu
Turn off and turn on the firewall in ubuntu
Cancel the background color of the Ubuntu (wsl) folder
The latest method of installing Mongodb on Ubuntu 16.04
Explain the implementation of Centos8 static IP configuration
Solve the problem of installing Theano on Ubuntu19