openSUSEa suomeksi

openSUSE => Turvallisuus ja laitteisto => Aiheen aloitti: Blue Sentinel - 24.01.2007 - klo:00:56

Otsikko: Canon laser shot LBP 2900; sain toimimaan SuSE 10.2:ssa
Kirjoitti: Blue Sentinel - 24.01.2007 - klo:00:56
Hejssan!

Tämä on eka postini tälle foorumille. Ajattelin jakaa vähäiset tiedonmuruni toisille jotka ovat mahdollisesti painineen kyseisen tulostimen asennuksen kanssa. Pyydän jo etukäteen anteeksi jos juttuni kuulostavat itsestäänselviltä latteuksilta mutta minunlaisteni (ainakin melkein) noobien maailmassa sellaisia ei ole.

Pitemmittä puheitta:

A) Lataa Canonin virallinen ajuri sivulta
http://software.canon-europe.com/products/0010177.asp
(Canon CAPT printer driver for linux)

Tarvitset vain tiedoston driver.tar.gz
Tallenna se esim. kotihakemistoosi ja klikkaa sitä hiiren oikealla näppäimellä ja valitse Pura paketti / Pura paketti tähän
Nyt sinulla pitäisi olla kaksi rpm-tiedostoa.

B) Käynnistä pääteohjelma (konsole) ja mene kansioon jossa nuo rpm-tiedostot ovat ja toimi Canonin ohjeiden mukaan. Ohjeet löytyvät siis Canonin sivuilta mutta kopsasin ne tähän mukavuuden vuoksi. Itselläni oli printteri päällä ajureita asennettaessa mutta en tiedä onko se välttämätöntä...

HUOM! Kohdissa 2) ja 3) käytä tietenkin tiedostojen oikeita nimiä; esim. cndrvcups-common-1.30-1.i386.rpm ja cndrvcups-capt-1.30-1.i386.rpm eikä noita x-x -juttuja. Niinikään itsestäänselvyys lienee että korvaat kohdissa 5) ja 6) LBP5000:n LBP2900:lla...

HUOM! Kohdassa 6) Network Connection:in alapuolella olevia juttuja ei tarvitse myöskään tehdä jos et käytä tulostintasi verkkotulostimena.

1
Start Linux after installation, and log in as 'root'.
$ su
2
Install the common module for CUPS driver.
Enter the following rpm command:
# rpm -ivh cndrvcups-common-1.3x-x.i386.rpm
Note
When you execute the rpm command from a directory, specify the path or use the cd command to change the current directory to the directory containing the printer driver files.
For details about the rpm command, enter "man rpm" with the terminal software, such as GNOME Terminal.
3
Install the CAPT printer driver module.
Enter the following rpm command:
# rpm -ivh cndrvcups-capt-1.3x-x.i386.rpm
4
Restart CUPS.
Enter the following command:
# /etc/init.d/cups restart
Note
Do not register the printer using the "lpadmin" command before restarting CUPS.
5
Register the printer (PPD) with the print spooler.
Enter the following command:
# /usr/sbin/lpadmin -p [printer name] -m [PPD file name] -v ccp:/var/ccpd/fifo0 -E
Example: To register the LBP5000 in the print spooler as "LBP5000":
/usr/sbin/lpadmin -p LBP5000 -m CNCUPSLBP5000CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E
Note
For the PPD file corresponding to your printer, refer to "Supported Canon Products" of "1. Introduction".
6
Register the printer in the ccpd daemon setup file.
USB Connection
Enter the following rpm command:
# /usr/sbin/ccpdadmin -p [Printer Name] -o [Printer Device Path]
Example: To register LBP5000 in the ccpd daemon setup file:
/usr/sbin/ccpdadmin -p LBP5000 -o /dev/usb/lp0
Network Connection
Enter the following rpm command:
# /usr/sbin/ccpdadmin -p [Printer Name] -o net:[IP address]
Example: To register LBP5000 in the ccpd daemon setup file (IP address: 172.23.2.72):
/usr/sbin/ccpdadmin -p LBP5000 -o net:172.23.2.72
Note
In a LAN environment where IP addresses have been assigned, if the status of the printer cannot be displayed, the CUPS security settings must be changed. Add the set IP address to the following items in the cupsd.conf file (/etc/cups/cupsd.conf), and restart CUPS.
<Location />
<Location /admin>
Example:
:
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From XXX.XXX.XXX. (Substitute the set IP address here.)
</Location>
:
<Location /admin>
:
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From XXX.XXX.XXX.XXX(Substitute the set IP address here.)
:
</Location>
For information about the security settings for networks, refer to the "CUPS Software Administrators Manual" at http://www.cups.org/sam.html.
7
Start ccpd daemon.
Enter the following command.
# /etc/init.d/ccpd start
Note
It would be convenient to set ccpd daemon to start automatically when Linux starts up.

C) Jotta et joutuisi joka käynnistyskerralla antamaan tuota kohdassa 7) mainittua komentoa sinun täytyy muokata boot.local -nimistä tiedostoa. (lisätietoja esim. http://www.novell.com/documentation/suse10/index.html?page=/documentation/suse10/adminguide/data/sec_boot_init.html; siellä sanotaan mm. "boot.local
Here, enter additional commands to execute at boot before changing into a runlevel. It can be compared to AUTOEXEC.BAT on DOS systems." ja "Last executed is the script boot.local"
Minulle tämä oli ainakin ihan uutta tietoa...)

Mene siis kansioon /etc/init.d:
cd /etc/init.d

Editoi boot.local -tiedostoa vi-editorilla:
vi boot.local

Paina Insert-näppäintä jotta pääset muokkaustilaan. Siirry nuolinäppäimillä #-alkuisten kommenttirivien alapuolelle ja lisää sinne (tietenkin ilman #-merkkiä) rivi
/etc/init.d/ccpd start

Paina Esc-näppäintä jotta pääset pois muokkaustilasta. Kirjoita sitten :wq ja paina Enter-näppäintä niin tekemäsi muutokset tallentuvat ja tiedosto sulkeutuu.

Nonnih; nyt kaiken pitäisi toimia ongelmitta myös seuraavilla käynnistyskerroilla...