VNC server

Re: VNC server

Postby doktor5000 » Jun 11th, '12, 23:21

FWIW, adding the ssh server is rather easy:

Code: Select all
urpmi sshd && service sshd start

It will automatically start at runlevel 2 to 5.

For the "vac service" i don't know what you're talking about, sorry. Please open another thread for this one, if it's a separate issue.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18051
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: VNC server

Postby freetibet » Jun 11th, '12, 23:25

I meant VNC !!! bad typing.
Thanks
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby doktor5000 » Jun 12th, '12, 01:00

Which VNC server are you using currently?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18051
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: VNC server

Postby wintpe » Jun 12th, '12, 21:07

Ok ive never installed vnc on unix, why would i, unix has X.

But i have on windows, so based on that i will take a guess and see if you can follow my thinking.

Vncserver is the componant you want, under windows this runs as a service, and listens on port xxx i cant remember 561 or was it 962 just guessing.

Now in windows everything is integrated in one so its easy to implement a service like that, and you could on linux if you ran the blind x server, ie the one that runs in memory but does not map to a frame buffer.

But if you want it to run in your users xsession the it needs to be run as an x startup.

Both kde and gnome have facilities to do this.

Once its running it will be listening for connections on a port from a vncclient.

But it prob needs to be configured with a port and username/password so being its unix it prob needs a config file.

So thats what i would do google about, read the vnc site docs see how much of that fits what im guessing and test to see if it works, not just by connecting to it, as if that fails i need to see if its listening on that port i spoke about.

Netstat -a and lsof -i |grep port number to see if i can see it listening.

If i cant the see if the process has started listening on a different port, and what files its opening to see if its using a different config file again lsof|grep processid will tell you what files its opening.

Most of them will be library files, but you might find its opening a different config file than you thought.

Use strace on the process when you start it ie strace vncserver and see if any of the thousands of lines that stream past, ignore the system calls look at the last few 100 or so it might tell you why it exists if it does or even what is going wrong when you try to connect.

Also check var log messages, are there any vncserver authenticatin or startup errors, does vncserver have a debug option on its command line.

These are all tools available in the linux chest to help you.

Regards peter
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.
wintpe
 
Posts: 1204
Joined: May 22nd, '11, 17:08
Location: Rayleigh,, Essex , UK

Re: VNC server

Postby doktor5000 » Jun 12th, '12, 23:40

Actually what advantage is there for VNC compared to say X11 forwarding via SSH (which is much easier to set up IMHO, and can even be used to show X11 stuff on windows clients via xming/putty)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18051
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: VNC server

Postby freetibet » Jun 12th, '12, 23:46

doktor5000 wrote:Actually what advantage is there for VNC compared to say X11 forwarding via SSH (which is much easier to set up IMHO, and can even be used to show X11 stuff on windows clients via xming/putty)



I have no idea, I just want to see the current users desktop, If I can do that with a spoon and a piece of string I'm happy…
Just need to know how…
Thanks...
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby freetibet » Jun 12th, '12, 23:48

doktor5000 wrote:Which VNC server are you using currently?

x11vnc
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby doktor5000 » Jun 13th, '12, 00:39

So why all the hassle, you can use teamviewer for that, virtually no setup needed. Or do you want it to run hidden in the background, so the user won't notice?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18051
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: VNC server

Postby freetibet » Jun 13th, '12, 00:55

hidden no
I will be the user, it's a CCTV system at a remote site.
I need remote access after a restart.
in the back ground yes as I need the screen at the remote site to be clear for camera viewing only
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby doktor5000 » Jun 14th, '12, 00:55

Well, if it would be an IP camera, you could access it directly ...
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18051
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: VNC server

Postby freetibet » Jun 14th, '12, 01:04

doktor5000 wrote:Well, if it would be an IP camera, you could access it directly ...

