Skip to content

Commit

Permalink
Updated some docs and added default desktop wallpaper.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanSelen committed Jan 6, 2025
1 parent 55989d0 commit 09bcd4c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
10 changes: 10 additions & 0 deletions documentation/ntos-escalation.md
Original file line number Diff line number Diff line change
@@ -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.
File renamed without changes.
Binary file added ntos/assets/desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions ntos/configs/minimal/finish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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 #
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 09bcd4c

Please sign in to comment.