Page 1 of 2

VNC server

PostPosted: Jun 4th, '12, 12:23
by freetibet
Hi,

I am having trouble setting up VNC access…
Have tried Xvnc + Tiger VNC…

Got a bit confused…

Can anyone help ?

Thanks.

Re: VNC server

PostPosted: Jun 4th, '12, 17:09
by madeye
Could you give me some more info? What exactly did you try to make it work?

Re: VNC server

PostPosted: Jun 4th, '12, 17:24
by freetibet
Oh Thanks,
I sorted it I un installed everything to do with VNC and installed Krfb…
Works a treat.

Re: VNC server

PostPosted: Jun 4th, '12, 17:50
by isadora
Image

Re: VNC server

PostPosted: Jun 8th, '12, 22:10
by freetibet
madeye wrote:Could you give me some more info? What exactly did you try to make it work?

Oh dear.
I installed Krfb.
Put the server in, left it, restarted it and now I can't get in from outside, server is 100 Miles away… FAB !
any suggestions anyone…?

Re: VNC server

PostPosted: Jun 8th, '12, 22:51
by doktor5000
freetibet wrote:Oh Thanks,
I sorted it I un installed everything to do with VNC and installed Krfb…
Works a treat.
freetibet wrote:
madeye wrote:Could you give me some more info? What exactly did you try to make it work?

Oh dear.
I installed Krfb.
Put the server in, left it, restarted it and now I can't get in from outside, server is 100 Miles away… FAB !
any suggestions anyone…?


First you say you sorted it out, and it works, now you say it doesn't - what has changed in between?
Do you have other access like ssh or something like that?

Re: VNC server

PostPosted: Jun 8th, '12, 23:21
by freetibet
well I sorted out VNC, just it looks like you need to launch the Krfb control panel before it will work each time…
No, I did not enable ssh.
So I guess a trek over there to sort out.
Do you have to install ssh like debian ? or is it easier ?
Thanks…

PS … Note to self… "never forget to enable ssh on remote headless servers…."

Re: VNC server

PostPosted: Jun 9th, '12, 12:50
by doktor5000
Depending on what you installed on that server, you may need to install openssh-server and set ssh to start at system start.
I don't know the installation of ssh server on debian, so i can't compare those. But just install the package and start the daemon.
And you should always check that you can connect remotely before leaving such servers alone. ;)

Re: VNC server

PostPosted: Jun 9th, '12, 13:30
by freetibet
doktor5000 wrote:And you should always check that you can connect remotely before leaving such servers alone. ;)


yep it was a favour for a friend so forgot to do that ssh detail !


also The events are screwing up…

the time on the ZM console is…..Thu 3rd Jan, 1:41pm 2002 !
the camera's show the same time…

the system is showing the right time…

something must be be wrong somewhere….

as a result on the last hour or so of video is viewable…

probably due to the time difference…

Thanks...

Re: VNC server

PostPosted: Jun 9th, '12, 17:50
by doktor5000
ZM console meaning ZoneMinder? Please don't use abbreviations when you're describing a problem ;)
If you want that issue solved, open up another thread for that one, you know - one problem per thread.

Re: VNC server

PostPosted: Jun 9th, '12, 21:31
by freetibet
doktor5000 wrote:ZM console meaning ZoneMinder? Please don't use abbreviations when you're describing a problem ;)
If you want that issue solved, open up another thread for that one, you know - one problem per thread.

OK one last issue…
How do I get the VNC server that I installed running without having to launch it each time…

Re: VNC server

PostPosted: Jun 10th, '12, 13:35
by freetibet
My original question was how can I get the VNC server to run all the time…?
thanks...

Re: VNC server

PostPosted: Jun 10th, '12, 22:17
by freetibet
madeye wrote:Could you give me some more info? What exactly did you try to make it work?

I need the VNC server to work at boot time on it's own.
I have auto login enabled…
Thanks…
I set a folder under ~/.gnome2/Autostart/x11vnc

with this in the file x11vnc

#! /bin/sh
x11vnc -rfbauth ~/.vnc/passwd -bg -forever -noxdamage -shared -avahi &

but it does not work…

I have saved a password to the path ~/.vnc/passwd the correct way...

