LinuxQuestions.org
Help answer threads with 0 replies.
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 03-21-2004, 05:00 PM   #1
silversky
LQ Newbie
 
Registered: Jan 2004
Location: I'm a hermit.
Distribution: Slackware 9.1
Posts: 29

Rep: Reputation: 15
Question booting with realvnc on slackware


Hey! I have a slackware box that I use for a server. It runs the realvnc server flawlessly, but I can't seem to get it to startup.

It has a startup script that runs all of the services in /usr/bin, so all I would usually type is # vncserver . It starts fine, but I don't want to repeatedly type a command that would be so easy to throw into my rc.local. Right now, I have my rc.local to the point of saying

#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:
/usr/bin/vncserver
/etc/webmin/start >/dev/null 2>&1 </dev/null # Start Webmin
cd /usr/bin && ./lifemapper

Lifemapper and webmin start fine. VNCserver never starts at all!

I renamed the startup script to rc.vncserver, did chown root and chmod 755, and placed it in /etc/rc.d/, but the results are the same.

Any ideas?
 
Old 03-22-2004, 01:45 AM   #2
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
The vncinstall script defaults to /usr/local/bin/vncserver, so unless you specified /usr/bin/, that's where it'll go.

And personally, I'd be a little nervous about running vncserver as root. You might try playing with setuid.

Enjoy!
--- Cerbere
 
Old 03-22-2004, 06:04 PM   #3
silversky
LQ Newbie
 
Registered: Jan 2004
Location: I'm a hermit.
Distribution: Slackware 9.1
Posts: 29

Original Poster
Rep: Reputation: 15
what is setuid? Why would I have problems as root?
 
Old 03-23-2004, 11:31 PM   #4
silversky
LQ Newbie
 
Registered: Jan 2004
Location: I'm a hermit.
Distribution: Slackware 9.1
Posts: 29

Original Poster
Rep: Reputation: 15
I'm confused. Apparently nobody knows the answer to my post. I was under the impression that simple commands on startup were possible. I can do this easily in windows, so why can't I do the same thing on an operating system that has many claims of being superior to any version of windows?
 
Old 03-24-2004, 03:48 AM   #5
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 30
Basically, what's happening is that the rc.local commands are being run as root. Therefore, what's probably happening is that you've never started the vncserver as root, and so as you haven't set as password for root with vncpasswd (probably), then it won't start.

As Cerbere says, you should play around with setuid - "man setuid" for more info. Post back if you have some problems with this, or let us know how you get on!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
RealVNC on FC 3 excidy Linux - Software 1 04-04-2005 07:46 AM
where did realvnc go? ampex189 Fedora 2 03-16-2005 05:14 PM
RealVNC aidankitch Linux - Software 2 04-28-2004 04:58 AM
Slackware RealVNC multiuser intsall/config urbansound Slackware 1 04-03-2004 07:03 PM
realvnc... roofy Linux - Software 5 04-30-2003 10:49 PM


All times are GMT -5. The time now is 06:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration