Functional System Requirements
Horizon UI The Horizon UI is the wizard-style user interface component of Project Horizon. The system takes the input of the User and creates a HorizonScript. The resultant HorizonScript is either executed on the running system when started in an installation environment, or saved for later use when started in a runtime environment.
System Initialisation
Description / Priority This section describes the boot-up and initialisation procedures for the Horizon UI Installation Environment.
Functional Requirements UI.Early.LoadFirmware If the User has specified to load firmware in the installation environment, the system shall install the linux-firmware package to the installation environment before eudev is started. UI.Early.DetectGfx The system shall detect all usable graphics adaptors present in the computer. UI.Early.NoGfx If there are no usable graphics adaptors present, the system shall display a message that installation cannot continue, and allow the User to login to a virtual TTY or reboot the computer. UI.Early.MultiGfx If multiple graphics adaptors are present, the system shall attempt to determine which graphics adaptor has a monitor attached. If the determiniation is that multiple graphics adaptors have monitors attached, or it is indeterminiate which adaptor has a monitor attached, then the system shall prompt the User to choose which graphics adaptor to use for installation.
Global UI Requirements
Description / Priority The system must obey these requirements on all screens, except where explicitly noted.
Functional Requirements UI.Global.Cancel The system shall display a Cancel button on every screen. UI.Global.Cancel.Confirm If the User chooses the Cancel button, the system shall confirm that the User wishes to cancel installation. The system shall additionally explain that no data has been modified yet, and that cancelling installation will cause the computer to reboot. UI.Global.Cancel.Perform If the User chooses to confirm cancellation of the installation, the system shall reboot the computer. UI.Global.Back The system shall display a Back button on every screen except the initial screen, which will move the User back to the previous screen. UI.Global.Back.Save If the User chooses to go back to a previous screen, the system shall save any changes the User has made to the current screen before moving back to the previous screen. The system shall then redisplay those changes when the current screen is shown again.
User Language Selection
Description / Priority A User must determine what natural language they are most comfortable with using for installing Adélie Linux. The system will allow the User to select their preferred natural language from a list of the languages to which the system has been translated. Priority: Medium.
Prerequisites UI.Language.Prerequisites The system must have more than one language translation available for use.
Functional Requirements UI.Language.List The system shall present the User with a list of natural languages, in the form of: "Install Adélie using English", "Installer Adélie en français". UI.Language.Button For this screen only, the system shall present the "Next" button as a single right-facing arrow. The system shall not present the Cancel button on this screen. UI.Language.Enable When the User chooses a language from the list, the system shall enable the Next button to be clicked.
HorizonScript Keys Script.Key.language language — The locale identifier of the chosen language.
Initial Introduction
Description / Priority The system will explain to the User an overview of the installation process, and introduce common UI elements. A User may choose to run a tool or proceed with the installation.
Functional Requirements UI.Intro.Describe The system shall present the User with a greeting message including a high-level overview of the installation process. The system shall reassure the User that the installation process will not modify any data until the final step. UI.Intro.Elements The system shall describe the UI elements common to each screen, including the Help button, the Back/Next buttons, and the Cancel button. UI.Intro.Tools The system shall allow the User to start a tool from the following list before beginning the installation. A terminal. An external partition editor. A lightweight Web browser.
Input Device Configuration
Description / Priority A User may have a keyboard that is not the Linux default of US QWERTY. As such, a User must be able to choose a keyboard layout that matches their hardware.
Functional Requirements UI.Input.LayoutList The system shall present the User with a list of available keyboard layouts. UI.Input.ChooseLayout When the User selects a keyboard layout, the system shall load the keyboard layout and apply it. UI.Input.Test The system shall present an input box for the User to test their selected keyboard layout.
HorizonScript Keys Script.Key.keymap keymap — The identifier of the chosen keyboard layout.
Disk Partitioning Setup
Description / Priority The User must partition their hard disk drive to be able to install Adélie Linux to it. The system will allow the User to do so, using automatic partitioning based on the platform and disk size, or allowing the User full control over partitioning. (Priority: High) The system will additionally allow the User to set up a dual-boot system, if the disk has enough free space to create the requisite partitions for an Adélie Linux installation. (Priority: Medium) The system will not allow the user to resize or delete existing partitions. If the system is running in a runtime environment, the User must describe the disks and any operations to perform on them.
Functional Requirements UI.Partition The system shall allow the User to partition their block devices. UI.Partition.Runtime If the system is running in a runtime environment, the system shall prompt the User to enter details about the block devices present on the target computer. UI.Partition.Runtime.DiskDetails The system shall prompt the User to enter the path to the block device, the size of the block device, and an optional identification string which can be used to ensure the proper block device is selected on the target computer. UI.Partition.Runtime.Labels The system shall allow the User to choose whether to retain an existing disklabel on the block device, or create a new one. UI.Partition.Runtime.LabelType The type of the disklabel on the block device must be specified, and of type APM, MBR, or GPT. UI.Partition.Runtime.Partition The system shall allow the User to create partitions on the specified block devices. UI.Partition.Runtime.Partition.ExistingLabel If the User has specified to retain an existing disklabel on a block device, the system shall stress to the user that they may only create new partitions on the disk and must not specify existing partitions on the disk. UI.Partition.Runtime.FS The system shall allow the User to choose to create new file systems on any named block device, including partitions that may not have been specified (since they may already exist on the block device). UI.Partition.Runtime.Mount The system shall allow the User to choose what block devices to mount, and the mount point to use for each mounted block device. UI.Partition.Runtime.Mount.Options The system shall allow the User to specify custom mount options for each mounted block device. UI.Partition.Install If the system is running in an installation environment, the system shall gather details about available block devices on the computer. UI.Partition.Install.Ignore When gathering details about available block devices on the computer, the system shall ignore optical disc and tape drive units. UI.Partition.Install.Details The system shall gather the following details about available block devices: identification string (manufacturer, model), total size, current disklabel or file system (if any). UI.Partition.Install.ExistingLabels If the system contains one or more block devices with disklabels, the system shall gather the partition layout of each disklabel, and file system and type code information for each partition. UI.Partition.Install.ExistingOS The system shall use the os-prober tool to determine if any operating systems are currently installed on the computer. UI.Partition.Install.FreeSpace The system shall determine if any block device with existing disklabels has enough free space in the existing disklabel to create the requisite partitions needed for an installation of Adélie Linux. UI.Partition.Install.UserPrompt The system shall prompt the user for the desired partitioning action to take. UI.Partition.Install.UserPrompt.MultiDisk If the computer has multiple available block devices, the system shall allow the User to choose which block device to use for installation, and display the appropriate screen based on the block device chosen. UI.Partition.Install.UserPrompt.SingleDisk If the computer has only one available block device, the system shall display the appropriate screen based on that block device. UI.Partition.Install.UserPrompt.NoDisk If the computer has no available block device, the system shall inform the User that no block devices are available, and that installation cannot continue. UI.Partition.Install.UserPrompt.Unlabelled If the block device contains no label, the system shall allow the User to choose an automatic disk label and partition layout based on the platform or to specify their own partition layout. UI.Partition.Install.UserPrompt.LabelledWithSpace If the block device contains a disklabel, and the disklabel has enough free space for a minimal installation based on the platform, the system shall allow the User to choose an automatic partition layout, to use the existing partition layout, to specify their own partition layout, or to remove the existing data and automatically label and partition the entire disk. UI.Partition.Install.UserPrompt.LabelledAndFull If the block device contains a disklabel, and the disklabel is either full or does not have enough free space for a minimal installation based on the platform, the system shall allow the User to choose to use the existing partition layout, to specify their own partition layout, or to remove the existing data and automatically label and partition the entire disk. UI.Partition.Install.Automatic If the User chooses to use an automatic disklabel and/or partition layout on the block device, the system shall create the necessary partition layout as defined by the platform of the computer. UI.Partition.Install.Manual If the User chooses to specify their own partition layout, the system shall allow the User to create partitions as desired. UI.Partition.Install.Mount If the User chooses to specify their own partition layout, or to use the existing partition layout on the disk, the system shall allow the User to choose the mount points for any extant partitions.
HorizonScript Keys Script.Key.diskid diskid — The identification strings of the disk(s). Script.Key.disklabel disklabel — Disklabels to create, if any. Script.Key.partition partition — Partitions to create, if any. Script.Key.lvm_pv lvm_pv — LVM PVs to create, if any. Script.Key.lvm_vg lvm_vg — LVM VGs to create, if any. Script.Key.lvm_lv lvm_lv — LVM LVs to create, if any. Script.Key.encrypt encrypt — Block devices to encrypt, if any. Script.Key.fs fs — File systems to create, if any. Script.Key.mount mount — File systems to mount, including block device and mountpoint.
Firmware Setup
Description / Priority A User may possess hardware that requires non-free binary firmware to operate. This screen will allow the User to choose whether to load such firmware or not. Note that this feature can be compiled out of Horizon UI, and can also be disabled at run-time with a configuration setting.
Prerequisites UI.Firmware.Prerequisites The system must have firmware support compiled in.
Functional Requirements UI.Firmware.Prompt The system shall ask the User whether or not to load binary firmware, stressing that security-sensitive systems must not choose this option. UI.Firmware.Load If the User chooses to load binary firmware, the system shall add the APK Fission repository and the linux-firmware package to the installed environment.
HorizonScript Keys Script.Key.firmware firmware — Whether to load firmware.
Networking Setup
Description / Priority Most Users will want to configure a network connection on their computer. The system will allow the User to configure their wired or wireless network connection, including authentication information (wireless), IP v4 and v6 addressing, routing, and DNS.
Prerequisites UI.Network.Prerequisites The system must have at least one non-loopback network interface detected by the kernel.
Functional Requirements UI.Network.AddressType The system shall ask the User whether they wish to use automatic addressing (DHCP), manual addressing, or disable network connectivity. UI.Network.AddressType.MaybeNotDisable The system shall not allow the User to disable network connectivity if any required repository is unavailable locally. UI.Network.AddressType.Skip If the User chooses to disable network connectivity, the system shall proceed to the System Metadata screen. UI.Network.RuntimeEnv If Horizon UI is running in a runtime environment instead of an installation environment, the system shall allow the User to add their network interface by device name before proceeding. UI.Network.ChooseIface If the computer has more than one network interface, the system shall prompt the User to choose which interface to use for installation. UI.Network.Wireless If the chosen network interface is a wireless network interface, the system shall display a Wireless Configuration screen. UI.Network.Wireless.None The system shall allow the User to disable wireless connectivity. UI.Network.Wireless.None.Multi If the User has chosen to disable wireless connectivity, and the computer has multiple network interfaces, the system shall start at UI.Network.ChooseIface again. UI.Network.Wireless.None.Single If the User has chosen to disable wireless connectivity, and the computer only has wireless networking, the system shall prompt the User to confirm they wish to continue without networking. UI.Network.Wireless.APs The system shall display a list of access points in range of the wireless interface for the User to select from. UI.Network.Wireless.ReloadAPs The system shall allow the User to refresh the list of access points in range. UI.Network.Wireless.CustomAP The system shall allow the User to input a custom access point name. UI.Network.Wireless.Security If the chosen access point uses authentication, the system shall prompt the User for the requisite credentials. UI.Network.Wireless.CustomSecurity If the User inputs a custom access point name, the system shall prompt the User for the type of security used (or none) and requisite credentials. UI.Network.Wireless.Enable The system shall enable the Next button when an access point is selected or input, and the requisite credentials (if any) have been input. UI.Network.Wireless.Connect When the User chooses Next, the system shall attempt to connect to the specified wireless network. UI.Network.Wireless.Error If an error occurs during wireless network connection, the system shall display a message explaning the error condition, and redisplay the Wireless Configuration screen. UI.Network.Wireless.ConnectTimeOut The system shall time out after waiting 15 seconds for the wireless network to connect, and consider a time out an error condition as specified in UI.Network.Wireless.Error. UI.Network.Automatic If the User selected automatic addressing, the system shall attempt to obtain an IPv4 address via DHCP and an IPv6 address via Router Advertisement and DHCPv6. UI.Network.Automatic.TimeOut If no IP address is obtained for v4 or v6 after 15 seconds, the system shall display a message that automatic configuration failed, and ask the User whether to retry the attempt, use manual addressing, or skip networking configuration. UI.Network.WirelessPortal If the computer has obtained an address automatically and is using a wireless network, the system shall test if the network is using a captive portal by attempting to download the file at http://detectportal.firefox.com and determining if the response is success. UI.Network.WirelessPortal.Open If the captive portal test determines a captive portal is in use, the system shall open a lightweight Web browser and attempt to navigate to http://detectportal.firefox.com/. UI.Network.WirelessPortal.Open.Message The system shall display a message on the lightweight Web browser that instructs the user to close the Web browser when network connectivity is established in order to continue the installation. UI.Network.Manual If the User selected manual address, the system shall prompt the User for the following information: Network information to collect from User for manual configuration Information Description IPv4 host address The address of this computer IPv4 subnet mask The subnet mask / prefix of the network IPv4 default gateway The router on the network IPv4 DNS resolver The DNS resolver to use on IPv4 networks; default to 9.9.9.9 IPv6 host address The address of this computer IPv6 network prefix The prefix of the network IPv6 default gateway The router on the network IPv6 DNS resolver The DNS resolver to use on IPv6 networks; default to 2620:fe::fe
UI.Network.Manual.Test The system shall allow the User to test their network configuration by attempting to connect to distfiles.adelielinux.org. UI.Network.Manual.Enable The system shall enable the Next button when either an IPv4 or IPv6 configuration is complete (address, subnet mask, gateway, DNS resolver).
HorizonScript Keys Script.Key.network network — Whether to enable network connectivity. Script.Key.netaddress netaddress — Connection information. Script.Key.nameserver nameserver — DNS resolver information. Script.Key.netssid netssid — Wireless networking information.
System Metadata Setup
Description / Priority A User needs to specify the timezone the computer will be running in, and the computer's name. The computer's name is used even on non-networked computers, for shell prompts and login screens. The system will also allow the User to ensure the current date and time are accurate.
Functional Requirements UI.SysMeta.DateTime If the system is running in an installation environment, the system shall display the date and time currently stored in the RTC (Real Time Clock), and allow the User to update the date and time stored in the RTC. UI.SysMeta.Timezone The system shall allow the User to choose the time zone to use for time display. UI.SysMeta.DefaultTimezone The system shall use UTC as the default time zone. UI.SysMeta.Hostname The system shall allow the User to input the host name of the computer. UI.SysMeta.DefaultHostname The system shall provide a default host name for the User, calculated using the following algorithm: If the system is running in a non-installation environment, use "Adelie" and end calculation. If the system has a manufacturer available via DMI or similar API, use that name truncated to 11 characters. Otherwise, use "Adelie". If the system has a network adaptor installed, even if it is not configured for use, use the last six characters of the MAC address from the first network adaptor. Otherwise, use a random fruit name. UI.SysMeta.VerifyHostname The system shall ensure that the host name input by the User uses only valid characters for DNS names, and not accept characters that are invalid. UI.SysMeta.Enable The system shall enable the Next button when the host name field contains a valid name, and disable the Next button when it is empty.
HorizonScript Keys Script.Key.timezone timezone — The zoneinfo name of the system's timezone. Ex: Africa/Nairobi. Script.Key.hostname hostname — The name of the system.
Package and Package Set Selection
Description / Priority The system will let the User choose what packages and sets of packages to install on their computer.
Functional Requirements UI.Packages.DisabledNetwork If the User has chosen to disable the network, the system shall only display presets and packages available for installation locally. UI.Packages.SimpleSel The system shall allow the User to choose from one of the following four preset package sets, or to customise the packages installed. UI.Packages.SimpleSel.Standard The system shall allow the User to choose the Standard preset, which uses adelie-base-posix as an anchor package, and includes the firefox-esr, libreoffice, thunderbird, and vlc packages, and the kde and x11 metapackages. UI.Packages.SimpleSel.Notebook The system shall allow the User to choose the Notebook preset, which includes the Standard preset and additional power management tools (UPower, pm-utils). UI.Packages.SimpleSel.Minimal The system shall allow the User to choose the Minimal preset, which uses adelie-base as an anchor package, and includes the lxqt-desktop, featherpad, netsurf, xorg-apps, xorg-drivers, and xorg-server packages. UI.Packages.SimpleSel.MinimalTUI The system shall allow the User to choose the Minimal Non-Graphical preset, which uses adelie-base as an anchor package, and includes the elinks and tmux packages. UI.Packages.SimpleSel.Custom The system shall allow the User to choose to customise the packages installed on their computer. UI.Packages.SimpleSel.Enable The system shall enable the Next button when a selection is made. UI.Packages.Custom If the User chooses Custom from UI.Packages.SimpleSel, the system shall present the User with a list of packages and package sets and allow the User to choose any or all of the packages listed. The system shall display the disk space used by each selection, and the total required for installation. UI.Packages.Custom.Packages The system shall offer at least the following packages, with the following names, descriptions, and corresponding APK package names. Custom packages offered on the Package Selection screen Name Description APK name Firefox Web browser The most popular and powerful Web browser for Linux. Includes JavaScript and multimedia (audio/video) playback support. firefox-esr Netsurf Web browser Lightweight Web browser. Does not include JavaScript support. netsurf Thunderbird Email Read and compose email, and participate in newsgroups. thunderbird FeatherPad Lightweight text editor. featherpad LibreOffice Popular, extensible office suite. libreoffice: libreoffice-base, libreoffice-calc, libreoffice-draw, libreoffice-impress, libreoffice-math, libreoffice-writer VLC Media Player Popular multimedia player, including support for a wide variety of audio and video types. vlc KDE Applications A variety of applications including a word processor, media player, and many games. kde KDE Plasma Modern desktop environment with graphical effect support. plasma-desktop LXQt Desktop Environment Lightweight desktop environment using the Openbox window manager and Qt widgets. lxqt-desktop MATE Desktop Environment Traditional desktop environment based on the GNOME 2 look and feel. mate-complete XFCE Desktop Environment Desktop environment based on Gtk+. xfce-desktop Window Managers Individual window managers that are not part of a desktop environment. awesome, fluxbox, i3wm, icewm, openbox, spectrwm
UI.Packages.Size If the User has selected a package set or packages that will use more disk space than the computer has, the system shall prompt the User to confirm the selection and warn that installation may not be successful.
HorizonScript Keys Script.Key.pkginstall pkginstall — A space-separated list of packages to install.
Boot Setup
Description / Priority
Functional Requirements <para/> </formalpara> </section> </section> <section id="ui_accounts"> <title>System Accounts Setup
Description / Priority The User needs to configure the administrator password, and provide their name/alias and password for their own account.
Functional Requirements UI.Accounts.RootPW The system shall prompt the User to enter a password for the root user. UI.Accounts.RootPW.Confirm The system shall prompt the User to re-enter the root user password to confirm accuracy. UI.Accounts.RootPW.Explain The system shall explain to the User the important of keeping the root user's password secure, and written in a safe place, as it is used for system administration. UI.Accounts.RootPW.Enable The system shall enable the Next button when the root password and confirmation match and represent a valid password. UI.Accounts.UserAcct The system shall prompt the User to enter their name or alias to personalise their copy of Adélie Linux, and up to four others. UI.Accounts.UserAcct.AcctName The system shall prompt the User to enter an account name for their user account. UI.Accounts.UserAcct.AcctName.Default The system shall use the following algorithm to provide a default account name for the User: If the User's name or alias contains no spaces, let the account name be the entire name or alias. If the User's name or alias contains spaces, let the account name be the first character of each word that is not the last word, and the full last word. Transform the account name to a Latinised, lower-case form, as described by (Insert Unicode reference here). If the account name is longer than 32 characters, truncate the account name to 32 characters. UI.Accounts.UserAcct.Icon The system shall allow the User to choose a personal icon to be shown on the system login screen from a list of preset icons. UI.Accounts.UserAcct.Password The system shall prompt the User to enter a password for their personal account. UI.Accounts.UserAcct.Password.Confirm The system shall prompt the User to re-enter their personal password to confirm accuracy. UI.Accounts.UserAcct.Enable The system shall enable the Next button when the user name, account name are valid, and the password and confirm password fields match and represent a valid password. UI.Accounts.UserAcct.Others The system shall allow the User to add up to four more user accounts, with account name, personal name/alias, personal icon, and password entry using the same requirements as the primary user acconut. UI.Accounts.UserAcct.Others.Wheel For each account the User adds, the system shall ask the User if the user should be an administrator or not. The primary user account will always be an administrator.
HorizonScript Keys Script.Key.rootpw rootpw — The crypt(3)-formatted, SHA-512 hashed password for the root account. Script.Key.username username — The account name(s) given. Script.Key.useralias useralias — The user's name or alias. Script.Key.userpw userpw — The crypt(3)-formatted, SHA-512 hashed password for the account(s). Script.Key.usericon usericon — Path to the chosen icon for the account(s). Script.Key.usergroups usergroups — The groups to which the user account(s) will belong. "users,lp,audio,cdrom,cdrw,scanner,camera,video,games" for normal users; add ",usb,kvm,ping,wheel" for administrators.
Save HorizonScript
Description / Priority The User is now able to save the HorizonScript they have created using the Horizon UI. Priority: Medium, since installation environment concerns are paramount for release 1.0.
Prerequisites UI.Writeout.Prerequisites The system must be running in a runtime environment, not an installation environment.
Functional Requirements UI.Writeout.Explain The system shall inform the User that the system has finished collecting information and is now ready to save the resultant HorizonScript. UI.Writeout.Button The system shall replace the "Next" button with a "Save" button using the same keyboard accelerator as Next. UI.Writeout.Save When the User chooses "Save", the system shall open a dialogue for the user to navigate to the directory in which they wish to save the HorizonScript, and the name of the file-on disk which shall default to installfile. UI.Writeout.Close If the HorizonScript file is saved successfully, the system shall exit. UI.Writeout.Failure If the HorizonScript file cannot be saved successfully, the system shall display a message indicating the error, and then redisplay the writeout screen.
Begin Installation
Description / Priority The system will describe to the User what will be done. The User may confirm, or go back.
Functional Requirements UI.Commit.Explain The system shall explain to the User that the next step will be performing the installation. UI.Commit.Explain.Disk If the disk partitioning will cause existing data to be modified or destroyed, the system shall additionally explain to the User that proceeding will modify or destroy the data on the disk(s) partitioned. UI.Commit.Explain.Info The system shall display the major choices the User has made in the installation. The choices shown shall be determined later during the UX design phase and are intentionally omitted from this requirements specification. UI.Commit.Buttons The system shall remove the Cancel button, and the Next button shall be labelled Install.
Perform Installation
Description / Priority The system installs Adélie Linux per the User's choices.
Prerequisites UI.Perform.Prerequisites.Wizard If the system is running in a graphical installation environment, the HorizonScript used shall be the HorizonScript generated from the User's choices in the Horizon UI. UI.Perform.Prerequisites.GUIServer If the system was booted with a HorizonScript specified, and the graphical progress output option is enabled, the HorizonScript used shall be the HorizonScript loaded from the file or network location specified.
Functional Requirements UI.Perform The system shall execute the Horizon Runner with the specified HorizonScript, and display the installation progress. UI.Perform.Buttons The system shall display no buttons during installation. UI.Perform.Status The system shall update the current step being performed, the progress of the step being performed, and the overall progress of the installation, whenever it receives an update from the Horizon Runner. UI.Perform.Error If the Horizon Runner reports an error, the system shall display a screen explaining the error, possible causes, possible solutions, and that the installation has failed. UI.Perform.Error.Save The system shall allow the User to save the HorizonScript used, along with relevant log files, to a storage location. UI.Perform.Complete When Horizon Runner reports that installation is complete, the system shall continue to UI.Finish.
Installation Completion
Description / Priority The system informs the User that installation has completed successfully, and allows the User to optionally save the HorizonScript and log files, then remove any media and reboot the computer.
Functional Requirements UI.Finish The system shall display a screen congratulating the User on a successful installation of Adélie Linux. UI.Finish.Save The system shall allow the User to save the HorizonScript and log files related to this installation to a storage location. UI.Finish.Save.Error If an error occurs while saving the HorizonScript and log files, the system shall display a message explaining the error, and allow the User to choose a different storage location. UI.Finish.RemoveMedia The system shall prompt the User to remove any installation media used, including optical media. UI.Finish.Buttons The system shall only display a single button: Complete, which uses the same keyboard accelerator as the Next button. The Complete button shall cause the system to reboot. UI.Finish.Automatic If the system is using a HorizonScript loaded from a file or network location, then the system shall automatically reboot the computer in 15 seconds.
&runner;