Contents
1. User Account Creation
Add user (huong) to wheel group and create home directory
1 |
# useradd -m -G wheel huong |
User (huong) password setting
1 2 3 4 |
# passwd huong New password: Retype new password: passwd: password updated successfully |
Grant sudo privileges to the added huong user
1 2 3 4 |
# vim /etc/sudoers Per Line 106 : add huong ALL=(ALL:ALL) ALL |
2 . Configuration of the text editor vim
Vim was already installed during the Arch Linux installation, so this is just a configuration file.
If you are installing vim
1 |
# pacman -S vim |
Create a new ~/.vimrc to make the vim editor easier to use
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# vim ~/.vimrc set encoding=utf-8 set fileencodings=utf-8,iso-2022-jp,sjis,euc-jp set fileformats=unix,dos set history=50 set ignorecase set smartcase set hlsearch set incsearch set number set showmatch set binary noeol set autoindent syntax on highlight Comment ctermfg=LightCyan set wrap |
3. Network Connections
■ If using systemd-resolved, create /etc/resolv.conf as a link file
1 |
# ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf |
■ If systemd-resolved is not used
Edit /etc/resolv.conf
1 2 3 4 5 6 |
# vim /etc/resolv.conf # Router DNS servers (varies by router model) nameserver 192.168.11.1 # Google Public DNS nameserver 8.8.8.8 |
4. Static IP address setting
Edit /etc/systemd/network/mynet.network, which was created during the installation process.
For example, set the IP address to "192.168.11.83
Set the network interface name "ens160" to match your environment.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# vim /etc/systemd/network/mynet.network Describe the following information [Match] Name=ens160 [Address] Address=192.168.11.83/24 [Network] DNS=192.168.11.1 [Route] Gateway=192.168.11.1 |
Name=ens160 network interface name
DNS=192.168.11.1 Router IP Address
Gateway=192.168.11.1 Router IP Address
Reflection of settings
1 |
# systemctl restart systemd-networkd.service |
5. Running 32-bit applications in a 64-bit environment
Edit the /etc/pacman.conf file so that the packages in the multilib repository are required and available
1 2 3 4 5 |
# vim /etc/pacman.conf Delete # in lines 90-91 [multilib] Include = /etc/pacman.d/mirrorlist |
Get package list for multilib
1 |
# pacman -Syy |
6. AUR Helper
Arch Linux has a useful Arch User Repository (AUR), so install the AUR Helper "yay" to use the AUR.
You cannot install it as root, so log in as a general user and install it.
Install git beforehand.
1 2 3 4 |
# su - huong $ git clone https://aur.archlinux.org/yay.git $ cd yay $ makepkg -si |
7. Time Synchronization
Install ntp as it uses ntp to get the time from an NTP server
1 |
# pacman -S ntp |
Edit ntp configuration file
1 2 3 4 5 6 7 8 9 10 11 12 |
# vim /etc/ntp.conf Rewrite to server on lines 11-14 Table of Contents # Associate to Arch's NTP pool server 0.pool.ntp.org iburst server 1.pool.ntp.org iburst server 2.pool.ntp.org iburst server 3.pool.ntp.org iburst #server 0.arch.pool.ntp.org #server 1.arch.pool.ntp.org #server 2.arch.pool.ntp.org #server 3.arch.pool.ntp.org |
Enable Services
1 2 |
# systemctl start ntpd # systemctl enable ntpd |
Check if synchronization is running (if marked with *, it is synchronized)
1 2 3 4 5 |
# ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== *ntp1.jst.mfeed. 133.243.236.17 2 u 54 64 37 18.387 -0.493 1.571 +ntp2.jst.mfeed. 133.243.236.18 2 u 51 64 37 17.573 -0.380 1.385 |
Thereafter, log in as the created user, and if necessary, use # su - to log in as the root user to set up the environment.
Then strengthen the firewall and SSH connection security.