The scanner Epson Perfection V33 [OK]

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: The scanner Epson Perfection V33 [solved]

Post 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).
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Re: The scanner Epson Perfection V33 [solved]

Post by Andyun »

Yes, it works! I am very grateful to you! :)
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Re: The scanner Epson Perfection V33 [solved]

Post 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?
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: The scanner Epson Perfection V33 [solved]

Post 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
Image
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Re: The scanner Epson Perfection V33 [solved]

Post 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?
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Re: The scanner Epson Perfection V33 [solved]

Post 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! :)
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Re: The scanner Epson Perfection V33 [solved]

Post 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!
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Re: The scanner Epson Perfection V33 [solved]

Post 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
Post Reply