Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Newbie > Auto start VNC on FedoraCore 5 boot

Forgot Password?
 Linux Newbie   If you're new to the wonderful world of Linux, start here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-18-2006   #1 (permalink)
Just Joined!
 
Join Date: Jul 2006
Posts: 3
Auto start VNC on FedoraCore 5 boot

Hi,

i am new to Linux. i have install VNC server to my new FC5. i have to manually start vnc server each time after reboot.

can someone pls enlighten me on how to make VNC server auto start as FC5 boot?

i need VNC to boot by login windows (so that i can login as different user from windows)

thanks for your helps.

Regards.
hanamasa is offline  


Reply With Quote
Old 07-18-2006   #2 (permalink)
Linux Guru
 
antidrugue's Avatar
 
Join Date: Oct 2005
Location: Montreal, Canada
Posts: 3,213
I guess you can autostart it by making an entry for it in the file /etc/rc.local.
__________________
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

-Bruce Lee
antidrugue is offline   Reply With Quote
Old 07-18-2006   #3 (permalink)
Just Joined!
 
Join Date: Jul 2006
Posts: 3
Quote:
Originally Posted by antidrugue
I guess you can autostart it by making an entry for it in the file /etc/rc.local.
Hi,

i have tried insert "vncserver" into it but it only start vnc after someone login...

but i need it to be up by login screen so that i can view the login screen and perform login...

can you kindly spare me a sample script to do that?

thanks.
hanamasa is offline   Reply With Quote
Old 07-18-2006   #4 (permalink)
Linux Guru
 
antidrugue's Avatar
 
Join Date: Oct 2005
Location: Montreal, Canada
Posts: 3,213
You should be able to configure that in the file /etc/sysconfig/vncservers as well.
__________________
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

-Bruce Lee
antidrugue is offline   Reply With Quote
Old 07-19-2006   #5 (permalink)
Linux User
 
KenJackson's Avatar
 
Join Date: Jun 2006
Location: Maryland, USA
Posts: 476
To get it to start on Mandriva (I think FC5 is similar) I put this line in the, as mentioned, /etc/sysconfig/vncservers:
VNCSERVERS="8:ken"

And this command sets up the needed symbolic links under the subdirectories of /etc/rc.d:
# chkconfig --add vncserver

I chose to specify X server #8, so on the remote machine (or even on the local) I specifiy myhost:8 on the command line to connect.
KenJackson is offline   Reply With Quote
Old 07-19-2006   #6 (permalink)
Just Joined!
 
Join Date: Jul 2006
Posts: 3
Quote:
Originally Posted by KenJackson
To get it to start on Mandriva (I think FC5 is similar) I put this line in the, as mentioned, /etc/sysconfig/vncservers:
VNCSERVERS="8:ken"

And this command sets up the needed symbolic links under the subdirectories of /etc/rc.d:
# chkconfig --add vncserver

I chose to specify X server #8, so on the remote machine (or even on the local) I specifiy myhost:8 on the command line to connect.
Hi,

what is the fucntion of "ken" ? izzit a specific user? can i leave it blank ?

what is #8? user number 8 or screen number 8?

Can vnc server start like Remote administrator which allow user to see login screen to choose who to sign in as?

can vnc server work just like ftp, telnet or http which do not require login to activate or start?

pls help

thanks.
hanamasa is offline   Reply With Quote
Old 07-19-2006   #7 (permalink)
Linux User
 
KenJackson's Avatar
 
Join Date: Jun 2006
Location: Maryland, USA
Posts: 476
Oh, sorry. "ken" is my username on that machine. You would use yours. You have to assign a username to each vncserver. It's like a detatched desktop, and desktops are always associated with a particular user.

The number 8 is the X display number. By default, the physical terminal is assigned 0, so I guess usually you would start with 1 in vncservers, but I used 8 for some reason. I don't think it matters what number you use, though there is surely some upper limit.

Quote:
Can vnc server start like Remote administrator which allow user to see login screen to choose who to sign in as?
I'm don't know. But if you just run 'vncviewer' with no arguments, you get a tiny window prompting you for a VNC server. So you can type in 'homepc:1' for X display number 1 on the host named 'homepc'.

Quote:
can vnc server work just like ftp, telnet or http which do not require login to activate or start?
Oh, I forgot another detail. You must have a file ~/.vnc/passwd with mode 0600, which is used for authentication. Create it with the 'vncpasswd' command. I think you can create it with an empty password, which would allow password-less login (maybe a bad idea).

But here's what I do that is even better. Create the passwd file on the host I will be logging into (assume it's 'homepc'). Then copy it securely to the remote PC I'll be logging from, but name it ~/.vnc/passwd_homepc or something. Then create this script:
Code:
#!/bin/sh
exec vncviewer -passwd ~/.vnc/passwd_homepc homepc:1
Then just run the script or call it from a menu to have your remote desktop popup. Another user can't use it unless he can log in as you (since the local password file is 0600), so it's not really a password-less login.

Of course this assumes you can reach homepc across a VPN or local ethernet or something.
KenJackson is offline   Reply With Quote
Old 04-24-2008   #8 (permalink)
Just Joined!
 
Join Date: Jun 2005
Posts: 20
In Slackware there is no /etc/sysconfig/vncservers, what should I do there?


Thank you.
thedp is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 03:44 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2