User Tools

Site Tools


informatica:hp_z230_400sb_centos7_2

Instal·lació de CentOS 7 per l'Avance III 400 MHz SB - Part 2

Llista de paquets instal·lats a l'Avance III 600 MHz

Genero la llista de paquets instal·lats a l'Avance III 600 MHz i la transfereixo al nou ordinador per l'Avance III 400 MHz SB,

$ rpm -qa | sort > 20210819-avance3-600-pkglist.txt

$ ls -l 20210819-avance3-600-pkglist.txt 
-rw-r--r--. 1 sermnadmin sermnadmin 62040 Aug 19 17:09 20210819-avance3-600-pkglist.txt

$ wc -l 20210819-avance3-600-pkglist.txt 
1850 20210819-avance3-600-pkglist.txt

$ md5sum 20210819-avance3-600-pkglist.txt
bd2abffe1603ef8931125c4c3cc0ce92  20210819-avance3-600-pkglist.txt

$ scp ./20210819-avance3-600-pkglist.txt sermnadmin@cie-54-214.uab.cat:/home/sermnadmin/Documents                             
The authenticity of host 'cie-54-214.uab.cat (158.109.54.214)' can't be established.
ECDSA key fingerprint is SHA256:y5C84bqQupGcO3axR4i/nnJs0uJVDlUTlKFHWtGP6a0.
ECDSA key fingerprint is MD5:f8:55:34:99:a7:ad:67:46:0f:f8:5f:c5:e7:eb:47:14.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'cie-54-214.uab.cat,158.109.54.214' (ECDSA) to the list of known hosts.
sermnadmin@cie-54-214.uab.cat's password: 
20210819-avance3-600-pkglist.txt                                                                 

i faig servir md5summ al nou ordinador per verificar que s'ha transferit correctament,

sermnadmin@cie-54-214 Documents]$ md5sum 20210819-avance3-600-pkglist.txt 
bd2abffe1603ef8931125c4c3cc0ce92  20210819-avance3-600-pkglist.txt

Llista de paquets instal·lats a l'Avance III 400 MHz SB

Genero la llista de paquets instal·lats a l'Avance III 400 MHz SB per poder-la comparar amb la llista de paquets instal·lats a l'Avance III 600 MHz,

# rpm -qa | sort > 20210819-avance3-400sb-pkglist.txt

# ls -l 20210819-avance3-400sb-pkglist.txt 
-rw-r--r--. 1 sermnadmin sermnadmin 57257 Aug 20 13:46 20210819-avance3-400sb-pkglist.txt

# wc -l 20210819-avance3-400sb-pkglist.txt 
1707 20210819-avance3-400sb-pkglist.txt

Com es pot veure, falten per instal·lar 143 paquets (1850 - 1707).

Instal·lació de paquets que manquen

Un cop actualitzat el programari, comparo la llista de paquets instal·lats en aquest ordinador amb la llista de paquets instal·lats a l'ordinador del 600 MHz per instal·lar els que manquen,

# comm -23 20210819-avance3-400sb-pkglist.txt 20210819-avance3-600-pkglist.txt > list-packages-only-in-400sb.txt
# comm -13 20210819-avance3-400sb-pkglist.txt 20210819-avance3-600-pkglist.txt > list-packages-only-in-600.txt

Llavors genero un llistat que conté els paquets instal·lats només al 600 MHz i afegeixo el seu magatzem d'origen,

# for PKG in `cat list-packages-only-in-600.txt` ; 
> do
> echo -e $PKG"\t"`yum info $PKG | grep "Repo        : "`;
> done > list-packages-only-in-600-with-repo.txt &

# wc -l list-packages-only-in-600.txt list-packages-only-in-600-with-repo.txt 
  157 list-packages-only-in-600.txt
  157 list-packages-only-in-600-with-repo.txt
  314 total

# tail -5 list-packages-only-in-600-with-repo.txt 
xorg-x11-apps-7.7-7.el7.x86_64  Repo : base/7/x86_64
xorg-x11-fonts-100dpi-7.5-9.el7.noarch  Repo : base/7/x86_64
xorg-x11-fonts-ISO8859-1-100dpi-7.5-9.el7.noarch        Repo : base/7/x86_64
xorg-x11-fonts-misc-7.5-9.el7.noarch    Repo : base/7/x86_64
yum-plugin-keys-1.1.31-54.el7_8.noarch  Repo : base/7/x86_64

Per evitar problemes a l'hora d'actualitzar paquets relacionats amb l'entorn gràfic, aturo el gestor de gràfics gdm,

