rpms/tightvnc/devel vncserver.init, NONE, 1.1 vncserver.sysconfig, NONE, 1.1 vncviewer.desktop, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Adam Tkac
atkac at fedoraproject.org
Fri Oct 17 12:11:57 UTC 2008
- Previous message (by thread): rpms/ipmitool/F-10 ipmitool-1.8.10-ipmievd-init.patch, NONE, 1.1 ipmitool.spec, NONE, 1.1 openipmi-ipmievd.sysconf, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/tightvnc/devel tightvnc.spec,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: atkac
Update of /cvs/pkgs/rpms/tightvnc/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16530
Modified Files:
.cvsignore sources
Added Files:
vncserver.init vncserver.sysconfig vncviewer.desktop
Log Message:
Initial commit - imported specfile and sources
--- NEW FILE vncserver.init ---
#!/bin/bash
#
# chkconfig: - 91 35
# description: Starts and stops vncserver. \
# used to provide remote X administration services.
### BEGIN INIT INFO
# Provides: vncserver
# Required-Start: $network $named
# Required-Stop: $network $named
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: start|stop|restart|try-restart|status|force-reload vncserver
# Description: control vncserver which exports your desktop
### END INIT INFO
# Source function library.
. /etc/init.d/functions
[ -r /etc/sysconfig/vncservers ] && . /etc/sysconfig/vncservers
prog=$"VNC server"
RETVAL=0
start() {
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 1
[ -x /usr/bin/vncserver ] || exit 5
[ -x /usr/bin/Xvnc ] || exit 5
echo -n $"Starting $prog: "
RETVAL=0
if [ ! -d /tmp/.X11-unix ]
then
mkdir -m 1777 /tmp/.X11-unix || :
restorecon /tmp/.X11-unix 2>/dev/null || :
fi
for display in ${VNCSERVERS}
do
SERVS=1
echo -n "${display} "
DISP="${display%%:*}"
USER="${display##*:}"
VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
runuser -l ${USER} -c "cd ~${USER} && [ -r .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
RETVAL=$?
[ "$RETVAL" -eq 0 ] || break
done
if [ -z "$SERVS" ]; then
echo -n "no displays configured "
failure
RETVAL=6
else
if [ "$RETVAL" -eq 0 ]; then
success $"vncserver startup"
touch /var/lock/subsys/vncserver
else
failure $"vncserver start"
fi
fi
echo
return "$RETVAL"
}
stop() {
echo -n $"Shutting down $prog: "
for display in ${VNCSERVERS}
do
echo -n "${display} "
export USER="${display##*:}"
runuser ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
done
RETVAL=$?
[ "$RETVAL" -eq 0 ] && success $"vncserver shutdown" || \
failure $"vncserver shutdown"
echo
[ "$RETVAL" -eq 0 ] && rm -f /var/lock/subsys/vncserver
return "$RETVAL"
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart|force-reload)
stop
sleep 3
start
;;
condrestart)
echo "condrestart is obsolete, use try-restart instead"
if [ -e /var/lock/subsys/vncserver ]; then
stop
sleep 3
start
fi
;;
try-restart)
if [ -e /var/lock/subsys/vncserver ]; then
stop
sleep 3
start
fi
;;
status)
status Xvnc
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|try-restart|status|force-reload}"
exit 3
esac
exit "$RETVAL"
--- NEW FILE vncserver.sysconfig ---
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the lines below to start a VNC server on display :2
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# <URL:http://www.uk.research.att.com/archive/vnc/sshvnc.html>.
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
# Use "-nohttpd" to prevent web-based VNC clients connecting.
# Use "-localhost" to prevent remote VNC clients connecting except when
# doing so through a secure tunnel. See the "-via" option in the
# `man vncviewer' manual page.
# VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
--- NEW FILE vncviewer.desktop ---
[Desktop Entry]
Encoding=UTF-8
Name=VNC Viewer
Comment=Connect to VNC server and display remote desktop
Exec=/usr/bin/vncviewer
Icon=vnc
Terminal=false
Type=Application
StartupWMClass=VNC Viewer: Connection Details
Categories=Network;Application;
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/tightvnc/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 16 Oct 2008 17:03:21 -0000 1.1
+++ .cvsignore 17 Oct 2008 12:11:27 -0000 1.2
@@ -0,0 +1,4 @@
+vnc-16x16.png
+vnc-24x24.png
+vnc-48x48.png
+tightvnc-1.5.0-20081015svn3022.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/tightvnc/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 16 Oct 2008 17:03:21 -0000 1.1
+++ sources 17 Oct 2008 12:11:27 -0000 1.2
@@ -0,0 +1,4 @@
+2f19f562d4ff6b8752c1686331ce44b7 vnc-16x16.png
+273f51f58324f12e2cc96e2a1dcc5a6d vnc-24x24.png
+f96d936a0fcc61cabee0e6cb65e0e38a vnc-48x48.png
+1512159d6ed59672de21766375eacbda tightvnc-1.5.0-20081015svn3022.tar.bz2
- Previous message (by thread): rpms/ipmitool/F-10 ipmitool-1.8.10-ipmievd-init.patch, NONE, 1.1 ipmitool.spec, NONE, 1.1 openipmi-ipmievd.sysconf, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/tightvnc/devel tightvnc.spec,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list