User Tools

Site Tools


informatica:hp_z400_600_centos7_3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
informatica:hp_z400_600_centos7_3 [2021/08/10 11:07]
miquel [Desinstal·lació de paquets]
informatica:hp_z400_600_centos7_3 [2021/08/20 14:01] (current)
miquel [Desinstal·lació de paquets]
Line 232: Line 232:
 ===== Desinstal·lació de paquets ===== ===== Desinstal·lació de paquets =====
  
-A l'inici del procés [[informatica:hp_z400_600_centos7 | d'instal·lació de CentOS 7]] es varen instal·lar paquets que Bruker no instal·la i que cal desinstal·lar, per exemple, l'entorn Gnome. Per identificar i eliminar aquests paquets genero un llistat dels paquets instal·lats i el comparo amb el llistat generat a l'ordinador del 500 MHz,+A l'inici del procés [[informatica:hp_z400_600_centos7_1 | d'instal·lació de CentOS 7]] es varen instal·lar paquets que Bruker no instal·la i que cal desinstal·lar, per exemple, l'entorn Gnome. Per identificar i eliminar aquests paquets genero un llistat dels paquets instal·lats i el comparo amb el llistat generat a l'ordinador del 500 MHz,
  
 <file> <file>
 # rpm -qa | sort > avance3-600-pkglist.txt                                                   # rpm -qa | sort > avance3-600-pkglist.txt                                                  
  
-# comm -23 avance3-600-pkglist.txt avance-neo-500-pkglist.txt > compare-files-only-in-600.txt +# comm -23 avance3-600-pkglist.txt avance-neo-500-pkglist.txt > list-packages-only-in-600.txt 
-# comm -13 avance3-600-pkglist.txt avance-neo-500-pkglist.txt > compare-files-only-in-500.txt+# comm -13 avance3-600-pkglist.txt avance-neo-500-pkglist.txt > list-packages-only-in-500.txt
 </file> </file>
  
Line 244: Line 244:
  
 <file> <file>
