aboutsummaryrefslogtreecommitdiff
path: root/startup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'startup.sh')
-rwxr-xr-xstartup.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/startup.sh b/startup.sh
new file mode 100755
index 0000000..539b446
--- /dev/null
+++ b/startup.sh
@@ -0,0 +1,12 @@
+#!/bin/sh -
+
+export USER=root HOME=/root DISPLAY=:0 XAUTHORITY=$HOME/.Xauthority
+
+mkdir -p $HOME/.vnc
+echo '' | vncpasswd -f >$HOME/.vnc/passwd
+chmod -R go= $HOME/.vnc
+
+# -localhost
+vncserver $DISPLAY -geometry 1280x768 -depth 16 -nolisten tcp
+icewm
+vncserver -kill $DISPLAY