-
Notifications
You must be signed in to change notification settings - Fork 2
/
funtoo
122 lines (96 loc) · 2.35 KB
/
funtoo
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
##
#
# Install Funtoo Linux (ARCH.iso)
#
##
https://www.archlinux.org/
https://www.funtoo.org/Welcome
https://www.youtube.com/watch?v=6JdgvkRKkBw
ARCH.ISO
ping -c3 bing.com
date 071620002011
hwclock --systohc
PuTTY
systemctl start sshd
ifconfig
100.11.111.00:22
passwd root
root
PuTTY
user [root]
passwd [root]
OK
cfdisk /dev/sda
100mb BOOT
2gb SWAP
/ ROOT
mkfs.ext2 /dev/sda1 -L BOOT
mkswap /dev/sda2 -L SW
swapon /dev/sda2
mkfs.ext4 /dev/sda3 -L /
mkdir /mnt/funtoo
mount /dev/sda3 /mnt/funtoo
mkdir /mnt/funtoo/boot
mount /dev/sda1 /mnt/funtoo/boot
Если вы не знаете, какой из них выбрать, выполните следующую команду:
gcc -march=native -Q --help=target | grep march
cd /mnt/funtoo
https://www.funtoo.org/Subarches
wget http://пример/stage3-latest.tar.xz
tar xvpf stage3-*.tar.*
cd /mnt/funtoo
mount --types proc /proc /mnt/funtoo/proc
mount --rbind /sys /mnt/funtoo/sys
mount --make-rslave /mnt/funtoo/sys
mount --rbind /dev /mnt/funtoo/dev
mount --make-rslave /mnt/funtoo/dev
cp -L /etc/resolv.conf /mnt/funtoo/etc/
chroot /mnt/funtoo /bin/bash
source /etc/profile
export PS1="[chroot] ${PS1}"
ego sync
nproc
.. 2 .. 4
nano -w /etc/portage/make.conf
MAKEOPTS="-j3 -l2"
nano -w /etc/fstab
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/sda1 /boot ext2 noauto,noatime 0 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext4 noatime 0 1
#/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
emerge packagename
ego sync
emerge -auDN @world
emerge -s debian-sources
emerge --ask boot-update
nano -w /etc/boot.conf
boot {
generate grub
default "Funtoo Linux genkernel"
timeout 3
}
grub-install --target=i386-pc --no-floppy /dev/sda
or
grub-install /dev/sda
nano -w /etc/default/grub
boot-update
or
grub-mkconfig -o /boot/grub/grub.cfg
rc-update add dhcpcd default
ls /usr/share/zoneinfo
cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime
echo "Europe/Moscow" > /etc/timezone
passwd root
exit
cd /mnt
umount -lR funtoo
reboot -=poweroff
0311/2018