LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-29-2003, 09:35 AM   #1
ulozas
LQ Newbie
 
Registered: Jul 2003
Posts: 16

Rep: Reputation: 0
Extreme Linux newbie question.


I've got a machine with mandrake 9.0 that will be running without a monitor or mouse. I want to remote into it with vnc but I don't know how to start vnc during startup. I've added the line /usr/bin/perl vncserver to rc.local but that did jack. I also tried the line /usr/bin/vncserver but that didn't do anything either. /usr/bin is where vncserver, vncpasswd, vncconnect, vncviewer, and Xvnc are so I don't know why it doesn't work. So if anyone could tell me how to set up vnc to start when linux boots up it would very appreciated.
 
Old 07-29-2003, 09:54 AM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
First start it manually so that you can set the password with something similar to:
vncserver :2

The ":2" is the display number. You should then be able to add this line to your rc script.
 
Old 07-29-2003, 10:16 AM   #3
ulozas
LQ Newbie
 
Registered: Jul 2003
Posts: 16

Original Poster
Rep: Reputation: 0
Add what line to my rc script? And how should it look in my rc script? I'm a newb and the rc script has a bunch of coding in it so is it just supposed to be below all of the codeing? /usr/bin/perl vncserver :2?
 
Old 07-29-2003, 10:23 AM   #4
ulozas
LQ Newbie
 
Registered: Jul 2003
Posts: 16

Original Poster
Rep: Reputation: 0
oh yea also I'm assuming that rc.local is the place I need to add the command line to run vncserver during startup.
 
Old 07-29-2003, 11:01 AM   #5
ulozas
LQ Newbie
 
Registered: Jul 2003
Posts: 16

Original Poster
Rep: Reputation: 0
Anyone have any advice?
 
Old 07-29-2003, 11:41 AM   #6
jd121
Member
 
Registered: Jul 2003
Distribution: FreeBSD 5.1, Debian 3.0, Damn Small 0.4.2
Posts: 46

Rep: Reputation: 15
I'm assuming you have x configured?

Not sure about your distro, but I think it should be very similar. On my BSD machine, the vncserver binary is located in the usr/x11r6/bin. It needs to be able to properly initialize x. So that needs to be configured before getting vnc to work.

Just running vncserver from a command prompt should initialize it.

Simply add that line of code to the rc config line in the /etc directory.
 
Old 08-10-2003, 04:54 PM   #7
dipper17
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
I am having the same problem!!. Hope you got the answer. I am putting the following line in the rc.local file

/usr/local/bin vncserver :1 -name myserver -depth 16 -geometry 800x600

This wirks perfectly from the command prompt but does not work from the rc.local file. Someone out there must be using VNC to control a headless server in Linux. Please Help!!!

Thanks
 
Old 08-12-2003, 08:17 AM   #8
ulozas
LQ Newbie
 
Registered: Jul 2003
Posts: 16

Original Poster
Rep: Reputation: 0
bumpity bump
 
Old 08-12-2003, 08:21 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally posted by dipper17
I am having the same problem!!. Hope you got the answer. I am putting the following line in the rc.local file

/usr/local/bin vncserver :1 -name myserver -depth 16 -geometry 800x600

This wirks perfectly from the command prompt but does not work from the rc.local file. Someone out there must be using VNC to control a headless server in Linux. Please Help!!!

Thanks
running this via your rc.local script will make it run as root, not as your normal user... if you want it to run as a normal user then try using
Code:
su -c username 'thatvncservercommandhere'
 
Old 08-12-2003, 08:27 AM   #10
ulozas
LQ Newbie
 
Registered: Jul 2003
Posts: 16

Original Poster
Rep: Reputation: 0
I'm trying to do the same thing as dipper17. I want vncserver to run during startup with a pc that doesn't have a monitor or mouse. I'm also a huge newbie to linux to if you have an answer I need a step by step to understand it. Thanks for all of the advice so far.
 
Old 08-12-2003, 08:37 AM   #11
Edgemaster
LQ Newbie
 
Registered: Aug 2003
Location: Netherlands
Distribution: Mandrake 9.1
Posts: 2

Rep: Reputation: 0
Well, I haven't heard of vnc but Webmin is a good remote program. All you need is a browser, preferable with Java-plugin. I always use webmin for all my configuration-needs. The only thing I do from the server is installing rpms.
 
Old 08-12-2003, 08:43 AM   #12
ulozas
LQ Newbie
 
Registered: Jul 2003
Posts: 16

Original Poster
Rep: Reputation: 0
vnc is an excellent remote program that allows you to do anything remotely and its a multiplatform programs so I can use it to remote into multiple windows and linux machines from one location
 
Old 08-12-2003, 08:48 AM   #13
ulozas
LQ Newbie
 
Registered: Jul 2003
Posts: 16

Original Poster
Rep: Reputation: 0
and its free
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extreme Newbie question JzL Linux - Newbie 4 05-24-2004 06:08 PM
extreme newbie question Whitemagician Linux - Newbie 7 08-22-2003 02:04 PM
extreme newbie question tallkien Linux - Newbie 7 07-22-2003 11:00 AM
Extreme Newbie Question reaper Linux - Networking 8 08-23-2001 09:53 PM
Extreme Linux Newbie WadeRob Linux - Newbie 2 05-09-2001 10:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration