1 00:00:00,300 --> 00:00:00,400 2 00:00:01,219 --> 00:00:05,309 This is Alan Pope with the twelfth screencast in the Ubuntu Month of Screencasts. 3 00:00:05,463 --> 00:00:09,272 All the screencasts in the month can be downloaded for free from our website, 4 00:00:09,440 --> 00:00:12,223 which is screencasts.ubuntu.com 5 00:00:12,656 --> 00:00:16,538 In this screencast we are going to look at installing and removing applications 6 00:00:16,667 --> 00:00:19,734 and also managing our sources. 7 00:00:20,003 --> 00:00:22,843 So the first thing we are going to look at is software sources 8 00:00:22,955 --> 00:00:27,120 and I'm using version 7.04 for this screencast. 9 00:00:27,928 --> 00:00:31,457 Under System -> Administration -> Software Sources, 10 00:00:31,682 --> 00:00:36,077 is an application which can show us and allow us to maintain 11 00:00:36,222 --> 00:00:41,057 the software sources that our local Ubuntu system is aware of, 12 00:00:41,157 --> 00:00:44,553 this is where we can download software from. 13 00:00:44,713 --> 00:00:47,845 Unlike other platforms, most of our software in Ubuntu 14 00:00:47,945 --> 00:00:52,280 can be obtained from one central location. 15 00:00:52,581 --> 00:00:56,201 The central location is actually grouped into a number of sections 16 00:00:56,342 --> 00:00:59,500 main, universe, restricted and multiverse, 17 00:01:00,032 --> 00:01:02,889 depending upon certain restrictions 18 00:01:02,989 --> 00:01:08,140 and the supportability of the software within those repositories 19 00:01:08,240 --> 00:01:13,663 We can switch on and switch off these little tick boxes in software sources. 20 00:01:13,763 --> 00:01:18,809 and what this does is make available to us the software in those repositories 21 00:01:18,909 --> 00:01:23,044 or not if we turn the tick box off. 22 00:01:24,066 --> 00:01:29,658 So at the top we have the main repository, which is where the core applications reside 23 00:01:29,758 --> 00:01:33,323 and these applications are supported by Canonical. 24 00:01:33,423 --> 00:01:38,635 Then we have the universe, restricted and multiverse repositories, 25 00:01:38,735 --> 00:01:40,768 which contain further applications. 26 00:01:40,868 --> 00:01:45,752 There are many applications in the universe repository for example. 27 00:01:45,852 --> 00:01:52,410 We can also tick this box to allow us to download the source code for the applications 28 00:01:52,510 --> 00:01:56,803 and we can choose where the server is located, that we want to download from, 29 00:01:56,903 --> 00:02:00,281 makes sense to choose the nearest one to us. 30 00:02:00,567 --> 00:02:04,265 We can also make CD-ROMs known to the system, 31 00:02:04,365 --> 00:02:09,438 so we can apply packages from repositories that reside on CD. 32 00:02:09,538 --> 00:02:12,024 And we can do that with this Add CD-ROM button, 33 00:02:12,124 --> 00:02:14,810 under the third party software tab. 34 00:02:15,118 --> 00:02:19,515 We can also add third party repositories, we'll look at that later. 35 00:02:20,323 --> 00:02:22,734 As well as new software there are updates, 36 00:02:22,834 --> 00:02:27,379 which we get notified with the little orange icon in the corner of the screen. 37 00:02:28,216 --> 00:02:32,222 So we have a number of repositories here 38 00:02:32,552 --> 00:02:36,339 and updates that can be downloaded. 39 00:02:36,439 --> 00:02:40,302 And we'll look at updates in another screencast. 40 00:02:40,451 --> 00:02:42,330 When I close this box, 41 00:02:42,430 --> 00:02:44,682 if I have made any changes in either the updates 42 00:02:44,782 --> 00:02:48,384 or the Ubuntu software tab or added any third party repositories, 43 00:02:48,600 --> 00:02:52,057 we get the dialog box asking us to update. 44 00:02:52,208 --> 00:02:54,219 And this is what we call and update, 45 00:02:54,319 --> 00:02:58,264 it goes to find out what's in those repositories. 46 00:02:59,145 --> 00:03:02,248 So now that I have my software sources configured, 47 00:03:02,348 --> 00:03:05,771 I'm ready to start adding software. 48 00:03:07,906 --> 00:03:13,321 There's two main ways to install software, using the menu. 49 00:03:13,475 --> 00:03:17,460 Under the Applications menu there is Add/Remove... 50 00:03:17,560 --> 00:03:20,960 This is what I will show you in just a moment. 51 00:03:21,060 --> 00:03:26,177 And there is a subset of all the applications we can install, within there. 52 00:03:26,353 --> 00:03:30,999 If you look under System -> Administration, there's the Synaptic Package Manager, 53 00:03:31,120 --> 00:03:34,155 which has the full list of all the software we could install, 54 00:03:34,299 --> 00:03:36,231 that's known in the repositories. 55 00:03:36,331 --> 00:03:38,801 We'll come back to that in just a minute. 56 00:03:38,901 --> 00:03:42,822 So starting with Add/Remove Applications. 57 00:03:43,303 --> 00:03:47,761 Here you can see that it wants to go and get a list of applications 58 00:03:47,861 --> 00:03:50,536 from the repository, again. 59 00:03:52,284 --> 00:03:57,005 So unlike other platforms where we have to go and find applications on websites, 60 00:03:57,289 --> 00:04:00,633 with the Add/Remove Applications and Synaptic, 61 00:04:00,808 --> 00:04:04,807 the applications kind of come to us, as it were. 62 00:04:07,451 --> 00:04:12,303 Here you can see the applications are grouped or categorized 63 00:04:12,565 --> 00:04:15,131 So if we just want to install games, we click Games 64 00:04:15,231 --> 00:04:17,679 and you can see here a list of games. 65 00:04:17,779 --> 00:04:20,835 If we're a programmer and we want to install developer tools, 66 00:04:20,935 --> 00:04:23,251 we hit Programming, 67 00:04:23,601 --> 00:04:25,699 and so on. 68 00:04:29,327 --> 00:04:34,462 You can see that at the top right-hand corner of the window, 69 00:04:34,747 --> 00:04:38,768 there is a further selection to show different categories of applications, 70 00:04:38,868 --> 00:04:41,915 whether they are supported by Ubuntu 71 00:04:42,015 --> 00:04:44,109 or whether they are third party applications 72 00:04:44,209 --> 00:04:46,220 or whether they are already installed. 73 00:04:46,320 --> 00:04:49,498 You can see here graphical applications that are already installed 74 00:04:49,598 --> 00:04:53,738 and you can indeed see where they are on the menu. 75 00:04:58,720 --> 00:05:02,654 And here are some games that are already installed. 76 00:05:03,047 --> 00:05:07,471 If we choose all available applications or all open source applications, 77 00:05:07,571 --> 00:05:11,090 it shows us different sets of the applications available, 78 00:05:11,190 --> 00:05:15,220 gives us a different view of the applications available. 79 00:05:15,635 --> 00:05:20,509 Choosing "Third party applications" and choosing the category "All", 80 00:05:20,609 --> 00:05:23,590 you can see there are some third party products here. 81 00:05:23,874 --> 00:05:26,912 For example the popular Opera web browser, 82 00:05:27,012 --> 00:05:30,824 we could install through this Add/Remove Applications. 83 00:05:35,129 --> 00:05:38,844 As you can see there are quite a few applications that we can install 84 00:05:38,944 --> 00:05:43,805 and this isn't even the full list. 85 00:05:44,810 --> 00:05:48,482 So let's do a search for an application. 86 00:05:50,929 --> 00:05:54,588 In the box at the top of the window we can type in the name 87 00:05:54,688 --> 00:05:58,731 or part of a name or part of the description of an application. 88 00:05:58,831 --> 00:06:02,171 I happen to know there is a desktop publishing package called Scribus, 89 00:06:02,271 --> 00:06:04,138 which I might want to install. 90 00:06:04,238 --> 00:06:07,997 And by typing scribus in, it shows us two versions of Scribus. 91 00:06:08,325 --> 00:06:10,454 One is the development branch, 92 00:06:10,554 --> 00:06:14,838 which will be a newer possibly unstable version of Scribus 93 00:06:14,969 --> 00:06:17,622 and the other one is the stable version of Scribus, 94 00:06:17,722 --> 00:06:21,372 which we might prefer to install. 95 00:06:23,076 --> 00:06:26,267 As I said you can search on the name of the application 96 00:06:26,367 --> 00:06:29,392 or you can search on the description. 97 00:06:29,698 --> 00:06:32,648 If I hit the little tick next to the application, 98 00:06:32,748 --> 00:06:36,320 it ticks that and flags it to be installed. 99 00:06:36,420 --> 00:06:41,893 and if I click Apply, it will then install that application. 100 00:06:42,767 --> 00:06:45,814 I can show you that we can do a search in a different way. 101 00:06:45,914 --> 00:06:50,184 If I search for publish or publishing, 102 00:06:50,284 --> 00:06:52,448 to look for a desktop publishing application. 103 00:06:52,548 --> 00:06:54,555 there's another one that shows up. 104 00:06:54,655 --> 00:06:56,950 So if I didn't know the name of the application, 105 00:06:57,050 --> 00:07:01,627 I could search for a description or a descriptive word. 106 00:07:02,282 --> 00:07:06,893 Or I could use the categories on the left-hand side to filter. 107 00:07:07,352 --> 00:07:09,997 You can tick multiple applications. 108 00:07:10,193 --> 00:07:15,285 Now some applications reside in a repository for restricted software 109 00:07:15,385 --> 00:07:18,026 and you get a warning whenever you're installing software 110 00:07:18,126 --> 00:07:21,798 from this restricted or multiverse repository 111 00:07:21,898 --> 00:07:24,049 and you can choose whether you want to install or not. 112 00:07:24,149 --> 00:07:27,829 If you cancel then the box gets unticked. 113 00:07:28,026 --> 00:07:33,118 If you choose to install then it will allow you to install that package. 114 00:07:34,298 --> 00:07:38,722 So if I click Apply it's going to install Scribus and Xara Xtreme, 115 00:07:38,822 --> 00:07:40,951 these two applications. 116 00:07:41,051 --> 00:07:46,318 It gives me a summary first of all, to show me what it's going to do. 117 00:07:47,411 --> 00:07:49,334 And I hit Apply. 118 00:07:50,055 --> 00:07:52,153 It now downloads the package 119 00:07:52,253 --> 00:07:56,589 and any dependencies that are required by those packages, 120 00:07:56,895 --> 00:07:59,561 which is a very useful feature. 121 00:08:00,020 --> 00:08:02,074 And then starts installing all of the packages. 122 00:08:02,174 --> 00:08:06,074 And it installs them in the right order to make sure dependencies are fulfilled 123 00:08:06,174 --> 00:08:09,352 before the applications are installed. 124 00:08:10,379 --> 00:08:12,193 There, done. 125 00:08:12,674 --> 00:08:17,294 When I hit the details tab, you can see information 126 00:08:17,394 --> 00:08:19,479 about the applications that have been installed. 127 00:08:19,579 --> 00:08:23,819 There's Xara and Scribus at the very bottom of that window. 128 00:08:23,919 --> 00:08:26,844 Most people don't view that, so we'll just hit closed. 129 00:08:26,944 --> 00:08:28,955 And when we do that we get a summary of 130 00:08:29,055 --> 00:08:32,373 where the applications have been installed on the menu. 131 00:08:32,473 --> 00:08:35,839 So you can see here we'll find Xara Xtreme and Scribus 132 00:08:35,939 --> 00:08:39,170 under Applications -> Graphics. 133 00:08:39,270 --> 00:08:44,537 and sure enough, there's Scribus and there's Xara Xtreme. 134 00:08:45,717 --> 00:08:50,284 If we now close the Add/Remove Applications. 135 00:08:50,787 --> 00:08:54,524 We can test the applications we have just installed. 136 00:08:54,917 --> 00:09:02,173 Under Applications -> Graphics and then if I choose Scribus, 137 00:09:03,549 --> 00:09:06,106 there we go, it's installed successfully. 138 00:09:06,206 --> 00:09:11,242 Now when I run Xara Xtreme, it pops up a warning. 139 00:09:11,342 --> 00:09:14,660 because there's actually something else that Xara's detected that we need, 140 00:09:14,760 --> 00:09:17,995 it's called ImageMagick and it says we need that 141 00:09:18,095 --> 00:09:20,814 otherwise certain features of Xara won't work. 142 00:09:20,914 --> 00:09:25,107 And we need to use are package management tool to install that ImageMagick 143 00:09:25,207 --> 00:09:27,261 and we'll come back to that in a minute. 144 00:09:27,361 --> 00:09:31,741 So those two programs have installed successfully. 145 00:09:34,451 --> 00:09:38,297 Now let's take a look at using the Synaptic Package Manager, 146 00:09:38,397 --> 00:09:41,466 to install packages. 147 00:09:41,903 --> 00:09:46,274 The Synaptic Package Manager has a much larger list of applications. 148 00:09:46,374 --> 00:09:52,852 You can think of it as being the Add/Remove Applications, but in expert mode. 149 00:09:53,966 --> 00:09:56,873 So let's look for the program that Xara wanted. 150 00:09:56,973 --> 00:10:01,156 If we look in Add/Remove Applications for ImageMagick, 151 00:10:01,256 --> 00:10:05,680 which was required by Xara for some enhanced features, 152 00:10:06,576 --> 00:10:08,674 it doesn't show up. 153 00:10:08,827 --> 00:10:11,734 An application that mentions ImageMagick shows up, 154 00:10:11,834 --> 00:10:14,443 but ImageMagick itself doesn't. 155 00:10:14,543 --> 00:10:19,142 So let's go and have a look in Synaptic Package Manager, 156 00:10:19,841 --> 00:10:23,163 under System -> Administration. 157 00:10:26,856 --> 00:10:31,914 Now Synaptic Package Manager also has a way of categorizing applications, 158 00:10:32,014 --> 00:10:35,095 on the left-hand side and grouping them together. 159 00:10:35,838 --> 00:10:39,422 You can see it also mentions the repository names. 160 00:10:39,522 --> 00:10:42,994 So this is a bit more expert mode, it's mentioning repository names 161 00:10:43,094 --> 00:10:47,137 that the Add/Remove Applications doesn't show you. 162 00:10:52,404 --> 00:10:55,407 Down the bottom of the screen it says there are ~21,000 packages, 163 00:10:55,507 --> 00:10:57,286 in the bottom left-hand corner. 164 00:10:57,386 --> 00:11:00,533 And if I want to search in those 21,000 for ImageMagick, 165 00:11:00,633 --> 00:11:03,112 I click the search button at the top of the screen 166 00:11:03,212 --> 00:11:07,221 and just type in the package that I'm looking for. 167 00:11:08,117 --> 00:11:10,783 Now there are lots of packages that mention ImageMagick, 168 00:11:10,883 --> 00:11:13,973 but ImageMagick itself is listed. 169 00:11:14,073 --> 00:11:17,448 And you can see down the bottom of the screen, if I lift this up, 170 00:11:17,548 --> 00:11:20,320 you can see a description of what ImageMagick is. 171 00:11:20,420 --> 00:11:25,325 It's an image manipulation program, suite of programs in fact. 172 00:11:26,845 --> 00:11:32,790 So if I want to install this, I tick the little box and mark it for installation. 173 00:11:35,740 --> 00:11:39,477 So I have now got one package marked to install 174 00:11:39,577 --> 00:11:43,061 and if I want to apply that change, I hit the Apply button. 175 00:11:43,161 --> 00:11:45,902 I can of course tick other applications as well. 176 00:11:46,002 --> 00:11:49,027 A summary box appears. 177 00:11:49,770 --> 00:11:52,524 Now there are in fact some updates waiting on my system 178 00:11:52,624 --> 00:11:55,015 and there are 5 packages to be updated, 179 00:11:55,115 --> 00:11:57,113 but I am going to ignore those for now. 180 00:11:57,213 --> 00:12:01,943 and just install the one new package, ImageMagick. 181 00:12:03,822 --> 00:12:08,979 So I click Apply and it will download ImageMagick, 182 00:12:09,111 --> 00:12:11,502 I can of course just choose to download it 183 00:12:11,602 --> 00:12:13,613 and not actually install it right now 184 00:12:13,713 --> 00:12:17,927 If I was on dial-up and I just wanted to download the package, I could do that 185 00:12:18,027 --> 00:12:22,844 and then apply it later on, when I've hung up the phone. 186 00:12:22,944 --> 00:12:28,648 Luckily I have a fast Internet connection, so it downloads and install very quickly. 187 00:12:29,129 --> 00:12:34,592 And you can see there, it's installed ImageMagick successfully. 188 00:12:38,788 --> 00:12:42,241 If we now close that 189 00:12:42,341 --> 00:12:47,005 and do a search for ImageMagick again. 190 00:12:51,333 --> 00:12:54,283 You should now see that there is a little green mark next to it 191 00:12:54,395 --> 00:12:57,189 showing that it is installed. 192 00:12:57,289 --> 00:13:00,183 And you can see we have further options to re-install, 193 00:13:00,283 --> 00:13:02,718 remove or completely remove that package. 194 00:13:02,818 --> 00:13:06,587 We'll look at the removal options in a bit more detail later on. 195 00:13:06,687 --> 00:13:09,502 But the difference between remove and complete remove is really, 196 00:13:09,602 --> 00:13:11,338 "remove" removes the application, 197 00:13:11,438 --> 00:13:16,137 "complete remove" will remove the application and also any configuration files 198 00:13:16,237 --> 00:13:19,371 that the application has associated with it. 199 00:13:19,471 --> 00:13:22,299 Neither of those options will remove any data, 200 00:13:22,399 --> 00:13:26,024 so if you've created any images with this program for example, 201 00:13:26,124 --> 00:13:28,003 those images won't be removed, 202 00:13:28,103 --> 00:13:32,243 it's only the application that gets removed by the package manager 203 00:13:32,343 --> 00:13:35,237 and configuration files as well. 204 00:13:35,543 --> 00:13:39,040 So now that we've installed the pre-requisite for Xara, 205 00:13:39,140 --> 00:13:42,077 let's go back and re-run Xara Xtreme. 206 00:13:42,177 --> 00:13:45,924 and make sure that warning dialog doesn't appear any more. 207 00:13:46,024 --> 00:13:48,262 There we go, it's gone away. 208 00:13:48,362 --> 00:13:54,119 So now we've added the required bits for that to work. 209 00:13:58,052 --> 00:14:01,427 So now let's look at another way to install applications 210 00:14:01,527 --> 00:14:04,106 by adding repositories. 211 00:14:05,089 --> 00:14:09,098 Now we've already looked at Software Sources and we've seen the repositories 212 00:14:09,198 --> 00:14:11,830 that are defined by default. 213 00:14:11,930 --> 00:14:15,077 And if we go and search for a particular application, 214 00:14:15,177 --> 00:14:17,874 it will only search within those repositories. 215 00:14:17,974 --> 00:14:20,986 So I'm looking for a program called Miro, 216 00:14:21,086 --> 00:14:23,774 and it can't find Miro in Add/Remove, 217 00:14:23,874 --> 00:14:28,735 and the reason for that is that Miro isn't in the Feisty, 218 00:14:28,835 --> 00:14:32,656 Ubuntu Feisty 7.04, repository. 219 00:14:33,062 --> 00:14:37,149 So if we go to Synaptic Package Manager and have a look there as well, 220 00:14:37,249 --> 00:14:41,258 just to make double sure, and search for Miro. 221 00:14:42,066 --> 00:14:46,262 Again Miro isn't listed in the list of applications, 222 00:14:46,362 --> 00:14:51,551 because it's not in the repositories, any of the repositories, 223 00:14:51,651 --> 00:14:56,730 that we have listed in the Software Sources on our system. 224 00:14:58,216 --> 00:15:01,145 So let's go to the website for this product. 225 00:15:01,245 --> 00:15:04,882 Miro is a media player application. 226 00:15:04,982 --> 00:15:09,405 Actually it's a bit more than that, but that's enough for now. 227 00:15:09,952 --> 00:15:13,523 It's a video player and if I go to getmiro.com, 228 00:15:13,623 --> 00:15:18,169 which you can easily find if you just google Miro. 229 00:15:18,269 --> 00:15:21,260 It's the first website on the list, 230 00:15:21,360 --> 00:15:23,370 I'll just show you that. 231 00:15:23,480 --> 00:15:28,767 So there we go the first hit when you search for Miro is getmiro.com 232 00:15:28,986 --> 00:15:33,126 and there's an option to download the Linux version of Miro. 233 00:15:33,226 --> 00:15:38,262 So let's say I'm interested in downloading this software that isn't in the repository 234 00:15:38,362 --> 00:15:41,890 Down here there are instructions for Linux 235 00:15:41,990 --> 00:15:45,377 and some instructions specifically for Ubuntu. 236 00:15:45,477 --> 00:15:49,474 And if we click the download link, there's some pretty comprehensive instructions 237 00:15:49,617 --> 00:15:52,523 on how you might go about installing Miro. 238 00:15:52,895 --> 00:15:57,100 Now to install Miro I'll summarize what those instructions say. 239 00:15:57,200 --> 00:16:01,558 It basically says we need to add an extra repository to our system 240 00:16:01,658 --> 00:16:06,160 and then Miro should show up in our package manager. 241 00:16:06,260 --> 00:16:08,464 It tells us what to do right there. 242 00:16:08,564 --> 00:16:13,009 In fact the screenshots further down are a little bit out of date. 243 00:16:13,109 --> 00:16:15,632 They show an older version of Ubuntu. 244 00:16:15,732 --> 00:16:20,146 So if we go to System -> Administration -> Software Sources. 245 00:16:23,337 --> 00:16:26,668 It shows a slightly different way to get there, but it's much the same. 246 00:16:26,768 --> 00:16:30,187 We then go to the third party software tab 247 00:16:30,287 --> 00:16:35,541 and we want to add this third party repository. 248 00:16:35,641 --> 00:16:39,203 We get asked for the APT line 249 00:16:39,465 --> 00:16:43,246 and the line should start with the letters deb 250 00:16:43,486 --> 00:16:48,347 and we start copying here deb, all the way to the end of that line. 251 00:16:48,447 --> 00:16:52,359 And I'll copy that and paste it into here 252 00:16:53,911 --> 00:16:56,717 and then click Add Source. 253 00:16:56,817 --> 00:17:01,756 There we go, we've added a third party repository. 254 00:17:01,856 --> 00:17:05,983 Now you have to be a bit careful here, because that repository could contain any software, 255 00:17:06,083 --> 00:17:10,629 it could contain software that conflicts with existing software on your system 256 00:17:10,729 --> 00:17:16,014 So obviously, you have to weigh up the pros and cons of adding this extra repository. 257 00:17:16,114 --> 00:17:21,228 It's your system and you don't really want to damage it with third party repositories. 258 00:17:21,328 --> 00:17:25,324 It's also possible that this can cause problems during upgrades, 259 00:17:25,424 --> 00:17:29,904 and we'll see later on, in fact you will have seen in the previous screencast, 260 00:17:30,004 --> 00:17:36,513 that during an upgrade these repositories get disabled some times. 261 00:17:36,613 --> 00:17:39,136 So now that we've added the repository, 262 00:17:39,236 --> 00:17:45,027 let's look at how we add the software, that we've added from that repository. 263 00:17:46,994 --> 00:17:50,294 So here are the instructions and a bit further down it says 264 00:17:50,394 --> 00:17:53,900 install Miro using your package manager. 265 00:17:54,000 --> 00:17:57,449 Now the package manager we know is Synaptic 266 00:17:57,549 --> 00:18:04,652 So we could go to System -> Administration -> Synaptic Package Manager, 267 00:18:06,422 --> 00:18:09,744 Remember we searched for Miro earlier and couldn't find it. 268 00:18:09,844 --> 00:18:15,653 Now if we search for Miro, my system is aware of that extra repository. 269 00:18:15,753 --> 00:18:22,179 And Miro is now in the list, along with a dependency Miro-data. 270 00:18:24,429 --> 00:18:27,127 So if I highlight Miro, you can see from the description, 271 00:18:27,227 --> 00:18:30,667 that's the application that I want to install. 272 00:18:30,767 --> 00:18:34,854 Miro-data is some supplemental stuff that goes with it. 273 00:18:34,954 --> 00:18:39,570 If I tick the box and choose mark for installation, 274 00:18:41,454 --> 00:18:44,387 then it gives me a warning that this application 275 00:18:44,487 --> 00:18:47,822 is coming from this third party repository. 276 00:18:47,922 --> 00:18:52,630 And (you know) there could be some nefarious or dodgy 277 00:18:52,730 --> 00:18:54,988 packages on that repository. 278 00:18:55,088 --> 00:18:58,094 So we have to be a little bit careful about this. 279 00:18:58,194 --> 00:19:02,870 Do we really want to apply these applications. 280 00:19:09,427 --> 00:19:12,836 Now if we go back to our Software Sources, 281 00:19:12,936 --> 00:19:16,267 you can see under the authentication tab, 282 00:19:16,367 --> 00:19:19,379 there are trusted software providers. 283 00:19:19,567 --> 00:19:22,832 And the trusted software providers are software providers who 284 00:19:22,932 --> 00:19:27,194 cryptographically sign their packages. 285 00:19:27,294 --> 00:19:31,193 Now Miro don't cryptographically sign their packages, 286 00:19:31,293 --> 00:19:35,739 there's nowhere on this page for me to add their key to my system. 287 00:19:35,839 --> 00:19:41,552 So that I can decrypt or validate that their packages are signed. 288 00:19:41,652 --> 00:19:46,535 So there's not much I can do about this other than either choose to accept or not, 289 00:19:46,635 --> 00:19:50,009 these packages 290 00:19:55,101 --> 00:19:57,243 So I'll choose to accept them 291 00:19:57,343 --> 00:20:01,111 and you'll notice now we have got Miro and the dependency Miro-data 292 00:20:01,211 --> 00:20:07,099 I only choose Miro, but Miro-data was pulled in as a dependency of Miro. 293 00:20:07,842 --> 00:20:11,261 And if I right-click I can choose to unmark it 294 00:20:11,361 --> 00:20:14,539 or I can have a look at the properties of that application. 295 00:20:14,639 --> 00:20:18,572 And you can see here it's got some information about further dependencies. 296 00:20:18,672 --> 00:20:22,025 So it's not just Miro and Miro-data that I'm installing, 297 00:20:22,125 --> 00:20:26,112 there will be other dependencies as well. 298 00:20:30,133 --> 00:20:31,947 And there are further tabs here, 299 00:20:32,047 --> 00:20:34,863 we will come back to this install files in just a minute. 300 00:20:34,963 --> 00:20:37,835 This is useful if you want to see where the application was installed, 301 00:20:37,935 --> 00:20:40,304 what files were put on to your system. 302 00:20:40,404 --> 00:20:43,355 It tells you the version number and then there's the short description, 303 00:20:43,455 --> 00:20:47,529 which is the same as you see in the main screen of Synaptic. 304 00:20:48,709 --> 00:20:51,974 There's also an email address for the maintainer there, 305 00:20:52,074 --> 00:20:55,462 so you can contact that person. 306 00:20:56,882 --> 00:21:00,607 Now if I hit Apply, it's going to again give me the reminder 307 00:21:00,707 --> 00:21:03,460 that some of these packages could not be authenticated, 308 00:21:03,560 --> 00:21:05,961 they are not cryptographically signed. 309 00:21:06,061 --> 00:21:10,323 And there's 16 new packages that will be installed. 310 00:21:12,180 --> 00:21:16,813 So it downloads those 16 packages and then starts installing them, 311 00:21:16,913 --> 00:21:21,630 Now some of those packages will be coming from the third party repository, 312 00:21:21,730 --> 00:21:25,117 many of them will come from the standard Ubuntu repositories. 313 00:21:25,217 --> 00:21:29,585 So Miro uses some code that's in the standard repository, 314 00:21:29,685 --> 00:21:32,242 some libraries for example. 315 00:21:32,342 --> 00:21:36,940 Now that's installed we can close and 316 00:21:37,596 --> 00:21:40,481 if we search again for Miro, 317 00:21:40,962 --> 00:21:44,161 we should find that it's got the little green mark next to it, 318 00:21:44,261 --> 00:21:46,063 to show that it's installed. 319 00:21:46,163 --> 00:21:50,237 And if we right-click you can see again we can re-install or remove 320 00:21:50,337 --> 00:21:54,739 and now if we look at the properties, you can see under installed files, 321 00:21:54,839 --> 00:21:58,563 all the files that have been installed by this one package. 322 00:21:58,707 --> 00:22:03,284 This doesn't include all of the files that got installed by all of the dependencies, 323 00:22:03,384 --> 00:22:06,028 just by this package. 324 00:22:07,558 --> 00:22:11,829 So let's just test to see if Miro works. 325 00:22:11,929 --> 00:22:16,496 We should find it under Applications -> Sound & Video, 326 00:22:16,596 --> 00:22:19,250 there it is, Miro. 327 00:22:22,134 --> 00:22:24,351 That looks good. 328 00:22:24,451 --> 00:22:30,242 Miro is quite a funky media player, allows you to download TV programs 329 00:22:30,832 --> 00:22:37,432 and podcasts and the like and watch them within this window or full screen on your PC. 330 00:22:37,532 --> 00:22:40,042 There's a load of groups on the left-hand side, 331 00:22:40,142 --> 00:22:43,333 it's quite a neat application. 332 00:22:44,207 --> 00:22:46,195 So that works. 333 00:22:47,747 --> 00:22:51,593 Finally we will look at manually installing packages. 334 00:22:51,693 --> 00:22:55,374 This is the last way of installing packages that I am going to show. 335 00:22:56,073 --> 00:22:59,351 Now a word of warning about manually installing packages. 336 00:22:59,451 --> 00:23:01,843 What we will be doing is visiting a website, 337 00:23:01,974 --> 00:23:06,432 downloading some deb packages and installing them manually. 338 00:23:06,532 --> 00:23:08,902 We won't be getting them from a repository 339 00:23:09,002 --> 00:23:12,539 and so there will be no way for those packages to get updated. 340 00:23:12,639 --> 00:23:16,538 So if there are bugs or security holes in those applications, 341 00:23:16,638 --> 00:23:20,865 they won't get updated in the same way that all our standard packages 342 00:23:20,965 --> 00:23:23,544 will be updated from the repository. 343 00:23:23,644 --> 00:23:28,033 So you have to be a little bit careful when doing this. 344 00:23:28,133 --> 00:23:32,251 So from getdeb.net, which is a website where many applications 345 00:23:32,351 --> 00:23:36,272 such as Second Life and various other popular applications 346 00:23:36,372 --> 00:23:39,528 get packaged up as .debs 347 00:23:39,628 --> 00:23:44,249 and a .deb is the package format that Ubuntu uses. 348 00:23:44,349 --> 00:23:51,417 The deb comes from Debian, which Ubuntu is based on. 349 00:23:51,517 --> 00:23:54,127 And you can see here we've got Gaim Instant Messenger, 350 00:23:54,227 --> 00:23:57,548 Now Gaim recently changed it's name to Pidgin 351 00:23:57,648 --> 00:24:01,132 and getdeb have Pidgin available for download. 352 00:24:01,232 --> 00:24:06,846 So what we could do is use that as an example program to download. 353 00:24:06,946 --> 00:24:09,206 Now I can follow the instructions here 354 00:24:09,306 --> 00:24:12,090 and it basically shows me there are two file to download, 355 00:24:12,190 --> 00:24:14,135 Pidgin and Pidgin-data. 356 00:24:14,235 --> 00:24:18,843 So if I just click on Pidgin it gets a .deb file. 357 00:24:18,943 --> 00:24:23,258 and Firefox will give me the option of loading it with gdebi, 358 00:24:23,358 --> 00:24:28,175 which is the package installer 359 00:24:28,275 --> 00:24:30,360 or alternatively I can save it to disk. 360 00:24:30,460 --> 00:24:34,753 Now I need both of these files so I'm going to save them to disk. 361 00:24:34,853 --> 00:24:39,058 That's Pidgin done and it saves it on to my desktop. 362 00:24:39,158 --> 00:24:42,524 I'll now click on Pidgin-data and save that one to disk as well, 363 00:24:42,624 --> 00:24:45,409 that's also a .deb. 364 00:24:45,540 --> 00:24:51,309 Click Ok and I should now have two files on my desktop. 365 00:24:52,336 --> 00:24:54,827 There we go, Pidgin and Pidgin-data. 366 00:24:54,927 --> 00:24:58,399 Now what I am going to do is just highlight them both 367 00:24:58,499 --> 00:25:02,979 and press enter to open gdebi, the package installer. 368 00:25:03,263 --> 00:25:05,720 Now you'll notice here is opens a separate window 369 00:25:05,820 --> 00:25:07,883 for each of the packages I want to install. 370 00:25:07,983 --> 00:25:13,172 I did this so that you can see that Pidgin-data says all dependencies satisfied 371 00:25:13,272 --> 00:25:15,130 that can now be installed. 372 00:25:15,230 --> 00:25:18,539 But PIdgin itself has a dependency not satisfied yet. 373 00:25:18,639 --> 00:25:21,598 it requires Pidgin-data to be installed first. 374 00:25:21,698 --> 00:25:25,270 So I'll install Pidgin-data first. 375 00:25:25,751 --> 00:25:28,242 Gdebi will ask me for my password, 376 00:25:28,342 --> 00:25:33,028 which is normal for any application that make a system wide change, 377 00:25:33,159 --> 00:25:36,905 to your Ubuntu environment. 378 00:25:37,005 --> 00:25:40,305 It now installs Pidgin-data. 379 00:25:43,671 --> 00:25:45,572 Done. 380 00:25:45,672 --> 00:25:51,657 So now I can close the package manager 381 00:25:51,757 --> 00:25:56,071 and if I close this one and again double-click on Pidgin. 382 00:25:56,171 --> 00:26:00,420 You can see now it doesn't complain the Pidgin-data is not installed, 383 00:26:00,520 --> 00:26:03,239 but it does say there is another dependency that's required, 384 00:26:03,339 --> 00:26:06,102 now this file will be in the repository. 385 00:26:06,302 --> 00:26:11,129 The fact that it's not complaining, it's not giving me a red light when I install, 386 00:26:11,229 --> 00:26:13,283 it will prompt me for my password, 387 00:26:13,383 --> 00:26:16,985 then go and get the necessary packages that are missing, 388 00:26:17,085 --> 00:26:19,052 from the repository. 389 00:26:19,152 --> 00:26:21,400 It couldn't get Pidgin from the repository or Pidgin-data, 390 00:26:21,500 --> 00:26:27,213 because they don't exist in the 7.04 Feisty repository. 391 00:26:27,313 --> 00:26:30,120 There we go, now Pidgin is installed. 392 00:26:30,220 --> 00:26:32,886 I can get rid of those .deb files, 393 00:26:32,986 --> 00:26:36,654 because I don't need them any more, now the application is installed. 394 00:26:36,754 --> 00:26:40,041 And you will find it under Applications -> Internet. 395 00:26:40,141 --> 00:26:43,966 So there we go, there's our Pidgin Internet Messenger. 396 00:26:45,823 --> 00:26:48,074 And that seems to work okay. 397 00:26:48,174 --> 00:26:51,842 I'm not going to use it right now. 398 00:26:51,942 --> 00:26:56,432 You can see that it all seems to be functioning as expected. 399 00:26:56,532 --> 00:27:00,103 I'll just close that. 400 00:27:00,203 --> 00:27:05,033 And that's installing a package manually. 401 00:27:07,174 --> 00:27:11,852 Finally we are going to look at removing packages. 402 00:27:12,070 --> 00:27:16,515 This is pretty straight forward, for removing software that's been installed 403 00:27:16,615 --> 00:27:20,908 either via Add/Remove or via Synaptic 404 00:27:21,008 --> 00:27:23,072 or indeed via gdebi. 405 00:27:23,172 --> 00:27:26,306 I'm going to remove Pidgin Internet Messenger 406 00:27:26,406 --> 00:27:30,349 because I'm not actually going to use it on this system. 407 00:27:30,449 --> 00:27:34,273 So if I go to System -> Administration -> Synaptic Package Manager, 408 00:27:34,373 --> 00:27:39,965 which is where we have installed programs previously, 409 00:27:40,065 --> 00:27:43,680 and I search for pidgin. 410 00:27:43,780 --> 00:27:47,067 Even though Pidgin wasn't installed from a repository, 411 00:27:47,167 --> 00:27:51,560 Synaptic knows about it because it is installed on my system. 412 00:27:51,660 --> 00:27:55,022 Now we have the option here to remove the application 413 00:27:55,122 --> 00:27:57,154 or completely remove. 414 00:27:57,254 --> 00:27:59,296 Completely remove is a more comprehensive remove, 415 00:27:59,396 --> 00:28:03,807 it removes configuration files and other bits and bobs as well. 416 00:28:03,907 --> 00:28:06,058 I'll remove Pidgin and Pidgin-data 417 00:28:06,158 --> 00:28:10,223 and I'm also going to search for the dependency that they installed. 418 00:28:10,323 --> 00:28:13,554 Now you'll notice this is quite a manual process 419 00:28:13,654 --> 00:28:19,205 and this is partly because we've installed these programs manually. 420 00:28:19,598 --> 00:28:24,700 There are ways in which we can remove multiple packages in one go 421 00:28:24,800 --> 00:28:28,843 I'm just showing you an easy way to remove individual packages, 422 00:28:28,943 --> 00:28:32,339 with Synaptic Package Manager. 423 00:28:32,951 --> 00:28:37,812 So you can see here I would gain another one MB 424 00:28:37,912 --> 00:28:41,724 if I remove this package, because it tells me when I click on it the properties, 425 00:28:41,824 --> 00:28:44,018 the size of the package. 426 00:28:44,118 --> 00:28:47,122 So now I've tagged three packages to be removed. 427 00:28:47,222 --> 00:28:49,307 I hit Apply 428 00:28:49,407 --> 00:28:53,712 and it says here these three packages will be removed. 429 00:28:54,914 --> 00:28:59,198 And I will free up 26MB of disk space. 430 00:29:00,378 --> 00:29:04,901 When I hit Apply it removes those packages. 431 00:29:06,125 --> 00:29:08,223 Done. 432 00:29:09,360 --> 00:29:14,189 So I've removed pretty much all trace of those three packages now. 433 00:29:15,020 --> 00:29:18,220 and of course I could go on to remove all the other packages 434 00:29:18,320 --> 00:29:22,100 that I've installed so far in this screencast. 435 00:29:25,641 --> 00:29:30,689 So in summary, we can install applications direct from the repository, 436 00:29:30,973 --> 00:29:36,284 We can install applications either via Add/Remove or Synaptic. 437 00:29:36,384 --> 00:29:39,789 We can also add additional repositories 438 00:29:39,889 --> 00:29:42,862 and then install software from those repositories, 439 00:29:43,037 --> 00:29:46,752 slightly dangerous, because we don't necessarily know what's in those repositories. 440 00:29:46,883 --> 00:29:48,881 and we don't have control over them. 441 00:29:48,981 --> 00:29:54,488 And finally we can install debs, that we can download off the Internet. 442 00:29:57,154 --> 00:29:59,602 I hope that's been useful. 443 00:30:01,000 --> 00:30:04,016 You can find all of our screencasts on our website, 444 00:30:04,116 --> 00:30:08,168 screencasts.ubuntu.com