LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-20-2004, 05:09 PM   #1
jstreed
LQ Newbie
 
Registered: Aug 2004
Posts: 28

Rep: Reputation: 15
Troubles with VNC


I've almost got everything working on my new Debian ibook. Unfortunately, I can't seem to get the vncserver working correctly. Starting the vncserver goes as normal, but whenever I try to connect using a vncviewer, all I get is a black and white checkered screen and a mouse cursor. Here's a copy of my config files:

Thanks in advance,


~/.vnc.xstartup

#!/bin/sh

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc




vnc.conf

# System configuration
# --------------------
#
# This section contains entries that should be true for all users.

# $vncClasses should be the path to the java classes of server.
$vncClasses = "/usr/share/vncserver";

# $XFConfigPath can be set to the global XF86Config file. This will be
# parsed to gain default values for $fontPath and $colorPath.
# If you want to disable this feature, point it to an
# invalid file, "/foo" for example.
# $XFConfigPath = "/etc/X11/XF86Config";

# $fontPath should be a comma seperated list of fonts to be added to the font
# path. If not specified, and $XFConfigPath is valid, vncserver
# will read the $fontPath from there. If both are not set, the
# default will apply.
# Example: $fontPath = "tcp/localhost:7100"; # would make vnc to use xfs.
# Example: $fontPath = "";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/misc/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/Type1/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/Speedo/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/75dpi/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/100dpi/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/freefont/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/sharefont/";
# I don't know what the default is, though.
# $colorPath should be the RGB file to be used by X. This can also be taken from
# XF86Config file if specified by $XFConfigPath
# $colorPath = "/usr/X11R6/lib/X11/rgb";

# User configuration
# ------------------
#
# This section contains entries that may change from user to user.

# $vncUserDir contains the filename for the log files directory of Xvnc
# (the server) and the viewers that are connected to it.
$vncUserDir = "$ENV{HOME}/.vnc";

# $vncPasswdFile contains the filename of the password file for Xvnc.
$vncPasswdFile = $vncUserDir . "/passwd";
# $xauthorityFile should be the path to the authority file that should be used
# by your vnc X server.
$xauthorityFile = "$ENV{HOME}/.Xauthority";

# $defaultDesktopName should be set to the default name of the desktop.
# This can be changed at the command line with -name.
$defaultDesktopName = "X";

# $geometry sets framebuffer width & height. Default will be calculated if
# server is started from within a running X servers. Can be changed at
# the commandline (-geometry). A fixed default will be used if
# vncserver is not invoked in a running X session.
$geometry ="1024x768";

# $depth sets the framebuffer color depth. Must be between 8 and 32.
# $pixelformat sets the default pixelformat.
# The default will be calculated if none of both is specified
# and when vncserver is called from within a running X servers.
# Can be changed at the command line with option -depth.
# A fixed default value will be used if vncserver is not
# invoked in a running X session.
$depth = "16";
$pixelformat = "rgb565";

# $getDefaultFrom sets the display from which you can query the default of
# the above three options, if you don't want to start vncserver
# from within a running X server. It will be added to the call
# of xdpyinfo.
# It is useful to get the default from the X server you will
# run xvncviewer in.
# $getDefaultFrom = "-display localhost:0"

# $rfbwait sets the maximum time in msec to wait for vnc client viewer.
$rfbwait = "120000";
 
Old 09-20-2004, 05:13 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
That is probably exactly what you should get.
Next step is to start some programs to your new X session.
 
Old 09-20-2004, 05:17 PM   #3
jstreed
LQ Newbie
 
Registered: Aug 2004
Posts: 28

Original Poster
Rep: Reputation: 15
Maybe I should have clarified.

I'm trying to get gnome setup. Basically I want a remote desktop connection. I expect to connect to my ibook and see exactly what's on the screen at that point, just like when I use VNC to connecto to my windows box. any ideas why I'm not getting a terminal or Gnome to start?
 
Old 09-20-2004, 05:44 PM   #4
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
You want to map the same screen that is allready in use at your local system?
Code:
apt-get install x11vnc
Run it and connect with vncviewer.

Or just want to start gnome?
After you have a vncserver running and got connected to it with vncviewer, run in server:
Code:
DISPLAY=localhost:1 gnome-session
(assuming vnc is running on display :1 (see output of vncserver when started))
 
Old 09-20-2004, 09:14 PM   #5
debian_dummy
Member
 
Registered: Apr 2004
Distribution: Debian SID and Woody
Posts: 77

Rep: Reputation: 15
I installed x11vnc and can connect to a Gnome desktop BUT the x11vnc part seems to fail.
Is this the expected behaviour ?

root@storage:~# apt-get install x11vnc
<<snip>>

root@storage:~# x11vnc
display: null
subwin: 0x0
<<snip>>
XOpenDisplay failed (null)

root@storage:~# vncserver
New 'X' desktop is storage:1
Starting applications specified in /etc/X11/Xsession
Log file is /root/.vnc/storage:1.log

root@storage:~# DISPLAY=localhost:1 gnome-session
SESSION_MANAGER=local/storage:/tmp/.ICE-unix/30961
<<snip>>

The Gnome desktop is displayed and it all works dandy.

Question - How do I make this all automagically happen ? At the moment, I connect from my XP desktop to the Debian server via Putty, type the commands in the console and then connect again via VNC. I wanna just double click a short cut on my XP desktop and be magically transported to a working Gnome desktop on my Debian server
 
Old 09-21-2004, 05:54 PM   #6
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
root@storage:~# x11vnc
==> normaluser@storage:~$ x11vnc
and try again.

Also that user you are going to run x11vnc should have access tho the xserver you are going to share with others (eg. running that x session locally).


And same thing (for different reasons) for other places too, vncserver runs fine as a normal user.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
troubles with SATA, troubles with NVIDIA aevangelica Linux - Hardware 6 10-17-2005 03:39 AM
Having troubles connecting to a vino vnc server from windows xp using tightvnc,help? brynjarh Linux - Software 0 01-12-2005 05:28 AM
need VNC to allow 'logout/login' from Gnome (gnome & VNC runs fine) spudler Linux - Networking 3 11-14-2004 11:02 AM
VNC - Selecting different WindowManagers with VNC cmfarley19 Linux - Software 0 04-16-2003 03:30 PM
VNC Terri Linux - General 1 06-06-2001 07:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration