Lab Information
With the installation of new tools on the app servers within the Stratos Datacenter, certain functionalities now necessitate graphical user interface (GUI) access.
Adjust the default runlevel on all App servers in Stratos Datacenter to enable GUI booting by default. It's imperative not to initiate a server reboot after completing this task.
Lab Solutions
π§ Part 1: Lab Step-by-Step Guidelines
πΉ Step 1: Log in to Jump Host
ssh thor@jump_host.stratos.xfusioncorp.com
Password:
mjolnir123
π Perform the following steps on ALL three App Servers
πΉ Step 2: SSH into each App Server
App Server 1
ssh tony@stapp01.stratos.xfusioncorp.com
Ir0nM@n
App Server 2
ssh steve@stapp02.stratos.xfusioncorp.com
Am3ric@
App Server 3
ssh banner@stapp03.stratos.xfusioncorp.com
BigGr33n
πΉ Step 3: Switch to root
sudo -i
πΉ Step 4: Set default target to GUI
systemctl set-default graphical.target
πΉ Step 5: Verify default target
systemctl get-default
Expected output:
graphical.target
π Repeat Steps 2β5 on all three app servers
β Final Checklist
β Completed on stapp01
β Completed on stapp02
β Completed on stapp03
β Default target set to graphical.target
β Verified using systemctl get-default
β No reboot performed
π§ Part 2: Simple Step-by-Step Explanation (Beginner Friendly)
πΉ What is βrunlevelβ in modern Linux?
Older Linux used:
runlevel 3 β CLI
runlevel 5 β GUI
Modern systems use systemd targets instead:
Old Runlevel New Target
3 multi-user.target
5 graphical.target
πΉ What does systemctl set-default graphical.target do?
It changes the default boot mode.
Instead of booting into:
multi-user.target (command line only)
The system will boot into:
graphical.target (GUI enabled)
πΉ Why no reboot?
The lab specifically says:
Do NOT reboot.
set-default only changes what will happen at the next boot.
It does not affect the current session.
πΉ How to verify?
systemctl get-default
If it prints:
graphical.target
You are done.
π Real-World Context
GUI boot is required when:
Desktop-based tools are installed
X11 forwarding is used
Monitoring dashboards require local display
Servers usually run CLI-only, but some tools require GUI.
Top comments (0)