LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-23-2008, 04:13 AM   #1
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Rep: Reputation: 16
Using vncviewer HOW


I have a remote server machine installed with Ubuntu 7.1.
It has X windows and gnome desktop(I am not familiar with those).
Currently the server is in text mode, and I can not access the machine right now. Additionally, I installed vncviewer in that machine.
Question:
How I start and configure X server, and everything, in order to use a vncviewer client in Windows XP to connect to that server machine?

I tried but the whole architecture is beyond complex. HELP.

Shawn
 
Old 11-23-2008, 11:41 AM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Let me get this right: You have a ubuntu 7.10 server, with X and gnome installed, and it's running in text mode? What do you mean? Can you use ssh to access the machine?

The easiest way to install x and gnome and have the machine auto configure everything is:

Code:
sudo apt-get update

sudo apt-get install ubuntu-desktop
then reboot machine.
 
Old 11-24-2008, 01:07 AM   #3
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Original Poster
Rep: Reputation: 16
Ubuntu 7.1, x, and gnome are all installed already. I just disabled gdm initialization after booting.
Now, I am running in text mode without desktop.
How can I manually start X? Start gnome? Access this desktop via vncviewer remotely?

Thanks,
Shawn
 
Old 11-24-2008, 01:44 AM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Ok, unless Ubuntu is weird the viewer is for viewing and the server is for serving. So you need to be running VNCserver(or whatever Ubuntu calls it) on the remote machine, not viewer.

Just to be clear you DO NOT want to be logged in as root remotely, nor do you want the machine to be able to run root remotely. There is just much of a security risk. Log in as a user and su - (or sudo) into root.

To start x: startx
 
Old 11-24-2008, 07:47 PM   #5
salter
Member
 
Registered: Oct 2008
Posts: 100

Rep: Reputation: 15
Start X by entering 'startx' on the commandline.

Assuming that you have installed vnc-server, you can start it with '/sbin/service vncserver start' or add it as a system service launched at boot by entering '/sbin/chkconfig vncserver on'. Add your default setting in /etc/sysconfig/vncservers like:
VNCSERVERS="1:username 2ther_user"
VNCSERVERARGS[1]="-geometry 1024x768 -depth 16"
VNCSERVERARGS[2]="-geometry 800x600 -depth 16"

(of course read the documentation as well)

If you don't want to run it always, then simply run it from your user account as 'vncserver :1'

When using it for the first time, you have to define a password.

In your remote vnc-client pass <IP-address>:1 and the password.

If you only have plain X installed, then you will see an ancient twm desktop. It's the nearest you can get to time traveling.

Linux Archive

Last edited by salter; 12-20-2008 at 01:01 PM.
 
Old 11-25-2008, 10:22 PM   #6
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Original Poster
Rep: Reputation: 16
Thank you both, lazlow and salter.
Them vnc mechanism is almost clear to me.
But unfortunately, question arises, when I enter vncserver :1, the log file says:

26/11/08 11:14:57 Xvnc version 3.3.7 - built May 24 2007 12:47:11
26/11/08 11:14:57 Copyright (C) 2002-2003 RealVNC Ltd.
26/11/08 11:14:57 Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
26/11/08 11:14:57 All Rights Reserved.
26/11/08 11:14:57 See http://www.realvnc.com for information on VNC
26/11/08 11:14:57 Desktop name 'X' (hpc100:1)
26/11/08 11:14:57 Protocol version supported 3.3
26/11/08 11:14:57 Listening for VNC connections on TCP port 5901

Fatal server error:
could not open default font 'fixed'

Still, I can't remotely connect to the server using vncviewer.
 
Old 11-26-2008, 04:59 PM   #7
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
From this line:

Quote:
26/11/08 11:14:57 Desktop name 'X' (hpc100:1)
and this one:
Quote:
26/11/08 11:14:57 Listening for VNC connections on TCP port 5901
we can see that the vncserver is running on port 5901

To open vncviewer, try this command:

Code:
vncviewer <IP address>:1
where <IP address> is the ip address of the machine running the vncviewer
 
  


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
Vncviewer Filious Linux - Newbie 12 01-31-2013 01:24 PM
About vncviewer lawrence_lee_lee Linux - Software 3 08-08-2008 10:15 PM
[root@localhost Desktop]# vncviewer 192.168.0.11:2 vncviewer not viewing kde display nickleus Linux - Software 13 10-27-2006 04:58 AM
vncviewer ankit_mcgill Linux - Newbie 3 11-11-2005 07:46 PM
vncviewer jmarsh Solaris / OpenSolaris 1 04-27-2004 05:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:16 AM.

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
Open Source Consulting | Domain Registration