mirror of
https://github.com/lukaszlach/kali-desktop
synced 2026-08-05 16:12:41 +02:00
task: initial commit
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
set -e
|
||||
USER=${USER:-root}
|
||||
HOME=/root
|
||||
if [ "$USER" != "root" ]; then
|
||||
useradd --create-home --shell /bin/bash --user-group --groups sudo $USER
|
||||
if [[ "$PASSWORD" == "" ]]; then
|
||||
PASSWORD=kali
|
||||
fi
|
||||
HOME="/home/$USER"
|
||||
echo "$USER:$PASSWORD" | chpasswd
|
||||
fi
|
||||
chown -R "$USER:$USER" "$HOME"
|
||||
echo "root:${ROOT_PASSWORD:-root}" | chpasswd
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
set -ex
|
||||
USER=${USER:-root}
|
||||
GUI_COMMAND=$( ( which startlxde || which startkde || which startxfce4 || which gdm3 )2>/dev/null )
|
||||
if [[ "$USER" != "root" ]]; then
|
||||
exec su -c "$GUI_COMMAND" "$USER"
|
||||
else
|
||||
exec "$GUI_COMMAND"
|
||||
fi
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
set -e
|
||||
exec websockify --web=/usr/share/novnc/ 6080 localhost:5900
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
set -e
|
||||
exec x11vnc -display "$DISPLAY" -xkb -forever -shared -repeat -listen 0.0.0.0 -nopw -reopen
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
set -e
|
||||
if [[ "$RESOLUTION" == "" ]]; then
|
||||
RESOLUTION=1280x600x24
|
||||
fi
|
||||
Xvfb "$DISPLAY" -screen 0 "$RESOLUTION"
|
||||
Reference in New Issue
Block a user