LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-23-2009, 08:49 AM   #1
lxme
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Rep: Reputation: 0
scanner work locally, but not remotely, normal behavior ?


Dear all,

This problem is starting to get on my nerves and I don't know if I should file a bug report or if I made a mistake somewhere:
Here is the situation:

2 PCs
- PC1 Headless server running Ubuntu 8.10 with a Canon canoscan Lide50 (USB)
- PC2 Desktop PC running Ubuntu 8.10

1) If I attach a monitor to PC1 and logon locally as *root* and from a terminal do:


Code:
root@PC1:/home/user# scanimage -L
device `plustek:libusb:001:002' is a Canon CanoScan N1240U/LiDE30 flatbed scanner
Scanner is OK

2) If I attach a monitor to PC1 and logon locally as *user* and from a terminal do:


Code:
user@PC1:/home/user# scanimage -L
device `plustek:libusb:001:002' is a Canon CanoScan N1240U/LiDE30 flatbed scanner
Scanner is OK

3) If I logon remotely to PC1 from PC2 via VNC or SSH as *root* and from a terminal do:

Code:
root@PC1:/home/user# scanimage -L
device `plustek:libusb:001:002' is a Canon CanoScan N1240U/LiDE30 flatbed scanner
Scanner is OK

4) If I logon remotely to PC1 from PC2 via VNC or SSH as *user* and from a terminal do:

Code:
user@PC1:~$ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
Scanner WON'T WORK


5) If I log on locally to PC1 *AND* If I logon remotely to PC1 from PC2 via VNC or SSH afterward as *user* and from a terminal do:

Code:
user@PC1:/home/user# scanimage -L
device `plustek:libusb:001:002' is a Canon CanoScan N1240U/LiDE30 flatbed scanner
Scanner is OK
The goal is of course to log on PC1 remotely and be able to use the scanner remotely without having to log on locally on PC1.
So, is this behavior normal, or did I miss something ?

Any help welcome

Last edited by lxme; 01-23-2009 at 11:39 AM.
 
Old 01-23-2009, 10:22 AM   #2
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
You're saying that it works as root but not as the user?

When you're logged in as a plain user run...
sudo scanimage -L
 
Old 01-23-2009, 11:37 AM   #3
lxme
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Original Poster
Rep: Reputation: 0
I am saying that it works as user but only if there is a local session open not when I log on remotely.

Code:
user@PC1:/home/user# scanimage -L
device `plustek:libusb:001:002' is a Canon CanoScan N1240U/LiDE30 flatbed scanner
 
Old 01-23-2009, 12:48 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,008

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
This is an odd situation and is "interesting". Thank you for the clear information you have provided so far.

I am thinking that this may be a permissions issue. I have a few questions -
Check this: ssh to PC1 and it cannot find the scanner (as your post #1). Start a local login to PC1, and check that the remote login can now find the scanner. Logout the local login, can the remote connection still find the scanner? What happens if you drop and then re-establish the ssh connection. Same behaviour?

What happens if you are not logged into PC1 locally, ssh to it from PC2 and then just issue the groups command?
Does it show that you (on PC1) are a member of the scanner group (on PC1)?

Does your username on PC1 have the same UID as your username on PC2? Find out your UID with the command echo $UID in a terminal on each machine.

What is the output of ls -al /dev/scanner ?
(Maybe your distro doesn't call it /dev/scanner - hunt around a bit if it is "not found")

That should be enough ideas for you to experiment with for now.

[Edit] Having slept on this problem, I realise that the error you are receiving is "No scanners were identified" and not "permission denied". So maybe the scanner isn't being recognised as being plugged-in and the device node ( probably /dev/scanner ) maybe isn't being created.
Please check to see if this is the case. If so, maybe we can make it be recognised with something like /etc/init.d/udev restart
[/Edit]

As an aside, I should advise that you should not allow ssh access to a user identifying themself as root. The proper way to do it is to ssh as yourself and then su / sudo to root if you need to be root.

Last edited by tredegar; 01-24-2009 at 03:01 AM.
 
  


Reply

Tags
remote, scanner, ssh, vnc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scanner Epson v100 can not work on normal user account ff1 Ubuntu 1 12-04-2008 03:48 PM
Can't get NIS/YP to work remotely, only locally ugenn Linux - Networking 1 03-07-2005 04:20 AM
tightVNC works locally but not remotely? mikeli Linux - Software 2 02-01-2005 04:48 AM
Reboots locally not remotely dolem98 Linux - Software 2 07-08-2004 09:05 AM
Reboots locally not remotely dolem98 Slackware 10 07-08-2004 02:28 AM


All times are GMT -5. The time now is 03:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration