Menu Home

开机自动启动x11vnc脚本

#!/bin/sh

while true

do

AUTH_ID=`ps -ef | grep auth | grep -v grep |grep -v xinitrc | awk '{print $13}'`

if [ "$AUTH_ID" = "" ];then

echo "waiting for ready, retry 10s later..."

else

x11vnc -auth $AUTH_ID -display :0 -xdamage -ncache_cr

fi

sleep 10

done

os: opensuse 11.4

Leave a Reply

Your email address will not be published.