i thiiink da img_dump be workan ok nao.. maybe idk

This commit is contained in:
2026-05-18 08:38:31 -06:00
parent bca726405e
commit 5c3c632a77
3 changed files with 28 additions and 22 deletions
+4 -5
View File
@@ -1,12 +1,12 @@
#!/bin/bash
port=3389
if systemctl is-active --quiet xrdp; then
if systemctl is-active --quiet xrdp; then
echo "Running XRDP Service Found Running, Stopping..."
sudo systemctl stop xrdp && echo "OK! XRDP Stopped!" || echo "ERROR: XRDP Failed To Start! Retcode: $?"
fi
if systemctl is-active --quiet lightdm; then
if systemctl is-active --quiet lightdm; then
echo "Window Manager Found Running, Stopping It..."
sudo systemctl stop lightdm && "OK! lightdm Stopped!" || echo "ERROR! Lightdm Did Not Stop! Retcode $?" # lightdm is xfce default
fi
@@ -15,8 +15,7 @@ echo "Starting XRDP..."
sudo systemctl start xrdp && echo "OK! XRDP Running!" || echo "ERROR: XRDP Failed To Start Retcode: $?"
echo "Starting Window Manager..."
sudo nohup startxfce4 > /dev/null 2>&1 & # fork dis to da background, alsooo use nohup to keep it live if terminal closes
sudo startxfce4 --replace # > /dev/null 2>&1 & # fork dis to da background, alsooo use nohup to keep it live if terminal closes
echo "should be on RDP $(hostname -I | awk '{print $1}'):${port}"
echo -e "\n\ndonesizessn nyaa~ :3\n\t$(hostname -I | awk '{print $1}'):${port}"\n\n"
echo -e "\n\ndonesizessn nyaa~ :3\n\t$(hostname -I | awk '{print $1}'):${port}\n\n"