First installation: from the ISO to a working domain

John Smith Ltd has bought an amd64 server with a 500 GB disk and a single network card, connected to the servers' LAN (10.20.0.0/24, gateway 10.20.0.1). It must become atlas, the appliance that…

Situation

John Smith Ltd has bought an amd64 server with a 500 GB disk and a single network card, connected to the servers’ LAN (10.20.0.0/24, gateway 10.20.0.1). It must become atlas, the appliance that acts as domain controller of the domain corp.johnsmith.test, as mail server of johnsmith.test and as administration console. The office already has Argos as router and DHCP for the offices, so Atlas must not hand out addresses to the PCs.

At the end of this scenario:

  • the appliance is installed and answers over HTTPS;
  • the domain corp.johnsmith.test exists and mail is active;
  • there is an administrator with his or her own name (lwhite) and root remains for emergencies;
  • the console opens from https://atlas.johnsmith.test/ with a trusted certificate.

The concepts of module, administrator and internal network are in Core concepts; the requirements and the full description of the procedures are in Installation and first configuration. Here you do, in order, everything that is needed.

What you need

  • The server, with a disk of at least 120 GiB (224 or more is recommended): the installer erases it entirely.
  • The ISO atlas-amd64.iso on a USB stick (or attached as an optical disc if the machine is virtual).
  • A free fixed address on the servers’ LAN, here 10.20.0.2, and the gateway 10.20.0.1.
  • Internet from the server, during the installation and afterwards: the ISO installer checks it before touching the disk, and the guided procedure downloads the service images.
  • A password for root: at least 8 characters with an uppercase letter, a lowercase letter, a digit and a symbol. Decide where you keep it (a password manager, the Caveau of another appliance): there is no other way in if you lose access.
  • An owner’s role mailbox that you read from another computer, here it@johnsmith.test: it receives the registration’s verification code and the security notices.
  • For the last part (Let’s Encrypt certificate): the public name atlas.johnsmith.test that the public DNS resolves to 198.51.100.40 (A record), the wildcard *.atlas.johnsmith.test CNAME atlas.johnsmith.test for the names Atlas gives under its own (for example the Argos sites’, <site>.satellites.atlas.johnsmith.test), and the router forwarding ports 80 and 443 to 10.20.0.2.
  • A PC on the same LAN with a browser, for the guided procedure. The procedure answers only from the local network.

Warning Set the IP address already in the installer. The domain is installed from the name and the address of the appliance, and the domain name and the server name can no longer be changed without reinstalling. Changing the address later is possible (see Network) but it is extra work on DNS, DHCP and PCs.

Steps

A. Installing the system

  1. Download the ISO atlas-amd64.iso from the Download page of the EDON website. It prepares the system, the disks (LVM), Atlas and its dependencies by itself, without needing a Debian mirror.
  2. Write the ISO to the USB stick (on Linux, for example dd if=atlas-amd64.iso of=/dev/sdX bs=4M status=progress oflag=sync, making sure you wrote the right name of the stick: dd overwrites without asking).
  3. Connect the network card to the servers’ LAN, on a port that reaches the internet, and boot from the stick. From the menu choose the installer in English.
  4. When asked for the time zone choose Ireland and check the date and time.
  5. In the network form, already filled in with the address obtained by DHCP, write 10.20.0.2, mask 255.255.255.0, gateway 10.20.0.1 and a reachable DNS (here 10.20.0.1). Leave atlas as the name.
  6. Choose the password of root. If it does not meet the requirements the installer asks again («Root password does not meet the requirements»). No other user is created.
  7. Let it run: partitioning is automatic (about half the disk for data, the rest free in the volume group) and the installation takes a few minutes. If the installer says «No internet connection» it reboots leaving the disk intact: correct address, gateway or DNS and start again.
  8. On rebooting from the disk, the atlas-firstboot service prepares the appliance on the console at tty1 and at the end prints «EDON Atlas is installed».
  9. Read the address the console proposes for the guided procedure and do not trust the port: see the box.

Warning The final box at tty1 and the banner in /etc/issue may still show the address with port 8000 («WebUI: …:8000»). The guided procedure, in the current version, answers over HTTP on port 80: open http://10.20.0.2/. If it does not open, try the other too.

