Page 2 of 2

Re: The scanner Epson Perfection V33 [solved]

Posted: 16. Sep 2011, 08:21
by thenktor
You have to create an udev rule in /lib/udev/rules.d or /etc/udev/rules.d/ called 10-my-usb-perms.rules with:

Code: Select all

SUBSYSTEM=="usb_device", GROUP="users", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="users", MODE="0664"
You may restrict the permissions to a specific usb group.

Maybe this is not correct, but you can find some help about udev rules here: http://reactivated.net/writing_udev_rules.html (note: this is kind of outdated but still useful. Use udevsdm for all commands provided there).

Re: The scanner Epson Perfection V33 [solved]

Posted: 16. Sep 2011, 16:00
by Andyun
Yes, it works! I am very grateful to you! :)

Re: The scanner Epson Perfection V33 [solved]

Posted: 16. Sep 2011, 18:17
by Andyun
Weacan please, what do I need to add the SLKBUILD to the file "/iscan-2.26.4/backend/epkowa.conf" in the archive "iscan_2.26.4-2.tar.gz" with the source code was in the finished package on the way "/etc/sane.d/epkowa.conf"?
Thank You!

Here's my version of the SLKBUILD:

Code: Select all

pkgname=iscan
pkgver=2.26.4
pkgrel=111
source=(iscan_$pkgver-2.tar.gz)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
options=('nosrcpack')


slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"iscan"
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --sysconfdir=/etc --localstatedir=/var
	make || return 1
	make install DESTDIR=$startdir/pkg
} 

So right?

Code: Select all

pkgname=iscan
pkgver=2.26.4
pkgrel=111
source=(iscan_$pkgver-2.tar.gz)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
options=('nosrcpack')


slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"iscan"
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --sysconfdir=/etc --localstatedir=/var
	make || return 1
	make install DESTDIR=$startdir/pkg
	mkdir -p $startdir/pkg/usr/share/applications
	cp $startdir/src/$pkgname-$pkgver/iscan.desktop $startdir/pkg/usr/share/applications/
	mkdir -p $startdir/pkg/etc/sane.d
	cp $startdir/src/$pkgname-$pkgver/backend/epkowa.conf $startdir/pkg/etc/sane.d/
}
How to add the line "Icon=scanner" in the file "iscan.desktop" with the help of SLKBUILD?

Re: The scanner Epson Perfection V33 [solved]

Posted: 17. Sep 2011, 10:12
by JRD
Andyun wrote: How to add the line "Icon=scanner" in the file "iscan.desktop" with the help of SLKBUILD?

Code: Select all

echo Icon=scanner >> iscan.desktop

Re: The scanner Epson Perfection V33 [solved]

Posted: 17. Sep 2011, 15:52
by Andyun
It is not works.

Code: Select all

pkgname=iscan
pkgver=2.26.4
pkgrel=111
source=(iscan_$pkgver-2.tar.gz)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
options=('nosrcpack')


slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"iscan"
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --sysconfdir=/etc --localstatedir=/var
	make || return 1
	make install DESTDIR=$startdir/pkg
	mkdir -p $startdir/pkg/usr/share/applications
	cp $startdir/src/$pkgname-$pkgver/iscan.desktop $startdir/pkg/usr/share/applications/
	echo Icon=scanner >> iscan.desktop
	mkdir -p $startdir/pkg/etc/sane.d
	cp $startdir/src/$pkgname-$pkgver/backend/epkowa.conf $startdir/pkg/etc/sane.d/
}
Maybe it can somehow be done with the help of the "sed" editor?

Re: The scanner Epson Perfection V33 [solved]

Posted: 17. Sep 2011, 16:19
by Andyun
I'm sorry, it's my mistake.

Code: Select all

pkgname=iscan
pkgver=2.26.4
pkgrel=111
source=(iscan_$pkgver-2.tar.gz)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
options=('nosrcpack')


slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"iscan (Image Scan! for Linux)"
"Image Scan! is a graphical scanner utility for people that do not"
"need all the bells and whistles provided by several of the other"
"utilities out there (xsane, QuiteInsane, Kooka)."
"At the moment it only supports SEIKO EPSON devices.  However, the"
"device driver it provides can be used by any other SANE standard"
"compliant scanner utility."
""
"Homepage: http://avasys.jp/eng/linux_driver/"
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --sysconfdir=/etc --localstatedir=/var
	make || return 1
	make install DESTDIR=$startdir/pkg
	mkdir -p $startdir/pkg/usr/share/applications
	cp $startdir/src/$pkgname-$pkgver/iscan.desktop $startdir/pkg/usr/share/applications/
	sed -i "s/^Name=.*/Name=Image Scan!/" $startdir/pkg/usr/share/applications/iscan.desktop
	echo Icon=scanner >> $startdir/pkg/usr/share/applications/iscan.desktop
	mkdir -p $startdir/pkg/etc/sane.d
	cp $startdir/src/$pkgname-$pkgver/backend/epkowa.conf $startdir/pkg/etc/sane.d/
}
I am very grateful to you! :)

Re: The scanner Epson Perfection V33 [solved]

Posted: 17. Sep 2011, 22:14
by Andyun
Weacan please, why the icon of the XSane program in the application menu is not displayed "xsane", but as "scanner" (as the program "Simple Scan"), although in the file "xsane.desktop" specified "Icon=xsane"?
Thank You!

Re: The scanner Epson Perfection V33 [solved]

Posted: 19. Sep 2011, 16:36
by Andyun
I found the solution! :)
I added to the xsane.SlackBuild (from http://ftp.osuosl.org/pub/slackware/sla ... xap/xsane/):

Code: Select all

mkdir -p $PKG/usr/share/icons/hicolor/32x32/apps/
cp $TMP/xsane-$VERSION/src/xsane-32x32.png $PKG/usr/share/icons/hicolor/32x32/apps/
sed -i "s/^Icon=.*/Icon=xsane-32x32/" $PKG/usr/share/applications/xsane.desktop