-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_history.success.txt
453 lines (453 loc) · 9.61 KB
/
bash_history.success.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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
sudo reboot
ip a
sudo apt update
sudo apt upgrade
sudo apt autoremove
sudo reboot
cd /var/log/
ls
less daemon.log
sudo apt dist-upgrade
uname -r
cd
sudo apt install git cmake
sudo apt search dkms
sudo apt search dkms |grep ^dkms
sudo apt show dkms
sudo apt install git cmake dkms
gcc
which gcc
ls -l /usr/bin/gcc
sudo apt install git cmake dkms
ls -a
sudo su -
git clone https://github.com/juj/fbcp-ili9341.git
cd fbcp-ili9341/
git log
ls *32b*
less freeplaytech_waveshare32b.h
less waveshare35b.h
git grep ILI9341
cmake -DILI9341=ON -DSPI_BUS_CLOCK_DIVISOR=6 -DGPIO_TFT_DATA_CONTROL=22 -DGPIO_TFT_RESET_PIN=27 -DDISPLAY_ROTATE_180_DEGREES=ON -S . -B build/
cd build/
make
file fbcp-ili9341
sudo install -s -t /usr/local/sbin fbcp-ili9341
ls -l /usr/local/sbin/
cd ..
wget https://raw.githubusercontent.com/samveen/pi4-cputempd/master/pi4-cputempd.service
mv pi4-cputempd.service fbcp.service
vim fbcp.service
ls -l fbcp-ili9341 /usr/local/sbin/fbcp-ili9341
vim fbcp.conf
ls -l fbcp.conf
sudo install -m 0644 -t /etc fbcp.conf
ls -l /etc/fbcp.conf
sudo install -m 0644 -t /etc/systemd/system fbcp.service
sudo systemctl daemon-reload
sudo systemctl status fbcp
sudo systemctl enable fbcp
sudo systemctl start fbcp
sudo vim /etc/hosts
sudo hostnamectl --static set-hostname idacam
sudo hostnamectl --transient set-hostname idacam
sudo hostnamectl --pretty set-hostname idacam
sudo hostnamectl set-icon-name camera-photo
sudo reboot
sudo poweroff
raspinfo 2>&1 |less
sudo raspi-config
cat /boot/config.txt
cat /boot/config.txt |grep -i cam
sudo reboot
raspistill -o test.jpg
raspistill -k -o test.jpg
man raspistill
raspistill
raspistill 2>&1 |less
raspistill -s -o test.jpg
sudo poweroff
raspistill -s -o test.jpg
bg
which python
python --version
python3 --version
dpkg -l python3*
vim test.py
python test.py
vim test.py
python test.py
vim test.py
python test.py
vim test.py
python test.py
ls
mv test.py led.py
vim button.py
wget 'https://gist.githubusercontent.com/elktros/faa43bbf413d4414e2cbbea580143d05/raw/fa20d16aa3fcd1749117a7d9f58131656cab55c8/Raspberry_Button_Tutorial.py'
mv Raspberry_Button_Tutorial.py button.py
vim button.py
ls
cat led.py
vim button.py
cat led.py
vim button.py
python button.py
vim button.py
python button.py
vim button.py
python button.py
mv button.py Raspberry_Button_Tutorial.py
vim button.py
cat led.py
vim button.py
cat led.py
vim button.py
python button.py
vim button.py
python button.py
vim button.py
python button.py
vim button.py
sudo dmesg |tail
cat button.py
ls /sys/class/gpio/
ls -l /sys/class/gpio/
sudo cat /sys/class/gpio/export
sudo cat /sys/class/gpio/gpiochip0
sudo ls /sys/class/gpio/gpiochip0
sudo ls -l /sys/class/gpio/gpiochip0
sudo ca
sudo ls -l /sys/class/gpio/gpiochip0/uevent
sudo cat /sys/class/gpio/gpiochip0/uevent
sudo tail -f /sys/class/gpio/gpiochip0/uevent
python led.py
vim button.py
python button.py
vim button.py
python button.py
sudo poweroff
vim button.py
python led.py
vim button.py
python button.py
ls
vim Raspberry_Button_Tutorial.py
python Raspberry_Button_Tutorial.py
ls
sudo systemctl list-unit-files *clock*
sudo systemctl status hwclock.service
sudo systemctl list-unit-files *clock*
sudo find / -name 'hwclock.service'
ls -l /usr/lib/systemd/system/hwclock.service
raspistill --help
raspistill -s -o test.jpg &
man raspistill
raspistill --help 2>&1 |less
fg
raspistill -s -ts -o "IMG_%d.jpg" &
ls
jobs
ps -ef |grep 734
kill -USR1 734
ls
kill -USR1 734
ls
rm -f IMG_163196472*
mkdir DCIM
cat /etc/fstab
vim /etc/fstab
sudo vim /etc/fstab
pwd
ls
ls DCIM/
(cd DCIM && echo $PWD)
sudo vim /etc/fstab
cat /etc/fstab
man fstab
ls -l
cd DCIM/
ls -l
ls -ld
cd ..
sudo mount DCIM/
cd DCIM/
ls -l
ls -ld
sudo chown pi:pi .
ls -l
ls -ld
cd ..
ls
jobs
fg
raspistill -s -ts -o "DCIM/IMG_%d.jpg" &
kill -USR1 842
ls DCIM/
kill -USR1 842
ls DCIM/
apt search fim
apt search fim |grep fim
apt install fim
sudo apt install fim
sudo apt install --no-install-recommends fim
sudo apt search fbi
sudo apt install fbi
sudo apt install --no-install-recommends fbi
ip a
sudo apt install --no-install-recommends fbi
fg
fbi
fbi DCIM/IMG_1631964978.jpg
sudo fbi DCIM/IMG_1631964978.jpg
man FBI
fbi -t 1 DCIM/IMG_1631964978.jpg
tty
man fbi
fbi -d /dev/fb0 DCIM/IMG_1631964978.jpg
sudo fbi -d /dev/fb0 DCIM/IMG_1631964978.jpg
man fbi
sudo fbi -vd /dev/fb0 DCIM/IMG_1631964978.jpg
fbi -v -d /dev/fb0 DCIM/IMG_1631964978.jpg
fbi -v -d /dev/fb0 -a DCIM/IMG_1631964978.jpg
fbi -v -a /dev/fb0 DCIM/IMG_1631964978.jpg
sudo fbi -v -a /dev/fb0 DCIM/IMG_1631964978.jpg
sudo fbi -v -d /dev/fb0 -T 1 DCIM/IMG_1631964978.jpg
sudo fbi -v -d /dev/fb0 -T 2 DCIM/IMG_1631964978.jpg
man fbi
sudo fbi -v -T 1 DCIM/IMG_1631964978.jpg
sudo fbi -v -T 1 DCIM/IMG_1631964983.jpg
fbi -v -T 1 DCIM/IMG_1631964983.jpg
sudo fbi -v -T 1 DCIM/IMG_1631964983.jpg
ls
vim button.py
python button.py
vim button.py
python button.py
vim button.py
python button.py
ls
vim Raspberry_Button_Tutorial.py
ip a
ls -a
ls
less raspinfo.txt
ls
less raspinfo.txt
sudo raspinfo
less raspinfo.txt
sudo poweroff
ls -a .ssh/known_hosts
cat .ssh/authorized_keys
ip a
vim .bashrc
screen -X
screen -x
python camera.py
ls
vim camera.py
python camera.py
vim camera.py
python camera.py
vim camera.py
python camera.py
vim camera.py
python camera.py
history
sudo fbi -v -T 1 DCIM/IMG_1631964983.jpg
man fbi
fbi -v -T 1 DCIM/IMG_1631964983.jpg
sudo fbi -v -T 1 DCIM/*.jpg
man fbi
sudo fbi -vv -T 1 DCIM/*.jpg
ps -ef |grep fbi
killall fbi
sudo killall fbi
ps -ef |grep fbi
tty
ps -ef |grep bash
vim .bashrc
tty
vim .bashrc
vim .profile
vim .bashrc
sudo reboot
ip a
ls -a
ls
cat .bashrc
bash -c 'echo k >gal.input'
vim .bashrc
ps -ef |grep tty1 | awk '/bash/{print $2}'
ps -ef |grep tty1 | awk '/bash/{print $2}' |xargs -rn1 killall
ps -ef |grep tty1 | awk '/bash/{print $2}'
ps -ef |grep tty1
ps -ef |grep tty1 | awk '/bash/{print $2}' |xargs -rn1 killall
ps -ef |grep tty1 | awk '/bash/{print $2}' |xargs -rn1 kill -HUP
ps -ef |grep fbi
killall fbi
vim .bashrc
whoami
who am i
id
ls -l /dev/fb0
vim .bashrc
ps -ef |grep tty1 | awk '/bash/{print $2}' |xargs -rn1 kill -HUP
ls
ls -l
less fbi.strace
ls -l
less fbi.strace
ls -l
ls -l /dev/tty1
echo -n j /dev/tty
echo -n j >/dev/tty
echo -n k >/dev/tty
man fbi
echo -n j >/dev/tty
echo -n k >/dev/tty
echo -n H >/dev/tty
echo -n h >/dev/tty
lsmod
lsmod |grep uinput
modprobe uinput
sudo modprobe uinput
lsmod |grep uinput
sudo dmes |tail
sudo dmesg |tail
sudo apt update
sudo su -
sudo apt update
sudo apt list --upgradable
sudo apt upgrade
sudo reboot
£
%fbi DCIM/*.jpg
fbi DCIM/*.jpg
ls
sudo modprobe uinput
ls /etc/modules-load.d/
ls -l /etc/modules-load.d/
ls -l /etc/modules
cat /etc/modules
sudo vim /etc/modules-load.d/load-uinput.conf
sudo apt search fauxcon
git clone '[email protected]:lornix/fauxcon.git'
cd fauxcon/
make
ls -l
file fauxcon
sudo make install
ls -l /usr/local/bin/fauxcon
file /usr/local/bin/fauxcon
ls -l /etc/udev/rules.d/99-uinput.rules
sudo ls -l /etc/udev/rules.d/99-uinput.rules
sudo vim /etc/udev/rules.d/99-uinput.rules
sudo groupadd uinput
getent group uinput
man usermod
sudo usermod -a -G uinput pi
id
vim camera.py
python camera.py
vim camera.py
python camera.py
sudo apt search six
sudo apt show python-six
sudo apt install python-six
vim camera.py
python camera.py
fauxcon -C tty1
vim camera.py
screen -list
raspistill -s -ts -o "DCIM/IMG_%d.jpg"
vim camera.py
python camera.py
ps -ef |grep fbi
fauxcon -C tty1
vim camera.py
python camera.py
ls DCIM/
screen -DR "camera"
man fbi
fauxcon -C tty1
ls
fbi DCIM/*.jpg
fbi -a DCIM/*.jpg
python camera.py
killall fbi
vim .bashrc
id
ls -l /dev/fb0
ls -l /dev/tty1
sudo lsmod |grep uinput
sudo modprobe uinput
sudo lsmod |grep uinput
sudo dmesg |tail
sudo apt update
sudo apt list --upgradable
sudo apt upgrade
sudo reboot
ls -l /etc/modules-load.d/
cat /etc/modules
sudo vim /etc/modules-load.d/load-uinput.conf
sudo apt search fauxcon
cd fauxcon/
sudo make install
ls -l /usr/local/bin/fauxcon
file /usr/local/bin/fauxcon
sudo ls -l /etc/udev/rules.d/99-uinput.rules
sudo vim /etc/udev/rules.d/99-uinput.rules
sudo groupadd uinput
getent group uinput
sudo usermod -a -G uinput pi
sudo reboot
fauxcon -C tty1
vim camera.py
python camera.py
raspistill -s -ts -o "DCIM/IMG_%d.jpg"
ls DCIM/
vim .bashrc
screen -S "camera" -d -m -t "camera" python camera.py
screen -list
screen -DR camera
free
sudo swapon -s
ls -lh /var/swap
cd /var/
sudo dd if=/dev/zero of=swap.large bs=1M count=256 status=progress
sudo mkswap swap.large
file swap.large
cat /etc/fstab
man dphys-swapfile
cat /etc/dphys-swapfile
sudo systemctl list-units '*swap*'
sudo systemctl status '*swap*'
cat /lib/systemd/system/dphys-swapfile.service
cat /lib/systemd/system/swap.target
sudo systemctl stop dphys-swapfile
sudo vim /etc/dphys-swapfile
sudo systemctl start dphys-swapfile
ls -lh /var/swap
free -h
sudo systemctl list-units
sudo systemctl status '*avahi*'
sudo systemctl list-units '*avahi*'
sudo systemctl stop '*avahi*'
sudo systemctl list-unit-files '*avahi*'
sudo systemctl disable avahi-daemon.service avahi-daemon.socket
sudo systemctl list-unit-files '*avahi*'
sudo systemctl list-units
sudo systemctl list-unit-files '*lue*'
sudo systemctl stop bluetooth.service dbus-org.bluez.service
sudo systemctl disable bluetooth.service dbus-org.bluez.service
sudo systemctl list-unit-files bluetooth.service dbus-org.bluez.service
sudo systemctl list-units
sudo systemctl status hciuart.service
sudo systemctl stop hciuart.service
sudo systemctl disable hciuart.service
sudo systemctl status rpi-eeprom-update.service
less /lib/systemd/system/rpi-eeprom-update.service
sudo systemctl list-units |awk '/\.service/{print $1}'
sudo systemctl status rsyslog.service
sudo reboot