Собственно сабж. Работал ранее на ХР и использовал tightvnc для удаленного администрирования компов офиса. Тут решил перейти на Ubuntu 10.04 и столкнулся с проблемой адаптации тех самых виндовых ярлыков vnc под Ubuntu, а их там более 400 штук, что составляет некое неудобство создавать их заново.
Поставил себе tightvncserver таким образом:
Type:
sudo apt-get install tightvncserver
Then create and edit: /etc/init.d/vncserver in your favorite text editor. Copy and base the contents between the ——, then modify the variables up top as necessary.
#!/bin/sh -e
### BEGIN INIT INFO
# Provides: vncserver
# Required-Start: networking
# Default-Start: S
# Default-Stop: 0 6
### END INIT INFO
PATH=”$PATH:/usr/X11R6/bin/”
# The Username:Group that will run VNC
export USER=”username”
#${RUNAS}
# The display that VNC will use
DISPLAY=”1″
# Color depth (between 8 and 32)
DEPTH=”16″
# The Desktop geometry to use.
#GEOMETRY=”x”
#GEOMETRY=”800×600″
GEOMETRY=”1024×768″
#GEOMETRY=”1280×1024″
# The name that the VNC Desktop will have.
NAME=”desktopname”
OPTIONS=”-name ${NAME} -depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}”
. /lib/lsb/init-functions
case “$1″ in
start)
log_action_begin_msg “Starting vncserver for user ‘${USER}’ on localhost:${DISPLAY}”
su ${USER} -c “/usr/bin/vncserver ${OPTIONS}”
;;
stop)
log_action_begin_msg “Stoping vncserver for user ‘${USER}’ on localhost:${DISPLAY}”
su ${USER} -c “/usr/bin/vncserver -kill :${DISPLAY}”
;;
restart)
echo “need to implement”
;;
esac
exit 0
Save the file and make sure the permissions are as follows:
-rwxr-xr-x 1 root root
Update your rc.d by running:
update-rc.d vncserver defaults
При клике на ярлыке идет запуск программы vinagre и выкидывает ошибку "Аутентификация не удалась"
Может я не то что-то делаю или как? Есть идеи, маны, подсказки или хотя бы намеки на решение? Буду очень признателен =)
ЗЫ Не знаю на сколько это необходимо в решении моей проблемы, но виндовые ярлыки состоят из следующего текста:
[connection]
host=pingvin
port=5900
password=afdbc7d3febe25ab
[options]
use_encoding_0=1
use_encoding_1=1
use_encoding_2=1
use_encoding_3=0
use_encoding_4=1
use_encoding_5=1
use_encoding_6=1
use_encoding_7=1
use_encoding_8=1
preferred_encoding=7
restricted=0
viewonly=1
fullscreen=0
8bit=1
shared=1
swapmouse=0
belldeiconify=0
emulate3=1
emulate3timeout=100
emulate3fuzz=4
disableclipboard=0
localcursor=1
scale_den=10
scale_num=9
cursorshape=1
noremotecursor=0
Может в них какую команду дописать, а?