Advertisement
sandervanvugt

luth deb21

Feb 9th, 2021
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.01 KB | None | 0 0
  1. ###### UDEV DEMO 90 udevadm monitor
  2. 91 lsblk
  3. 92 git clone https://github.com/sandervanvugt/luth
  4. 93 cat /etc/os-release
  5. 94 cd /usr/lib/udev/rules.d/
  6. 95 ls
  7. 96 vim 78-sound-card.rules
  8. 97 cd
  9. 98 cd luth/
  10. 99 ls
  11. 100 cp 50-custom.rules /etc/udev/rules.d/
  12. 101 cd /etc/udev/rules.d/
  13. 102 ls
  14. 103 vim 50-custom.rules
  15. 104 ps aux | grep udev
  16. 105 systemctl restart systemd-udevd
  17. 106 ls -l /dev/usb
  18. 107 journalctl
  19. 108 pwd
  20. 109 udevadm info --query=all --name=/dev/sdb
  21. 110 history
  22.  
  23.  
  24. ##### REST OF THE COURSE[root@localhost luth]# history
  25. 1 history
  26. 2 modprobe softdog
  27. 3 #echo h >/proc/sysrq-trigger
  28. 4 #echo c >/proc/sysrq-trigger
  29. 5 history -w
  30. 6 history
  31. 7 modprobe softdog
  32. 8 #echo h >/proc/sysrq-trigger
  33. 9 #echo c >/proc/sysrq-trigger
  34. 10 history -w
  35. 11 uname -r
  36. 12 mount
  37. 13 mount | grep proc
  38. 14 cd /proc
  39. 15 ls
  40. 16 less cpuinfo
  41. 17 lscpu
  42. 18 ls
  43. 19 less meminfo
  44. 20 cd sys
  45. 21 ls
  46. 22 cd
  47. 23 yum install -y git
  48. 24 ip a
  49. 25 nmtui
  50. 26 ip a
  51. 27 yum install -y git
  52. 28 git clone https://github.com/sandervanvugt/luth
  53. 29 cd luth
  54. 30 ls
  55. 31 ./countdown 12
  56. 32 cd /sys
  57. 33 ls
  58. 34 cd bus
  59. 35 ls
  60. 36 cd cpu/
  61. 37 ls
  62. 38 cd devices/
  63. 39 ls
  64. 40 top
  65. 41 ls
  66. 42 ls cpu1/
  67. 43 cat cpu1/online
  68. 44 echo 0 > cpu1/online
  69. 45 cat cpu1/online
  70. 46 top
  71. 47 cd
  72. 48 history
  73. 49 cd /proc
  74. 50 echo h > /proc/sysrq-trigger
  75. 51 dmesg
  76. 52 echo f > /proc/sysrq-trigger
  77. 53 echo h > /proc/sysrq-trigger
  78. 54 dmeg
  79. 55 dmesg
  80. 56 echo f > /proc/sysrq-trigger
  81. 57 ps aux | grep gdm
  82. 58 cd /proc/
  83. 59 ls
  84. 60 cd 1477/
  85. 61 ls
  86. 62 less status
  87. 63 cat oom_score
  88. 64 cd ..
  89. 65 ls
  90. 66 cat 2097/cmdline 2097/oom_score
  91. 67 cd 1477
  92. 68 ls
  93. 69 echo 20 > oom_score_adj
  94. 70 cat oom_score
  95. 71 echo -50 > oom_score_adj
  96. 72 cat oom_score
  97. 73 history -w
  98. 74 ps aux | grep gdm
  99. 75 cd /proc/
  100. 76 ls
  101. 77 cd 1477/
  102. 78 ls
  103. 79 less status
  104. 80 cat oom_score
  105. 81 cd ..
  106. 82 ls
  107. 83 cat 2097/cmdline 2097/oom_score
  108. 84 cd 1477
  109. 85 ls
  110. 86 echo 20 > oom_score_adj
  111. 87 cat oom_score
  112. 88 echo -50 > oom_score_adj
  113. 89 cat oom_score
  114. 90 history -w
  115. 91 echo f > /proc/sysrq-trigger
  116. 92 systemctl show sshd.service
  117. 93 export EDITOR=/usr/bin/vim
  118. 94 systemctl edit sshd.service
  119. 95 cd /proc
  120. 96 cd sys
  121. 97 ls
  122. 98 cd vm
  123. 99 ls
  124. 100 cat dirty_expire_centisecs
  125. 101 echo $(( 43200 / 60 ))
  126. 102 echo $(( 43200 / 6000 ))
  127. 103 echo 43200 > /proc/sys/vm/dirty_expire_centisecs
  128. 104 cat swappiness
  129. 105 echo 60 > swappiness
  130. 106 history -w
  131. 107 vim /etc/sysctl.conf
  132. 108 systemctl status tuned
  133. 109 tuned-adm --help
  134. 110 tuned-adm list
  135. 111 tuned-adm profile powersave
  136. 112 cd /usr/lib/tuned/
  137. 113 ls
  138. 114 cd balanced/
  139. 115 ls
  140. 116 vim tuned.conf
  141. 117 cd ../network-throughput/
  142. 118 vim tuned.conf
  143. 119 mkdir /etc/tuned/sander
  144. 120 cp tuned.conf /etc/tuned/sander
  145. 121 vim /etc/tuned/sander/tuned.conf
  146. 122 tuned-adm list
  147. 123 tuned-adm profile sander
  148. 124 history
  149. 125 history -w
  150. 126 systemctl show sshd.service
  151. 127 export EDITOR=/usr/bin/vim
  152. 128 systemctl edit sshd.service
  153. 129 cd /proc
  154. 130 cd sys
  155. 131 ls
  156. 132 cd vm
  157. 133 ls
  158. 134 cat dirty_expire_centisecs
  159. 135 echo $(( 43200 / 60 ))
  160. 136 echo $(( 43200 / 6000 ))
  161. 137 echo 43200 > /proc/sys/vm/dirty_expire_centisecs
  162. 138 cat swappiness
  163. 139 echo 60 > swappiness
  164. 140 history -w
  165. 141 vim /etc/sysctl.conf
  166. 142 systemctl status tuned
  167. 143 tuned-adm --help
  168. 144 tuned-adm list
  169. 145 tuned-adm profile powersave
  170. 146 cd /usr/lib/tuned/
  171. 147 ls
  172. 148 cd balanced/
  173. 149 ls
  174. 150 vim tuned.conf
  175. 151 cd ../network-throughput/
  176. 152 vim tuned.conf
  177. 153 mkdir /etc/tuned/sander
  178. 154 cp tuned.conf /etc/tuned/sander
  179. 155 vim /etc/tuned/sander/tuned.conf
  180. 156 tuned-adm list
  181. 157 tuned-adm profile sander
  182. 158 history
  183. 159 history -w
  184. 160 reboot
  185. 161 cat /proc/sys/vm/swappiness
  186. 162 cd /proc/sys
  187. 163 ls
  188. 164 systemctl status tuned
  189. 165 cd
  190. 166 luth/countdown 12
  191. 167 lsblk
  192. 168 ls -l /dev/sda*
  193. 169 mount | grep dev
  194. 170 cd /proc
  195. 171 ls
  196. 172 less devices
  197. 173 lsmod | less
  198. 174 cd /dev
  199. 175 ls
  200. 176 mount | grep sda1
  201. 177 rm sda1
  202. 178 ls /boot
  203. 179 cd /
  204. 180 umount /boot
  205. 181 mount /dev/sda1 /boot
  206. 182 ls -l /dev/sda*
  207. 183 mknod --help
  208. 184 mknod /dev/sda1 b 8 1
  209. 185 ls -l /dev/sda*
  210. 186 chown root:disk /dev/sda1
  211. 187 chmod 660 /dev/sda1
  212. 188 mount /dev/sda1 /boot
  213. 189 ls -l
  214. 190 ps aux | grep dbus
  215. 191 history | got
  216. 192 history | grep git
  217. 193 cd luth
  218. 194 cd
  219. 195 cd luth/
  220. 196 ls
  221. 197 less dbus-commands.sh
  222. 198 vim dbus-commands.sh
  223. 199 busctl list
  224. 200 ./countdown 12
  225. 201 lsblk
  226. 202 dmsetup ls
  227. 203 dmsetup table /dev/cl/root
  228. 204 fdisk -l /dev/sda
  229. 205 fdisk /dev/sdb
  230. 206 dmsetup create hideme1 --table '0 99999' linear /dev/sdb 206848
  231. 207 dmsetup create hideme1 --table '0 99990' linear /dev/sdb 206848
  232. 208 fdisk -l /dev/sdb
  233. 209 dmsetup create hideme1 --table '0 99990 linear /dev/sdb 206848'
  234. 210 dmsetup ls
  235. 211 ls /dev/mapper/
  236. 212 mkfs.ex2 /dev/mapper/hideme1
  237. 213 mkfs.ext2 /dev/mapper/hideme1
  238. 214 mount /dev/mapper/hideme1 /mnt
  239. 215 cd /mnt
  240. 216 ls
  241. 217 cd /
  242. 218 mount
  243. 219 mount | grep ext
  244. 220 cp /etc/a* /mnt
  245. 221 cd /mnt
  246. 222 ls
  247. 223 ls -il
  248. 224 debugfs /dev/mapper/hideme
  249. 225 cd
  250. 226 mount | grep ext
  251. 227 debugfs /dev/mapper/hideme1
  252. 228 ln anaconda-ks.cfg whatever
  253. 229 ls -il
  254. 230 echo hello >> whatever
  255. 231 ls -il
  256. 232 cd luth/
  257. 233 ls
  258. 234 udevadm monitor
  259. 235 ssh sander@192.168.50.171 -p 2022
  260. 236 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement