Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-14-2005, 12:05 PM
|
#1
|
LQ Newbie
Registered: Feb 2005
Posts: 5
Rep:
|
redhat ES
I want to be able to start vnc on bootup...I've learned that put the vncserver in rc.local file on redhat 9.0 to start at boot up...When I try that in ES it doesn't work...
How would I get it to run on bootup...
thanks
|
|
|
02-14-2005, 12:47 PM
|
#2
|
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440
Rep:
|
You can put vncserver in /etc/rc.local but why need to? If you want to start it up the Redhat style, then look into 'chkconfig'. That's the command.
-twantrd
|
|
|
02-14-2005, 06:08 PM
|
#3
|
LQ Newbie
Registered: Feb 2005
Posts: 5
Original Poster
Rep:
|
sorry I don't understand...will this enable it to start on bootup???
thanks
|
|
|
02-14-2005, 08:26 PM
|
#4
|
Senior Member
Registered: Oct 2003
Posts: 3,057
Rep:
|
Quote:
sorry I don't understand...will this enable it to start on bootup???
|
Yes, it should.
chkconfig --level 345 vncserver on
|
|
|
02-14-2005, 08:44 PM
|
#5
|
LQ Newbie
Registered: Feb 2005
Posts: 5
Original Poster
Rep:
|
Quote:
Originally posted by homey
Yes, it should.
chkconfig --level 345 vncserver on
|
I'am typing this in terminal but is says
bash: chkconfig: command not found...
Iam I doing something wrong???
thanks
|
|
|
02-14-2005, 08:57 PM
|
#6
|
Senior Member
Registered: Oct 2003
Posts: 3,057
Rep:
|
Type the command: su - and enter the root user password.
Then type the command: chkconfig --level 345 vncserver on
|
|
|
02-14-2005, 09:03 PM
|
#7
|
LQ Newbie
Registered: Feb 2005
Posts: 5
Original Poster
Rep:
|
Quote:
Originally posted by homey
Type the command: su - and enter the root user password.
Then type the command: chkconfig --level 345 vncserver on
|
it looked like it did something....
but know my other question is will this be on permently or is this just a temp meaning it will be disable if the box reboots???
ok I tried it but still can't log in connection refused
thanks
Last edited by trini; 02-14-2005 at 09:04 PM.
|
|
|
02-14-2005, 09:57 PM
|
#8
|
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440
Rep:
|
Chkconfig will make it a permanent thing. Do a 'man chkconfig' and read what it does. You should know what commands you are typing in to your box .
Quote:
ok I tried it but still can't log in connection refused
|
'chkconfig' doesn't start vncserver, it just starts it up everytime you reboot. Check to see if in fact vncserver is running. That's most likely your problem.
-twantrd
|
|
|
02-14-2005, 10:11 PM
|
#9
|
LQ Newbie
Registered: Feb 2005
Posts: 5
Original Poster
Rep:
|
Quote:
Originally posted by twantrd
Chkconfig will make it a permanent thing. Do a 'man chkconfig' and read what it does. You should know what commands you are typing in to your box .
'chkconfig' doesn't start vncserver, it just starts it up everytime you reboot. Check to see if in fact vncserver is running. That's most likely your problem.
-twantrd
|
is it possible to have it running in the /etc/rc.local file
this is my goal to have it on boot up...I did this in RH 9.0 with no problems...was just wondering if it would work the same way
thanks
|
|
|
02-15-2005, 12:36 AM
|
#10
|
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440
Rep:
|
Yes, you can start it in rc.local, however, that is not the traditional way.
-twantrd
|
|
|
All times are GMT -5. The time now is 05:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|