Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
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.
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.
esac is the closing of case
So if you're sure you want just root to start vncserver modify the script like this:
Code:
#!/bin/sh
#
# Startup/Stop script for vncservers for some users.
#
case "$1" in
'start')
/bin/su - root -c "/usr/local/bin/vncserver :1"
;;
'stop')
/bin/su - root -c "/usr/local/bin/vncserver -kill :1"
;;
*)
echo "Usage: /etc/init.d/rc.vnc { start | stop }"
;;
esac
and create the appropriate symlinks
Hi guys,
I have used this start script and it works well to start vncserver :1 but when I try and stop it with /etc/init.d/rc.vnc stop, what it does is start vncserver :2. Not too sure why that is or how to fix that.. any ideas??
after vncserver was started using /etc/init.d/rc.vnc start
Thanks for the response.. looks like my problem was not using the quotes at the CLI. It still started the process when I started vncserver but killing whithout the quotes was what created a second vncserver PID.
Thanks for the response.. looks like my problem was not using the quotes at the CLI. It still started the process when I started vncserver but killing whithout the quotes was what created a second vncserver PID.
All works well now thanks!
Actually there is one minor issue that is not preventing vncserver from starting but still is a cause for concern as it delays the start process and not sure exactly what else it may impact.
when I start vncserver I get the following message:
xauth: timeout in locking authority file /export/home/clamontagne/.Xauthority
xauth: timeout in locking authority file /export/home/clamontagne/.Xauthority
I'm trying to figure out what is causing this but any help on tihs one would be appreciated.
Hi glad to see that the stop script had worked.
Now, about the xauth timeout quoting from openwin documentation, possible reasons and remedies:
Quote:
1. The user's $HOME is not writable by the user; $HOME may be owned by an entirely different user.
2. The lock file $HOME/.Xauthority-l already exists; remove this file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.