We left off looking at /mnt/etc/fstab in nano. We have the base system installed to sda and now we're going to configure the installation with
arch-chroot /mntI highly suggest following the Arch Beninners' Guide whilst doing this.
Now that you're in chroot, there are some files that need to be edited, locale.gen and locale.conf.
First, do
nano /etc/locale.gen...and uncomment the line(s) with UTF-8 of the locale(s) you desire, in my case
en_US.UTF-8 UTF-8. Then exit nano, saving the edited file.Next, run
locale-genThe next file,
locale.conf doesn't exist yet, so we're going to make it with:echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8***NOTE*** Replace en_US.UTF-8 with the locale you chose if using a locale other than English
Next, we will set the time zone.
Use
ls /usr/share/zoneinfoto see all available countries, then list the directory with your country, for example:
ls /usr/share/zoneinfo/America/Choose the city nearest you (New York for me), and create a symlink:
ln -s /usr/share/zoneinfo/America/New_York /etc/localtimeThen set the hardware clock:
hwclock --systohc --utcNow, I'm going to set a hostname by doing
echo EXAMPLE_HOSTNAME > /etc/hostnameNext, we're going to configure the wired network interface to start at boot.
***NOTE*** The following section has been FIXED. This is now unnecessary.
for i in /sys/class/net/*; do
echo "==$i"
udevadm test-builtin net_id "$i";
echo
done 2>/dev/nullIn the following configuration, the value of
ID_NET_NAME_PATH will be used in place of [interface]We will be using netcfg for wired connections.
Install
ifplugd withpacman -S ifplugd...and change the value for
WIRED_INTERFACE to the value of ID_NET_NAME_PATH like so:nano /etc/conf.d/netcfgand change
WIRED_INTERFACE="eth0"to
WIRED_INTERFACE="[interface]"...and finally enable the service:
systemctl enable net-auto-wired.serviceAlso, enable dhcpcd to run at boot:
systemctl enable dhcpcd***NOTE*** I am intentionally skipping wireless for now, as that it a BEAST to configure on the 6910p (If anyone's curious why, check Arch's wiki on Broadcom Wireless [yes, they have an entire section of the wiki specifically for Broadcom])
Next we're going to configure
pacman (no, not the game, the [pac]kage [man]ager).There are tons of articles on using
pacman, but for now we're just going to be very basic and simply configure it.***NOTE*** This only applies if installing x86_64 (a 64-bit system)
Selecting repositories:
Do
nano /etc/pacman.conf...and scroll down to the line that reads
#[multilib].Uncomment that line and the two line following it and run
pacman -SyNext, set a root password with
passwdPlease make sure that this is a strong password as it is your root password. If you don't know what root is, this is a good explanation.
Next, we will create a normal user with
useradd, like so:useradd -m -g users -G wheel -s /bin/bash [username]
passwd [username]Let's break that down:
useradd - add user command.-m - makes the user's home folder at /home/[username]-g users - the user's primary group, in this case, users-G wheel - any supplementary groups, wheel for this user-s /bin/bash - the user's login shell[username] - username, must be alphanumeric (letters and numbers) and all lower casepasswd [username] allows you to set the password for [username]In my next post, we'll be installing the bootloader and rebooting!
No comments:
Post a Comment