About Printer install with terminal












1















You can please tell me the command how can i install printer with terminal.
But i can ask my friends he can tell me we are only install with printer GUI.










share|improve this question














bumped to the homepage by Community 4 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • I would expect you to at least tell us brand and ip it is connected to.

    – Rinzwind
    Feb 19 '16 at 15:37
















1















You can please tell me the command how can i install printer with terminal.
But i can ask my friends he can tell me we are only install with printer GUI.










share|improve this question














bumped to the homepage by Community 4 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • I would expect you to at least tell us brand and ip it is connected to.

    – Rinzwind
    Feb 19 '16 at 15:37














1












1








1








You can please tell me the command how can i install printer with terminal.
But i can ask my friends he can tell me we are only install with printer GUI.










share|improve this question














You can please tell me the command how can i install printer with terminal.
But i can ask my friends he can tell me we are only install with printer GUI.







printing






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 19 '16 at 15:26









Bhupender SharmaBhupender Sharma

613




613





bumped to the homepage by Community 4 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 4 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • I would expect you to at least tell us brand and ip it is connected to.

    – Rinzwind
    Feb 19 '16 at 15:37



















  • I would expect you to at least tell us brand and ip it is connected to.

    – Rinzwind
    Feb 19 '16 at 15:37

















I would expect you to at least tell us brand and ip it is connected to.

– Rinzwind
Feb 19 '16 at 15:37





I would expect you to at least tell us brand and ip it is connected to.

– Rinzwind
Feb 19 '16 at 15:37










1 Answer
1






active

oldest

votes


















0














You need to find the PPD for your printer and install it (the /lpd/ dir is not created by default on Ubuntu; so if it is not yet there create it).



sudo mkdir -p /var/spool/lpd/
sudo dpkg --install {printerfile}.deb


The command to add a printer is



lpadmin


But you will need to add a lot of options to this command that are specific to your printer. Help will show you:



    lpadmin [-h server] -d destination
lpadmin [-h server] -x destination
lpadmin [-h server] -p printer [-c add-class] [-i interface] [-m model]
[-r remove-class] [-v device] [-D description]
[-P ppd-file] [-o name=value]
[-u allow:user,user] [-u deny:user,user]


You will need at least a name and an IP. Without any more information about the printer a detailed answer is unlikely.






  • lpinfo -m should show make and model



  • shortest version:



    lpadmin -p '{name}' -v 'socket://{ip}' -m '{make}{model}' -P '{path/to/the/printer.ppd}'





The GUI is a lot easier though. It has several automated settings (like scanning for printers).






share|improve this answer


























  • thaks for your help

    – Bhupender Sharma
    Feb 29 '16 at 15:27











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f736695%2fabout-printer-install-with-terminal%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














You need to find the PPD for your printer and install it (the /lpd/ dir is not created by default on Ubuntu; so if it is not yet there create it).



sudo mkdir -p /var/spool/lpd/
sudo dpkg --install {printerfile}.deb


The command to add a printer is



lpadmin


But you will need to add a lot of options to this command that are specific to your printer. Help will show you:



    lpadmin [-h server] -d destination
lpadmin [-h server] -x destination
lpadmin [-h server] -p printer [-c add-class] [-i interface] [-m model]
[-r remove-class] [-v device] [-D description]
[-P ppd-file] [-o name=value]
[-u allow:user,user] [-u deny:user,user]


You will need at least a name and an IP. Without any more information about the printer a detailed answer is unlikely.






  • lpinfo -m should show make and model



  • shortest version:



    lpadmin -p '{name}' -v 'socket://{ip}' -m '{make}{model}' -P '{path/to/the/printer.ppd}'





The GUI is a lot easier though. It has several automated settings (like scanning for printers).






share|improve this answer


























  • thaks for your help

    – Bhupender Sharma
    Feb 29 '16 at 15:27
















0














You need to find the PPD for your printer and install it (the /lpd/ dir is not created by default on Ubuntu; so if it is not yet there create it).



sudo mkdir -p /var/spool/lpd/
sudo dpkg --install {printerfile}.deb


The command to add a printer is



lpadmin


But you will need to add a lot of options to this command that are specific to your printer. Help will show you:



    lpadmin [-h server] -d destination
lpadmin [-h server] -x destination
lpadmin [-h server] -p printer [-c add-class] [-i interface] [-m model]
[-r remove-class] [-v device] [-D description]
[-P ppd-file] [-o name=value]
[-u allow:user,user] [-u deny:user,user]


You will need at least a name and an IP. Without any more information about the printer a detailed answer is unlikely.






  • lpinfo -m should show make and model



  • shortest version:



    lpadmin -p '{name}' -v 'socket://{ip}' -m '{make}{model}' -P '{path/to/the/printer.ppd}'





The GUI is a lot easier though. It has several automated settings (like scanning for printers).






share|improve this answer


























  • thaks for your help

    – Bhupender Sharma
    Feb 29 '16 at 15:27














0












0








0







You need to find the PPD for your printer and install it (the /lpd/ dir is not created by default on Ubuntu; so if it is not yet there create it).



sudo mkdir -p /var/spool/lpd/
sudo dpkg --install {printerfile}.deb


The command to add a printer is



lpadmin


But you will need to add a lot of options to this command that are specific to your printer. Help will show you:



    lpadmin [-h server] -d destination
lpadmin [-h server] -x destination
lpadmin [-h server] -p printer [-c add-class] [-i interface] [-m model]
[-r remove-class] [-v device] [-D description]
[-P ppd-file] [-o name=value]
[-u allow:user,user] [-u deny:user,user]


You will need at least a name and an IP. Without any more information about the printer a detailed answer is unlikely.






  • lpinfo -m should show make and model



  • shortest version:



    lpadmin -p '{name}' -v 'socket://{ip}' -m '{make}{model}' -P '{path/to/the/printer.ppd}'





The GUI is a lot easier though. It has several automated settings (like scanning for printers).






share|improve this answer















You need to find the PPD for your printer and install it (the /lpd/ dir is not created by default on Ubuntu; so if it is not yet there create it).



sudo mkdir -p /var/spool/lpd/
sudo dpkg --install {printerfile}.deb


The command to add a printer is



lpadmin


But you will need to add a lot of options to this command that are specific to your printer. Help will show you:



    lpadmin [-h server] -d destination
lpadmin [-h server] -x destination
lpadmin [-h server] -p printer [-c add-class] [-i interface] [-m model]
[-r remove-class] [-v device] [-D description]
[-P ppd-file] [-o name=value]
[-u allow:user,user] [-u deny:user,user]


You will need at least a name and an IP. Without any more information about the printer a detailed answer is unlikely.






  • lpinfo -m should show make and model



  • shortest version:



    lpadmin -p '{name}' -v 'socket://{ip}' -m '{make}{model}' -P '{path/to/the/printer.ppd}'





The GUI is a lot easier though. It has several automated settings (like scanning for printers).







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 19 '16 at 15:44

























answered Feb 19 '16 at 15:37









RinzwindRinzwind

208k28399529




208k28399529













  • thaks for your help

    – Bhupender Sharma
    Feb 29 '16 at 15:27



















  • thaks for your help

    – Bhupender Sharma
    Feb 29 '16 at 15:27

















thaks for your help

– Bhupender Sharma
Feb 29 '16 at 15:27





thaks for your help

– Bhupender Sharma
Feb 29 '16 at 15:27


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f736695%2fabout-printer-install-with-terminal%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

香粉寮

GameSpot