- Para cambiar fonde de escritorio y que no me de un desagradable mensaje cada vez que arranco:
fbsetbg -f /home/htpc/Desktop/xbmc.jpg - Para arrancar el servidor de VNC y poder conectarme en remoto:
x11vnc -shared -forever -overlay -scale 1280x800 -rfbauth /home/htpc/.pass &
previamente he guardado la contraseña de acceso remoto en el fichero /home/htpc/.pass con el comando: x11vnc -storepasswd password /home/htpc/.pass - En el inicio además del XBMC arranco los siguientes programas: transmission y jdownloader para gestionar las descargas desde el mediacenter y RemoteDroidServer para manejar el teclado y el ratón del mediacenter desde Android:
transmission -m &
jdownloader -m &
java -jar /home/htpc/RemoteDroidServer/RemoteDroidServer.jar &
y el fichero completo me ha quedado así:
#!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.
# Change your keymap:
xmodmap "/home/htpc/.Xmodmap"
fbsetbg -f /home/htpc/Desktop/xbmc.jpg
# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &
x11vnc -shared -forever -overlay -scale 1280x800 -rfbauth /home/htpc/.pass &
# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.
fluxbox -log /home/htpc/.fluxbox/log &
fbpid=$!
sleep 1
{
# Applications you want to run after fluxbox has started
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN & AT THE END.
# ipager &
# gkrellm2 &
xbmc &
transmission -m &
jdownloader -m &
java -jar /home/htpc/RemoteDroidServer/RemoteDroidServer.jar &
} &
wait $fbpid
# or if you want to keep a log:
# exec fluxbox -log "/home/htpc/.fluxbox/log"
Yo no he puesto la línea 'fbsetbg -f /home/htpc/Desktop/xbmc.jpg'. Al ejecutar este comando obtenía un error.
ResponderEliminarEl comando 'x11vnc -shared -forever -overlay -scale 1280x800 -rfbauth /home/htpc/.pass &', no me funciona, lo he sustituido porx11vnc -shared -forever -overlay -scale 1280x800 -passd password