Re: VNC server

PostPosted: Jun 11th, '12, 00:24
by doktor5000
If you run that script manually from a terminal as your user, what's the output?
Also, such autostart scripts should go under ~/.config/autostart/
Where did you get the info to put it under ~/.gnome2/Autostart/ ?

Re: VNC server

PostPosted: Jun 11th, '12, 00:29
by freetibet
Thanks,
will try that.

Re: VNC server

PostPosted: Jun 11th, '12, 00:50
by freetibet
doktor5000 wrote:If you run that script manually from a terminal as your user, what's the output?
Also, such autostart scripts should go under ~/.config/autostart/


OK moved it, fails to launch at startup but if I paste manually it works

Re: VNC server

PostPosted: Jun 11th, '12, 00:55
by freetibet
Maybe the permissions are wrong I set at chmod 700 ?

Re: VNC server

PostPosted: Jun 11th, '12, 01:02
by doktor5000
That means executable, readable and writable only by the owner. Maybe you want to adjust it via
Code: Select all
chmod +x ~/.config/autostart/x11vnc

Re: VNC server

PostPosted: Jun 11th, '12, 01:22
by freetibet
can I do an init.d script also ?

That failed to start on user login...

Re: VNC server

PostPosted: Jun 11th, '12, 01:51
by freetibet
doktor5000 wrote:That means executable, readable and writable only by the owner. Maybe you want to adjust it via
Code: Select all
chmod +x ~/.config/autostart/x11vnc

I have a working solution…
login remotely under ssh and launch x11vnc via ssh
not pretty but it works for now...

Re: VNC server

PostPosted: Jun 11th, '12, 02:04
by wintpe
Was this mageia one or two.

I cant say for mga2 as ive not looked at how systemd works yet, still trying to get used to upstart in redhat.

But mga1 you have /etc/rc.local which is an old hang over from the past.

You can put exactly this sort of thing in there, but you may need to preceed the command with

Su - username -C commandandpath.

If you want something to run as a specific user.

All redhat systems inc mga1 but not sure wether mga2 implements compat mode like upstart, ie use the following to ensure a service is set to run on boot.

Chkconfig servicename on.

There are loads of other options but this sets the service to run using preset runlevels.

Regards peter

Re: VNC server

PostPosted: Jun 11th, '12, 09:07
by freetibet
Thanks Peter,
that was pretty much over my rather dumb head, sorry..
I have Mageia 2

Re: VNC server

PostPosted: Jun 11th, '12, 09:49
by wintpe
Does it have /etc/rc.local file

If so you can use it like windoze autoexec.bat if you were involved with computers back in the 90`s you may remember that.

But in unix each process needs to be run where its config files are setup, so if thats under a specific users home, it needs to be run as a user.

Rc.local is run as root so anything it starts is run by root.

So you can use one of the su optios to run a command after changing uid, as in the example i gave.

Read the man on su.

Also read the man on checkcongig if you want to know more about setting services to start

Services are things like the ssh service.

Not all services you install will set the own autostart on install.

Some require the host operator to do so, you can either use the services gui under mcc or use chkconfig service on.

Im speaking from a generic redhat, centos, fedora, mga1 perspective here as i have not checked ig mga2 has a compatibility mode with the old services yet, but i suspect it has as redhats previous attempt at rejigging init.d, ie upstart in redhat 6 also has this compat mode.

Mga1 uses init.d to control its start of services, in common with solaris 9 and bellow, redhat 5 and centos 5 and any of the other redhat based systems.

Mga2 is adopting systemd in common with fedora 17 i think, could be earlier.

Also redhat has already recognised that upstart was a mistake and may also be moving to systemd for redhat 7

Hope thats clearer.

Regards peter

Re: VNC server

PostPosted: Jun 11th, '12, 09:57
by freetibet
Hi, I've been involved with computers on and off since 1980 but never ever used windows much
Not sure if that's good or bad…

Yes that is clearer, thanks…

at least I have ssh sorted out at boot…
I can hack around to sort the rest out…
Thanks...

Re: VNC server

PostPosted: Jun 11th, '12, 20:28
by freetibet
Hi.
well I have installed the new server it has SSH (easy) but I can't get a simple vac service set up…