Marlon's Wiki

it's better when it's simpler

User Tools

Site Tools


start:system:localization

This is an old revision of the document!


Artix Linux Localization

Update the system clock

Activate the NTP daemon to synchronize the computer's real-time clock:

 rc-service ntpd start

Configure the system clock

Set the time zone:

 ln -sf /usr/share/zoneinfo/Region/City /etc/localtime

Run hwclock to generate /etc/adjtime:

 hwclock --systohc

Note that this will default to UTC. If you use Windows and you want the time to be synchronized in both Artix and Windows, follow System_time#UTC_in_Windows:ArchWiki for instructions to enable UTC in there also. Localization

Install a text editor of your choice (let's use nano here) and edit /etc/locale.gen, uncommenting the locales you desire:

 pacman -S nano
 nano /etc/locale.gen

Generate your desired locales running:

 locale-gen

To set the locale systemwide, create or edit /etc/locale.conf (which is sourced by /etc/profile) or /etc/bash/bashrc.d/artix.bashrc or /etc/bash/bashrc.d/local.bashrc; user-specific changes may be made to their respective ~/.bashrc, for example:

 export LANG="en_US.UTF-8"     <-- localize in your languages
 export LC_COLLATE="C"

Network configuration

Create the hostname file:

 nano /etc/hostname
 myhostname

Now add matching entries to hosts:

 nano /etc/hosts
 127.0.0.1        localhost
 ::1              localhost
 127.0.1.1        myhostname.localdomain  myhostname

If the system has a permanent IP address, it should be used instead of 127.0.1.1.

If you use OpenRC you should add your hostname to /etc/conf.d/hostname too:

 hostname='myhostname'

And install your prefered DHCP client

 pacman -S dhcpcd or dhclient
start/system/localization.1735457239.txt.gz · Last modified: 2024/12/29 07:27 by marlonivo

Donate Marlon Ivo's Webpage