# systemctl status gdm.service 
● gdm.service - GNOME Display Manager
   Loaded: loaded (/usr/lib/systemd/system/gdm.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2021-08-18 14:22:19 CEST; 2 days ago
 Main PID: 8821 (gdm)
   CGroup: /system.slice/gdm.service
           ├─8821 /usr/sbin/gdm
           └─8828 /usr/bin/X :0 -background none -noreset -audit 4 -verbose -auth /run/gdm/auth-for-gdm-fdN6rO/database -seat seat0 -nolisten tcp vt1

Aug 18 14:22:19 cie-54-214.uab.es systemd[1]: Starting GNOME Display Manager...
Aug 18 14:22:19 cie-54-214.uab.es systemd[1]: Started GNOME Display Manager.
Aug 18 14:22:29 cie-54-214.uab.es gdm[8821]: Failed to remove greeter program access to the display. Trying to proceed.

# systemctl stop gdm.service 

# systemctl status gdm.service 
● gdm.service - GNOME Display Manager
   Loaded: loaded (/usr/lib/systemd/system/gdm.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Fri 2021-08-20 14:51:51 CEST; 2s ago
  Process: 8821 ExecStart=/usr/sbin/gdm (code=exited, status=0/SUCCESS)
 Main PID: 8821 (code=exited, status=0/SUCCESS)

Aug 18 14:22:19 cie-54-214.uab.es systemd[1]: Starting GNOME Display Manager...
Aug 18 14:22:19 cie-54-214.uab.es systemd[1]: Started GNOME Display Manager.
Aug 18 14:22:29 cie-54-214.uab.es gdm[8821]: Failed to remove greeter program access to the display. Trying to proceed.
Aug 20 14:51:51 cie-54-214.uab.es systemd[1]: Stopping GNOME Display Manager...
Aug 20 14:51:51 cie-54-214.uab.es systemd[1]: Stopped GNOME Display Manager.

i instal·lo els paquets que manquen,

# for PKG in `cat list-packages-only-in-600.txt`
> do
> yum --assumeyes install $PKG                                                                                                                                                           
> done
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
:
:
Resolving Dependencies
--> Running transaction check
---> Package apper.x86_64 0:0.9.2-4.el7 will be installed
:
:
Dependencies Resolved
:
:
Install  1 Package (+3 Dependent packages)

Total download size: 1.7 M
Installed size: 7.5 M
Downloading packages:
(1/4): PackageKit-yum-1.1.10-2.el7.centos.x86_64.rpm                                                                                                              |  75 kB  00:00:00     
(2/4): PackageKit-Qt-0.9.5-2.el7.x86_64.rpm                                                                                                                       |  78 kB  00:00:00     
(3/4): PackageKit-1.1.10-2.el7.centos.x86_64.rpm                                                                                                                  | 587 kB  00:00:00     
(4/4): apper-0.9.2-4.el7.x86_64.rpm                                                                                                                               | 991 kB  00:00:00     
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                    5.1 MB/s | 1.7 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : PackageKit-1.1.10-2.el7.centos.x86_64                                                                                                                                 1/4 
  Installing : PackageKit-yum-1.1.10-2.el7.centos.x86_64                                                                                                                             2/4 
  Installing : PackageKit-Qt-0.9.5-2.el7.x86_64                                                                                                                                      3/4 
  Installing : apper-0.9.2-4.el7.x86_64                                                                                                                                              4/4 
  Verifying  : PackageKit-Qt-0.9.5-2.el7.x86_64                                                                                                                                      1/4 
  Verifying  : PackageKit-yum-1.1.10-2.el7.centos.x86_64                                                                                                                             2/4 
  Verifying  : apper-0.9.2-4.el7.x86_64                                                                                                                                              3/4 
  Verifying  : PackageKit-1.1.10-2.el7.centos.x86_64                                                                                                                                 4/4 

Installed:
  apper.x86_64 0:0.9.2-4.el7                                                                                                                                                             

Dependency Installed:
  PackageKit.x86_64 0:1.1.10-2.el7.centos                      PackageKit-Qt.x86_64 0:0.9.5-2.el7                      PackageKit-yum.x86_64 0:1.1.10-2.el7.centos                     

Complete!
:
:

i així per cadascun dels paquets al fitxer list-packages-only-in-600.txt fins instal·lar el darrer, comprovar si cal actualitzar algun paquet i actualitzar els que calgui,

Loaded plugins: fastestmirror, langpacks, refresh-packagekit
Loading mirror speeds from cached hostfile
:
:
Total download size: 32 k
Installed size: 40 k
Downloading packages:
yum-plugin-keys-1.1.31-54.el7_8.noarch.rpm                                                                                                                        |  32 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : yum-plugin-keys-1.1.31-54.el7_8.noarch                                                                                                                                1/1 
  Verifying  : yum-plugin-keys-1.1.31-54.el7_8.noarch                                                                                                                                1/1 

Installed:
  yum-plugin-keys.noarch 0:1.1.31-54.el7_8                                                                                                                                               

Complete!

# yum check-update
Loaded plugins: fastestmirror, keys, langpacks, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: ftp.csuc.cat
 * elrepo: mirrors.coreix.net
 * epel: mirror.eixamcoop.cat
 * extras: ftp.csuc.cat
 * updates: ftp.csuc.cat

exiv2.x86_64                                                    0.27.0-4.el7_8                                                                          updates
exiv2-libs.x86_64              

# yum update                                                                                                                                                 
Loaded plugins: fastestmirror, keys, langpacks, refresh-packagekit
:
:
Upgrade  2 Packages

Total download size: 1.7 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for updates
(1/2): exiv2-libs-0.27.0-4.el7_8.x86_64.rpm                                                                                                                       | 798 kB  00:00:00     
(2/2): exiv2-0.27.0-4.el7_8.x86_64.rpm                                                                                                                            | 923 kB  00:00:00     
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                    6.0 MB/s | 1.7 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : exiv2-libs-0.27.0-4.el7_8.x86_64                1/4 
  Updating   : exiv2-0.27.0-4.el7_8.x86_64                     2/4 
  Cleanup    : exiv2-libs-0.27.0-3.el7_8.x86_64                3/4 
  Cleanup    : exiv2-0.27.0-3.el7_8.x86_64                     4/4 
  Verifying  : exiv2-0.27.0-4.el7_8.x86_64                     1/4 
  Verifying  : exiv2-libs-0.27.0-4.el7_8.x86_64                2/4 
  Verifying  : exiv2-libs-0.27.0-3.el7_8.x86_64                3/4 
  Verifying  : exiv2-0.27.0-3.el7_8.x86_64                     4/4 

Updated:
  exiv2.x86_64 0:0.27.0-4.el7_8                                exiv2-libs.x86_64 0:0.27.0-4.el7_8                                                           

Complete!

En aquest punt, reinicio l'ordinador amb reboot –force perquè faci servir el kernel más actual dels instal·lats.

Eliminar els paquets gràfics de Nvidia

Després de reiniciar l'ordinador dóna un error perquè intenta fer servir els mòduls del kernel per una targeta gràfica Nvidia quan en aquest ordinador no n'hi ha cap. Els paquets per Nvidia s'han instal·lat per error a partir de la llista de paquets instal·lats al 600 MHz, on sí que hi ha instal·lada una targeta gràfica Nvidia. La solució és desinstal·lar aquests paquets,

# yum list *nvidia*
Loaded plugins: fastestmirror, keys, langpacks, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: ftp.csuc.cat
 * elrepo: mirror.koddos.net
 * epel: fr2.rpmfind.net
 * extras: ftp.csuc.cat
 * updates: ftp.csuc.cat
Installed Packages
kmod-nvidia-390xx.x86_64                                      390.144-1.el7_9.elrepo               @elrepo
nvidia-x11-drv-390xx.x86_64                                   390.144-1.el7_9.elrepo               @elrepo
nvidia-x11-drv-390xx-libs.x86_64                              390.144-1.el7_9.elrepo               @elrepo
Available Packages
kmod-nvidia.x86_64                                            470.63.01-1.el7_9.elrepo             elrepo 
:
:
pcp-pmda-nvidia-gpu.x86_64                                    4.3.2-13.el7_9                       updates
yum-plugin-nvidia.noarch                                      1.0.2-1.el7.elrepo                   elrepo 
[root@cie-54-214 gdm]# 

# yum remove kmod-nvidia-390xx.x86_64 nvidia-x11-drv-390xx.x86_64 nvidia-x11-drv-390xx-libs.x86_64 
Loaded plugins: fastestmirror, keys, langpacks, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package kmod-nvidia-390xx.x86_64 0:390.144-1.el7_9.elrepo will be erased
---> Package nvidia-x11-drv-390xx.x86_64 0:390.144-1.el7_9.elrepo will be erased
---> Package nvidia-x11-drv-390xx-libs.x86_64 0:390.144-1.el7_9.elrepo will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================
 Package                              Arch         Version                     Repository        Size
=============================================================================================================
Removing:
 kmod-nvidia-390xx                    x86_64       390.144-1.el7_9.elrepo      @elrepo             60 M
 nvidia-x11-drv-390xx                 x86_64       390.144-1.el7_9.elrepo      @elrepo             25 M
 nvidia-x11-drv-390xx-libs            x86_64       390.144-1.el7_9.elrepo      @elrepo            144 M

Transaction Summary
=============================================================================================================
Remove  3 Packages

Installed size: 229 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : kmod-nvidia-390xx-390.144-1.el7_9.elrepo.x86_64                                                                                                                       1/3 
Working. This may take some time ...
Done.
  Erasing    : nvidia-x11-drv-390xx-libs-390.144-1.el7_9.elrepo.x86_64                                                                                                               2/3 
  Erasing    : nvidia-x11-drv-390xx-390.144-1.el7_9.elrepo.x86_64                                                                                                                    3/3 
  Verifying  : nvidia-x11-drv-390xx-390.144-1.el7_9.elrepo.x86_64                                                                                                                    1/3 
  Verifying  : kmod-nvidia-390xx-390.144-1.el7_9.elrepo.x86_64                                                                                                                       2/3 
  Verifying  : nvidia-x11-drv-390xx-libs-390.144-1.el7_9.elrepo.x86_64                                                                                                               3/3 

Removed:
  kmod-nvidia-390xx.x86_64 0:390.144-1.el7_9.elrepo        nvidia-x11-drv-390xx.x86_64 0:390.144-1.el7_9.elrepo        nvidia-x11-drv-390xx-libs.x86_64 0:390.144-1.el7_9.elrepo       

Complete!

i reiniciar el gestor gràfic,

[root@cie-54-214 gdm]# systemctl stop gdm

[root@cie-54-214 gdm]# systemctl status gdm
● gdm.service - GNOME Display Manager
   Loaded: loaded (/usr/lib/systemd/system/gdm.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Fri 2021-08-20 15:48:59 CEST; 4s ago
  Process: 1408 ExecStartPost=/bin/bash -c TERM=linux /usr/bin/clear > /dev/tty1 (code=exited, status=0/SUCCESS)
  Process: 1394 ExecStart=/usr/sbin/gdm (code=exited, status=0/SUCCESS)
 Main PID: 1394 (code=exited, status=0/SUCCESS)

Aug 20 15:30:32 cie-54-214.uab.es systemd[1]: Started GNOME Display Manager.
Aug 20 15:30:32 cie-54-214.uab.es gdm[1394]: GdmDisplay: display lasted 0.132598 seconds
Aug 20 15:30:32 cie-54-214.uab.es gdm[1394]: GdmDisplay: display lasted 0.072693 seconds
Aug 20 15:30:32 cie-54-214.uab.es gdm[1394]: GdmDisplay: display lasted 0.077094 seconds
Aug 20 15:30:32 cie-54-214.uab.es gdm[1394]: GdmDisplay: display lasted 0.083547 seconds
Aug 20 15:30:32 cie-54-214.uab.es gdm[1394]: GdmDisplay: display lasted 0.071624 seconds
Aug 20 15:30:32 cie-54-214.uab.es gdm[1394]: GdmDisplay: display lasted 0.063474 seconds
Aug 20 15:30:32 cie-54-214.uab.es gdm[1394]: GdmLocalDisplayFactory: maximum number of X display failures reached: check X server log for errors
Aug 20 15:48:59 cie-54-214.uab.es systemd[1]: Stopping GNOME Display Manager...
Aug 20 15:48:59 cie-54-214.uab.es systemd[1]: Stopped GNOME Display Manager.

[root@cie-54-214 gdm]# systemctl start gdm                                                                                                                                               

[root@cie-54-214 gdm]# systemctl status gdm                                                                                                                                              
● gdm.service - GNOME Display Manager
   Loaded: loaded (/usr/lib/systemd/system/gdm.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2021-08-20 15:49:08 CEST; 1s ago
  Process: 30628 ExecStartPost=/bin/bash -c TERM=linux /usr/bin/clear > /dev/tty1 (code=exited, status=0/SUCCESS)
 Main PID: 30625 (gdm)
   CGroup: /system.slice/gdm.service
           ├─30625 /usr/sbin/gdm
           └─30632 /usr/bin/X :0 -background none -noreset -audit 4 -verbose -auth /run/gdm/auth-for-gdm-PKHUXv/database -seat seat0 -nolisten tcp vt1

Aug 20 15:49:08 cie-54-214.uab.es systemd[1]: Starting GNOME Display Manager...
Aug 20 15:49:08 cie-54-214.uab.es systemd[1]: Started GNOME Display Manager.
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
informatica/hp_z230_400sb_centos7_2.txt · Last modified: 2021/08/20 16:10 by miquel