Notes Fedora 32

When after update my Operating System Fedora 30 to Fedora 32, I was solving some problems with Docker CE, I custom the Prompt in my Console and change Gnome 3.36 to Cinnamon 4.4.

Prompt Terminal

Some time ago I was looking for a way to have a prompt that shows me the time, the directory location and data about the state in a git repository (branches, changes), the objective is not use Oh-my-bash, which is a set of scripts to customize the prompt where you can choose between various stiles options.

Searching, I found __git_ps1, which is a script that allows you to obtain information about a git repository, it shows you the branch you are currently in, or if there is any change in said repository, I already had a problem solved and I only have to color the prompt get the time and the current directory path, I add these changes to my configuration file ~/.bashrc, and it looks like this:

When you have the git package installed, then you have the script in the operating system, if you don't have git installed then:

1# Install Git
2$ sudo dnf install git
3
4# Script /usr/share/git-core/contrib/completion/git-prompt.sh  

To color the prompt and obtain the desired data we have to add the following data:

Data Description:

 1- __git_ps1: Script variable.
 2- t: Get the time, minutes and seconds.
 3- W: Shows name the current file.
 4- source: Script route __git_ps1.
 5- export GIT_PS1_SHOWCOLORHINTS: Data color for git.
 6- export GIT_PS1_SHOWDIRTYSTATE: Show the current state for repo.
 7- export GIT_PS1_SHOWUNTRACKEDFILES: Show untracked files.
 8- export PROMPT_COMMAND: Custom prompt.
 9- \[\033[0;31m\]: Red Color.
10- \[\033[0;33m\]: Yellow Color.
11- \[\033[0;32m\]: Green Color.
1# Prompt personalizado ~/.bashrc
2source /usr/share/git-core/contrib/completion/git-prompt.sh
3export GIT_PS1_SHOWCOLORHINTS=true
4export GIT_PS1_SHOWDIRTYSTATE=true
5export GIT_PS1_SHOWUNTRACKEDFILES=true
6export PROMPT_COMMAND='__git_ps1 "\[\033[01;33m\]\t\[\033[00m\] \[\033[01;31m\][\W]\[\033[00m\]" " \\\$ "'

Docker CE

After installing Docker CE from the oficial repository and making the necessary configurations, it turns out that the containers had no internet access, after checking the internal Docker DNS, I found that I had an error with the firewall.

To solve the problem we add the interface docker0 in the trusted zone of the firewall.

1$ sudo firewall-cmd --permanent --zone=trusted --add-interface=docker0
2$ sudo firewall-cmd --reload

Cinnamon

Before upgrading to Fedora 32, the graphical environment I was using was Gnome 3, when presenting performance problems and high memory consumption I chose to change to Cinnamon 4.4, one of the important details is that the default driver for the video card is NOUVEAU open source driver, we installed NVIDIA Corporation GF119 [NVS 310] driver to improve video performance.

NVIDIA Driver 390xxx - RPMFusion Repository

 1# Enable NVIDIA RPM Fusion
 2$ sudo dnf config-manager --set-enabled rpmfusion-nonfree-nvidia-driver
 3
 4# List available drivers
 5$ sudo dnf repository-packages rpmfusion-nonfree-nvidia-driver info
 6
 7# Install driver
 8$ sudo dnf install xorg-x11-drv-nvidia-390xx akmod-nvidia-390xx
 9$ sudo dnf install xorg-x11-drv-nvidia-390xx-cuda
10
11# Test and control for performance
12$ sudo dnf install -y gwe

References

Translations: