Code: Select all
cd /var/hda/web-apps/webvnc/html
cp index.html /home/surfrock66/.amahi.webvnc.800x600.index.html
cp index.html /home/surfrock66/.amahi.webvnc.1024x768.index.html
cp index.html /home/surfrock66/.amahi.webvnc.1280x1024.index.html
rm index.html
ln -s /home/surfrock66/.amahi.webvnc.1280x1024.index.html index.html
I then made a script for each resolution I wanted that changes the symlink, and changes the resolution. Here's my 800x600 one:
Code: Select all
#!/bin/bash
echo ::password:: | sudo -S rm -f /var/hda/web-apps/webvnc/html/index.html
sudo ln -s /home/surfrock66/.amahi.webvnc.800x600.index.html /var/hda/web-apps/webvnc/html/index.html
sudo xrandr -s 800x600
I made the icons the same one for the display manager, which is located at /usr/share/icons/hicolor/scalable/apps/gnome-display-properties.svg
This has made my life MUCH easier. I have a widescreen one for getting on from my netbook, a big one from my main home desktop, and a small one from accessing at work. This has greatly eased the use of WebVNC from home.