Quick Booting with Upstart, a Replacement for the Legacy Sys V Init JUMP START

Total Page:16

File Type:pdf, Size:1020Kb

Quick Booting with Upstart, a Replacement for the Legacy Sys V Init JUMP START SYSADMIN Upstart James Thew James Quick booting with Upstart, a replacement for the legacy Sys V Init JUMP START The slow Linux boot has troubled users for years. Now the Upstart userspace processes and initializing the machine. The process and its helper project offers a fresh approach to the problem of booting Linux. scripts load kernel modules, check and mount the filesystem, set up the net- BY NICO DIETRICH, DIRK VON SUCHODOLETZ work, launch servers, and call the graph- ical login manager. Init has to launch the he history of Linux includes verages many developments in modern services in a meaningful order. For ex- many attempts to address the Linux systems. Upstart, which has Unix ample, it doesn’t make sense to set the Tlong Linux boot process. This roots, cleverly steers clear of unneces- system time by polling a time server on comes as no surprise, as a long boot sary waits, runs start scripts simultane- the network until the machine becomes marathon will annoy all but the most pa- ously, and reduces the boot time to a available on the network. To do this, init tient of users. The legacy Unix System V minimum. The long-term plan is to re- has to first initialize the network hard- boot design was once revolutionary, but place generic background system ser- ware, and set up at least one network in- has turned out to be a millstone around vices such as the at daemon, cron, and terface for external access. the necks of many distributions. others with Upstart. Ubuntu 6.10 (Edgy The number of services and back- Although several tricks for speeding Eft) demonstrates the first effects of this ground agents has grown over the years, up the process have appeared through promising software. and this has made the init process the years, most boot reforms have clumsy. In contrast, desktop usage, turned out to be unworkable in practice, It All Starts with Init which is typical for Ubuntu, demands a and many of the turbo loaders employed Most Unix-style systems share the init dynamic system configuration. Mobile by gurus are inaccessible to regular concept. The process calls the kernel devices also make life really difficult for users. A new tool, Upstart, takes a fresh and assigns the kernel process ID 1. This Sys V Init. Roving devices require an ad- approach to speeding up Linux boot. sequence is hard-coded into the kernel – hoc approach to setting up network con- The high-flying Upstart project [1] in- in /usr/src/linux/init/main.c on Linux. nections, as well as a means for dynami- troduces a generic init daemon that le- Init has the task of launching all other cally configuring hardware. 62 ISSUE 76 MARCH 2007 WWW.LINUX - MAGAZINE.COM Upstart SYSADMIN To cope with this, Linux programmers When they started to think about the pleted,” “Apache running,” or (in the fu- have developed a number of tools: acpid new design, they had to choose between ture) “USB stick plugged.” and apmd for power management, the a target or result-oriented option for the HAL Device Manager for dynamic system launch. Target-oriented would Event Horizon mounting of drives, and the Resource mean defining the services that should Events are basically just simple strings. Manager for dynamic device privilege be running at the end of the start se- The Upstart developers divide events assignments to the user working with quence (KDM, SSH daemon, etc.). into three classes: the GUI desktop. Each of these sytems In this case, it would be necessary to • Simple edge events, such as “the sys- implements its own configuration logic, investigate each service and determine tem is booting,” or “the user has just and admins have to be familiar with this which other services it relied on. Based pressed a button.” logic to be able to run a required task at on these dependencies, the init system • Level events have an additional pa- the right point in time. would need to derive a meaningful rameter, such as the network interface Not all processes and services are tied startup sequence. This is exactly the ap- status. Services and tasks run either to starting or stopping a machine. For ex- proach that Gentoo adopted with its de- for any Level Event, or only when a ample, there are some special services, pend system (see the “Gentoo” box); parameter has reached a specific like cron and the at daemon, that launch Suse also follows this approach with a value. other processes at a certain time. They modified version of the Sys V Init (see • Temporal events occur after a specific are not linked to the runlevel system in the “Suse Linux” box). interval, or at a specific point in time. any way, although they have a similar In the other corner of the ring, there The developers kept to the open source underlying logic. This is another thing were events. Instead of formulating de- codex of release early, release often. that Upstart looks to change [3]. pendencies, which a script would proba- Thus, the code was released at a very bly need to handle at system start time, early stage, and the self-confident devel- Design Issues an event-based system would not run a opers presented a running system, in the Before the Ubuntu programmers decided script until a specific set of preconditions guise of Edgy Eft, to demonstrate how to develop a new system, they first in- was fulfilled. For example, it would not far they have gotten. Their aim is to col- vestigated contemporary alternatives to make sense to call an NFS client until lect as much feedback as possible from the familiar Sys V system [2]. None of the authoritative NFS became available. developers working on other Linux dis- the designs they looked at fulfilled their The system that Ubuntu opted for also tributions. expectations or was available under an understands more complex conditions, However, this also means that the acceptable license. such as “network configuration com- specifications might change in the Sys V Init The early Unix versions used a simple This lets administrators update the start any system. Three runlevels have clearly shell script to configure the machine and scripts without endangering the local defined tasks: Halt (0), Single User Mode, launch services. The design behind the configuration. and Reboot (6). BSD family’s /etc/rc, for example, was Sys V Init uses a far more flexible, but The /etc/inittab file specifies which run- convincingly simple, but it did have one also more complex, approach than BSD, levels exist and defines the runlevel the major drawback. Integrating third-party introducing runlevels that define specific system enters on booting (Figure 1). software, or custom-built extensions, machine states, based on the processes The Sys V design assumes that the sys- meant modifying the shell script. Unfor- that run in them. A total of eight runlev- tem will use a small number of defined tunately, modifying this code is quite els is possible, but not mandatory, for states, such as without network, with dangerous – a single mis- network, with X11, and so take could lead to an un- on. Administrators can bootable system. change the runlevel by In many cases, it takes giving the init Runlevel more than just a simple command. command to launch a Another advantage of this service, with the details approach is the separate varying depending on the scripts for each service or current environment. For configuration task. For ex- example, the ISC DHCP ample, calling /etc/init.d/ server can be set up to lis- dhcpd restart lets you re- ten on specific Ethernet launch the DHCP server interfaces, rather than on without affecting any all ports. To remove the other services. The idea of need for administrators using a collection of sym- to modify the start script links to determine the to do this, daemons often scope and order of the come with configuration scripts used in each run- files that parse the script. Figure 1: This typical inittab defines runlevels 0 through 6. level is also a good one. WWW.LINUX - MAGAZINE.COM ISSUE 76 MARCH 2007 63 SYSADMIN Upstart course of the next few months. The ex- splash (by deleting the splash token down, or runlevel-3 through runlevel-5 amples described here refer to version from the kernel command line in grub), occur (lines 7 through 10). In the future, 0.3 from early December. you won’t see too many messages. If you more complex semantics will support This version replaces the existing init want more, just remove the quiet entry. conditions with logical operators and process, however, don't assume that all On first inspection, the changes under pass in parameters to event scripts, if the start scripts have been modified to the hood are also hidden. If you give the needed. These files play the same role use the event mechanism. Upstart does man init or man telinit command, you as the entries in the legacy /etc/inittab. not support temporal events right now, are informed that the runlevel system This is why Edgy Eft has both rc2 and and there are plans to use other pro- has a new engine. No /etc/inittab file is the files shown at the top of Figure 2. grams, such as Udev and the ACPI or another telltale clue. /etc/init.d and the APM daemons, as event sources. accompanying start scripts still exist at Upstart-Compliant Jobs present as Ubuntu currently runs Upstart There are two ways of defining your own State of the Art in compatibility mode.
Recommended publications
  • What Are the Problems with Embedded Linux?
    What Are the Problems with Embedded Linux? Every Operating System Has Benefits and Drawbacks Linux is ubiquitous. It runs most internet servers, is inside Android* smartphones, and is used on millions of embedded systems that, in the past, ran Real-Time Operating Systems (RTOSes). Linux can (and should) be used were possible for embedded projects, but while it gives you extreme choice, it also presents the risk of extreme complexity. What, then, are the trade-offs between embedded Linux and an RTOS? In this article, we cover some key considerations when evaluating Linux for a new development: ■ Design your system architecture first ■ What is Linux? ■ Linux vs. RTOSes ■ Free software is about liberty—not price ■ How much does Embedded Linux cost? ■ Why pay for Embedded Linux? ■ Should you buy Embedded Linux or roll-your-own (RYO)? ■ To fork or not to fork? ■ Software patching ■ Open source licensing ■ Making an informed decision The important thing is not whether Linux or an RTOS is “the best,” but whether either operating system—or both together—makes the most technical and financial sense for your project. We hope this article helps you make an informed decision. Design Your System Architecture First It is important to design your system architecture first—before choosing either Linux or an RTOS—because both choices can limit architectural freedom. You may discover that aspects of your design require neither Linux nor an RTOS, making your design a strong candidate for a heterogeneous approach that includes one or more bare-metal environments (with possibly a Linux and/or RTOS environment as well).
    [Show full text]
  • Openprinting Plenary
    OpenPrinting Plenary Till Kamppeter, OpenPrinting IPP Everywhere under Linux – Driverless Printing · Support completely implemented: cups-filters: gstoraster/pdftoraster turns PDF into PWG Raster to send to IPP Everywhere printer, rastertopdf accepts PWG Raster as input for CUPS queue to emulate IPP Everywhere printer cups-browsed: If activated IPP Everywhere printers are discovered and a queue auto-generated, even with PPD file (PPD generator taken from CUPS 2.1.x, experimental) Ghostscript: PWG Raster format can be generated via “pwgraster” device or via “cups” device and MediaClass “PwgRaster” Printing stack of Level 2 is enough · Ubuntu Vivid (15.04) contains all this and therefore should fully support IPP Everywhere · Backport to Ubuntu Trusty (14.04 LTS) planned, but we need testing by manufacturers first · NEEDED: Testing all this by printer manufacturers, so please take Ubuntu 15.04 and test with your printers 2 Mobile Printing · Printing stack ready for mobile: cupsd and cups-browsed can be run on-demand, with systemd (most modern distros, incl. Ubuntu 15.04) or Upstart (Ubuntu Phone) Packaging of printing stack in three levels, level 2 for mobile, level 3 for desktop, server can be level 2 (appliance) or level 3 (computer) Printing stack is same software for mobile and desktop, so convergence (connect mobile phone to monitor to get desktop) is easy · MISSING: Mobile print dialog, but will be implemented soon for Ubuntu Mobile · Nice to have: Lightweight renderer like MuPDF 3 cups-filters · Most important changes: Create
    [Show full text]
  • Sysvinit / Upstart / Systemd
    SysVinit / Upstart / Systemd Zahemszky Gábor mérnök tanácsadó Zahemszky Gábor SysVinit / Upstart / Systemd init? ● Mire jó? ● Mire nem jó? ● Mi lenne, ha … (kávét főzne, kitakarítana, betakarítana, észlelné a bekapcsolt BT-fejhallgatót, a bedugot mobildiszket ...) Zahemszky Gábor SysVinit / Upstart / Systemd Ki mit használ jelenleg? Debian SysVinit Fedora Systemd OpenSUSE Systemd RHEL5 SysVinit RHEL6 Upstart SLES 10/11 SysVinit Ubuntu Upstart Többi? Kit érdekel? SysVinit Zahemszky Gábor SysVinit / Upstart / Systemd Előnyei ● Egyszerű maga az eszköz ● Egyszerűek az elindítot parancsfájlok ● Egyszerű a használt könyvtárstruktúra Zahemszky Gábor SysVinit / Upstart / Systemd Hátrányai ● Nem is annyira egyszerűek a parancsfájlok ● Mi van, ha az elindítot szerviz meghal? ● Miért fusson minden mindig, akkor is, ha csak ritkán akarjuk használni? Zahemszky Gábor SysVinit / Upstart / Systemd Mi a megoldás a problémákra? ● Bonyolítsuk el az egyszerű programot! ● Dobjuk ki az egyszerű scripteket! ● Strukturáljuk át az ismert, szabványosítot (LFS FHS) felépítésű fájlrendszert! Upstart Zahemszky Gábor SysVinit / Upstart / Systemd Upstart ● „Eseményvezérelt init-helyetesítő, amelynél a feladatok (task) és szolgáltatások (service) események (event) hatására indulnak el és állnak le” (*) ● Ellenben a feladatok és események elindítása / leállása más eseményeket generálhat ● Un. job segítségével mondhatjuk meg mi, merre, hány méter (mi, hogyan induljon/álljon le) ● Vezérlésre az initctl parancs szolgál (*) lásd upstart.ubuntu.com Zahemszky Gábor SysVinit
    [Show full text]
  • Nixos: a Purely Functional Linux Distribution
    NixOS: A Purely Functional Linux Distribution Eelco Dolstra Andres Loh¨ Delft University of Technology, The Netherlands Utrecht University, The Netherlands [email protected] [email protected] Abstract change after they have been built; rather, the system is updated to Existing package and system configuration management tools suf- a new configuration by changing the specification and rebuilding fer from an imperative model, where system administration actions the system from it. This allows a system to be built determinis- such as upgrading packages or changes to system configuration tically, and therefore reproducibly. It allows the user to roll back files are stateful: they destructively update the state of the sys- the system to previous configurations, since previous configura- tem. This leads to many problems, such as the inability to roll back tions are not overwritten. Perhaps most importantly, statelessness changes easily, to run multiple versions of a package side-by-side, makes configuration actions predictable: they do not mysteriously to reproduce a configuration deterministically on another machine, fail because of some unknown aspect of the state of the system. or to reliably upgrade a system. In this paper we show that we can We have previously shown how package management — the overcome these problems by moving to a purely functional system installation and management of software packages — can be done configuration model. This means that all static parts of a system in a purely functional way, in contrast to the imperative models (such as software packages, configuration files and system startup of conventional tools such as RPM (Foster-Johnson 2003).
    [Show full text]
  • Ubuntu Kung Fu.Pdf
    Prepared exclusively for J.S. Ash Beta Book Agile publishing for agile developers The book you’re reading is still under development. As part of our Beta book program, we’re releasing this copy well before we normally would. That way you’ll be able to get this content a couple of months before it’s available in finished form, and we’ll get feedback to make the book even better. The idea is that everyone wins! Be warned. The book has not had a full technical edit, so it will con- tain errors. It has not been copyedited, so it will be full of typos and other weirdness. And there’s been no effort spent doing layout, so you’ll find bad page breaks, over-long lines with little black rectan- gles, incorrect hyphenations, and all the other ugly things that you wouldn’t expect to see in a finished book. We can’t be held liable if you use this book to try to create a spiffy application and you somehow end up with a strangely shaped farm implement instead. Despite all this, we think you’ll enjoy it! Throughout this process you’ll be able to download updated PDFs from your account on http://pragprog.com. When the book is finally ready, you’ll get the final version (and subsequent updates) from the same address. In the meantime, we’d appreciate you sending us your feedback on this book at http://books.pragprog.com/titles/ktuk/errata, or by using the links at the bottom of each page.
    [Show full text]
  • Battle-Hardened Upstart Linux Plumbers 2013
    Battle-Hardened Upstart Linux Plumbers 2013 James Hunt <[email protected]> and Dmitrijs Ledkovs <[email protected]> September, 2013 Table of Contents Utilities 1. Overview 3. Enablements 2. Design and Architecture cloud-init Event-based Design friendly-recovery Example Job gpg-key-compose SystemV Support Summary SystemV Runlevels 4. Quality Checks Bridges 5. Areas of Friction More Events 6. Links . 2 / 31 Overview of Upstart Revolutionary event-based /sbin/init system. Written by Scott James Remnant (Canonical, Google). Maintained by Canonical. Developed by Canonical and the community. PID 1 on every Ubuntu system since 2006 (introduced in Ubuntu 6.10 "Edgy Eft"). Systems booted using native Upstart jobs (not SysVinit compat) since Ubuntu 9.10 ("Karmic Koala") in 2009. Handles system boot and shutdown and supervises services. Provides legacy support for SystemV services. Upstart is a first-class citizen in Debian ([Debian Policy]). 3 / 31 Availability and Usage Runs on any modern Linux system. Used by... 6.10 ! 11.3/11.4 RHEL6 ChromeOS Now available in... 4 / 31 Platform Presence Upstart runs on all types of systems: Desktop systems Servers Embedded devices Thin clients (such as ChromeBooks, Edubuntu) Cloud instances Tablets Phones (Ubuntu Touch) . 5 / 31 Cloud Upstart is the #1 init system used in the cloud (through Ubuntu). Ubuntu, and thus Upstart, is used by lots of large well-known companies such as: HP AT&T Wikipedia Ericsson Rackspace Instagram twitpic … Companies moving to Ubuntu... Netflix . Hulu eBay 6 / 31 Versatility Upstart is simple and versatile The /sbin/init daemon only knows about events and processes: it doesn't dictate runlevel policy.
    [Show full text]
  • Pipenightdreams Osgcal-Doc Mumudvb Mpg123-Alsa Tbb
    pipenightdreams osgcal-doc mumudvb mpg123-alsa tbb-examples libgammu4-dbg gcc-4.1-doc snort-rules-default davical cutmp3 libevolution5.0-cil aspell-am python-gobject-doc openoffice.org-l10n-mn libc6-xen xserver-xorg trophy-data t38modem pioneers-console libnb-platform10-java libgtkglext1-ruby libboost-wave1.39-dev drgenius bfbtester libchromexvmcpro1 isdnutils-xtools ubuntuone-client openoffice.org2-math openoffice.org-l10n-lt lsb-cxx-ia32 kdeartwork-emoticons-kde4 wmpuzzle trafshow python-plplot lx-gdb link-monitor-applet libscm-dev liblog-agent-logger-perl libccrtp-doc libclass-throwable-perl kde-i18n-csb jack-jconv hamradio-menus coinor-libvol-doc msx-emulator bitbake nabi language-pack-gnome-zh libpaperg popularity-contest xracer-tools xfont-nexus opendrim-lmp-baseserver libvorbisfile-ruby liblinebreak-doc libgfcui-2.0-0c2a-dbg libblacs-mpi-dev dict-freedict-spa-eng blender-ogrexml aspell-da x11-apps openoffice.org-l10n-lv openoffice.org-l10n-nl pnmtopng libodbcinstq1 libhsqldb-java-doc libmono-addins-gui0.2-cil sg3-utils linux-backports-modules-alsa-2.6.31-19-generic yorick-yeti-gsl python-pymssql plasma-widget-cpuload mcpp gpsim-lcd cl-csv libhtml-clean-perl asterisk-dbg apt-dater-dbg libgnome-mag1-dev language-pack-gnome-yo python-crypto svn-autoreleasedeb sugar-terminal-activity mii-diag maria-doc libplexus-component-api-java-doc libhugs-hgl-bundled libchipcard-libgwenhywfar47-plugins libghc6-random-dev freefem3d ezmlm cakephp-scripts aspell-ar ara-byte not+sparc openoffice.org-l10n-nn linux-backports-modules-karmic-generic-pae
    [Show full text]
  • Ubuntu Linux Server Structure and Config
    Ubuntu Linux Server Structure and Config PacNOG5 June 16 – Papeete, French Polynesia Hervey Allen nsrc@SANOG10 New Delhi, India What's Our Goal? ● A bit of Debian & Ubuntu philosophy ● Differences from the Red Hat world – Package system – Debian's root philosophy – Tools you may need – Installing your environment – How the OS and services start/stop nsrc@SANOG10 New Delhi, India Some Practical Matters ● Please do not change the root or inst passwords. ● Questions are encouraged :-) ● Questions? nsrc@SANOG10 New Delhi, India Who We Think We Are Teaching A class that has already experienced or used Linux or UNIX in the real world. We're assuming an intermediate to advanced level of knowledge. Are we right? nsrc@SANOG10 New Delhi, India Some Philosophy ● Debian's conservative model – Very different from Fedora Core ● Releases and Repositories ● Ubuntu's benefactor: Mark Shuttleworth ● Desktop vs. Server vs. LTS versions ● The connection with Debian ● Restricted software and Ubuntu nsrc@SANOG10 New Delhi, India Ubuntu Debian Release Name Version Release Name Version Warty Warthog 4.1 buzz 1.1 Hoary Hedgehog 5.04 rex 1.2 bo 1.3 Breezy Badger 5.10 hamm 2.0 Dapper Drake 6.06 slink 2.1 Edgy Eft 6.10 potato 2.2 Feisty Fawn 7.04 woody 3.0 Gutsy Gibbon 7.10 sarge 3.1 etch 4.0 6.06 is “LTS” 7.10 is planned (7/10) lenny tba nsrc@SANOG10 New Delhi, India The World of Ubuntu Start here: http://www.ubuntu.com/ Server – “Feisty Fawn” 7.04 (18 month support) – “Dapper Drake“ 6.06 LTS (5 years support) – “Edgy Eft” 6.10 (18 month support) Desktop – Current are 6.10 and 7.04.
    [Show full text]
  • The Generative Internet
    The Generative Internet The Harvard community has made this article openly available. Please share how this access benefits you. Your story matters Citation Jonathan Zittrain, The Generative Internet, 119 Harvard Law Review 1974 (2006). Published Version doi:10.1145/1435417.1435426;doi:10.1145/1435417.1435426 Citable link http://nrs.harvard.edu/urn-3:HUL.InstRepos:9385626 Terms of Use This article was downloaded from Harvard University’s DASH repository, and is made available under the terms and conditions applicable to Other Posted Material, as set forth at http:// nrs.harvard.edu/urn-3:HUL.InstRepos:dash.current.terms-of- use#LAA ARTICLE THE GENERATIVE INTERNET Jonathan L. Zittrain TABLE OF CONTENTS I. INTRODUCTION..............................................................................................................................1975 II. A MAPPING OF GENERATIVE TECHNOLOGIES....................................................................1980 A. Generative Technologies Defined.............................................................................................1981 1. Capacity for Leverage .........................................................................................................1981 2. Adaptability ..........................................................................................................................1981 3. Ease of Mastery....................................................................................................................1981 4. Accessibility...........................................................................................................................1982
    [Show full text]
  • Journal of Functional Programming Nixos: a Purely Functional Linux
    Journal of Functional Programming http://journals.cambridge.org/JFP Additional services for Journal of Functional Programming: Email alerts: Click here Subscriptions: Click here Commercial reprints: Click here Terms of use : Click here NixOS: A purely functional Linux distribution EELCO DOLSTRA, ANDRES LÖH and NICOLAS PIERRON Journal of Functional Programming / Volume 20 / Special Issue 5­6 / November 2010, pp 577 ­ 615 DOI: 10.1017/S0956796810000195, Published online: 15 October 2010 Link to this article: http://journals.cambridge.org/abstract_S0956796810000195 How to cite this article: EELCO DOLSTRA, ANDRES LÖH and NICOLAS PIERRON (2010). NixOS: A purely functional Linux distribution. Journal of Functional Programming,20, pp 577­615 doi:10.1017/ S0956796810000195 Request Permissions : Click here Downloaded from http://journals.cambridge.org/JFP, by Username: nrnr, IP address: 108.20.67.9 on 31 Aug 2012 JFP 20 (5 & 6): 577–615, 2011. c Cambridge University Press 2010 577 doi:10.1017/S0956796810000195 First published online 15 October 2010 NixOS: A purely functional Linux distribution EELCO DOLSTRA Department of Software Technology, Delft University of Technology, Postbus 5031, 2600 GA Delft, The Netherlands (e-mail: [email protected]) ANDRES LOH¨ Department of Information and Computing Sciences, Utrecht University, Postbus 80 . 089, 3508 TB Utrecht, The Netherlands (e-mail: [email protected]) NICOLAS PIERRON EPITA Research and Development Laboratory, 14-16 rue Voltaire, 94276 Le Kremlin-Bicetreˆ cedex, France (e-mail: [email protected]) Abstract Existing package and system configuration management tools suffer from an imperative model, where system administration actions such as package upgrades or changes to system configuration files are stateful: they destructively update the state of the system.
    [Show full text]
  • Ubuntu Linux Server Structure and Config
    Ubuntu Linux Server Structure and Config SANOG 10 Workshop August 29 – New Delhi, India Hervey Allen nsrc@SANOG10 New Delhi, India What's Our Goal? ● A bit of Debian & Ubuntu philosophy ● Differences from the Red Hat world – Package system – Debian's root philosophy – Tools you may need – Installing your environment – How the OS and services start/stop nsrc@SANOG10 New Delhi, India Some Practical Matters ● Please do not change the root or inst passwords. ● Questions are encouraged :-) ● Questions? nsrc@SANOG10 New Delhi, India Who We Think We Are Teaching A class that has already experienced or used Linux or UNIX in the real world. We're assuming an intermediate to advanced level of knowledge. Are we right? nsrc@SANOG10 New Delhi, India Some Philosophy ● Debian's conservative model – Very different from Fedora Core ● Releases and Repositories ● Ubuntu's benefactor: Mark Shuttleworth ● Desktop vs. Server vs. LTS versions ● The connection with Debian ● Restricted software and Ubuntu nsrc@SANOG10 New Delhi, India Ubuntu Debian Release Name Version Release Name Version Warty Warthog 4.1 buzz 1.1 Hoary Hedgehog 5.04 rex 1.2 bo 1.3 Breezy Badger 5.10 hamm 2.0 Dapper Drake 6.06 slink 2.1 Edgy Eft 6.10 potato 2.2 Feisty Fawn 7.04 woody 3.0 Gutsy Gibbon 7.10 sarge 3.1 etch 4.0 6.06 is “LTS” 7.10 is planned (7/10) lenny tba nsrc@SANOG10 New Delhi, India The World of Ubuntu Start here: http://www.ubuntu.com/ Server – “Feisty Fawn” 7.04 (18 month support) – “Dapper Drake“ 6.06 LTS (5 years support) – “Edgy Eft” 6.10 (18 month support) Desktop – Current are 6.10 and 7.04.
    [Show full text]
  • Systemd:Systemd: Thethe Newnew Initinit Systemsystem Forfor Linuxlinux
    systemd:systemd: thethe newnew initinit systemsystem forfor LinuxLinux GlennGlenn HolmerHolmer MilwaukeeMilwaukee LinuxLinux UsersUsers GroupGroup JuneJune 14,14, 20142014 History init, the father of processes ✔ BIOS loads bootloader from hard drive ✔ bootloader loads GRUB ✔ GRUB loads kernel ✔ kernel mounts filesystems and loads drivers ✔ kernel starts first process (init) sysvinit startup ✔ init looks for default runlevel and runs its scripts to start the appropriate services ✔ each runlevel has a directory /etc/rcN.d/ with start and stop symlinks to scripts in /etc/init.d init systems traditional: sysvinit (Linux) alternate: OpenRC (Gentoo), upstart (Ubuntu) other OS: BSD, SMF (Solaris), launchd (Mac) What's wrong with sysvinit? synchronous everything started at boot time can't control double-forked child processes What's better about systemd? asynchronous services started only when needed (via socket) services run in cgroups Why is systemd controversial? “do one thing and do it well” (feature creep) depends on dbus/kdbus Linux-specific (because of cgroups) binary log file (the journal) http://0pointer.de/blog/projects/the-biggest-myths.html Why is systemd controversial? “do one thing and do it well” (feature creep) depends on dbus/kdbus Linux-specific (because of cgroups) binary log file (the journal) http://0pointer.de/blog/projects/the-biggest-myths.html personality conflicts... systemd adoption Ubuntu: upstart 2006 (native init 2009) Fedora: upstart 2008, systemd 2011 RHEL: RHEL 7 (just released) uses systemd SUSE: upstart option 2010, systemd 2011 SLES: SLES 12 (Q3) will use systemd Debian: systemd 2014, Ubuntu will follow Mechanics Why is sysvinit synchronous? services wait for their dependencies (which open a socket when ready) Why not open the socket on startup? services with dependencies can start at once socket buffer holds messages until ready Why is sysvinit slow? shell scripts! (shell loaded over and over) multiple invocations of grep, awk, sed..
    [Show full text]