Comment configurer, mettre en place et utiliser la ligne de commande IGEL OS (CLI) depuis le bureau IGEL OS et IGEL UMS.
Animateur : Andy Whiteside
Coanimateur : Patrick Toner
Co-animateur : Sébastien Perusat
Why the Command Line Matters in IGEL OS
IGEL OS is a read-only Linux operating system protected by signatures and encryption, so most administrators never need to touch the command line. Configuration happens through the local setup application or through profiles in the IGEL Universal Management Suite (UMS), and both interfaces cover the common tasks well.
Those interfaces are only the visible part of the iceberg. IGEL OS has more than 1000 settings, stored in what IGEL calls the registry. Putting all of them in a graphical interface would make it unreadable, so the command line gives access to everything below the surface.
What You Can Do From the Terminal
There are several practical reasons to use the command line: running commands, gathering logs, debugging, scripting, and customizing the device. Customization can go a long way, from changing the appearance of the desktop to adding specific applications. Anything that can be done at the command line can also be scripted, and then scheduled or automated.
Experienced administrators do not live in the terminal. Even so, there is real value in becoming comfortable with it. Linux can be learned gradually, starting with a hobby project on a low-cost device, and sooner or later the graphical tools run out and a configuration file needs editing or a service needs restarting.
Getting to a Terminal
There are two ways to open a terminal on the endpoint itself. The first is to create a profile in UMS and add a terminal session, which places a terminal icon on the desktop. The second is console switching, a key combination that moves from the graphical interface to a text console. It is enabled by default, and it is worth disabling in the profile’s access control settings, because a user can stumble into it and not know how to get back, and because it raises a security question.
Security also depends on passwords. If no administrator password is set on a device, no root password exists either. Setting an administrator password also sets the root password. A command such as whoami confirms which user is logged in.
Remote Access Through UMS
Often the device is somewhere else, such as a remote office or a home. IGEL’s secure terminal feature allows an administrator to open a shell on the device from the UMS console, without any separate client. It uses a Telnet-style connection routed through the IGEL Cloud Gateway, which makes it a good alternative to SSH when the device is not on the same network as the administrator.
The feature is enabled in a profile under system remote management, after the user and root passwords have been set. It helps with problems such as slow performance, where an administrator can run a command like top to see what the device is doing in real time instead of asking the user to describe it.
Commands Worth Knowing
The commands that come up most often for IGEL work include ln, used to create symbolic links and make custom configuration persistent, and sed, which edits strings and lines in configuration files. One example is enabling a Citrix feature that was not on by default by creating a JSON file with sed. Also useful are cp, netstat for understanding why a device cannot reach the UMS, and journalctl, which plays a role similar to the Windows event viewer.
For day-to-day troubleshooting, cd to move between directories and cat to read log files are used constantly. And there is a safety net: if a change goes wrong, a device can be reset to factory defaults in moments, so experimenting rarely does lasting harm.