-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
998200a
commit 56fc17d
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ps x | grep noVNC | awk '{ print $1 }' | xargs -n 1 kill -9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
source ./settings.sh | ||
echo $VNC_PW1 $VNC_PW2 $VNC_PAR | ||
rm -r log.httpadd > /dev/null | ||
yhbatch -p docker server.sh | ||
until [ -e ./log.httpadd ] | ||
do | ||
sleep 5 | ||
done | ||
cat log.httpadd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
#SBATCH -N 1 | ||
rm -rf ~/.vnc/* ./hostport ./log.novnc &>/dev/null | ||
#./startvncs.tcl | ||
# del all vncserver | ||
/WORK/app/TurboVNC/bin/vncserver -list | grep '^:' | cut -c 2 | xargs -n 1 -t -i /WORK/app/TurboVNC/bin/vncserver -kill :{} | ||
ps x | grep /WORK/app/TurboVNC/bin/Xvnc | awk '{print p}{p=$1}' | xargs -n 1 -t kill -9 | ||
/WORK/app/TurboVNC/bin/vncpasswd2 $VNC_PW1 $VNC_PW2 | ||
/WORK/app/TurboVNC/bin/vncserver | ||
VNCPORT=`ps x | grep 'rfbport'| grep -v grep | head -n 1 | awk 'BEGIN{RS="-"} {print $0}' | grep rfbport | awk '{print $2}'` | ||
echo `hostname`:$VNCPORT > ./hostport | ||
ssh $VNC_SNNM /WORK/app/noVNC/utils/noVNC --vnc `cat hostport` > ./log.novnc & | ||
sleep 10 | ||
cat log.novnc | grep http | sed "s/$VNC_SNNMS/$VNC_SNIP/g" > log.httpadd | ||
wait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
export VNC_PW1=123456 | ||
export VNC_PW2=654321 | ||
export VNC_PAR=docker | ||
export VNC_SNIP=172.16.23.16 | ||
export VNC_SNNM=ln6-gn0 | ||
export VNC_SNNMS=ln6 |