TranslationStatus
Attachment '20070915_connecting_to_printers_en.srt'
Download1 00:00:00,265 --> 00:00:00,379 2 00:00:01,412 --> 00:00:03,615 This is Alan Pope with the fifteenth screencast 3 00:00:03,725 --> 00:00:05,806 in the Ubuntu Month of Screencasts. 4 00:00:05,906 --> 00:00:09,222 All the screencasts from this month can be downloaded for free from our website, 5 00:00:09,322 --> 00:00:12,283 which is screencasts.ubuntu.com 6 00:00:12,624 --> 00:00:16,470 In this screencast we're going to look at setting up printers on Ubuntu. 7 00:00:16,570 --> 00:00:19,278 We are going to look at four different ways to set up a printer. 8 00:00:19,378 --> 00:00:22,997 The first way is using Ubuntu 7.10, 9 00:00:23,097 --> 00:00:26,754 which is not out yet, but it will be very shortly. 10 00:00:26,917 --> 00:00:32,282 Now what I've done here is I've just plugged an HP DeskJet printer into the machine 11 00:00:32,382 --> 00:00:35,356 and you can see a little icon appears on the toolbar. 12 00:00:35,456 --> 00:00:40,949 And very shortly afterwards it tells me the DeskJet 970c is ready for printing. 13 00:00:41,049 --> 00:00:43,008 So it auto-detects the printer, 14 00:00:43,108 --> 00:00:46,259 installs the driver and installs the printer... done. 15 00:00:46,460 --> 00:00:49,124 No user intervention required. 16 00:00:49,572 --> 00:00:53,621 If I hit configure I am taken to the printer configuration screen, 17 00:00:53,721 --> 00:00:57,125 you can see here it's detected the manufacturer of the printer, 18 00:00:57,225 --> 00:00:59,516 set it as a local device. 19 00:00:59,616 --> 00:01:02,956 It's detected the connection that we've made to the printer, 20 00:01:03,056 --> 00:01:04,942 which is a USB connection. 21 00:01:05,042 --> 00:01:07,497 And if I want to I can make this the default printer 22 00:01:07,597 --> 00:01:09,711 and print a test page. 23 00:01:09,988 --> 00:01:13,038 And all the other kind of useful diagnostic tools. 24 00:01:13,631 --> 00:01:16,504 We also have various settings for the printer. 25 00:01:16,642 --> 00:01:18,982 Including enabling and disabling the printer, 26 00:01:19,082 --> 00:01:20,994 allowing it to receive jobs, 27 00:01:21,094 --> 00:01:23,978 configuring who is able to access the printer. 28 00:01:24,078 --> 00:01:27,773 Maybe if this was a color printer and expensive color cartridges, 29 00:01:27,873 --> 00:01:30,064 we could restrict who has access to print to it. 30 00:01:30,531 --> 00:01:33,365 We also have the ability to change standard options 31 00:01:33,477 --> 00:01:36,185 like the paper size, and the print out mode. 32 00:01:36,285 --> 00:01:39,714 This is useful if you want to print photos or high quality prints. 33 00:01:39,814 --> 00:01:44,365 But on other occasions you want to print draft quality. 34 00:01:44,465 --> 00:01:48,301 This printer has a duplex unit, so it can print double-sided. 35 00:01:48,401 --> 00:01:52,237 And here we can choose what the default for double-sided printing is. 36 00:01:52,536 --> 00:01:56,254 We can also choose in a bit more detail, the settings 37 00:01:56,354 --> 00:02:00,362 or control the settings how output appears on the page. 38 00:02:00,462 --> 00:02:02,823 If we leave it as controlled by print out mode, 39 00:02:02,923 --> 00:02:05,619 then we just need to use these high level options here. 40 00:02:05,719 --> 00:02:10,676 So for example printing photos, I choose the bottom option. 41 00:02:10,776 --> 00:02:12,966 And there are some more advanced options at the end, 42 00:02:13,066 --> 00:02:15,066 like how many copies of each print out we get, 43 00:02:15,166 --> 00:02:17,987 the orientation and whether we're going to scale the image 44 00:02:18,087 --> 00:02:20,421 or mirror the image as well. 45 00:02:21,290 --> 00:02:23,795 But in essence all I did was plug the printer in 46 00:02:23,895 --> 00:02:26,112 and it was detected and installed. 47 00:02:26,212 --> 00:02:30,609 And I can test printing by just going to any application, 48 00:02:30,709 --> 00:02:33,169 like the text editor. 49 00:02:34,210 --> 00:02:37,657 Type something in, go to File -> Print 50 00:02:37,757 --> 00:02:40,642 and you can see here it lists all the printers I have available, 51 00:02:40,742 --> 00:02:43,556 including my DeskJet printer. 52 00:02:43,656 --> 00:02:49,039 I can change the default options using these various tabs and buttons. 53 00:02:49,139 --> 00:02:51,644 And if I want to print, I just press the Print button. 54 00:02:51,744 --> 00:02:55,408 As soon as I do that you can see the printer icon on the toolbar lights up 55 00:02:55,508 --> 00:02:58,593 and if I click on it, you can see the print queue. 56 00:02:58,693 --> 00:03:00,919 There's my job waiting to go to the printer 57 00:03:01,019 --> 00:03:03,615 and when it's finished it'll disappear. 58 00:03:03,715 --> 00:03:07,333 When that disappears you'll see the printer icon on the toolbar goes gray 59 00:03:07,433 --> 00:03:09,334 and you can see it says no documents queued. 60 00:03:09,434 --> 00:03:12,834 So there's nothing waiting for that printer, it's printed successfully. 61 00:03:14,852 --> 00:03:20,380 So that's installing a local printer under Gutsy, version 7.10 of Ubuntu. 62 00:03:20,480 --> 00:03:24,507 I'm now switched to another machine, which is running version 7.04, 63 00:03:24,607 --> 00:03:26,644 also known as Feisty Fawn. 64 00:03:26,744 --> 00:03:31,364 And I'll try three different ways of configuring network attached printers. 65 00:03:31,464 --> 00:03:34,314 First of all let's just check we have a network connection. 66 00:03:34,414 --> 00:03:39,109 This particular machine has two network cards, of which I'm only using one. 67 00:03:39,969 --> 00:03:44,465 If I right-click the little Network Manager icon and choose Connection Information, 68 00:03:44,565 --> 00:03:49,922 you can see here I have a network address, 192.168.x.x 69 00:03:50,022 --> 00:03:55,151 It doesn't really matter, I know I'm connected to the Internet, my network rather. 70 00:03:55,911 --> 00:04:00,154 Now if I go to System -> Administration -> Printing, 71 00:04:01,575 --> 00:04:03,629 there are no printers on this particular machine 72 00:04:03,729 --> 00:04:08,189 and to add a new one all I do is double-click New printer. 73 00:04:08,289 --> 00:04:11,686 Of course Ubuntu supports multiple printers of different types, 74 00:04:11,786 --> 00:04:15,029 I just don't have any on this particular machine. 75 00:04:15,708 --> 00:04:18,793 Now creating a printer is an administrative task. 76 00:04:18,893 --> 00:04:23,063 I'm making a change to the system, it's going to be reflected for all users, 77 00:04:23,163 --> 00:04:27,714 so I need to enter my password to prove that I'm authorized to do this. 78 00:04:28,158 --> 00:04:31,089 It does a little scan of the printer database 79 00:04:31,722 --> 00:04:35,376 and then we get to step 1 of 3 for creating a new printer. 80 00:04:35,476 --> 00:04:37,322 We have a number of options here. 81 00:04:37,422 --> 00:04:41,249 The first option that's ticked is Local or Detected Printer. 82 00:04:41,349 --> 00:04:45,719 Local would obviously be if the printer was physically plugged into this machine, 83 00:04:45,819 --> 00:04:48,270 which in this particular case it isn't. 84 00:04:48,370 --> 00:04:52,649 Detected Printer is a printer that, well, it's detected on the network. 85 00:04:52,749 --> 00:04:56,884 a little bit further down the screen you can see it's detected a Genicom microLaser, 86 00:04:56,984 --> 00:04:58,910 which is my printer. 87 00:04:59,010 --> 00:05:01,552 Alternatively I can manually choose, Network Printer 88 00:05:01,652 --> 00:05:05,425 and choose one of the various protocols for connecting to printers. 89 00:05:05,525 --> 00:05:09,605 If I had a HP printer with a JetDirect card or compatible, I could choose that. 90 00:05:09,705 --> 00:05:13,676 If it was a Unix printer or a Windows printer, I could choose these middle options. 91 00:05:13,776 --> 00:05:18,916 And if it was another Linux system, perhaps running CUPS, the printer system, 92 00:05:19,016 --> 00:05:22,308 then I could print to that remote printer as well. 93 00:05:22,408 --> 00:05:25,981 We'll look at one of those options, in fact two of them a bit later. 94 00:05:26,081 --> 00:05:29,049 For now I'll just choose dedicated printer 95 00:05:29,149 --> 00:05:31,582 and I'll choose the printer that it's already detected. 96 00:05:31,682 --> 00:05:35,690 That printer happens to be switched on, it's on my local LAN, on the floor next to my desk 97 00:05:35,790 --> 00:05:40,223 and you can see here it knows the network address of that printer. 98 00:05:40,323 --> 00:05:43,779 And in fact I can show you the printer, I have got my webcam pointing at it. 99 00:05:43,879 --> 00:05:48,347 There it is, that's my printer on the floor. 100 00:05:49,823 --> 00:05:52,998 So that's step 1, it's detected the printer, I haven't had to do anything at all. 101 00:05:53,098 --> 00:05:57,413 I just double-clicked New printer, it detected the printer and I clicked forward. 102 00:05:57,531 --> 00:06:01,449 The next thing I do is find the printer on the manufacturer list. 103 00:06:01,549 --> 00:06:05,014 Now my printer happens to be some weird, wacky manufacturer, 104 00:06:05,114 --> 00:06:07,058 so it's not actually listed here. 105 00:06:07,158 --> 00:06:11,013 But I've looked in the manual and it says that it's postscript compatible, 106 00:06:11,113 --> 00:06:13,320 so I'll choose Generic 107 00:06:13,420 --> 00:06:16,930 and then in the bottom half of the screen you can see the Generic printer drivers. 108 00:06:17,030 --> 00:06:19,888 and postscript is listed down the bottom. 109 00:06:19,988 --> 00:06:23,915 I choose postscript and then at the very bottom there is a driver option. 110 00:06:24,015 --> 00:06:26,855 There may be multiple options in this list. 111 00:06:27,570 --> 00:06:29,949 I'll just choose the recommended one. 112 00:06:30,049 --> 00:06:36,497 If there is no driver then possibly you can install a driver on the system with this Install driver button. 113 00:06:36,672 --> 00:06:39,703 I then hit forward to the last step. 114 00:06:39,893 --> 00:06:44,580 I can give my printer a name to differentiate it from any other printers on my network 115 00:06:44,680 --> 00:06:47,375 or maybe connected to my machine. 116 00:06:48,199 --> 00:06:52,713 So mine is a PageMaster 210n, so I'll fill that in. 117 00:06:52,813 --> 00:06:54,922 You can give it a description as well 118 00:06:55,031 --> 00:06:57,038 and also specify the location. 119 00:06:57,138 --> 00:06:59,264 In a corporate environment this is obviously useful, 120 00:06:59,364 --> 00:07:02,051 having a description and location you could specify, 121 00:07:02,151 --> 00:07:04,992 which floor or whose office the printer is in 122 00:07:05,092 --> 00:07:08,330 or which room it's near or something like that. 123 00:07:08,792 --> 00:07:11,569 For me I don't need to specify that much detail. 124 00:07:11,669 --> 00:07:15,423 I hit finish and there we go, we've got a printer. 125 00:07:15,759 --> 00:07:19,260 If you right-click the printer and choose Properties, 126 00:07:20,156 --> 00:07:23,983 or rather right-click and choose Make default, it makes it the default printer. 127 00:07:24,083 --> 00:07:26,263 And then right-click Properties, 128 00:07:26,363 --> 00:07:30,506 You can see some of the options to do with that printer. 129 00:07:31,954 --> 00:07:35,136 These are all the settings it picked up when I added the printer. 130 00:07:35,237 --> 00:07:37,239 If you click Become Administrator, 131 00:07:37,339 --> 00:07:40,178 then it gives you the ability to make changes to this screen, 132 00:07:40,278 --> 00:07:44,114 but only if you've got the rights to do that on this system. 133 00:07:45,476 --> 00:07:47,416 I can print a test page. 134 00:07:47,516 --> 00:07:49,823 and if we grab the webcam 135 00:07:50,882 --> 00:07:53,253 There is the test page coming out of the printer 136 00:07:53,353 --> 00:07:55,433 If we turn it over, 137 00:07:55,533 --> 00:07:58,350 you can see, sure enough, it's an Ubuntu test page. 138 00:07:58,450 --> 00:08:01,920 If you've got a color printer then those little blocks come out in color. 139 00:08:03,694 --> 00:08:08,516 So that was successful, three steps and we've got a printer and I can print a test page. 140 00:08:08,616 --> 00:08:10,977 Obviously there are options that I can change. 141 00:08:11,077 --> 00:08:13,818 paper size, which tray is used, 142 00:08:13,918 --> 00:08:17,049 and whether the printer is doing duplex or simplex printing, 143 00:08:17,149 --> 00:08:20,459 that's two sided or single sided printing. 144 00:08:20,911 --> 00:08:22,940 And there may be some advanced options, 145 00:08:23,040 --> 00:08:26,991 depending upon your printer, there may be further options on this advanced tab. 146 00:08:30,765 --> 00:08:32,967 That's it, that's all I needed to do. 147 00:08:33,067 --> 00:08:36,672 So that was the automatic network detection of my printer. 148 00:08:36,772 --> 00:08:38,962 Let's go through the same process again, 149 00:08:39,062 --> 00:08:42,716 but this time I'll add a printer and I'll manually add the printer. 150 00:08:42,816 --> 00:08:46,860 So perhaps for some reason it's not automatically detected. 151 00:08:47,503 --> 00:08:49,828 I don't know under what circumstances that would happen, 152 00:08:49,928 --> 00:08:53,103 but just in case it does, you can add your new printer 153 00:08:53,203 --> 00:08:56,360 and actually specify it's a network printer. 154 00:08:58,415 --> 00:09:00,930 And then choose how you want to connect to the printer, 155 00:09:01,030 --> 00:09:03,001 using which protocol. 156 00:09:03,101 --> 00:09:05,960 Now my printer has a network card in the back of it, 157 00:09:06,060 --> 00:09:08,647 so I'm going to choose this option. 158 00:09:08,802 --> 00:09:13,380 And I type in the network address that my printer is known as on my network. 159 00:09:13,669 --> 00:09:16,736 So this is the TCP/IP network address 160 00:09:16,836 --> 00:09:20,039 and the default port for Jet-Direct cards is 9100, 161 00:09:20,139 --> 00:09:22,139 obviously you need to check your manual for that. 162 00:09:22,239 --> 00:09:27,304 or check the configuration printout that you can usually get from most printers. 163 00:09:27,404 --> 00:09:30,850 Again I go through the printer driver selection. 164 00:09:31,511 --> 00:09:34,805 And again give it some information about my printer, 165 00:09:34,905 --> 00:09:38,939 give it a name, description and location. 166 00:09:39,980 --> 00:09:42,441 As you can see it's pretty straightforward, pretty basic. 167 00:09:42,541 --> 00:09:44,489 Not all printers are like this, 168 00:09:44,589 --> 00:09:47,834 There are some printers which are not particularly well supported. 169 00:09:47,934 --> 00:09:50,912 And in a later screencast we'll look at troubleshooting 170 00:09:51,012 --> 00:09:54,121 and how you can resolve those kinds of issues. 171 00:09:55,723 --> 00:09:58,994 So again, I can right-click this printer, 172 00:10:00,102 --> 00:10:02,138 and choose properties, 173 00:10:02,455 --> 00:10:04,870 and I can print a test page. 174 00:10:04,970 --> 00:10:07,711 And if we grab the webcam again, 175 00:10:07,811 --> 00:10:10,914 you should see another test page come out of the printer. 176 00:10:11,865 --> 00:10:15,709 Apologies for the poor quality of my webcam, 177 00:10:17,766 --> 00:10:22,024 and if we flip that over, that's another test page. 178 00:10:22,134 --> 00:10:24,006 So that works okay. 179 00:10:24,831 --> 00:10:26,823 Now we'll add the printer again, 180 00:10:26,923 --> 00:10:31,493 but what we'll do is this time connect through a Windows machine. 181 00:10:31,593 --> 00:10:34,264 So using an example where you've got a Windows desktop 182 00:10:34,364 --> 00:10:37,026 and the printer is hanging directly off the Windows desktop. 183 00:10:37,126 --> 00:10:41,375 You can share that printer out through Windows printer sharing, 184 00:10:41,475 --> 00:10:45,027 and then connect to that Windows server, that Windows desktop, 185 00:10:45,127 --> 00:10:47,412 from your Ubuntu desktop. 186 00:10:47,549 --> 00:10:49,549 So again I'll go through adding printer, 187 00:10:49,667 --> 00:10:54,165 but this time I'll choose Windows printer, SMB, which is short for Samba. 188 00:10:54,265 --> 00:10:57,267 or can be interpreted as Samba. 189 00:10:57,624 --> 00:10:59,652 Now it's asking me for a user id and password, 190 00:10:59,752 --> 00:11:03,873 it's actually discovered my XP laptop on the network. 191 00:11:03,973 --> 00:11:06,717 And I'll type in a user id and password 192 00:11:07,900 --> 00:11:10,461 that allows it to connect to the XP machine. 193 00:11:10,561 --> 00:11:14,443 Now if there was a domain here, I would prefix that username with a domain. 194 00:11:14,543 --> 00:11:19,424 I'm sure it's possible to skip that step or make that more automated, 195 00:11:19,524 --> 00:11:22,360 but I don't actually know how to do that myself. 196 00:11:22,855 --> 00:11:24,829 Once you've filled in the username and password, 197 00:11:24,929 --> 00:11:32,738 when you hit the drop down on the host it shows my XP laptop hostname and the printer 198 00:11:32,838 --> 00:11:37,077 These are the printers that are shared out by my XP laptop, 199 00:11:37,297 --> 00:11:40,005 So if I just choose the same printer again, the PageMaster, 200 00:11:40,105 --> 00:11:43,363 hit forward and again we go through the same dialog we've seen already. 201 00:11:43,463 --> 00:11:47,133 Give it a printer driver, so we're using the driver on Ubuntu, 202 00:11:47,233 --> 00:11:50,868 we're not using the Windows printer driver to print to this printer. 203 00:11:51,556 --> 00:11:55,951 And again fill in the details about the printer. 204 00:12:05,906 --> 00:12:08,320 So I've said the description is print through a Windows queue, 205 00:12:08,420 --> 00:12:13,036 So there's a printer defined on a Windows machine and it's shared out. 206 00:12:14,750 --> 00:12:20,706 There you can see this printer again if we right-click on it and choose Properties. 207 00:12:22,916 --> 00:12:25,018 Print a test page 208 00:12:25,907 --> 00:12:28,091 and again the trusty webcam... 209 00:12:32,220 --> 00:12:35,743 should show us another page coming out of the printer. 210 00:12:38,147 --> 00:12:40,221 There we go. 211 00:12:42,588 --> 00:12:44,837 So all in all pretty straight forward. 212 00:12:44,937 --> 00:12:48,250 We've seen how to add network printers in various different ways, 213 00:12:48,350 --> 00:12:51,810 on Ubuntu Feisty, which is 7.04 214 00:12:51,910 --> 00:12:56,177 We've also seen how to add printers on Ubuntu Gutsy. 215 00:12:56,718 --> 00:12:58,838 There are plenty more screencasts at our website, 216 00:12:58,938 --> 00:13:01,214 screencasts.ubuntu.com
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.