Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm running a linux host that I'd like to be able to log in using vnc. I cannot find any instructions the show how to log in remotely without either:
1) having a session already started on the host machine or
2) logging in through port forwarding using ssh.
Is it possible to have a vncserver start at boot and accept incoming connections for users without using either of the above two methods?
Thanks for the info,
If I use:
su - tred -c " cd /home/tred && vncserver :1 -geometry 1024x768 -depth 24"
1. is there a way to tell if it's running, and
2. is there a way to tell which port it is using?
I was able to ps aux | grep vnc to see it was running.
I also had to set up a password using vncpasswd.
Finally, I figured out that it was on port 5901 using the log file in my .vnc directory.
Unfortunately, despite adding startkde & to my xstartup, I just get a gray screen. I tried a local log in, and that shows a gray screen as well (vncviewer localhost:1). Any advice on what I might be doing wrong? Here's the output of my xstartup in .vnc:
Yes, that's on the remote machine. Should Xsession be commented out -- it seemed to make no difference between commenting it out and not, regardless, So, I'm not sure what the problem is, although I'm using Kubuntu, and there's no /etc/vnc directory nor any /etc/vnc.conf
See what is happening?
There are several vnc's, and you can have them all installed, but the one which is used when you just call vncserver is the one pointed to in /etc/alternatives, in my case /usr/bin/tightvncserver
I have the following packages installed on server: tightvncserver
A follow-up: don't forget to "kill" any extra vncservers before you start new ones, or you'll have no idea of what ports they are working on, and you may find yourself looking at a "bad" screen (maybe setup with an old config) when the "good" one is running well on the next port up.
Hope this makes sense.
On your local PC try starting a vncserver and connecting to it locally. For me, it goes like this:
tred@vaio:~$ vncserver :1 -geometry 800x600 -depth 24
New 'vaio:1 (tred)' desktop is vaio:1
Starting applications specified in /home/tred/.vnc/xstartup
Log file is /home/tred/.vnc/vaio:1.log
tred@vaio:~$ vncviewer localhost:1
VNC Viewer Free Edition 4.1.1 for X - built Apr 16 2008 13:02:40
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Wed Jul 29 17:46:36 2009
CConn: connected to host localhost port 5901
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8
Wed Jul 29 17:46:41 2009
TXImage: Using default colormap and visual, TrueColor, depth 24.
CConn: Using pixel format depth 6 (8bpp) rgb222
CConn: Using ZRLE encoding
CConn: Throughput 20000 kbit/s - changing to hextile encoding
CConn: Throughput 20000 kbit/s - changing to full colour
CConn: Using pixel format depth 24 (32bpp) little-endian rgb888
CConn: Using hextile encoding
Does it work?
if not, please post your local ~/.vnc/xstartup and take a look at the log.
My xstartup just says
.. and please make sure xstartup has executable permissions.