Гостевой аккаунт: различия между версиями

Материал из IT в школе
Перейти к навигацииПерейти к поиску
Строка 1: Строка 1:




Строка 4: Строка 5:


Установка<syntaxhighlight lang="bash">
Установка<syntaxhighlight lang="bash">
#!/bin/bash
#!/bin/bash  
apt-get -y install lightdm-gtk-greeter slick-greeter kde5-display-manager-4-lightdm guest-account
apt-get -y install lightdm-gtk-greeter slick-greeter kde5-display-manager-4-lightdm guest-account
echo -e "[Greeter]\nbackground-color=#295377\nbackground=/usr/share/wallpapers/MOS-IT-HDDBlue/contents/images/5120x2880.png\n" > /etc/lightdm/slick-greeter.conf  
echo -e "[Greeter]\nbackground-color=#295377\nbackground=/usr/share/wallpapers/MOS-IT-RobotBlue/contents/images/5120x2880.svg\nautologin-guest=true\nautologin-timeout=10\n" > /etc/lightdm/slick-greeter.conf  
echo -e "[LightDM]\nminimum-vt=1\nlog-directory = /var/log/lightdm\nrun-directory = /run/lightdm\ncache-directory = /var/cache/lightdm\nsessions-directory = /usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions\nguest-account-script = guest-account\n[Seat:*]\nxserver-command = /etc/X11/xinit/xserverrc\nsession-wrapper = /etc/X11/Xsession\ngreeter-wrapper = /etc/X11/Xgreeter.lightdm\nallow-guest = true\ngreeter-allow-guest = true\ngreeter-show-manual-login=true\ngreeter-show-remote-login=true\n" > /etc/lightdm/lightdm.conf
echo -e "[LightDM]\nminimum-vt=1\nlog-directory = /var/log/lightdm\nrun-directory = /run/lightdm\ncache-directory = /var/cache/lightdm\nsessions-directory = /usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions\nguest-account-script = guest-account\n[Seat:*]\nxserver-command = /etc/X11/xinit/xserverrc\nsession-wrapper = /etc/X11/Xsession\ngreeter-wrapper = /etc/X11/Xgreeter.lightdm\nallow-guest = true\ngreeter-allow-guest = true\ngreeter-show-manual-login=true\ngreeter-show-remote-login=true\n" > /etc/lightdm/lightdm.conf
reboot  
reboot  
</syntaxhighlight>/etc/648.png - картинка на заднем фоне
</syntaxhighlight>/etc/648.png - картинка на заднем фоне
[[Категория:МОС]]
[[Категория:МОС]]

Версия 06:24, 18 февраля 2023



Установка

#!/bin/bash 
apt-get -y install lightdm-gtk-greeter slick-greeter kde5-display-manager-4-lightdm guest-account
echo -e "[Greeter]\nbackground-color=#295377\nbackground=/usr/share/wallpapers/MOS-IT-RobotBlue/contents/images/5120x2880.svg\nautologin-guest=true\nautologin-timeout=10\n" > /etc/lightdm/slick-greeter.conf 
echo -e "[LightDM]\nminimum-vt=1\nlog-directory = /var/log/lightdm\nrun-directory = /run/lightdm\ncache-directory = /var/cache/lightdm\nsessions-directory = /usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions\nguest-account-script = guest-account\n[Seat:*]\nxserver-command = /etc/X11/xinit/xserverrc\nsession-wrapper = /etc/X11/Xsession\ngreeter-wrapper = /etc/X11/Xgreeter.lightdm\nallow-guest = true\ngreeter-allow-guest = true\ngreeter-show-manual-login=true\ngreeter-show-remote-login=true\n" > /etc/lightdm/lightdm.conf
reboot

/etc/648.png - картинка на заднем фоне