B. The first-start guided procedure

  1. From a PC on the LAN open http://10.20.0.2/. «Welcome to Edon Atlas» appears and, at the top, the bar «Setup steps» with the five stages: Welcome, License, Owner, Registration, Installation.

    The first-start guided procedure, Welcome pageThe first-start guided procedure, Welcome page
    The first-start guided procedure, Welcome page
  2. Press «Continue». (The other route, «Restore from a backup», is for replacing a failed appliance: it is the scenario «Replacing a failed appliance with a full restore».)

  3. On the «License» page tick «Accept the license» and confirm the question «Do you confirm that you have read and accept the terms of the FSL-1.1-ALv2 license?».

  4. On the «Owner» page write John Smith Ltd in «Company name». With «VAT number» and «Look up» you can have the data filled in from the European VIES register: check it anyway («Filled in from VIES: check the data before continuing.»).

  5. Complete «First name» and «Last name» (here Laura and White), address, «Country» (Ireland) and «Phone».

  6. In «E-mail» write it@johnsmith.test. It must be a role mailbox that you can read now.

  7. On the «Registration» page tick the statement that you have read the privacy notice. It is required: registration is mandatory and collects no telemetry. Consent to commercial communications is optional and conditions nothing.

  8. Press «Send verification code». A 6-digit code arrives at it@johnsmith.test and is valid for 15 minutes.

  9. Write the code in «Verification code» and press «Verify». «Email address confirmed — the registration for it@johnsmith.test is complete. It will be activated once the installation finishes.» appears.

  10. On the «Ready to install» page check the list of services (Redis, PostgreSQL, nginx) and press «Start the installation».

  11. Follow the five phases in real time and do not switch the system off: it takes a few minutes and the internet connection.

  12. When «Installation complete.» appears press «Go to login». Atlas activates the secure web server and restarts by itself; if you do not press, it does so after a minute.

C. The first sign-in

  1. Open https://10.20.0.2/. The browser warns that the certificate is not trusted: it is the appliance’s own. For now choose to proceed (you will fix it at steps 39–43).
  2. On the sign-in page write root in «Username» and the password chosen at step 6 in «Password», then press «Log in».
  3. You arrive at System → Status. On an appliance without a domain only root counts: the sidebar shows few entries.

D. The domain

  1. Open System → Modules. With the domain still absent the page does not show the module cards but the guided configuration, at the page «Configuration type».

    The domain guided procedure, Configuration typeThe domain guided procedure, Configuration type
    The domain guided procedure, Configuration type
  2. Choose «New installation» (the other two, «Windows Server migration» and «Join a domain», are for when the customer already has a Windows domain) and press «Next».

  3. In the parameters write:

    • «Server name»: atlas;
    • «Local network domain»: corp.johnsmith.test. Never a name ending in .local: the procedure refuses it («A new domain can’t end in .local (reserved for mDNS): use e.g. company.lan or ad.company.com»);
    • «Administrator password» and «Confirm password»: a password of at least 8 characters with a lowercase letter, an uppercase letter, a digit and a symbol. Note it down together with the one of root.
  4. In «Optional services» tick «Install mail server» and leave «Install DHCP» off: the offices already have Argos’s DHCP. If later you need Atlas’s (for example for the phones, see Network), it is installed from the «DHCP services» tab of System → Modules.

  5. Press «Next». On the «Mail server» page write «Mail server hostname» atlas.johnsmith.test, «Postmaster address» postmaster@johnsmith.test and as «Accepted domains» johnsmith.test. The mail domain is not the local network’s. From the server name the VPN, Git, newsletter, single sign-on and PBX addresses also derive. Leave «Use relay» off if mail leaves directly (the provider’s relay is set when needed, in System → Settings → Mail server).

  6. Check the «Summary» and press «Start». The installation shows one row per phase («Active Directory domain creation», «Mail server installation (Postfix/Dovecot)») and may last several minutes. Do not close the page and do not switch the appliance off.

  7. At the end press «Go to system status».

E. The first administrator with his or her own name

  1. Sign out and sign in again with the user Administrator and the password from step 27. The domain is new: Administrator is a member of Domain Admins, therefore a console administrator.
  2. Open Active Directory → Users and press «Add user» (+).
  3. Fill in «Username» lwhite, «First name» Laura, «Last name» White, the password (the button next to the field generates one that respects the domain’s rule; note it down) and «Description» IT.
  4. In the «Features» block turn on «EDON administrator» (it puts the user in Domain Admins). Leave the other switches at their starting value.
  5. Press «Create user». The console warns if some setting was not applied («save it again»): in that case press «Save».
  6. Sign out and sign in again as lwhite. From the account menu, at the bottom of the sidebar, choose «Change password» and set a password that only you know: you saw the temporary one on the screen.
  7. Open Tools → MFA enrollment, press «Enroll token», frame the QR with the authenticator app and confirm with the code (see User tools). It is needed to get in from outside; from the internal network the password is enough.

