| a | b/codesys-ide/xinetd-vnc | ||
|---|---|---|---|
| 1 | #!/bin/bash |
||
| 2 | LOCKDIR=/tmp/xvnc-display/ |
||
| 3 | |||
| 4 | export HOME="/home/wineuser" |
||
| 5 | export HOSTNAME="5ba48578c1de" |
||
| 6 | export LANG="en_US.UTF-8" |
||
| 7 | export LANGUAGE="en_US:en" |
||
| 8 | export LC_ALL="en_US.UTF-8" |
||
| 9 | export LOGNAME="wineuser" |
||
| 10 | export MAIL="/var/mail/wineuser" |
||
| 11 | export OLDPWD="/home/wineuser" |
||
| 12 | export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" |
||
| 13 | export PWD="/home/wineuser" |
||
| 14 | export SHELL="/bin/bash" |
||
| 15 | export SHLVL="2" |
||
| 16 | export TERM="xterm" |
||
| 17 | export USER="wineuser" |
||
| 18 | export WINEPREFIX="/home/wineuser/.wine.cds" |
||
| 19 | |||
| 20 | # start session with delay in background |
||
| 21 | mkdir -p ${LOCKDIR} |
||
| 22 | for ((x=0; $x < 10000; x=$x+1)); do |
||
| 23 | if [ ! -f ${LOCKDIR}${x} ]; then |
||
| 24 | touch ${LOCKDIR}${x} |
||
| 25 | export DISPLAY=:${x} |
||
| 26 | break |
||
| 27 | fi |
||
| 28 | done |
||
| 29 | |||
| 30 | export WINEPREFIX=~/.wine.cds |
||
| 31 | ( |
||
| 32 | sleep 1; |
||
| 33 | ( |
||
| 34 | ratpoison & |
||
| 35 | # xeyes& |
||
| 36 | wine-development ${WINEPREFIX}/drive_c/CODESYS/CODESYS/Common/CODESYS.exe |
||
| 37 | #x-terminal-emulator |
||
| 38 | ) |
||
| 39 | #) &> /tmp/vnc.log & |
||
| 40 | ) &> /tmp/vnc.log & |
||
| 41 | |||
| 42 | # start VNC |
||
| 43 | /usr/bin/Xvnc -inetd -once securitytypes=none -NeverShared -depth 24 -geometry 1800x900 -geometry 1200x768 ${DISPLAY} |