LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-08-2006, 01:45 PM   #1
ringding
LQ Newbie
 
Registered: Feb 2005
Distribution: RH9, RHEnt.
Posts: 23

Rep: Reputation: 0
Question vncserver startup script?


I am trying to start vncserver by adding this line "vncserver :69 -geometry 1024x768" to the rc.local file. It starts VNC but not in the color depth like a full x session. This command starts a full X session once I log in as root..via SSH or locally.

I guess my question is how do I start vncserver so I get the full X session without having to login as root and running the command manually every time I reboot.

How do I modify the vncserver command to start as root?

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don'e
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
mount /dev/sda1 /media/vfr1
vncserver :69 -geometry 1024x768

Thanks!

Last edited by ringding; 08-08-2006 at 03:45 PM.
 
Old 08-10-2006, 06:41 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Follow the tutorial here; http://fedoranews.org/tchung/vnc/index.shtml
 
  


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
how do I auto-mount a drive at boot warkrime Linux - Newbie 7 08-03-2013 04:56 AM
Emulex LP8000 and HP SAN Drive Mapping idubrawsky Linux - Software 0 02-16-2006 02:42 PM
Unable to mount CD Rom drive during boot harisund Linux - Hardware 0 11-24-2005 04:32 PM
How can I mount my secondary hard drive on boot? Scorlibrian Linux - Hardware 1 02-26-2005 11:36 AM
How do I mount my Hard drive from a Boot CD? Fredzep Linux - Newbie 5 04-16-2004 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:08 AM.

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