su -c 'apt-get install xscreensaver xscreensaver-gl-extra xscreensaver-data-extra'
su -c 'apt-get remove gnome-screensaver'
xscreensaver-demo
su -c 'nano /etc/init.d/xscreensaver'
#!/bin/sh
# /etc/init.d/xscreensaver
### BEGIN INIT INFO
# Provides: skeleton
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $portmap
# Should-Stop: $portmap
# X-Start-Before: nis
# X-Stop-After: nis
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: true
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
### END INIT INFO
# The following part always gets executed.
echo "This part always gets executed"
# The following part carries out specific functions depending on arguments.
case "$1" in
start)
xscreensaver -nosplash
echo "Starting xscreensaverxscreensaver"
echo "xscreensaver is alive"
;;
stop)
echo "Stopping xscreensaver"
echo "xscreensaver is dead"
;;
*)
echo "Usage: /etc/init.d/xscreensaver {start|stop}"
exit 1
;;
esac
exit 0
su -c 'chmod 755 /etc/init.d/xscreensaver'
su -c 'update-rc.d xscreensaver defaults'
Tiada ulasan:
Catat Ulasan