No.
The screen from the zone minder server is routed 50 meters to the front of the shop for camera viewing….
So I need access to the live screen to set up the way it looks… i.e. camera viewing…
Not for my benefit, just so people in the shop can see the camera's working…
That is why I need VNC, don't need it for anything else...
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby lfields » Jun 5th, '13, 00:20

Having some of the same issues.

To resolve the startup issues in KDE I added a script to System Settings | StartUp/Shutdown.

Code: Select all
#!/bin/bash
/usr/bin/x11vnc -passwd PASSWORD -forever -display :0



But still having further issues. This machine has no Monitor/Mouse/Keyboard. When I boot these machines in mandriva they would completely boot to desktop regardless of monitor or not. Mageia 3 will not boot to a graphical desktop without a monitor. Without an x session getting started to a desktop VNC will not start because there are no screens to attach to.

output from x

Code: Select all
X.Org X Server 1.13.4
Release Date: 2013-04-17
X Protocol Version 11, Revision 0
Build Operating System: Linux_3.4.34-server-1.mga2 Mageia
Current Operating System: Linux localhost 3.8.13-desktop-1.mga3 #1 SMP Tue May 14 19:14:08 UTC 2013 i686
Kernel command line: BOOT_IMAGE=linux root=UUID=501139c1-97a6-4b99-8a8a-abc5c0f30e14  nokmsboot splash quiet resume=UUID=ee1f6cb1-9d7d-4657-acde-dbd45a632baa vga=788
Build Date: 22 April 2013  06:28:03AM
 
Current version of pixman: 0.28.2
   Before reporting problems, check http://bugs.mageia.org
   to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Jun  3 22:55:29 2013
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension XFree86-Bigfont
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX

Fatal server error:
no screens found
(EE)
Please consult the The X.Org Foundation support
    at http://bugs.mageia.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
Server terminated with error (1). Closing log file.


Any ideas?
lfields
 
Posts: 25
Joined: Oct 4th, '11, 14:01

Re: VNC server

Postby oj » Jun 5th, '13, 18:22

If the remote server is windows, you have to have the "pro" version to get a vnc SERVER. All win versions come with the client, only 'pro' or higher have the server available.

If the remote is Linux, I've used the package simply called "vnc server" and I log in with ssh with the command to start the vnc server. Logging in to vnc over ssh encrypts the connection. I've never left a vnc server sitting there running 24/7 waiting for connections. You WILL be found and pounded on relentlessly by the script-kiddies.
oj
 
Posts: 232
Joined: Aug 23rd, '12, 00:22

Re: VNC server

Postby lfields » Jun 6th, '13, 16:20

The Linux box is the server running x11vnc.
With no monitor there is no xsession started so no go on vnc to a desktop.


What I ended up doing was a hardware solution. Crossing the appropriate pins on VGA connection fakes out the graphics card and X starts. This has to be done using 75ohm resistors unless you want to leave a monitor cable attached. It needs the resistance of the length of wire. 75ohm resistors provide this.

resistor between pin1 and pin6
resistor between pin2 and pin7
resistor between pin3 and pin8

I used a vga gender changer male to male and soldered on the resistors. And magically it boots without a monitor to a desktop available via VNC.
lfields
 
Posts: 25
Joined: Oct 4th, '11, 14:01

Re: VNC server

Postby lfields » Jun 6th, '13, 16:24

We use VNC to access machines in network. Large internal network. We also use it to access condition monitoring units that are headless and on a closed network. These are the ones I am upgrading now to Mageia3.
lfields
 
Posts: 25
Joined: Oct 4th, '11, 14:01

Re: VNC server

Postby oj » Jun 6th, '13, 17:03

Maybe a VPN then, to get into the network as if local? Then VNC would be a much simpler matter, the same as having the 2 computers side by side.
oj
 
Posts: 232
Joined: Aug 23rd, '12, 00:22

Re: VNC server

Postby isadora » Jun 29th, '13, 12:08

~topic moved by moderator
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2765
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Previous

Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest