[Comm] принтеры Canon

Denis Nazarov marsden на mail.ru
Вс Мар 11 22:20:04 MSK 2012


11.03.2012 22:34, Геннадий Ищенко пишет:
>
> Последнее насквозь непонятно как раздел /home может быть невыполняемым? Можно подробнее в двух словах?
>
если в fstab прописать noexec для /home - то скрипты с /home запускаться 
не будут (правда, есть варианты)

если у вас нет ccpd, так сделайте его

#!/bin/sh
#
# ccpd          Canon Printing for CUPS
# chkconfig:    2345 65 35
# description:  Canon Printing for CUPS
# processname:  ccpd
# config:       /etc/ccpd.conf

# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1

# Source function library.
. /etc/init.d/functions

PIDFILE=/var/run/ccpd.pid
LOCKFILE=/var/lock/subsys/ccpd
BINARY=/usr/sbin/ccpd
RETVAL=0

start()
{
         start_daemon --lockfile "$LOCKFILE" --expect-user root -- ccpd
         RETVAL=$?
         return $RETVAL
}

stop()
{
         stop_daemon --lockfile "$LOCKFILE" --expect-user root -- ccpd
         RETVAL=$?
         return $RETVAL
}

restart()
{
         stop
         start
}

reload()
{
         stop
         start
}

# See how we were called.
case "$1" in
         start)
                 start
                 ;;
         stop)
                 stop
                 ;;
         reload)
                 reload
                 ;;
         restart)
                 restart
                 ;;
         condstop)
                 if [ -e "$LOCKFILE" ]; then
                         stop
                 fi
                 ;;
         condrestart)
                 if [ -e "$LOCKFILE" ]; then
                         restart
                 fi
                 ;;
         condreload)
                 if [ -e "$LOCKFILE" ]; then
                         reload
                 fi
                 ;;
         status)
                 status --expect-user root -- ccpd
                 RETVAL=$?
                 ;;
         *)
                 msg_usage "${0##*/} 
{start|stop|reload|restart|condstop|condrest                                                                                                                                                             
art|condreload|status}"
                 RETVAL=1
esac

exit $RETVAL


************


и еще cat /etc/ccpd.conf
# Canon Printer Daemon for CUPS Configuration Data

<Path>
# CUPS configuration file path.
#  Default  /etc/cups/

CUPS_ConfigPath   /etc/cups/

# Log directory path.
#  LogDirectoryPath /var/log/CCPD/

</Path>

# Printer entries.
#  Mapping each "Printer Name" to each "Printer Device Port".
#  The "Printer Name" has to be identical to the CUPS printer queue name.
#
#  For example, if you prepare a printer named "LBP3200" as a CUPS printer
#  queue name, and the printer is connected to the USB port "/dev/usb/lp0",
#  you can use the following three lines example just by removing the
#  comment symbol "#" of each line.
#<Printer  LBP3200>
#DevicePath  /dev/usb/lp0
#</Printer>

<Printer LBP3010>
DevicePath /dev/usb/lp0
</Printer>

<Ports>
# Status monitoring socket port.
#  Default 59787
UI_Port  59787
</Ports>



Подробная информация о списке рассылки community