特殊:Badtitle/NS100:UbuntuLTSP/GDMVNCInetdssh:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/UbuntuLTSP/GDMVNCInetdssh}} {{Languages|UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh}} This page is dedicated to getting VNC to work at the GDM level, ena... |
小无编辑摘要 |
||
第41行: | 第41行: | ||
$ vncviewer <ipaddress>:1 | $ vncviewer <ipaddress>:1 | ||
</nowiki></pre> | </nowiki></pre> | ||
---- | |||
'''NOTE:''' If you are experiencing random "theme-cycling" and "gnome-settings-daemon" crash issues in Hardy after performing this HOWTO, please see [http://www.francescosantini.com/index.php?page=linux&lang=en this page] for updated vnc4server packages that fixes the problem. | |||
---- | ---- | ||
'''BONUS: ADD REMOTE SSH TUNNEL TO ENCRYPT VNC SESSION:''' | '''BONUS: ADD REMOTE SSH TUNNEL TO ENCRYPT VNC SESSION:''' |
2008年12月16日 (二) 20:22的版本
![]() |
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/UbuntuLTSP/GDMVNCInetdssh }} |
![]() |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/af | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|Afrikaans| [[::UbuntuLTSP/GDMVNCInetdssh/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/ar | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|العربية| [[::UbuntuLTSP/GDMVNCInetdssh/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/az | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|azərbaycanca| [[::UbuntuLTSP/GDMVNCInetdssh/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/bcc | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|جهلسری بلوچی| [[::UbuntuLTSP/GDMVNCInetdssh/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/bg | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|български| [[::UbuntuLTSP/GDMVNCInetdssh/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/br | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|brezhoneg| [[::UbuntuLTSP/GDMVNCInetdssh/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/ca | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|català| [[::UbuntuLTSP/GDMVNCInetdssh/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/cs | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|čeština| [[::UbuntuLTSP/GDMVNCInetdssh/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/de | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|Deutsch| [[::UbuntuLTSP/GDMVNCInetdssh/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/el | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|Ελληνικά| [[::UbuntuLTSP/GDMVNCInetdssh/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/es | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|español| [[::UbuntuLTSP/GDMVNCInetdssh/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/fa | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|فارسی| [[::UbuntuLTSP/GDMVNCInetdssh/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/fi | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|suomi| [[::UbuntuLTSP/GDMVNCInetdssh/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/fr | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|français| [[::UbuntuLTSP/GDMVNCInetdssh/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/gu | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|ગુજરાતી| [[::UbuntuLTSP/GDMVNCInetdssh/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/he | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|עברית| [[::UbuntuLTSP/GDMVNCInetdssh/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/hu | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|magyar| [[::UbuntuLTSP/GDMVNCInetdssh/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/id | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|Bahasa Indonesia| [[::UbuntuLTSP/GDMVNCInetdssh/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/it | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|italiano| [[::UbuntuLTSP/GDMVNCInetdssh/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/ja | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|日本語| [[::UbuntuLTSP/GDMVNCInetdssh/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/ko | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|한국어| [[::UbuntuLTSP/GDMVNCInetdssh/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/ksh | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|Ripoarisch| [[::UbuntuLTSP/GDMVNCInetdssh/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/mr | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|मराठी| [[::UbuntuLTSP/GDMVNCInetdssh/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/ms | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|Bahasa Melayu| [[::UbuntuLTSP/GDMVNCInetdssh/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/nl | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|Nederlands| [[::UbuntuLTSP/GDMVNCInetdssh/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/no | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|norsk| [[::UbuntuLTSP/GDMVNCInetdssh/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/oc | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|occitan| [[::UbuntuLTSP/GDMVNCInetdssh/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/pl | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|polski| [[::UbuntuLTSP/GDMVNCInetdssh/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/pt | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|português| [[::UbuntuLTSP/GDMVNCInetdssh/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/ro | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|română| [[::UbuntuLTSP/GDMVNCInetdssh/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/ru | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|русский| [[::UbuntuLTSP/GDMVNCInetdssh/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/si | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|සිංහල| [[::UbuntuLTSP/GDMVNCInetdssh/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/sq | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|shqip| [[::UbuntuLTSP/GDMVNCInetdssh/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/sr | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|српски / srpski| [[::UbuntuLTSP/GDMVNCInetdssh/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/sv | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|svenska| [[::UbuntuLTSP/GDMVNCInetdssh/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/th | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|ไทย| [[::UbuntuLTSP/GDMVNCInetdssh/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/tr | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|Türkçe| [[::UbuntuLTSP/GDMVNCInetdssh/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/vi | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|Tiếng Việt| [[::UbuntuLTSP/GDMVNCInetdssh/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/yue | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|粵語| [[::UbuntuLTSP/GDMVNCInetdssh/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/zh | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|中文| [[::UbuntuLTSP/GDMVNCInetdssh/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/zh-hans | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|中文(简体)| [[::UbuntuLTSP/GDMVNCInetdssh/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh | {{#if: | :}}UbuntuLTSP/GDMVNCInetdssh}}/zh-hant | • {{#if: UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|中文(繁體)| [[::UbuntuLTSP/GDMVNCInetdssh/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:UbuntuLTSP/GDMVNCInetdssh|:UbuntuLTSP/GDMVNCInetdssh|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UbuntuLTSP/GDMVNCInetdssh/zh | | {{#ifexist: UbuntuLTSP/GDMVNCInetdssh/zh | | {{#ifeq: {{#titleparts:UbuntuLTSP/GDMVNCInetdssh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuLTSP/GDMVNCInetdssh|1|-1|}} | zh | | }}
This page is dedicated to getting VNC to work at the GDM level, enabling administrators to VNC (optionally over SSH port 22) into Ubuntu servers directly to an alternate X server (not the server console X session). This allows multiple admins to log in graphically at the same time, locally and over remote (secure) connections.
- Enable XDMCP
- System->Administration->Login Screen Setup
- Tab Remote -> Style = "Same as local"
- Bottom button XDMCP (still in Remote) --> You can disable "Honor Indirect Requests" if you'd like.
- Add all Ubuntu universe/multiverse repositories via Synaptic Package Manager or by manually editing /etc/apt/sources.list
- Install vnc4server (and openbsd-inetd if it's not there already):
sudo apt-get install vnc4server openbsd-inetd
- Add following to /etc/inetd.conf:
5901 stream tcp nowait root /usr/bin/Xvnc Xvnc -inetd :1 -query localhost -geometry 800x600 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared securitytypes=none -extension XFIXES
Note 1) You can add as many Xvnc servers for simultanious, seperate VNC/GDM sessions by adding another line to /etc/inetd.conf, simply increasing the port number and display number in the line by one, for example: 2nd VNC session (port 5902, display :2):
5902 stream tcp nowait root /usr/bin/Xvnc Xvnc -inetd :2 -query localhost -geometry 800x600 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared securitytypes=none -extension XFIXES
3rd VNC session (port 5903, display :3):
5903 stream tcp nowait root /usr/bin/Xvnc Xvnc -inetd :3 -query localhost -geometry 800x600 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared securitytypes=none -extension XFIXES
..etc, etc etc.... Note 2) that this does not ask for the root VNC password before connecting. I am using this in a secure LAN environment so I don't mind people logging into a login prompt without a password. You can always put the original switch in ( passwordFile=/root/.vncpasswd ) if you want to retain the VNC password functionality.
- Restart inetd with:
sudo /etc/init.d/openbsd-inetd restart
- Bookmark this page, as we will be logging out and logging back in.
- Log out of Gnome. When you get to the GDM screen, hit CTRL+ALT+BACKSPACE. This will restart the GDM service (required).
- Log back in and test locally with:
vncviewer localhost:1
- Test remotely with:
$ vncviewer <ipaddress>:1
NOTE: If you are experiencing random "theme-cycling" and "gnome-settings-daemon" crash issues in Hardy after performing this HOWTO, please see this page for updated vnc4server packages that fixes the problem.
BONUS: ADD REMOTE SSH TUNNEL TO ENCRYPT VNC SESSION: Prerequisite: You must have sshd running on the server already - this step is outside the scope of this post.
- From the client (assuming it is also Ubuntu Linux), connect to the remote SSH service using the -L (port-forwarding) switch:
ssh -L 5901:127.0.0.1:5901 myusername@<public_remote_ip>
Note: Obviously, substitute the forwarding port match the display you're trying to connect to via VNC. After you log in via SSH, fire up a VNC viewer session (on your local machine) to the remote server using LOCALHOST:1 which forwards local port 5901 over SSH to the remote server port 5901 (again, remember to substitute :1 with whatever display you're trying to connect to):
vncviewer localhost:1
Have fun with this! SSH seems to compress VNC traffic pretty well, not to mention make it SECURE over untrusted networks (I.E. the Internet)! Derived from Ubuntu Forum post here: http://ubuntuforums.org/showthread.php?t=569451