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.
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".
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
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.
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
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
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:
you also require to download the scan server archive:
you need to unzip the archive further.
Code:
sudo tar xvf scan*.tar
then the next step is to delete the archive:
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
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;
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.