Go Back   TechArena Community > Technology > Networking & Security
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 02-04-2012
Member
 
Join Date: Jan 2012
Posts: 62
I need to share a scanner on my network in Karmic Koala/Lucid Lynx

as I am not finding any means in performing the procedure as denoted in the title and so can you help me as I think this is a possible case and it would be easy to do that if you are able to solve it. So I need to share a scanner on your network in Karmic Koala/Lucid Lynx and suggest some means for the same.
Reply With Quote
  #2  
Old 02-04-2012
Member
 
Join Date: Aug 2011
Posts: 315
Re: I need to share a scanner on my network in Karmic Koala/Lucid Lynx

I will provide some solution which will help you in your case, so to start regarding the topic, you need to make sure first your scanner is installed properly and it is functioning fully. If you require to install your scanner first, have a look at the ScanningHowTo. And to make sure if your scanner has a proper connection along with checking the installation properly you can make use of the command "scanimage -L".
Reply With Quote
  #3  
Old 02-04-2012
Member
 
Join Date: Aug 2011
Posts: 308
Re: I need to share a scanner on my network in Karmic Koala/Lucid Lynx

I was also concerning to the same case and I need to say that you have to install some more packages so as to enable what you wish to.
So, you need to install the package sane-utils:

Code:
sudo apt-get install sane-utils
and then you need to make an installation of server-side setup, you need to open /etc/default/saned with a text editor and write the following code.
Code:
gksudo gedit /etc/default/saned
after this , you will require to set RUN to yes and save and exit the file. And as a result , you will be with that the file will look like this:
Code:
# Defaults for the saned initscript, from sane-utils

# Set to yes to start saned
RUN=yes

# Set to the user saned should run as
RUN_AS_USER=saned
Then you will require to open /etc/sane.d/saned.conf with a text editor, here is the code you need to enter.
Code:
gksudo gedit /etc/sane.d/saned.conf
you need to locate the following section and modify it bymaking use of the ip and netmask settings of your scanner server. as well amend if you only wish for certain hosts to be able to make use of the scanner:


Code:
## Access list
# A list of host names, IP addresses or IP subnets (CIDR notation) that
# are permitted to use local SANE devices. IPv6 addresses must be enclosed
# in brackets, and should always be specified in their compressed form.
#
# The hostname matching is not case-sensitive.

#scan-client.somedomain.firm
#192.168.0.1
192.168.1.0/24
#[2001:7a8:185e::42:12]
#[2001:7a8:185e::42:12]/64
Then have a restart of the saned daemon:

Code:
sudo service saned restart
and then make an addition of the saned user to the lp group so it is able to access the scanner:

Code:
sudo adduser saned lp
Reply With Quote
  #4  
Old 02-04-2012
Member
 
Join Date: Aug 2011
Posts: 375
Re: I need to share a scanner on my network in Karmic Koala/Lucid Lynx

It has also been seen that you will require to make an Client-side setup so as to complete your entire process. And here is some solution with which you can try with.
On every client computer you wish for to give access to the scanner, you will require to open the /etc/sane.d/net.conf with a text editor:
gksudo gedit /etc/sane.d/net.conf

after this , moreover , you also require to add the ip-address or hostname to the end of the file.

Code:
## saned hosts
# Each line names a host to attach to.
# If you list "localhost" then your backends can be accessed either
# directly or through the net backend.  Going through the net backend
# may be necessary to access devices that need special privileges.
# localhost
192.168.1.1
And this is the only process you require to perform as you should now be able to access the scanner by making use of Simple Scan, XSane, and so on.
Reply With Quote
  #5  
Old 02-04-2012
Member
 
Join Date: Aug 2011
Posts: 306
Re: I need to share a scanner on my network in Karmic Koala/Lucid Lynx

I made some several tries in this case and there were no errors while installing the above process , but still I was not able to have a proper connection between the devices , so I found some more information and it came in my notice that there are more things to consider and the above process is somewhat incomplete. So here is what I found , to make an installation of Web interface. In order to provide a web interface for your scanner you need to make an installation of the packages netpbm tesseract-ocr-eng apache2:

Code:
sudo apt-get install netpbm tesseract-ocr-eng apache2
Reply With Quote
  #6  
Old 02-04-2012
Member
 
Join Date: Jul 2011
Posts: 227
Re: I need to share a scanner on my network in Karmic Koala/Lucid Lynx

