blob: 94de046fb7875ce3ed418a00aa68f7ac6951af3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
X11VNC__SH_ENV="/home/root/.x11vnc_env"
X11VNC_HOME="/home/root"
# create this environment setup file for the shell in the x11vnc session
[ -f "${X11VNC__SH_ENV}" ] || {
cat <<EOF > "${X11VNC__SH_ENV}"
# this file is created by the script ‘/usr/bin/de10-nano-x11vnc-init.sh’.
#
# this file is assigned to the ENV environment variable which is evaluated
# when /bin/sh is executed. We use this to setup environment variables for
# that shell.
export PS1='\u@\h:\w$ '
EOF
}
# then execute this command to start the x11vnc session
FD_PROG=/usr/bin/xfce4-session \
/usr/bin/x11vnc \
-loop \
-repeat \
-env ENV="${X11VNC__SH_ENV}" \
-env HOME="${X11VNC_HOME}" \
-display WAIT:cmd=FINDCREATEDISPLAY-Xvfb
|