From: Michael Shigorin <mike@osdn.org.ua>
To: sisyphus@lists.altlinux.org
Subject: [sisyphus] vncserver (was: I: Xorg-6.8.99.903-alt3)
Date: Wed, 14 Dec 2005 23:23:06 +0200
Message-ID: <20051214212306.GE2918@osdn.org.ua> (raw)
In-Reply-To: <200512141512.22868.shrek@freesource.info>
[-- Attachment #1.1: Type: text/plain, Size: 841 bytes --]
On Wed, Dec 14, 2005 at 03:12:13PM +0300, Valery V. Inozemtsev wrote:
> В сизиф ушел xorg-6.8.99.903-alt3. в нем помимо исправления
> багов появился X VNC Server (именно сервер, а не только
> экстеншен).
Ой, это как? :) (они что -- прям в xorg-x11 раздают?)
Собсно модуль просил собрать, чтоб не тягать с vnc src.rpm
исходники иксов, а сервер, наверное, проще отдельно -- хотя
бы потому, что их несколько есть (realvnc, tightvnc, старый).
> для полного счастья для Xvnc не хватает инитскрипта, просьба
> заинтересованных озаботиться этим вопросом
Это для запуска левого дисплея, x0vncserver работает медленнее,
чем родной с модулем (потому как поллит). Если тот сервер родом
из realvnc или подойдёт -- смотри аттач.
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
[-- Attachment #1.2: vncserver.init --]
[-- Type: text/plain, Size: 2153 bytes --]
#!/bin/bash
#
# chkconfig: - 91 35
# description: Starts and stops vncserver. \
# used to provide remote X administration services.
WITHOUT_RC_COMPAT=1
# Source function library.
. /etc/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
PIDFILE=/var/run/vncserver.pid
LOCKFILE=/var/lock/subsys/vncserver
RETVAL=0
unset VNCSERVERARGS
VNCSERVERS=""
[ -f /etc/sysconfig/vncservers ] && . /etc/sysconfig/vncservers
prog=$"VNC server"
start() {
echo -n $"Starting $prog: "
ulimit -S -c 0 >/dev/null 2>&1
RETVAL=0
if [ ! -d /tmp/.X11-unix ]
then
mkdir -m 1777 /tmp/.X11-unix || :
#restorecon /tmp/.X11-unix || :
fi
for display in ${VNCSERVERS}
do
echo -n "${display} "
unset BASH_ENV ENV
DISP="${display%%:*}"
export USER="${display##*:}"
export VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
#runuser -l ${USER} -c "cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
su -l ${USER} -c "cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
RETVAL=$?
[ "$RETVAL" -ne 0 ] && break
done
[ "$RETVAL" -eq 0 ] && success $"vncserver startup" || \
failure $"vncserver start"
echo
[ "$RETVAL" -eq 0 ] && touch $LOCKFILE
}
stop() {
echo -n $"Shutting down $prog: "
for display in ${VNCSERVERS}
do
echo -n "${display} "
unset BASH_ENV ENV
export USER="${display##*:}"
#runuser ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
su ${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 $LOCKFILE
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
sleep 3
start
;;
condrestart)
if [ -f $LOCKFILE ]; then
stop
sleep 3
start
fi
;;
status)
status Xvnc
;;
*)
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
exit 1
esac
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-12-14 21:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-14 12:12 [sisyphus] I: Xorg-6.8.99.903-alt3 Valery V. Inozemtsev
2005-12-14 21:23 ` Michael Shigorin [this message]
2005-12-15 7:07 ` [sisyphus] vncserver (was: I: Xorg-6.8.99.903-alt3) Valery V. Inozemtsev
2005-12-15 7:14 ` Eugene Ostapets
2005-12-15 8:19 ` Alexey Morsov
2005-12-15 10:13 ` Eugene Ostapets
2005-12-15 9:59 ` Anton D. Kachalov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051214212306.GE2918@osdn.org.ua \
--to=mike@osdn.org.ua \
--cc=shigorin@gmail.com \
--cc=sisyphus@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git