12-07-2006
Include xhost + at auto reboot script
Below is the startup/stop script for vncservers by end-user.
How can xhost + command include in this script?
Please help. Thank you.
#!/bin/sh
#
# Startup/Stop script for vncservers for some users.
#
case "$1" in
'start')
/bin/rm /tmp/.X11-unix/X0
/bin/su - applprod -c "/export/home/applprod/VNC/vncserver :0"
;;
'stop')
/bin/su - applprod -c "/export/home/applprod/VNC/vncserver -kill :0"
;;
*)
echo "Usage: /etc/init.d/rc.vnc { start | stop }"
;;
esac
9 More Discussions You Might Find Interesting
1. Solaris
My SB150 machine rebooted itself this week several times, anyone have idea what the problem is, a blaster? :) kidding (2 Replies)
Discussion started by: howhowzz
2 Replies
2. UNIX for Advanced & Expert Users
I have an application that requires me to disable the restricted access to the X Server libraries by issuing the 'Xhost +' command from a Console Window.
It is important that this command is run from the Console Window and not a Terminal Window otherwise the system complains that DISPLAY is not... (0 Replies)
Discussion started by: jimthompson
0 Replies
3. UNIX for Dummies Questions & Answers
Hi Gurus,
Is it possible to include perl script with in the unix shell script?
What would be the general syntax?
In the above case, is it required to write the below first two lines of codes?
#!usr/bin/sh -x
#!usr/bin/perl -w
Thanks in advance / Mysore Ganapati. (1 Reply)
Discussion started by: ganapati
1 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
I am trying to enable usage of X on 2 servers - ServerA and ServerB.
I am logged in as root on ServerA and am trying to add ServerB into the access list of A.
I am using this:
root@ServerA#> export DISPLAY=localhost:20.0
root@ServerA#> xhost +ServerB
I am getting the... (3 Replies)
Discussion started by: vishi
3 Replies
5. Shell Programming and Scripting
Hello,
I have a script and a second file that contains all parameters needed for the script.
How can I include this file in the script ?
I tried source but I have a "no such file or directory" error.
:) (1 Reply)
Discussion started by: pppswing
1 Replies
6. SCO
Hello,
How do a schedule a reboot of a SCO 5.0 box like every wednesday at 3:30 am. Doesn't have a /etc/crontab file like our Suse boxes have. Thanks for any help. (6 Replies)
Discussion started by: benefactr
6 Replies
7. UNIX for Dummies Questions & Answers
Hi guys i have written a script which takes the options given to him and execute itself accordingly.
for example
if a script name is doctortux then executing doctortux without option should made doctortux to be executed in automatic mode i.e. doctortux -a
or if a doctortux is needed to run in... (4 Replies)
Discussion started by: pinga123
4 Replies
8. UNIX for Dummies Questions & Answers
Some of my users find that a graphical program I have given them will not run until they type:
xhost +local:username
where, of course, they substitute in their own user name. My question is what the word "local" is doing there and whether it would work as well without it.
Thanks in... (0 Replies)
Discussion started by: Brandon9000
0 Replies
9. Red Hat
Hello Guys - I need to disable xen server not to start when the server is rebooted.
1) What is the parameter to be used to do this..below is the entry in my config file...
on_reboot = "restart"
2) What is the default behaviors of the xen on reboot ? in case we comment this line from config... (0 Replies)
Discussion started by: saurabh84g
0 Replies
LEARN ABOUT CENTOS
vncpasswd
vncpasswd(1) Virtual Network Computing vncpasswd(1)
NAME
vncpasswd - change the VNC password
SYNOPSIS
vncpasswd [passwd-file]
vncpasswd -f
DESCRIPTION
vncpasswd allows you to set the password used to access VNC desktops. Its default behavior is to prompt for a VNC password and then store
an obfuscated version of this password to passwd-file (or to $HOME/.vnc/passwd if no password file is specified.) The vncserver script
runs vncpasswd the first time you start a VNC desktop, and it invokes Xvnc with the appropriate -rfbauth option. vncviewer can also be
given a password file to use via the -passwd option.
The password must be at least six characters long (unless the -f command-line option is used-- see below), and only the first eight charac-
ters are significant. Note that the stored password is not encrypted securely - anyone who has access to this file can trivially find out
the plain-text password, so vncpasswd always sets appropriate permissions (read and write only by the owner.) However, when accessing a
VNC desktop, a challenge-response mechanism is used over the wire making it hard for anyone to crack the password simply by snooping on the
network.
OPTIONS
-f Filter mode. Read a plain-text password from stdin and write an encrypted version to stdout. Note that in filter mode, short or
even empty passwords will be silently accepted.
FILES
$HOME/.vnc/passwd
Default location of the VNC password file.
SEE ALSO
vncviewer(1), vncserver(1), Xvnc(1) vncconfig(1),
http://www.tigervnc.org
AUTHORS
Tristan Richardson, RealVNC Ltd.
Antoine Martin
D. R. Commander
VNC was originally developed by the RealVNC team while at Olivetti Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
implemented by Constantin Kaplinsky. Many other people participated in development, testing and support.
TigerVNC 09 Jul 2010 vncpasswd(1)