diff --git a/documentation/ntos-escalation.md b/documentation/ntos-escalation.md new file mode 100644 index 0000000..5399367 --- /dev/null +++ b/documentation/ntos-escalation.md @@ -0,0 +1,10 @@ +# How to escalate (securely) to a privileged user (root): + +With the default minimal installation, there is a way to escalate to the root user using the following steps: + +1. Right click on the taskbar (bottom bar) and select `panel` -> `logout`. +1. You are now at the login screen which usually is bypassed because of the autologin. Use the root password set in your configuration, the default minimal preseed sets the root password to: `Welkom01!`. + > Once you log in with the root account, you might see a glitched desktop which is normal because the environment is made for the `user`-user. +1. Now you can right-click the desktop and select `Open Terminal Here` and you will have an elevated terminal. + +This is only adviced when installation of a Remote Monitoring & Management (RMM) has failed and needs to manually be re-done. \ No newline at end of file diff --git a/documentation/agent-management/README.md b/documentation/ntos-management.md similarity index 100% rename from documentation/agent-management/README.md rename to documentation/ntos-management.md diff --git a/ntos/assets/desktop.png b/ntos/assets/desktop.png new file mode 100644 index 0000000..e00e0c0 Binary files /dev/null and b/ntos/assets/desktop.png differ diff --git a/ntos/configs/minimal/finish.sh b/ntos/configs/minimal/finish.sh index f23b8d6..d6513c8 100644 --- a/ntos/configs/minimal/finish.sh +++ b/ntos/configs/minimal/finish.sh @@ -45,9 +45,6 @@ xfconf-query -c xfce4-session -np '/shutdown/LockScreen' -t 'bool' -s 'false' # Limit workspaces (Like Virtual Desktops in Windows). xfconf-query -c xfwm4 -p /general/workspace_count -s 1 -# Remove all keyboard shortcuts. -xfconf-query -c xfce4-keyboard-shortcuts -p / -r -R - # Desktop itself customization. xfconf-query -c xfce4-desktop -np '/desktop-icons/style' -t 'int' -s '0' xfconf-query -c xfce4-desktop -np '/desktop-menu/show' -t 'bool' -s 'false' @@ -69,9 +66,9 @@ mkdir -p /home/user/.config/gtk-3.0/ curl -s "${web_address}"/assets/gtk.css > /home/user/.config/gtk-3.0/gtk.css xfce4-panel -r -# Set the background -#wget image -#xfconf-query -c xfce4-desktop -p $(xfconf-query -c xfce4-desktop -l | grep "workspace0/last-image") -s /path/to/wallpaper +# Set a nice looking background. +wget -q "${web_address}"/assets/desktop.png -P /home/user/Templates +xfconf-query -c xfce4-desktop -p $(xfconf-query -c xfce4-desktop -l | grep "workspace0/last-image") -s /home/user/Templates/desktop.png ######################################### # ROOT # @@ -106,6 +103,9 @@ else echo 'Error: Source xfce4-panel.xml not found at /home/user/.config/xfce4/xfconfxfce-perchannel-xml/xfce4-panel.xml' fi +echo "Removing keyboard shortcuts" +rm /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml + mkdir -p /home/user/.config/autostart cp /etc/xdg/autostart/light-locker.desktop /home/user/.config/autostart echo 'Hidden=true' >> /home/user/.config/autostart/light-locker.desktop