Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: rename printer

  1. #1
    Join Date
    Sep 2006
    Location
    Devon, UK
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    rename printer

    Hi there

    ya me again, when I installed the drivers for my hp printer (networked)I seem to have made a mistake with its name, its for some reason now called 'n', erm, its it easy to change its name, I can't see that opion in the properties, is it possible to change its name to something more appropriate or do I have to reinstall it?

    Thanks.
    Kind Regards
    Leona
    MSI H77MA-G43, Intel I3-3225 3.3Ghz, 8Gb DDR3-1600 XMS RAM, 64Gb SSO (OS)+500Gb Seagate 2.5 HDD, Linux Mint 13, Mate, 64Bit.

  2. #2
    Join Date
    Sep 2006
    Location
    Devon, UK
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: rename printer

    erm ^bump^ anyone? sorry
    Kind Regards
    Leona
    MSI H77MA-G43, Intel I3-3225 3.3Ghz, 8Gb DDR3-1600 XMS RAM, 64Gb SSO (OS)+500Gb Seagate 2.5 HDD, Linux Mint 13, Mate, 64Bit.

  3. #3
    Join Date
    Oct 2007
    Location
    Chennai, India
    Beans
    3,798
    Distro
    Ubuntu Development Release

    Re: rename printer

    Quote Originally Posted by leona View Post
    Hi there
    seem to have made a mistake with its name, its for some reason now called 'n', erm, its it easy to change its name,
    backup and edit printers.conf file
    Code:
    sudo cp /etc/cups/printers.conf ~ 
    sudo gedit /etc/cups/printers.conf
    Look for a line
    <Printer n> or <DefaultPrinter n>
    and change the "n" to whatever you want. (No spaces or special characters except "_" allowed in the name). Then restart cups

    Code:
    sudo /etc/init.d/cupsys restart
    If something goes wrong, just put back the old file
    Code:
    sudo rm /etc/cups/printers.conf
    sudo cp ~/printers.conf /etc/cups/printers.conf
    sudo /etc/init.d/cupsys restart
    Cheers,PRShah
    Make your own: Ubuntu, Kubuntu, Xubuntu, Mythbuntu All-in-One Live DVD
    "I never make mistakes; I thought I did, once.. but I was wrong."

  4. #4
    Join Date
    Sep 2006
    Location
    Devon, UK
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: rename printer

    Thank you, that worked a trest xx
    Kind Regards
    Leona
    MSI H77MA-G43, Intel I3-3225 3.3Ghz, 8Gb DDR3-1600 XMS RAM, 64Gb SSO (OS)+500Gb Seagate 2.5 HDD, Linux Mint 13, Mate, 64Bit.

  5. #5
    Join Date
    Jul 2006
    Beans
    353

    Re: rename printer

    I renamed my printer by changing <Printer Deskjet_6980_series> to <Printer Deskjet>. After making this change and resetting the printer, it would not print a page properly (it spit out many pages with odd text). I tried rebooting and changing the DeviceURI, but that didn't help either.

    Code:
    <Printer Deskjet_6980_series>
    Info HP Deskjet 6980 series
    DeviceURI hp:/usb/Deskjet_6980_series?serial=MY76M1R0YX04YX
    State Idle
    StateTime 1210174825
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy retry-job

  6. #6
    Join Date
    Oct 2007
    Location
    Chennai, India
    Beans
    3,798
    Distro
    Ubuntu Development Release

    Re: rename printer

    Quote Originally Posted by noynac View Post
    I renamed my printer by changing <Printer Deskjet_6980_series> to <Printer Deskjet>. After making this change and resetting the printer, it would not print a page properly (it spit out many pages with odd text).
    Did you remember to restart cups after changing the name? There was no call to change the URI.

    Anyway, restore the backup copy, restart cups, and check if everything is OK. If it isn't maybe you should delete and reinstall the printer.
    Cheers,PRShah
    Make your own: Ubuntu, Kubuntu, Xubuntu, Mythbuntu All-in-One Live DVD
    "I never make mistakes; I thought I did, once.. but I was wrong."

  7. #7
    Join Date
    Oct 2007
    Location
    Chennai, India
    Beans
    3,798
    Distro
    Ubuntu Development Release

    Re: rename printer

    Quote Originally Posted by leona View Post
    Thank you, that worked a trest xx
    OK! Please mark the thread solved; click on "Thread Tools" _near_ the top right hand side of the page, then select "Mark Thread as Solved".
    Cheers,PRShah
    Make your own: Ubuntu, Kubuntu, Xubuntu, Mythbuntu All-in-One Live DVD
    "I never make mistakes; I thought I did, once.. but I was wrong."

  8. #8
    Join Date
    Jul 2006
    Beans
    353

    Re: rename printer

    Quote Originally Posted by prshah View Post
    Did you remember to restart cups after changing the name? There was no call to change the URI.

    Anyway, restore the backup copy, restart cups, and check if everything is OK. If it isn't maybe you should delete and reinstall the printer.
    I did restart cups and, just to be sure, rebooted the computer. This didn't help.

    I restored the backup copy which got things working again. The name thing is not a big one for me, so I'll just leave things as they are. Thanks for the response.

  9. #9
    Join Date
    Mar 2007
    Beans
    28
    Distro
    Ubuntu 11.04 Natty Narwhal

    Lightbulb Re: rename printer

    For manually changing the printer name in current Ubuntu (12.04),
    in addition to editing the name in /etc/cups/printers.conf
    you need to rename the respective .ppd file in /etc/cups/ppd/

    Alternatively, you may simply use the GUI.
    Go to System Settings -> Hardware|Printers,
    select the printer, click on its name, and edit it.

    You may also point your browser at http://localhost:631/printers
    to configure your printer, but I did not find a 'rename' option there.
    Last edited by dvo; May 16th, 2012 at 05:24 PM. Reason: minor typo fix

  10. #10
    Join Date
    Aug 2009
    Beans
    7

    Re: rename printer

    Same problem. Basically I need to do lot of renames and doing it manually in the conf file is time conusming as I have to rename the ppd files as well.

    Wondering by CUPS does not has rename option in the web gui.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •