Skip to content

Commit

Permalink
Added absolute path for minimal config.
Browse files Browse the repository at this point in the history
Changed desktop background setting.
Lessened the loading bar.
  • Loading branch information
DaanSelen committed Jan 16, 2025
1 parent fabd7cc commit 9cf1e23
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
5 changes: 4 additions & 1 deletion ntos/configs/default/finish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ xfce4-panel -r

# 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
for x in $(xfconf-query -c xfce4-desktop -lv | grep last-image | awk '{print $1}')
do
xfconf-query -c xfce4-desktop -p "$x" -s "/home/user/Templates/desktop.png"
done

#########################################
# ROOT #
Expand Down
19 changes: 11 additions & 8 deletions ntos/configs/minimal/finish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ if [ ! -f '/etc/setup_done' ]; then
apt-get update
apt-get install -y xfce4 xfce4-goodies xfce4-power-manager system-config-printer xfce4-panel-profiles xsane plymouth-themes dbus-x11 network-manager-gnome curl yad freerdp3-x11
apt-get autoremove -y
echo "NTOS-Setup" > /etc/hostname
sed -i "s/127.0.1.1.*/127.0.1.1 NTOS-Setup/" /etc/hosts
sed -i "s/quiet/quiet splash/" /etc/default/grub
sed -i "s/GRUB_TIMEOUT=5/GRUB_TIMEOUT=1/" /etc/default/grub
sed -i "s/^#autologin-user=/autologin-user=user/" /etc/lightdm/lightdm.conf
sed -i "s/^#\\(SystemMaxUse=\\).*/\\150M/" /etc/systemd/journald.conf
grub-mkconfig -o /boot/grub/grub.cfg
echo "NTOS-Setup" > /etc/hostname &
sed -i "s/127.0.1.1.*/127.0.1.1 NTOS-Setup/" /etc/hosts &
sed -i "s/quiet/quiet splash/" /etc/default/grub &
sed -i "s/GRUB_TIMEOUT=5/GRUB_TIMEOUT=1/" /etc/default/grub &
sed -i "s/^#autologin-user=/autologin-user=user/" /etc/lightdm/lightdm.conf &
sed -i "s/^#\\(SystemMaxUse=\\).*/\\150M/" /etc/systemd/journald.conf &
/sbin/grub-mkconfig -o /boot/grub/grub.cfg
rm /etc/network/interfaces
touch /etc/setup_done
/sbin/reboot now
Expand Down Expand Up @@ -95,7 +95,10 @@ if [ -f '/etc/setup_done' ]; then

# 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
for x in $(xfconf-query -c xfce4-desktop -lv | grep last-image | awk '{print $1}')
do
xfconf-query -c xfce4-desktop -p "$x" -s "/home/user/Templates/desktop.png"
done

#########################################
# ROOT #
Expand Down
2 changes: 1 addition & 1 deletion ntos/credcon/credcon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ show_loading_bar() {
for ((i=1; i<=100; i++)); do
echo $i | tee /dev/null
echo "# $i%" | tee /dev/tty
sleep 0.125
sleep 0.1
done | yad --progress \
--title='Loading' \
--text='Connecting' \
Expand Down

0 comments on commit 9cf1e23

Please sign in to comment.