-
Notifications
You must be signed in to change notification settings - Fork 1
/
Xenial NetBoot.txt
44 lines (37 loc) · 1009 Bytes
/
Xenial NetBoot.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
# boot gentoo
# format hard drive as GPT
sudo bash
lsblk
parted /dev/sda
...
mklabel gpt
quit
...
poweroff
# boot ubuntu xenial netboot installer
# uses "guided LVM" partitioning
# don't choose anything as base package installation
# boot gentoo to fix EFI firmware
sudo bash
lsblk
mount /dev/sda1 /mnt
mkdir -p /mnt/EFI/BOOT
cp /mnt/EFI/ubuntu/grubx64.efi /mnt/EFI/BOOT/bootx64.efi
umount /mnt
poweroff
# update system
sudo apt-get update
# ensure no dead package
sudo apt-get autoremove
# install some tools
sudo apt-get install vim nano screen htop psmisc dnsutils wget \
w3m git python-pip equivs xz-utils make g++ gcc cpp \
autoconf automake libtool flex bison gdb \
w3m-img
# install network manager
sudo apt-get install network-manager
sudo systemctl enable NetworkManager.service
sudo systemctl restart NetworkManager.service
sudo mkdir -p /boot/efi/EFI/ubuntu/fonts/
sudo cp /usr/share/grub/unicode.pf2 /boot/efi/EFI/ubuntu/fonts/
sudo grub-mkconfig -o /boot/efi/EFI/ubuntu/grub.cfg