-
Notifications
You must be signed in to change notification settings - Fork 1
/
How-to_Artix_on_VM.txt
55 lines (51 loc) · 3.15 KB
/
How-to_Artix_on_VM.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Goto the weekly download section of Artix (https://artixlinux.org/download.php#weekly) and download the "base-openrc" version.
Install VM-player and generate new VM (min. 20 GB of free disk space and 1 GB of RAM in your system).
Start VM/ISO.
A window appears where you can change to your preferred language and keybord.
Then click on “Boot Arch Linux (x86_64) from iso" to reboot the OS in the VM.
After system has booted, start typing:
artix:[artix]# loadkeys <your-preferred-keyoard-layout>
artix:[artix]# sudo mkfs.ext4 -L ROOT /dev/sda
artix:[artix]# sudo mount /dev/sda /mnt
artix:[artix]# basestrap /mnt base base-devel linux-lts linux-firmware openrc elogind-openrc nano dhcpd sudo grub os-prober
artix:[artix]# su
root:[root]# fstabgen /mnt >> /mnt/etc/fstab
root:[root]# artix-chroot /mnt
/bin/sh5 # nano /etc/locale.gen (Select language configuration "en_US.UTF-8 UTF-8","de_DE.UTF-8 UTF-8" by deleting the #)
/bin/sh5 # locale-gen
/bin/sh5 # nano /etc/locale.conf (Add your language to the system by adding this line: export "LANG=en_US.UTF-8" LANG=de_DE.UTF-8)
/bin/sh5 # echo KEYMAP=de-latin1-nodeadkeys > /etc/vconsole.conf
/bin/sh5 # nano /etc/conf.d/keymaps (add: keymap="de-latin1")
/bin/sh5 # ln –sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime (List of all the zones of the world: ls /usr/share/zoneinfo)
/bin/sh5 # hwclock --systohc
/bin/sh5 # passwd (type your password)
/bin/sh5 # nano /etc/hostname (type any name)
/bin/sh5 # ip -s link (Get the exact name of your interface)
/bin/sh5 # nano /etc/conf.d/net (Add config_<interface>="dhcp")
/bin/sh5 # ln -s /etc/init.d/net.lo /etc/init.d/net.<interface>
/bin/sh5 # rc-update add net.<interface> default
/bin/sh5 # rc-update add dhcpcd default
/bin/sh5 # pacman -S sudo nano make gcc which autoconf automake pkgconf patch bison flex cmake rpcsvc-proto gperf python intltool re2c diffutils git wget libtool
/bin/sh5 # nano /etc/pacman.conf
Enable lib32 repositories by uncomment the two lines of the [lib32] section:
[lib32]
Include = /etc/pacman.d/mirrorlist
Save file and exit nano.
Go on typing:
/bin/sh5 # pacman -Syy
/bin/sh5 # pacman -S sudo lib32-glibc lib32-gcc-libs lib32-zlib lib32-libelf
/bin/sh5 # echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/01wheel
/bin/sh5 # useradd -m aG wheel <username> (choose a name for a new user with superuser rights.)
/bin/sh5 # passwd <username> (set a password for the new user)
/bin/sh5 # ln -s /usr/lib/libmpc.so /usr/lib/libmpc.so.2
/bin/sh5 # ln -s /usr/lib/libmpfr.so /usr/lib/libmpfr.so.4
/bin/sh5 # grub-install --recheck /dev/sda
/bin/sh5 # grub-mkconfig –o /boot/grub/grub.cfg
/bin/sh5 # exit
root:[root]# reboot
Login as <username> and type:
[<username>@PC-NAME ~]$ git clone https://github.com/john9527/asuswrt-merlin
[<username>@PC-NAME ~]$ git clone https://github.com/st-ty1/Artix_Asuswrt-Merlin_John_fork Artix_asuswrt
[<username>@PC-NAME ~]$ cd Artix_asuswrt
[<username>@PC-NAME Artix_asuswrt]$ chmod 755 *.sh
[<username>@PC-NAME Artix_asuswrt]$ ./build_asuswrt-arm.sh (or ./build_asuswrt-mips.sh)