On Thu, 2006-05-18 at 23:18 -0700, vampire janus wrote:
> newbie question lang po-
> paano mag setup ng vnc server? salamat!

as mentioned by others, you have options.  remote X is great 
if what you want to do is run *one* X application remotely.

i haven't used xdm myself, but others i work with have,
works great for them. not sure what the benefits are though.

vnc is good (as opposed to running remote X) if what you
want to do is view your whole desktop remotely.  I use it
at work because my own PC sometimes goes off, but the 
box that vncserver is running on never does, so my desktop
is always just as I left it even if my own computer goes
off.  oh yeah, the local box is also very slow,so vnc
allows me to run apps on a faster box while I still get
to use my local drives for backing up important data.  

i could use LTSP, but then my local drives and RAM go to
waste.

to run vnc, you need to run the vncserver at the, uh, server.
figure out what your client's screen resolution is and 
go from there, e.g., I use icewm on a 1024x768 box where
the icewm toolbar hides automatically, so i can generally
set vncserver to use a desktop of around 1000x730 and
it works pretty well.  thus, on the server, you run something
like this (i'm offline and i don't actually have vncserver
on this laptop, man vncserver):

vncserver -g 1000x730

man vncserver will tell you how to set the default colordepth.

once it's running, it will choose a "port" to run on.  if
it's the first time you're running it, it will also ask for
a password (and possibly a viewonly password).

after it's started up, it'll tell you that it's running
on localhost:1 or localhost:2 or whatever.  or maybe just
on :1 or :2.  that tells you what port it's running on.

on the client, you can now do:

vncviewer [remote_ip]:[number]

where number is the port number given by the vncserver.
you may need to modify firewall rules on the server.
there is a base port that is used (i think 60000 or similar,
netstat -an | grep LISTEN to see what it is, or man
vncserver) and the [number] is just an increment on top
of the base port.  so you will want to set firewall
rules to allow the client to connect to a range of
ports above the base number.

there's probably a graphical way to do all that in your
distro, but i wouldn't know how to setup any of that.
some distros also allow you to view the actual X session
you're running on the server via vnc. i know KDE has 
something like that.  if you use KDE, it also has a bunch
of graphical tools for setting up vnc.  look into those.

note: remote X is *much* faster and smaller than VNC.
if you can use that, or xdm, those are better alternatives.
if you can't use either of those then use vnc.

good luck.

tiger

-- 
Gerald Timothy Quimpo [EMAIL PROTECTED] [EMAIL PROTECTED]
http://bopolissimus.blogspot.com http://monotremetech.blogspot.com
Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78"

  Modularity - Write simple parts connected by clean interfaces.
       -- http://www.faqs.org/docs/artu/ch01s06.html#id2877537

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to