在Raspberry PI上锁定幻灯片

时间:2014-08-12 14:09:14

标签: debian raspberry-pi pam

天儿真好,

我正在使用PAMUSB来锁定我的RPi,这很好用。拉动USB记忆棒时,我使用xscreensaver-command -lock锁定机器。 这是棘手的部分,我还不太清楚。 xscreensaver附带了几个幻灯片,但几乎所有的幻灯片都很糟糕,因为它们坚持使用无用的过渡效果。此外,我不能使用任何GLX模块(例如GLSlideshow),它可以完全按照我的意愿使用。

我试图在pi上编译xv而运气不佳。我现在pqiv正在工作,但我正努力让它与xscreensaver交配。

我上次做的是在programs: {@ 1}}下的〜/ .xscreensaver中输入一个条目,但它不会启动幻灯片显示。从命令行启动时,该命令可以完美运行。

任何帮助都会很棒!我也喜欢不同的方法,但它必须锁定PI! (我正在使用多点触控显示器)

干杯

1 个答案:

答案 0 :(得分:0)

最后得到了XV编译:

获取源自:www.trilon.com/xv/downloads.html

tar -xzf xv-3.10a.tar.gz
cd xv-3.10a
sudo nano tiff/RANLIB.csh

注释掉除了一行之外的所有行,所以它看起来像这样:

#!/bin/csh -f
#
# tests to see if the program 'ranlib' exists.  If it does, runs ranlib on
# the first argument (a library name).  Otherwise, does nothing, and returns
#
# written by John Bradley for the XV 3.00 release
# thanks to John Hagan for shell-script hackery
#

#echo "executing 'ranlib $1'..."

# Is there a ranlib?  Let's try and then suffer the consequences...
ranlib $1 >& /dev/null
#
#if ( $status ) then 
#   echo "There doesn't seem to be a ranlib on this system..."
#   echo "Don't worry about it."
#endif

#echo ""
#echo ""

sudo nano xv.h

变化:

extern char *sys_errlist[];     /* this too... */

/*     extern char *sys_errlist[];     /* this too... */


sudo make
sudo make install

仍然会发出一些警告,但就像PAMXSCREENSAVER

的魅力一样

~/.xscreensaverprograms:下的条目如下所示:

default-n:          xv -root -rmode 5 -random -viewonly       \
                  -wloop -wait 5 /some/folder/*.JPG     \n\

希望能帮助任何人!

干杯!