aboutsummaryrefslogtreecommitdiff
blob: 9a2cc65838a9ba7b4672f83a51776c74cb543b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

# this is a dirty hack that will be disappearing soon
# just saves me restarting the daemon every time i want to change something

cd  /usr/share/websockify
MEMORY=512
DISP=$(( ${2}-5900 ))
DISP2=$(( ${2}+1000 ))
qemu -hda $1 -m ${MEMORY} -net nic -net user -vnc :$DISP -usbdevice tablet &
websockify -D ${DISP2} 127.0.0.1:${2}