From: Denis Nazarov <marsden@mail.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] принтеры Canon
Date: Mon, 12 Mar 2012 00:20:04 +0600
Message-ID: <4F5CECD4.8070104@mail.ru> (raw)
In-Reply-To: <E1S6lj7-00079d-Au.anarhoret-mail-ru@f188.mail.ru>
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>
next prev parent reply other threads:[~2012-03-11 18:20 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-11 14:12 ` Геннадий Ищенко
2012-03-11 14:15 ` Denis Nazarov
2012-03-11 14:38 ` Геннадий Ищенко
2012-03-11 15:32 ` Denis Nazarov
2012-03-11 16:00 ` Геннадий Ищенко
2012-03-11 16:04 ` Denis Nazarov
2012-03-11 16:34 ` Геннадий Ищенко
2012-03-11 18:20 ` Denis Nazarov [this message]
2012-03-11 16:57 ` Michael Shigorin
2012-03-11 17:59 ` Геннадий Ищенко
2012-03-11 19:33 ` Michael Shigorin
2012-03-12 6:18 ` Геннадий Ищенко
2012-03-12 6:23 ` Денис Назаров
2012-03-12 6:43 ` Геннадий Ищенко
2012-03-12 7:07 ` Denis Nazarov
2012-03-12 7:18 ` Геннадий Ищенко
2012-03-12 14:12 ` Anton Gorlov
2012-03-12 15:33 ` Геннадий Ищенко
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F5CECD4.8070104@mail.ru \
--to=marsden@mail.ru \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git