-# for PKG in `cat list-packages-only-in-600.txt` ; do echo $PKG"\t"`yumdb info $PKG | grep "from_repo "`; done > list-packages-only-in-600-with-repo.txt &+# for PKG in `cat list-packages-only-in-600.txt` ;  
 +do echo $PKG"\t"`yumdb info $PKG | grep "from_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  # wc -l list-packages-only-in-600.txt list-packages-only-in-600-with-repo.txt 
Line 297: Line 299:
  
 <file> <file>
-sudo yum grouplist+# yum grouplist
 [...] [...]
 Available Environment Groups: Available Environment Groups:
Line 315: Line 317:
 </file> </file>
  
-i com que no està instal·lat com grup, començo a desinstal·lar les paquets de forma individual,+i com que no està instal·lat com grup, començo a desinstal·lar les paquets a mà, per exemple,
  
 <file> <file>
Line 329: Line 331:
 </file> </file>
  
-i el resultat és l'eliminació dels següents paquets:+Al final faig servir les comandes
  
-  * nautilus.x86_64 0:3.26.3.1-7.el7 +  * ''yum autoremove'' per eliminar paquets que ja no són necessaris, 
-    evince-nautilus.x86_64 0:3.28.2-10.el7 +  ''package-cleanup --leaves'' per comprovar quins altres paquets es podrien eliminar perquè no els necessita cap altre paquet, i llavors 
-    * gnome-classic-session.noarch 0:3.28.1-17.el7_9 +  * ''yum remove `package-cleanup --leaves`'' per eliminar-los;
-  * evolution.x86_64 0:3.28.5-10.el7                                                                                     +
-    * evolution-ews.x86_64 0:3.28.5-8.el7_9 +
-    * evolution-ews-langpacks.noarch 0:3.28.5-8.el7_9                +
-    * evolution-help.noarch 0:3.28.5-10.el7 +
-    * evolution-langpacks.noarch 0:3.28.5-10.el7                     +
-    * evolution-mapi.x86_64 0:3.28.3-2.el7 +
-    * evolution-mapi-langpacks.noarch 0:3.28.3-2.el7                +
  
 +fins que ja no es troba cap paquet innecessari.
  
 +<WRAP todo>
 +Per ara no elimino cap kernel antic, però caldrà fer-ho en algun moment fent servir la comanda ''yum remove kernel'' o preferiblement ''package-cleanup –oldkernels –count=2'',
  
 +<file>
 +# yum remove kernel
 +Loaded plugins: fastestmirror, keys, langpacks, refresh-packagekit
 +Skipping the running kernel: kernel-3.10.0-1160.25.1.el7.x86_64
 +Resolving Dependencies
 +--> Running transaction check
 +---> Package kernel.x86_64 0:3.10.0-1160.el7 will be erased
 +---> Package kernel.x86_64 0:3.10.0-1160.21.1.el7 will be erased
 +---> Package kernel.x86_64 0:3.10.0-1160.36.2.el7 will be erased
 +--> Finished Dependency Resolution
 +
 +Dependencies Resolved
 +
 +======================================================================================================================
 + Package                Arch                   Version                                Repository                 Size
 +======================================================================================================================
 +Removing:
 + kernel                 x86_64                 3.10.0-1160.el7                        @anaconda                  64 M
 + kernel                 x86_64                 3.10.0-1160.21.1.el7                   @updates                   64 M
 + kernel                 x86_64                 3.10.0-1160.36.2.el7                   @updates                   64 M
 +
 +Transaction Summary
 +======================================================================================================================
 +Remove  3 Packages
 +
 +Installed size: 193 M
 +Is this ok [y/N]: N
 +</file>
 +</WRAP>
 ==== Enllaços d'interès ==== ==== Enllaços d'interès ====
  
Line 349: Line 376:
   * [[https://unix.stackexchange.com/questions/28158/is-there-a-tool-to-get-the-lines-in-one-file-that-are-not-in-another | Is there a tool to get the lines in one file that are not in another?]]   * [[https://unix.stackexchange.com/questions/28158/is-there-a-tool-to-get-the-lines-in-one-file-that-are-not-in-another | Is there a tool to get the lines in one file that are not in another?]]
   * [[https://serverfault.com/questions/62026/how-to-know-from-which-yum-repository-a-package-has-been-installed | How to know from which yum repository a package has been installed?]]   * [[https://serverfault.com/questions/62026/how-to-know-from-which-yum-repository-a-package-has-been-installed | How to know from which yum repository a package has been installed?]]
 +  * [[https://linuxconfig.org/how-to-remove-orphaned-packages-on-centos-linux | How to remove orphaned packages on CentOS Linux]]
 +  * [[https://superuser.com/questions/178917/why-doesnt-yum-clean-up-orphaned-packages | Why Doesn't Yum Clean Up Orphaned Packages?]]
 +  * [[https://www.pc-freak.net/blog/remove-unused-kernels-centos-linux-howto/ | Remove old unused kernels and cleanup orphaned packages on CentOS / RHEL/ Fedora and Debian Linux]]
 +
 +===== Connexió i configuració dels dos monitors =====
 +
 +Connecto a l'estació de treball el monitor ViewSonic VA2445 SERIES (sortida DisplayPort amb adaptador a DVI) i el monitor HP LA1951 (sortida DVI), i l'ordinador els reconeix i configura correctament. El monitor ViewSonic es configura com pantalla principal (finestra del TopSpin) i el monitor HP com pantalla secundària (finestres de la BSMS, de lock, etc.).
 +
 +===== Configuració de KDE =====
 +
 +Per tal que es faci servir l'entorn KDE en comptes del Gnome, creo un fitxer ''/etc/sysconfig/desktop'' on poso ''DESKTOP=KDE''.
 +
 +<file>
 +# cat desktop 
 +DESKTOP=KDE
 +</file>
 +
 +Llavors engego l'entorn gràfic,
 +
 +<file>
 +[root@cie-56-18 sysconfig]# systemctl status gdm.service 
 +[...]
 +Aug 10 09:23:11 cie-56-18.uab.es systemd[1]: Starting GNOME Display Manager...
 +Aug 10 09:23:11 cie-56-18.uab.es systemd[1]: Started GNOME Display Manager.
 +Aug 10 10:24:21 cie-56-18.uab.es systemd[1]: Stopping GNOME Display Manager...
 +Aug 10 10:24:21 cie-56-18.uab.es systemd[1]: Stopped GNOME Display Manager.
 +
 +[root@cie-56-18 sysconfig]# systemctl start gdm.service 
 +[root@cie-56-18 sysconfig]# systemctl status gdm.service 
 +[...]
 +Aug 10 14:30:20 cie-56-18.uab.es systemd[1]: Starting GNOME Display Manager...
 +Aug 10 14:30:20 cie-56-18.uab.es systemd[1]: Started GNOME Display Manager.
 +[root@cie-56-18 sysconfig]# 
 +</file>
 +
 +i a la pantalla del GDM, abans d'entrar, comprovo quin entorn es farà servir i veig que al llistat d'entorns surt el **KDE Plasma Environment** com a opció seleccionada, i que no surt el Gnome al llistat.
 +
 +Llavors obro una sessió i comprovo que es carrega el KDE, i que hi ha uns quants processos relacionats amb el KDE,
 +
 +<file>
 +# ps ax | grep -i kde
 +   28 ?        S      0:00 [kdevtmpfs]
 +25835 ?        Ss     0:00 /bin/sh /usr/bin/startkde
 +25937 ?        Ss     0:00 /usr/bin/ssh-agent /bin/sh -c exec -l /bin/bash -c "/usr/bin/startkde"
 +26005 ?        S      0:00 /usr/libexec/kde4/start_kdeinit +kcminit_startup
 +26006 ?        Ss     0:00 kdeinit4: kdeinit4 Running...
 +26007 ?        S      0:00 kdeinit4: klauncher [kdeinit] --fd=9
 +26009 ?        Sl     0:00 kdeinit4: kded4 [kdeinit]
 +26035 ?        S      0:00 kdeinit4: kglobalaccel [kdeinit]
 +26044 ?        S      0:00 kdeinit4: kwalletd [kdeinit]
 +26134 ?        Sl     0:00 kdeinit4: ksmserver [kdeinit]
 +26170 ?        Sl     0:04 kdeinit4: plasma-desktop [kdeinit]
 +26379 ?        Sl     0:00 kdeinit4: krunner [kdeinit]
 +26404 ?        Sl     0:00 /usr/libexec/kde4/polkit-kde-authentication-agent-1
 +26425 ?        S      0:00 kdeinit4: klipper [kdeinit]
 +26437 ?        Sl     0:00 kdeinit4: kmix [kdeinit]
 +26439 ?        Sl     0:00 /usr/bin/xsettings-kde
 +27152 ?        Sl     0:00 /usr/libexec/kde4/kscreenlocker_greet --immediateLock
 +31419 pts/2    S+     0:00 grep --color=auto -i kde
 +
 +# pstree --ascii
 +systemd-+-ModemManager---2*[{ModemManager}]
 +        :
 +        :
 +        |-gdm-+-X---{X}
 +        |     |-gdm-session-wor-+-startkde-+-kwrapper4
 +        |                              `-ssh-agent
 +        |                     `-2*[{gdm-session-wor}]
 +        |     `-3*[{gdm}]
 +        :
 +        :
 +        |-kactivitymanage---5*[{kactivitymanage}]
 +        |-kded4---7*[{kded4}]
 +        |-kdeinit4-+-abrt-applet---2*[{abrt-applet}]
 +        |          |-klauncher
 +        |          |-ksmserver-+-kscreenlocker_g---{kscreenlocker_g}
 +        |          |           |-kwin
 +        |          |           `-{ksmserver}
 +        |          |-seapplet---2*[{seapplet}]
 +        |          |-tracker-extract---13*[{tracker-extract}]
 +        |          |-tracker-miner-a---3*[{tracker-miner-a}]
 +        |          |-tracker-miner-u---3*[{tracker-miner-u}]
 +        |          `-xsettings-kde---4*[{xsettings-kde}]
 +        |-kglobalaccel
 +        |-klipper
 +        |-kmix---{kmix}
 +        |-knotify4---{knotify4}
 +        |-krunner---{krunner}
 +        |-kuiserver
 +        |-kwalletd
 +        :
 +        :
 +        |-plasma-desktop-+-ksysguardd
 +        |                `-4*[{plasma-desktop}]
 +        |-polkit-kde-auth---2*[{polkit-kde-auth}]
 +        :
 +        :
 +        |-start_kdeinit
 +        :
 +        :
 +        |-udisksd---4*[{udisksd}]
 +        |-upowerd---2*[{upowerd}]
 +        |-wpa_supplicant
 +        `-xinetd
 +
 +</file>
 +==== Enllaços d'interès ====
 +
 +  * [[https://unix.stackexchange.com/questions/315580/set-kde-desktop-environment-like-default-centos-7 | Set KDE Desktop Environment like default CentOS 7]]
 +  * [[https://unix.stackexchange.com/questions/181503/how-to-install-desktop-environments-on-centos-7 | How to install Desktop Environments on CentOS 7?]]
  
 +===== Enllaç a la 4a part =====
  
 +[[informatica:hp_z400_600_centos7_4 | Quarta part de la instal·lació del CentOS]]
  
  
informatica/hp_z400_600_centos7_3.1628586428.txt.gz · Last modified: 2021/08/10 11:07 by miquel