From The World according to Vissie
Jump to navigation Jump to search

setup environment


vncserver -localhost -depth 24 -geometry 1200x900 :1 &
vncserver -kill :1
vncserver -geometry 1440x900 -alwaysshared -dpi 96 :1 -rfbport 1234

(in noVNC dir)

cp ./vnc_lite.html ./index.html
xrdb: No such file or directory.
xrdb: Can't open file '/home/<user>/.Xresources'

You should create the correct file, and TightVNC will populate it automatically. This can be done with the command:

touch ~/.Xresources

minimal vps server setup

git clone
sudo apt-get install openbox
sudo apt-get install vnc4server
or pacaur -S vnc4server
touch ~/.Xresources
mkdir ~/.vnc 
vim ~/.vnc/xstartup
vim: ~/.vnc/xstartup
exec openbox-session
chmod 755 ~/.vnc/xstartup
vncserver -localhost -depth 24 -geometry 600x400 :1
sudo apt-get install xfce4-terminal openbox dbus-x11 xfdesktop4 xfce4-panel gnome-themes-standard lxappearance chromium
sudo apt-get install python-pip
sudo pip install numpy (for better performance) 
mkdir -p ~/.config/openbox/
vim: ~/.config/openbox/autostart
xfdesktop &
xfce4-panel &
(For stretch add this line to your sources.list)
deb stretch-backports main
sudo apt-get install certbot -t stretch-backports
sudo certbot certonly --standalone -d
(spin up a temp webserver)

vim: ~/src/noVNC/
echo "First we start vncserver....."
vncserver -geometry 1440x900 -alwaysshared -dpi 96
echo "Then we start noVNC"
sudo ./utils/ --vnc localhost:5901 --listen 9900


sudo apt-get install xtightvncviewer
vncviewer localhost:5901
./utils/ --vnc localhost:5901
openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem
sudo ./utils/ --vnc localhost:5901 --listen 443
sudo ./utils/websockify/run --ssl-only --web /home/user/src/noVNC --cert /etc/letsencrypt/live/ --key 
/etc/letsencrypt/live/ 443 localhost:5901