You are not logged in.

#1 2021-01-20 12:52:18

fazillatheef
Member
Registered: 2015-05-24
Posts: 10

[Solved] Internet connection is manual after install

After installation, I need to run the below command to connect to the Internet

dhcpcd enp0s3

I installed Arch on Virtual Box 6.1 running in Windows 10 Pro. During installation internet was working by default. After reboot it stopped working. And I had to use the above mentioned command. Could someone suggest options?

Steps I followed to install :-

Created a 15GB virtual disk

After booting to live CD

loadkeys uk

fdisk
to create two partitions for BIOS boot(2MB) and Linux filesystem(remaining)
GPT was also written

mkfs.ext4 /dev/sda2

mount /dev/sda2 /mnt

pacstrap /mnt base linux linux-firmware i3-wm python vim grub xorg-xserver dhcpcd

genfstab -U /mnt >> /mnt/etc/fstab

arch-chroot /mnt

ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime

hwclock --systohc

vim /etc/locale.gen
uncomment en_GB.UTF-8 UTF-8

locale-gen

vim /etc/locale.conf
LANG=en_GB.UTF-8

vim /etc/vconsole.conf
KEYMAP=uk

vim /etc/hostname
hostname

passwd
To set the root password

vim /etc/hosts
127.0.0.1    localhost
::1        localhost
127.0.1.1    hostname.localdomain    hostname

grub-install --target=i386-pc /dev/sda

grub-mkconfig -o /boot/grub/grub.cfg

vim /boot/grub/grub.cfg
Reduce wait in grub

useradd -m user1

passwd user1

Last edited by fazillatheef (2021-01-20 23:26:51)

Offline

#2 2021-01-20 13:41:12

jonno2002
Member
Registered: 2016-11-21
Posts: 684

Re: [Solved] Internet connection is manual after install

you need to enable the dhcpcd service after you install it, as with every service you install on arch linux.

https://wiki.archlinux.org/index.php/Sy … sing_units

Offline

#3 2021-01-20 13:41:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [Solved] Internet connection is manual after install

Offline

#4 2021-01-20 15:45:19

flyingscorpio
Member
Registered: 2020-06-04
Posts: 34

Re: [Solved] Internet connection is manual after install

This question seems to be asked on a daily basis...

Offline

#5 2021-01-20 19:30:49

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: [Solved] Internet connection is manual after install

As the installation guide says: "Complete the network configuration for the newly installed environment, that may include installing suitable network management software. "

Offline

#6 2021-01-20 23:16:50

fazillatheef
Member
Registered: 2015-05-24
Posts: 10

Re: [Solved] Internet connection is manual after install

Thanks for the replies.

Offline

#7 2021-01-20 23:26:11

fazillatheef
Member
Registered: 2015-05-24
Posts: 10

Re: [Solved] Internet connection is manual after install

I tried the following and it now works automatically

systemctl enable dhcpcd

Offline

Board footer

Powered by FluxBB