-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmanual.txt
55 lines (38 loc) · 1.4 KB
/
manual.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
installation of stage4 Secploit OS .
1. first you have to get the desired device you want to install .
fdisk -l
2. in our case , VMWARE , VB , /dev/sda is the most common .
### Step -3. start the process of partion by executing the following commands :
parted -s /dev/sda mklabel gpt
parted -s /dev/sda unit mib
parted -s /dev/sda mkpart primary 1 3
parted -s /dev/sda name 1 grub
parted -s /dev/sda set 1 bios_grub on
parted -s /dev/sda mkpart primary 3 131
parted -s /dev/sda name 2 boot
parted -s /dev/sda mkpart primary 643 -- -1
parted -s /dev/sda name 3 rootfs
parted -s /dev/sda set 2 boot on
### Step-4.
we have then to start formatting these disks :
mkfs.ext2 /dev/sda2
mkfs.ext4 /dev/sda3
5. we are ready now to start mounting :
mount /dev/sda3 /mnt/gentoo
6. start the proccess of installation
tar xpf /mnt/cdrom/stages/secploit.tar.gz2 --xattrs-include='*.*' --numeric-owner -C /mnt/gentoo
7. when finish installation , we have to chroot the environment
mount --types proc /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
8. execute these also :
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) ${PS1}"
9. you are now inside the environment , let's make the final step to setup our grub .
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
10 . unmount and exit
umount -l /dev/sda3
reboot .
11. enjouy