-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocs.html
150 lines (143 loc) · 6.03 KB
/
docs.html
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html lang="en">
<head>
<title>Documents | Drunk Linux</title>
<link rel="icon" type="image/x-icon" href="assets/images/favicon.ico">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/css/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body,h1,h2,h3,h4,h5,h6 {font-family: "Lato", sans-serif}
.w3-bar,h1,button {font-family: "Montserrat", sans-serif}
.fa-anchor,.fa-coffee {font-size:200px}
</style>
</head>
<body>
<!-- Navbar -->
<div class="w3-top">
<div class="w3-bar w3-black w3-card w3-left-align w3-large">
<a class="w3-bar-item w3-button w3-hide-medium w3-hide-large w3-right w3-padding-large w3-hover-white w3-large w3-white" href="javascript:void(0);" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
<a href="https://drunklinux.tk" alt="index.html" class="w3-bar-item w3-button w3-padding-large w3-black">Home</a>
</div>
<!-- Navbar on small screens -->
<div id="navDemo" class="w3-bar-block w3-black w3-hide w3-hide-large w3-hide-medium w3-large">
<a href="https://drunklinux.tk" alt="index.html" class="w3-bar-item w3-button w3-padding-large">Home</a>
</div>
</div>
<!-- Header -->
<header class="w3-container w3-black w3-center" style="padding:40px 16px">
</header>
<!-- First Grid -->
<div class="w3-row-padding w3-padding-64 w3-container w3-black">
<div class="w3-content">
<div class="w3-twothird">
<h2>Installing drunk with usb external drive</h2>
<hr>
<ul>
<li style="color:gold;">21.08.2022 ( DD:MM:YY )</li><br>
<li style="color:gold;">Default user name and passwd is</li><br>
<code>* username:password<br>$ root : toor<br>$ drunk:drunk</code>
</ul>
<h4 style="color:lightgreen;">Updating & upgrading system</h4>
<code>$ bottle -Syu</code><br><br>
<h4 style="color:lightgreen;">Partitioning</h4>
<ul>
<li style="color:gold;">Here we will use tool called parted</li>
<li style="color:gold;">The drive i will use for this guide is at /dev/sdb as sda is install media</li>
</ul>
<code>$ parted /dev/sdb
<br><br>
// If you got some old partitions there then you can remove this ( rm x ) x as number of partition<br>
$ print
<br><br>
// Set partition table to gpt<br>
$ mklabel gpt
<br><br>
// Create esp partition for uefi ( 1gb as of initrd now)<br>
$ mkpart primary fat32 1MB 1024MB<br>
$ set 1 esp on<br>
<br>
// create main ext4 rootfs partition<br>
$ mkpart primary ext4 1024MB 85GB<br>
<br>
* ctrl + c to exit</code><br><br>
<h4 style="color:lightgreen;">Formating</h4>
<code>$ mkfs -t vfat /dev/sdb1<br>
$ mkfs -t ext4 /dev/sdb2<br>
$ e2label /dev/sdb2 drunk</code><br><br>
<h4 style="color:lightgreen;">Mounting</h4>
<code>$ mount /dev/sdb2 /mnt<br>
$ mkdir -vp /mnt/boot<br>
$ mount /dev/sdb1 /mnt/boot</code><br><br>
<h4 style="color:lightgreen;">bottle-strap</h4>
<code>
$ cd /<br>
$ bottle-strap /mnt base-drunk
</code><br><br>
<h4 style="color:lightgreen;">Enabling services</h4>
<code>* For internet access<br>
$ systemctl enable dhcpcd<br><br>
* Just in-case if systemd thinks to give no login tty<br>
$ systemctl enable getty@tty1<br>
$ systemctl enable getty@tty2</code>
<h4 style="color:lightgreen;">Adding sd-boot entries</h4>
<code>$ drunk-chroot /mnt<br><br>
// Create machine-id<br>
$ dbus-uuidgen > /etc/machine-id<br><br>
// If esp cant be found then redo parted ( esp enable part )<br>
$ bootctl install<br><br>
$ cd /boot<br><br>
$ dracut -f initrd.img<br><br>
$ passwd root</code>
<h4 style="color:lightgreen;">Adding boot configs</h4>
<ul><li><code>cd /boot/loader</code> and add this<br><br>
<code>$ nano loader.config<br><br>
default drunk<br>
timeout 4<br>
console-mode max<br>
editor no</code><br><br></li>
<li>Now cd /boot/loader/entries</li><br>
<li>If LABEL does not work then see if PARTLABEL is needed ( can be seen in /dev/disk/by-partlabel or label )<br><br>
<code>$ nano drunk.conf<br><br>
title Drunk 2022.2<br>
linux /vmlinuz-drunk<br>
initrd /initrd.img<br>
options root=LABEL=drunk rw audit=0</code></li></ul>
<h4 style="color:lightgreen;">Booting</h4>
<code>// exit chroot<br>
$ exit<br><br>
$ umount /mnt/boot<br><br>
$ umount /mnt<br><br>
$ sync<br><br>
$ reboot</code>
</div>
</div>
</div>
<!-- Footer starting-->
<footer class="w3-container w3-padding-64 w3-black w3-center w3-opacity">
<div class="w3-xlarge w3-padding-32">
<h4>© DrunkLinux</h4>
<h1>Social Media</h1>
<a href="https://github.com/drunk-linux" class="fa fa-github w3-hover-opacity"></a>
<a href="https://git.it-kuny.ch/drunk" class="fa fa-gitlab w3-hover-opacity"></a>
<a href="https://t.me/drunk_distro" class="fa fa-telegram w3-hover-opacity"></a>
<a href="https://drunklinux.tk" class="fa fa-globe w3-hover-opacity"></a>
</div>
<!-- Footer end. -->
</footer>
<script>
// Used to toggle the menu on small screens when clicking on the menu button
function myFunction() {
var x = document.getElementById("navDemo");
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
} else {
x.className = x.className.replace(" w3-show", "");
}
}
</script>
</body>
</html>