Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. #!/bin/sh
  2. systemctl disable xrdp.service
  3. mkdir /root/.config/autostart
  4. touch /root/.config/autostart/vino-server.desktop
  5. echo "[Desktop Entry]" >> /root/.config/autostart/vino-server.desktop
  6. echo "Type=Application" >> /root/.config/autostart/vino-server.desktop
  7. echo "Name=Vino VNC server" >> /root/.config/autostart/vino-server.desktop
  8. echo "Exec=/usr/lib/vino/vino-server" >> /root/.config/autostart/vino-server.desktop
  9. echo "NoDisplay=true" >> /root/.config/autostart/vino-server.desktop
  10. dbus-launch gsettings set org.gnome.Vino require-encryption false
  11. dbus-launch gsettings set org.gnome.Vino prompt-enabled false
  12. dbus-launch gsettings set org.gnome.Vino notify-on-connect false
  13. dbus-launch gsettings set org.gnome.desktop.lockdown disable-user-switching true
  14. dbus-launch gsettings set org.gnome.desktop.lockdown disable-lock-screen true
  15. dbus-launch gsettings set org.gnome.desktop.lockdown disable-log-out true
  16. dbus-launch gsettings set org.gnome.desktop.interface enable-animations false
  17. dbus-launch gsettings set org.gnome.Vino authentication-methods "['vnc']"
  18. dbus-launch gsettings set org.gnome.Vino vnc-password $(echo -n "password"|base64)
  19. sed -i 's/# AutomaticLoginEnable = true/ AutomaticLoginEnable = true/g' /etc/gdm3/daemon.conf
  20. sed -i 's/# AutomaticLogin = root/ AutomaticLogin = root/g' /etc/gdm3/daemon.conf
  21. reboot
  22. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement