VNC server

VNC server

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

Hi,

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

Got a bit confused…

Can anyone help ?

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

Re: VNC server

Postby madeye » Jun 4th, '12, 17:09

Could you give me some more info? What exactly did you try to make it work?
- Madeye

When I supply commands in an answer, please make sure you understand them before you run them! Use google or man to check!
User avatar
madeye
 
Posts: 110
Joined: Jul 23rd, '11, 12:36
Location: Aabenraa, Denmark

Re: VNC server

Postby freetibet » Jun 4th, '12, 17:24

Oh Thanks,
I sorted it I un installed everything to do with VNC and installed Krfb…
Works a treat.
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby isadora » Jun 4th, '12, 17:50

Image
..........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

Re: VNC server

Postby freetibet » Jun 8th, '12, 22:10

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…?
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby doktor5000 » Jun 8th, '12, 22:51

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?
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 8th, '12, 23:21

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…."
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby doktor5000 » Jun 9th, '12, 12:50

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. ;)
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 9th, '12, 13:30

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...
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby doktor5000 » Jun 9th, '12, 17:50

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.
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 9th, '12, 21:31

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…
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby freetibet » Jun 10th, '12, 13:35

My original question was how can I get the VNC server to run all the time…?
thanks...
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby freetibet » Jun 10th, '12, 22:17

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...
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby doktor5000 » Jun 11th, '12, 00:24

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/ ?
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, 00:29

Thanks,
will try that.
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby freetibet » Jun 11th, '12, 00:50

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
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

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

Maybe the permissions are wrong I set at chmod 700 ?
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby doktor5000 » Jun 11th, '12, 01:02

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
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, 01:22

can I do an init.d script also ?

That failed to start on user login...
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby freetibet » Jun 11th, '12, 01:51

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...
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby wintpe » Jun 11th, '12, 02:04

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
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 freetibet » Jun 11th, '12, 09:07

Thanks Peter,
that was pretty much over my rather dumb head, sorry..
I have Mageia 2
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby wintpe » Jun 11th, '12, 09:49

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
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 freetibet » Jun 11th, '12, 09:57

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...
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Re: VNC server

Postby freetibet » Jun 11th, '12, 20:28

Hi.
well I have installed the new server it has SSH (easy) but I can't get a simple vac service set up…
freetibet
 
Posts: 154
Joined: Jun 4th, '12, 12:22

Next

Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest

cron