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 09:47]
miquel [Configuració per Z400]
informatica:hp_z400_600_centos7_3 [2021/08/20 14:01] (current)
miquel [Desinstal·lació de paquets]
Line 230: Line 230:
 prefereixo descarregar-lo i comprovar el contingut abans de decidir si cal instal·lar-ho. La conclusió és que no és necessari pel funcionament de l'espectròmetre i que no val la pena instal·lar-ho. prefereixo descarregar-lo i comprovar el contingut abans de decidir si cal instal·lar-ho. La conclusió és que no és necessari pel funcionament de l'espectròmetre i que no val la pena instal·lar-ho.
  
-===== Desinstal·lació de poquets =====+===== 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 ('rpm -qa | sort > pkglist.txt''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> 
 +rpm -qa | sort > avance3-600-pkglist.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 > list-packages-only-in-500.txt 
 +</file> 
 + 
 +Llavors genero un llistat que conté els paquets instal·lats només al 600 MHz i afegeixo el seu magatzem d'origen, 
 + 
 +<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 & 
 + 
 +# wc -l list-packages-only-in-600.txt list-packages-only-in-600-with-repo.txt  
 +  609 list-packages-only-in-600.txt 
 +  159 list-packages-only-in-600-with-repo.txt 
 +  768 total 
 + 
 +# tail -f list-packages-only-in-600-with-repo.txt  
 +gvfs-smb-1.36.2-4.el7.x86_64\t from_repo = anaconda 
 +gvnc-0.7.0-3.el7.x86_64\t from_repo = anaconda 
 +harfbuzz-1.7.5-2.el7.i686\t from_repo = base 
 +highcontrast-qt5-0.1-2.el7.x86_64\t from_repo = anaconda 
 +highlight-3.13-3.el7.x86_64\t from_repo = anaconda 
 +hivex-1.3.10-6.11.el7_9.x86_64\t from_repo = updates 
 +httpd-2.4.6-97.el7.centos.x86_64\t from_repo = updates 
 +httpd-manual-2.4.6-97.el7.centos.noarch\t from_repo = updates 
 +^C 
 + 
 +[...] 
 + 
 +#  
 +[1]+  Done        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 
 + 
 +[root@cie-56-18 Downloads]# wc -l list-packages-only-in-600.txt list-packages-only-in-600-with-repo.txt   
 +  609 list-packages-only-in-600.txt 
 +  609 list-packages-only-in-600-with-repo.txt 
 + 1218 total 
 +</file> 
 + 
 +Com que molts dels paquets a desinstal·lar estan relacionats amb l'entorn gràfic, l'aturo, 
 + 
 +<file> 
 +[root@cie-56-18 Downloads]# 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. 
 + 
 +[root@cie-56-18 Downloads]# systemctl stop gdm.service 
 + 
 +[root@cie-56-18 Downloads]# 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. 
 +</file> 
 + 
 +començo a desinstal·lar paquets de Gnome. Primer comprovo si està instal·lat com a "Environment Group" 
 + 
 +<file> 
 +# yum grouplist 
 +[...] 
 +Available Environment Groups: 
 +   Minimal Install 
 +[...] 
 +   GNOME Desktop 
 +   KDE Plasma Workspaces 
 +   Development and Creative Workstation 
 +Available Groups: 
 +   Cinnamon 
 +   Compatibility Libraries 
 +[...] 
 +   System Management 
 +   TurboGears application framework 
 +   Xfce 
 +Done 
 +</file> 
 + 
 +i com que no està instal·lat com grup, començo a desinstal·lar les paquets a mà, per exemple, 
 + 
 +<file> 
 +# yum remove nautilus 
 +[...] 
 +Removed: 
 +  nautilus.x86_64 0:3.26.3.1-7.el7                                                                                     
 + 
 +Dependency Removed: 
 +  evince-nautilus.x86_64 0:3.28.2-10.el7                gnome-classic-session.noarch 0:3.28.1-17.el7_9                
 + 
 +Complete! 
 +</file> 
 + 
 +Al final faig servir les comandes 
 + 
 +  * ''yum autoremove'' per eliminar paquets que ja no són necessaris, 
 +  * ''package-cleanup --leaves'' per comprovar quins altres paquets es podrien eliminar perquè no els necessita cap altre paquet, i llavors 
 +  * ''yum remove `package-cleanup --leaves`'' per eliminar-los; 
 + 
 +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 ==== 
 + 
 +  * [[https://stackoverflow.com/questions/18204904/fast-way-of-finding-lines-in-one-file-that-are-not-in-another | bash - Fast way of finding 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://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 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 BSMSde 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.1628581664.txt.gz · Last modified: 2021/08/10 09:47 by miquel