9:59:59.000,9:59:59.000 Today, I talk about FAI.me, which is a[br]build for images. 9:59:59.000,9:59:59.000 First, anybody that never heard anything[br]about FAI? 9:59:59.000,9:59:59.000 Ok 9:59:59.000,9:59:59.000 I started this project in 1999. 9:59:59.000,9:59:59.000 I'm not sure… 9:59:59.000,9:59:59.000 No, I'm sure that during those times, the[br]Debian installer did not have 9:59:59.000,9:59:59.000 the preseeding stuff, so we needed[br]something automatically. 9:59:59.000,9:59:59.000 I installed the first cluster with FAI and[br]I always do talks on FAI or 9:59:59.000,9:59:59.000 today in the lightning talks, I talk[br]a little bit about dracut, 9:59:59.000,9:59:59.000 which is used in FAI. 9:59:59.000,9:59:59.000 So, what was the motivation. 9:59:59.000,9:59:59.000 A neighbour of mine, she came to me with 9:59:59.000,9:59:59.000 "My Windows desktop is broken,[br]can you reinstall it?" 9:59:59.000,9:59:59.000 And in the end, I installed her Linux,[br]and I was shortly thinking about 9:59:59.000,9:59:59.000 "Should I use FAI for installing her[br]desktop with Linux?" 9:59:59.000,9:59:59.000 And in the end, I did not use it because[br]FAI is too complicated, 9:59:59.000,9:59:59.000 like the Debian installer, I guess it's[br]not really that easy for beginners 9:59:59.000,9:59:59.000 because there are a lot of questions 9:59:59.000,9:59:59.000 but also FAI is not really for beginners. 9:59:59.000,9:59:59.000 So this was the motivation about thinking[br]about FAI. 9:59:59.000,9:59:59.000 The target group was always advanced[br]sysadmins 9:59:59.000,9:59:59.000 but I thought maybe it's possible to make[br]FAI usable also for people 9:59:59.000,9:59:59.000 that are not that advanced sysadmins. 9:59:59.000,9:59:59.000 The idea is that an installer should cover[br]most installations. 9:59:59.000,9:59:59.000 The Debian installer is really perfect[br]because I think it covers 9:59:59.000,9:59:59.000 all different kinds and strange environments 9:59:59.000,9:59:59.000 You can do a lot of things, you can configure[br]very strange combination of language, 9:59:59.000,9:59:59.000 keyboard layout and so on 9:59:59.000,9:59:59.000 but I was thinking about an installer[br]that covers 90 or 95% of the installations 9:59:59.000,9:59:59.000 A lot of special cases can be ignored and[br]since the Debian installer has like 9:59:59.000,9:59:59.000 more than 20 questions, I thought it would[br]be much nicer if there were only 9:59:59.000,9:59:59.000 3 to 5 questions and I looked at Linux Mint[br]and Mageia installers, CentOS installer, 9:59:59.000,9:59:59.000 and they all ask much less questions. 9:59:59.000,9:59:59.000 In the Debian installer, we sometimes[br]have also things that are asked 9:59:59.000,9:59:59.000 during the installation, so not everything[br]is asked at the very beginning. 9:59:59.000,9:59:59.000 For example, the task selection, where you[br]select your desktop, 9:59:59.000,9:59:59.000 is done after the base installation. 9:59:59.000,9:59:59.000 This was also very important, I would like[br]to have something that 9:59:59.000,9:59:59.000 asks everything at the very beginning. 9:59:59.000,9:59:59.000 Then, maybe some tool could create[br]a customized installation image 9:59:59.000,9:59:59.000 and this installation image should run[br]then completely unattended 9:59:59.000,9:59:59.000 so you can get yourself a coffee and[br]when you come back, your machine is ready. 9:59:59.000,9:59:59.000 There are 3 things to customize installation[br]image, 9:59:59.000,9:59:59.000 you just put this image, you do not have[br]to touch anything, and then it's ready. 9:59:59.000,9:59:59.000 I thought "Oh yes, this is FAI, maybe[br]FAI can do this." 9:59:59.000,9:59:59.000 As I said, FAI is only, or was until now[br]only a tool for experienced sysadmins 9:59:59.000,9:59:59.000 and you have to adjust several config[br]files, these are ASCII files 9:59:59.000,9:59:59.000 but still you have to touch 5 to 10[br]config files to make a customization. 9:59:59.000,9:59:59.000 So, how can I make FAI usable for[br]beginners? 9:59:59.000,9:59:59.000 That's the beginning of FAI.me. 9:59:59.000,9:59:59.000 There's a web page, we'll show it[br]in more detail later, 9:59:59.000,9:59:59.000 where you can just click some things, and[br]then you get a customized image. 9:59:59.000,9:59:59.000 This image can be put onto a CD, DVD or[br]USB stick, just with dd 9:59:59.000,9:59:59.000 and the customization is just by using[br]the web interface 9:59:59.000,9:59:59.000 so there's no need for you to edit[br]a text file, a config file inside FAI. 9:59:59.000,9:59:59.000 I hope I covered most important thangs[br]that you want to adjust 9:59:59.000,9:59:59.000 or a little bit customize. 9:59:59.000,9:59:59.000 You can add additional packages, I think[br]that's the most important thing 9:59:59.000,9:59:59.000 that people say "I want to have the normal[br]Debian installation 9:59:59.000,9:59:59.000 but with some additional packages." 9:59:59.000,9:59:59.000 And you can select different different[br]distributions, so it's not only 9:59:59.000,9:59:59.000 the installation image for the stable[br]release, you can create 9:59:59.000,9:59:59.000 3 variants of the installation. 9:59:59.000,9:59:59.000 This is the web page and thanks to Juri,[br]he did a great job 9:59:59.000,9:59:59.000 during the first and second day, he added[br]a new feature that we now have 9:59:59.000,9:59:59.000 a toggle button. 9:59:59.000,9:59:59.000 Is it big enough or should I zoom in? 9:59:59.000,9:59:59.000 Ok. 9:59:59.000,9:59:59.000 So, we have a toggle button, what you see[br]now is just the bare minimum or questions 9:59:59.000,9:59:59.000 and we can toggle it to more advanced[br]settings. 9:59:59.000,9:59:59.000 You have to select or just leave this as[br]it is, username, 9:59:59.000,9:59:59.000 if you do not enter a password, a password[br]will be generated and shown to you 9:59:59.000,9:59:59.000 and sent by e-mail. 9:59:59.000,9:59:59.000 I will now just type in the password. 9:59:59.000,9:59:59.000 It's here in clear text, for me that's fine[br]because 9:59:59.000,9:59:59.000 there's also a comment that you should[br]change the password after the installation 9:59:59.000,9:59:59.000 and I do not like to enter passwords twice[br]so you can see what you typed in 9:59:59.000,9:59:59.000 and hopefully do not make any wrong[br]mistakes. 9:59:59.000,9:59:59.000 For example, we could select the Stretch[br]distribution with backports, 9:59:59.000,9:59:59.000 so we will get a 4.15 kernel with Stretch. 9:59:59.000,9:59:59.000 There are some buttons we can say we want[br]to have some Debian developer tools. 9:59:59.000,9:59:59.000 This is what I defined in the FAI[br]configuration, so just a list of packages. 9:59:59.000,9:59:59.000 Here, you can enter you own packages.[br] 9:59:59.000,9:59:59.000 I will select the desktop. 9:59:59.000,9:59:59.000 You can have an installation without any[br]desktop, so a very small installation. 9:59:59.000,9:59:59.000 I will select the XFCE desktop, but all[br]the other desktops are here. 9:59:59.000,9:59:59.000 The language, these are just task packages[br]that are… 9:59:59.000,9:59:59.000 I think Debian has much more task packages,[br]I just searched which are 9:59:59.000,9:59:59.000 the most common languages, and what I do[br]if I say I want the spanish language, 9:59:59.000,9:59:59.000 also the keyboard layout is spanish. 9:59:59.000,9:59:59.000 I know there are different combinations[br]and with local time, 9:59:59.000,9:59:59.000 it's getting more difficult. 9:59:59.000,9:59:59.000 This installation will install the clock[br]with UTC, so if you want to set 9:59:59.000,9:59:59.000 your time, you have to do this manually. 9:59:59.000,9:59:59.000 I want to cover the most common installations. 9:59:59.000,9:59:59.000 We select english US, the desktop and,[br]as an example, the midnight commander 9:59:59.000,9:59:59.000 and GIMP. 9:59:59.000,9:59:59.000 I can add an email address so if it would[br]take longer, 9:59:59.000,9:59:59.000 for example if this service will have[br]success and a lot of people are using it, 9:59:59.000,9:59:59.000 you may wait for some minutes so your job[br]will be finished. 9:59:59.000,9:59:59.000 So here are the comments, how to reconfigure[br]the keyboard or the timezone 9:59:59.000,9:59:59.000 and then you just click "Create[br]the installation image". 9:59:59.000,9:59:59.000 Now, in the background, there's some job,[br]a script, looking "Oh, there's a new job" 9:59:59.000,9:59:59.000 and there's a summary of the configuration,[br]of the web configuration. 9:59:59.000,9:59:59.000 Down here you see these are the[br]FAI classes, 9:59:59.000,9:59:59.000 I will explain a little bit more about this. 9:59:59.000,9:59:59.000 But with this information, FAI configuration[br]is generated, 9:59:59.000,9:59:59.000 that's what normally the experienced[br]sysadmins have to create 9:59:59.000,9:59:59.000 but here you just click on some buttons[br]and it will be done for you. 9:59:59.000,9:59:59.000 In the meantime, we have some more[br]advanced features 9:59:59.000,9:59:59.000 which I will also show you later. 9:59:59.000,9:59:59.000 For example, this very simple installation[br]just creates one partition 9:59:59.000,9:59:59.000 but you can also select that you want[br]to have a separate /home partition 9:59:59.000,9:59:59.000 or using lvm just by selecting this[br]on the web interface. 9:59:59.000,9:59:59.000 You can also add your SSH public key[br]for logging as root without a password 9:59:59.000,9:59:59.000 or what's very nice, I found the new[br]Ubuntu installer does this, 9:59:59.000,9:59:59.000 you can give your github account and[br]then there's a comment which 9:59:59.000,9:59:59.000 receives the public key from your[br]github account and puts it 9:59:59.000,9:59:59.000 into the root account so you can log in[br]without password. 9:59:59.000,9:59:59.000 I think that's very neat. 9:59:59.000,9:59:59.000 And if you have a repository with your own[br]packages, you could also add this and say 9:59:59.000,9:59:59.000 "Please install those packages from[br]my publicly available repository." 9:59:59.000,9:59:59.000 Let's see. 9:59:59.000,9:59:59.000 As we see, this job finished in 74 seconds. 9:59:59.000,9:59:59.000 Now, this customised installation image[br]is available for download. 9:59:59.000,9:59:59.000 You can also download the log file. 9:59:59.000,9:59:59.000 Since this is an installation image,[br]I first have to create 9:59:59.000,9:59:59.000 a partial package mirror. 9:59:59.000,9:59:59.000 This is done by the command 'fai-mirror'[br]and you can also read the log of 9:59:59.000,9:59:59.000 this call of the fai-mirror, where a list[br]of all you packages with all the dependencies 9:59:59.000,9:59:59.000 are available. 9:59:59.000,9:59:59.000 So you see, these are the list of packages[br]and later they are downloaded 9:59:59.000,9:59:59.000 and in the end, it says it created a mirror[br]of 1G of packages 9:59:59.000,9:59:59.000 and since I have a local mirror,[br]it's very fast. 9:59:59.000,9:59:59.000 This is the one part on the installation[br]image partial mirror with all the packages 9:59:59.000,9:59:59.000 and the other is that the config space[br]which you can also download. 9:59:59.000,9:59:59.000 So this is the config space that was[br]really created for you 9:59:59.000,9:59:59.000 by clicking the web interface. 9:59:59.000,9:59:59.000 If you want to do more things with FAI,[br]you can set up your own FAI server 9:59:59.000,9:59:59.000 and use this configuration space. 9:59:59.000,9:59:59.000 And, that's also very new, the two commands[br]that are used for creating this ISO image 9:59:59.000,9:59:59.000 are now also listed there. 9:59:59.000,9:59:59.000 First, create the partial mirror and then[br]create the installation image. 9:59:59.000,9:59:59.000 Ok, copy link location… 9:59:59.000,9:59:59.000 Let's see how good the network is here. 9:59:59.000,9:59:59.000 [Q] It's a rather large image. 9:59:59.000,9:59:59.000 Yeah, because it includes all the packages