GNU/Linux {docs}

Clear Linux

Bare Metal Installation

Download Clear Linux

$ curl -O https://download.clearlinux.org/image/$(curl https://download.clearlinux.org/image/latest-images | grep "installer")

Create a bootable device

Verify the integrity of the Clear Linux OS image:

$ sha512sum -c ./clear-[version number]-[image type].[compression type]-SHA512SUMS

Decompress the Clear Linux OS image:

either
$ unxz clear-[version number]-[image type].xz
or
$ gunzip clear-[version number]-[image type].gz

Burn the Clear Linux OS image onto a USB drive:

$ sudo umount /dev/sddx
$ sudo dd if=clear-[version number]-[image type] of=/dev/sdd bs=4M status=progress

Installation

https://clearlinux.org/documentation/clear-linux/get-started/bare-metal-install#download-the-latest-cl-installer-image

On the first boot, Clear Linux OS requests a user login. Type root. Enter a new password when prompted.

Install and update the OS software to its current version (if not done during initial installation):

# swupd bundle-add sysadmin-basic Create new user (if not done during initial installation):

# useradd <userid>
# passwd <userid>

Give user sudo privileges:

# usermod -G wheel -a <userid> Log off as root:

# exit Log in as the new user

Networking

By default systemd-networkd.service is running. If you want to connect via wifi, follow instructions below:

$ sudo swupd update
$ sudo swupd bundle-add hardware-wifi
$ sudo systemctl enable NetworkManager
$ sudo systemctl start NetworkManager

Activate WiFi for the first time

$ nmcli device wifi list
$ sudo nmcli device wifi connect <SSID|BSSID> password <password>

You now have access to the internet, but for the local network computers to see you, restart the computer.

Activate Ethernet

$ nmcli d
$ nmcli c
$ sudo nmcli device disconnect wlp3s0
$ sudo nmcli c mod wlp3s0 autoconnect no
$ sudo nmcli device connect enp0s25
$ sudo nmcli c mod enp0s25 autoconnect yes
$ sudo nmcli c up enp0s25

Activate Wifi

$ sudo nmcli device disconnect enp0s25
$ sudo nmcli device connect wlp3s0

Consequences for the system administrator (user)

The user should create configuration files as needed and avoid modifying distribution provided defaults. The filesystem folders and all content under /etc/ and /var/ may be modified as needed, but the content under /usr/, /lib/, /lib64/, /bin/, /sbin/ SHOULD NEVER BE MODIFIED, and will be overwritten by swupd(1) as needed.

Read: https://github.com/clearlinux/clr-man-pages/blob/master/stateless.7.rst#consequences-for-the-system-administrator-user

Xorg and XFCE4

$ sudo xwupd bundle-add x11-server
$ sudo swupd bundle-add xfce4-desktop
$ sudo swupd bundle-add desktop-apps
$ startx