F. The internet name and the certificate

  1. Check from outside the appliance that the public DNS resolves atlas.johnsmith.test to 198.51.100.40, that it resolves any name under it too (the wildcard *.atlas.johnsmith.test CNAME atlas.johnsmith.test, which does not cover the name itself: the A record stays) and that the router forwards ports 80 and 443 to 10.20.0.2. Let’s Encrypt checks the name through port 80.
  2. Open System → Settings → TLS certificates and turn on «Enable Let’s Encrypt». In «Contact email» write lwhite@johnsmith.test.
  3. Press «Apply» and wait for «Issuing the Let’s Encrypt certificate… Do not close this page.» without closing the page. By enabling it you accept Let’s Encrypt’s terms and conditions.
  4. Close the browser and open https://atlas.johnsmith.test/: the warning must no longer appear.
  5. If the internet name were different from the one chosen at step 29 (for example you want mail.johnsmith.test), it is changed from System → Settings → Hosts, tab «Internet name (FQDN)»: fix the public DNS first and read the scenario «A second mail domain and aliases» and the chapter Mail.

G. The first things not to forget

  1. Backup. Open System → Settings → Backup and set the «Archive encryption password» with «Set»: it is the only key of the backups, it can no longer be changed and without it not even the full restore starts. Keep it outside the appliance. Then create a storage and schedule the cycles: Backup and the scenario «Backing up servers and PCs, with windows and rotation».
  2. Updates. In System → Settings → Updates check that «Enable automatic updates» is on, choose the «Update time» (for example 04:30) and write lwhite@johnsmith.test in «Report email».
  3. Domain passwords. In System → Settings → Active Directory domain → Accounts & Passwords set «Lockout threshold (attempts)» to 10, «Lockout duration (min)» to 30 and «Reset lockout after (min)» to 30: the server is reachable from outside and with a threshold of 0 a password can be tried endlessly.
  4. Console from the internet. Leave «Allow access to the UI from the internet» off (System → Settings → Remote Support and Monitoring) until you have decided how: it is the scenario «Opening the console to the internet safely».

Check

  • System → Status: the panels «Services», «User homes», «Shares» and, for mail, «Mailboxes», «Antispam» and «Mail server» appear, and the services are running.
  • lwhite’s sidebar now shows Active Directory, DNS and Mail next to System.
  • Active Directory → Users (with «Show system users») lists Administrator and lwhite.
  • From a PC on the LAN: nslookup corp.johnsmith.test 10.20.0.10 answers with the domain controller’s address (the one that appears in System → Settings → Active Directory domain → Domain controller address). It is the address the PCs will have to use as DNS to join the domain: the scenario «A new PC in the domain, with profile and network folders» starts from here.
  • From a computer outside the LAN, https://atlas.johnsmith.test/ shows the valid certificate (the console stays closed to whoever does not have the second factor; see step 47).

If something goes wrong

Symptom What to check
The installer says «No internet connection» and reboots The disk is intact. Correct address, gateway or DNS in the network form and start again.
http://10.20.0.2/ does not open Try port 8000 too (http://10.20.0.2:8000/, as the banner says) and check that you are in the same /24 as the appliance. From another network the procedure does not answer: open a tunnel with ssh -L 8080:127.0.0.1:80 root@10.20.0.2 and go to http://localhost:8080/.
Instead of «Welcome to Edon Atlas» the page «Claim this setup» appears The appliance is a virtual machine created by EDON Krios: enter the code Krios showed to whoever created it, or open the link that came with it. Code expired or lost: see A VM created by Krios.
Registration says «The registration service did not answer» Try again in a few minutes; Atlas’s journal records the address contacted and the reason. If the code does not arrive, «Send a new code» and check that the mailbox it@johnsmith.test has not discarded it.
«The installation did not complete.» The reason is under the failed phase. «Retry the installation» resumes from the phases not completed. If only an optional phase stops, the red phases do not prevent access; «Send logs to support» sends the logs only if you press it.
«Go to login» does not lead to a page Atlas is restarting and moving nginx to ports 80 and 443: wait a few minutes.
«A new domain can’t end in .local» The suffix .local is reserved for mDNS. Choose another suffix.
«This server has no IPv4 address…» The domain is created on an IPv4 address of the appliance: fix the network first.
The domain installation stops halfway «Start over» restarts from the first page; the reason is in the server’s log.
Let’s Encrypt does not issue the certificate The public name does not point to the appliance, or port 80 does not arrive (router or firewall). With Let’s Encrypt active the name check is blocking.
You cannot create lwhite «Invalid login» (a letter, then letters and digits; 20 characters at most) or a weak password (use the button that generates it).

For the technician During the guided procedure nginx is installed but not started because port 80 is taken by Atlas; on restart Atlas moves to internal port 3000 and nginx takes 80 (with a redirect to HTTPS) and 443. Port 8000 stays as a bridge for old bookmarks and for Argos sites not yet updated. The setup writes /etc/edon/atlas.json and /etc/edon/atlas.env; the first-start log is /var/log/atlas-firstboot.log. Do not remove the domain module after installing it: a reinstalled domain, even with the same name, is another domain and every PC must be joined again.

LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer