GDMÔÚLinuxϵͳÖÐÊÎÑݵĽÇÉ«¼°Ö÷ÒªÐÔ
GDMÔÚLinuxϵͳÖÐÊÎÑݵĽÇÉ«¼°Ö÷ÒªÐÔ
GDM£¨Gnome Display Manager£©ÊÇLinuxϵͳÖÐÒ»¸öÖ÷ÒªµÄ×é¼þ£¬Ö÷ÒªÈÏÕæÖÎÀíÓû§µÇ¼ºÍ×¢ÏúÀú³Ì£¬ÒÔ¼°ÌṩÓû§½çÃæµÄÏÔʾºÍ½»»¥¹¦Ð§¡£±¾ÎĽ«ÏêϸÏÈÈÝGDMÔÚLinuxϵͳÖеĽÇÉ«¼°ÆäÖ÷ÒªÐÔ£¬²¢ÌṩÏêϸµÄ´úÂëʾÀý¡£
Ò»¡¢GDMÔÚLinuxϵͳÖеĽÇÉ«
Óû§µÇ¼ÖÎÀí£ºGDMÈÏÕæÆô¶¯µÇ¼½çÃ棬½ÓÊÜÓû§ÊäÈëÓû§ÃûºÍÃÜÂ룬²¢ÑéÖ¤µÇ¼ÐÅÏ¢µÄ׼ȷÐÔ¡£Ö»ÓÐÔÚÓû§ÊäÈë׼ȷµÄÓû§ÃûºÍÃÜÂëºó£¬²Å»ªÀֳɵǼϵͳ¡£
»á»°ÖÎÀí£ºGDM»¹ÈÏÕæÖÎÀíÓû§µÇ¼ºóµÄ»á»°£¬°üÀ¨Æô¶¯×ÀÃæÇéÐΡ¢¼ÓÔØÓû§¸öÐÔ»¯ÉèÖõȡ£Óû§¿ÉÒÔÑ¡Ôñ²î±ðµÄ×ÀÃæÇéÐΣ¬ÈçGNOME¡¢KDE¡¢XFCEµÈ£¬²¢¶¨ÖÆ×Ô¼ºµÄÇéÐÎÉèÖá£
ÆÁÄ»ÏÔʾÖÎÀí£ºGDM»¹ÈÏÕæÖÎÀíÆÁÄ»ÏÔʾ£¬°üÀ¨Çø·ÖÂÊÉèÖá¢ÆÁÄ»ÁÁ¶Èµ÷Àí¡¢ÏÔʾÆ÷Çл»µÈ¡£Í¨¹ýGDM£¬Óû§¿ÉÒÔÀû±ãµØµ÷½âÏÔʾÉèÖã¬ÒÔ˳Ӧ²î±ðµÄʹÓó¡¾°¡£
¶þ¡¢GDMµÄÖ÷ÒªÐÔ
Çå¾²ÐÔ£ºGDMͨ¹ýÑéÖ¤Óû§µÇ¼ÐÅÏ¢£¬È·±£Ö»ÓÐÕýµ±Óû§¿ÉÒÔ»á¼ûϵͳ¡£Ëü½ÓÄɼÓÃÜËã·¨±£»¤Óû§ÃÜÂ룬±ÜÃâÐÅÏ¢±»ÇÔÈ¡¡£Í¬Ê±£¬GDM»¹Ö§³Ö¶àÖÖÉí·ÝÑéÖ¤·½·¨£¬Ìá¸ßϵͳÇå¾²ÐÔ¡£
Óû§ÌåÑ飺GDMÌṩÓѺõĵǼ½çÃæºÍ½»»¥ÌåÑ飬Óû§¿ÉÒÔÀû±ã¿ì½ÝµØµÇ¼ϵͳ£¬²¢Çл»²î±ðµÄ×ÀÃæÇéÐΡ£Óû§¿ÉÒÔ×Ô½ç˵µÇ¼½çÃæµÄÑùʽ£¬¸öÐÔ»¯×Ô¼ºµÄÓû§ÌåÑé¡£
ϵͳÎȹÌÐÔ£ºGDM°ü¹ÜÁËϵͳµÄÎȹÌÐԺͿɿ¿ÐÔ¡£ËüÖÎÀíÓû§»á»°£¬×èÖ¹Óû§Ö®¼äµÄ×ÊÔ´³åÍ»£¬Ìá¸ßϵͳµÄÎȹÌÐÔ¡£Í¬Ê±£¬GDM»¹Ö§³Ö»á»°»Ö¸´¹¦Ð§£¬°ü¹ÜÓû§ÔÚÒâÍâ¶Ïµç»òÍß½âºó¿ÉÒÔ¿ìËÙ»Ö¸´µ½Ö®Ç°µÄ״̬¡£
Èý¡¢Ïêϸ´úÂëʾÀý
ÏÂÃæͨ¹ýÒ»¸ö¼òÆӵĴúÂëʾÀýÑÝʾÔõÑùͨ¹ýGDMÔÚLinuxϵͳÖн¨ÉèÒ»¸ö×Ô½ç˵µÄµÇ¼Ö÷Ìâ¡£
Ê×ÏÈ£¬½¨ÉèÒ»¸öGDMÖ÷ÌâÎļþ¼Ð£º
sudo mkdir /usr/share/gnome-shell/theme/mytheme
µÇ¼ºó¸´ÖÆ
ÔÚÖ÷ÌâÎļþ¼ÐÖн¨ÉèÒ»¸öÖ÷ÌâÎļþmytheme.css£¬²¢±à¼¸ÃÎļþ£º
sudo nano /usr/share/gnome-shell/theme/mytheme/mytheme.css
µÇ¼ºó¸´ÖÆ
ÔÚÎļþÖÐÌí¼ÓÈçÏÂÄÚÈÝ£º
#lockDialogGroup { background-color: #336699; }
µÇ¼ºó¸´ÖÆ
±à¼GDMÉèÖÃÎļþ£¬Ö¸¶¨Ê¹ÓÃ×Ô½ç˵Ö÷Ì⣺
sudo nano /etc/gdm3/greeter.dconf-defaults
µÇ¼ºó¸´ÖÆ
ÔÚÎļþÖÐÌí¼ÓÈçÏÂÄÚÈÝ£º
[org/gnome/desktop/background] picture-uri='file:///usr/share/backgrounds/custom-background.jpg' [org/gnome/shell] theme='mytheme'
µÇ¼ºó¸´ÖÆ
ÖØÆôGDMЧÀÍʹÉèÖÃÉúЧ£º
sudo systemctl restart gdm
µÇ¼ºó¸´ÖÆ
ͨ¹ýÒÔÉÏ´úÂëʾÀý£¬¿ÉÒÔ¿´µ½ÔÚLinuxϵͳÖÐͨ¹ýGDM½¨Éè×Ô½ç˵µÄµÇ¼Ö÷ÌâÊǺÜÊǼòÆÓÇÒÀû±ãµÄ¡£ÕâչʾÁËGDMÔÚϵͳÖеÄÎÞаÐÔºÍÀ©Õ¹ÐÔ£¬Ê¹Óû§¿ÉÒÔƾ֤ÐèÇó¾ÙÐиöÐÔ»¯¶¨ÖÆ£¬Ìá¸ßÓû§ÌåÑé¡£
×ÛÉÏËùÊö£¬GDMÔÚLinuxϵͳÖÐÊÎÑÝ×ÅÖ÷ÒªµÄ½ÇÉ«£¬°ü¹ÜϵͳµÄÇå¾²ÐÔ¡¢Óû§ÌåÑéºÍÎȹÌÐÔ¡£Í¨¹ýÎÞаµÄÉèÖúÍÀ©Õ¹£¬GDMΪÓû§ÌṩÁ˸»ºñµÄ¹¦Ð§ºÍ¶¨ÖÆ»¯µÄ¿ÉÄÜÐÔ£¬ÊÇLinuxϵͳÖв»¿É»òȱµÄÒ»²¿·Ö¡£
ÒÔÉϾÍÊÇGDMÔÚLinuxϵͳÖÐÊÎÑݵĽÇÉ«¼°Ö÷ÒªÐÔµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