Yes, it said correctly by the previous post that performing only client and server setup are not essential for making an connection with the scanner and you also need to configure the web server:As you require to setup Apache2 so that it allows CGI scripts to run:


Code:
echo 'AddHandler cgi-script .cgi' | sudo tee -a /etc/apache2/apache2.conf
after this code, allow CGI scripts to be executed in /var/www/below is the code to do so.

Code:
sudo sed -i.bak 's/FollowSymLinks MultiViews/FollowSymLinks MultiViews ExecCGI/g' /etc/apache2/sites-available/default
And then you need to restart the apache2 web server, code mentioned here.


Code:
sudo service apache2 restart
Reply With Quote
  #7  
Old 02-04-2012
Member
 
Join Date: Nov 2010
Posts: 363
Re: I need to share a scanner on my network in Karmic Koala/Lucid Lynx

You also require to install the scanner server:
And you need to change to the /var/www/ folder:


Code:
cd /var/www
you also require to download the scan server archive:


Code:
sudo wget
you need to unzip the archive further.


Code:
sudo tar xvf scan*.tar
then the next step is to delete the archive:


Code:
sudo rm scan*.tar
Reply With Quote
  #8  
Old 02-04-2012
Member
 
Join Date: Nov 2010
Posts: 442
Re: I need to share a scanner on my network in Karmic Koala/Lucid Lynx

At last you also require to connect to scanner server. You are also able to access the server by making use of its ip address following by /scan. In our case:

Code:
http://192.168.1.1/scan
Reply With Quote
  #9  
Old 02-04-2012
Member
 
Join Date: Dec 2010
Posts: 334
Re: I need to share a scanner on my network in Karmic Koala/Lucid Lynx

I tried with the above solutions but , I suppose that a bit of them are not working. But , I managed to fix the printer. Port forwarding 6566 (sane-port) and by making use of easy scan/xsane is not a fine thought, at least for my hp psc 2410xi. It will not scan but will turn something up on the scanner and it will not locate the end of the scanner bay. I am making use of the beta server scripts and I went through the source along with saw this in inc/header.inc


Code:
<div id="tab">
<a href="index.cgi?page=config">Configure</a>
</div>

<div id="tab">
<a href="index.cgi?page=scans">Recent Scans</a>
</div>

<div id="tab">
<a href="index.cgi?page=scan">Scan Image</a>
</div>

<div id="tab">
<a href="http://$$SERVER_NAME">$$SERVER_NAME</a>
</div>
ids are supposed to me unique use a class attribute rather than of a id attribute. as well update inc/style.css along with config/style.css to make use of a class and not a id . in addition in my view adding a border radius to the tabs look better in this case.
css:


Code:
  -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -o-border-radius: 5px;
Reply With Quote
  #10  
Old 02-04-2012
Member
 
Join Date: Mar 2011
Posts: 489
Re: I need to share a scanner on my network in Karmic Koala/Lucid Lynx

I can get with what you are saying in the previous posts but I don?t have enough knowledge regarding the html/Javascript. I noticed there were some cosmetic issues but didn't know some means to fix them. for instance, there is supposed to be a progress bar displayed at the time of scans but it is not able to show. But some developer guy suggested starting with the beta tarball, and then he told me to add my patch, then make diffs of your changes with:
Code:
diff -uN <original file> <modified file> >update.patch
So after this all was working fine in our case.
Reply With Quote
Reply

  TechArena Community > Technology > Networking & Security
Tags: , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "I need to share a scanner on my network in Karmic Koala/Lucid Lynx"
Thread Thread Starter Forum Replies Last Post
How to Optimize Ubuntu 10.4 ( Lucid Lynx ) for Dell Mini 9 with SSD Armando-H Tips & Tweaks 3 01-07-2010 01:20 AM
Lucid Lynx to Ubuntu upgrade anughellboy Operating Systems 2 27-04-2010 10:39 AM
When is Lucid Lynx coming out? UbuntU-ME Operating Systems 5 11-12-2009 09:43 AM
Karmic Koala Alpha 5 released Solomon Operating Systems 2 04-09-2009 04:59 PM
Ubuntu 9.10 - The Karmic Koala Alpha 1 Rudra.J Operating Systems 3 14-05-2009 09:37 PM


All times are GMT +5.5. The time now is 08:31 PM.