-
-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathpiKiss.sh
executable file
·579 lines (526 loc) · 22.5 KB
/
piKiss.sh
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
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
#!/bin/bash
#
# PiKISS (Pi Keeping simple, stupid!)
#
# Author : Jose Cerrejon Gonzalez
# Mail : ulysess@gmail_dot_com
# Version : Check VERSION variable
#
# shellcheck source=./scripts/helper.sh
. ./scripts/helper.sh || . ../helper.sh || . ./helper.sh || wget -q 'https://github.com/jmcerrejon/PiKISS/raw/master/scripts/helper.sh'
clear
check_board || { echo "Missing file helper.sh. I've tried to download it for you. Try to run the script again." && exit 1; }
VERSION="v.1.11.2"
IP=$(get_ip)
PI_VERSION_NUMBER=$(get_pi_version_number)
ARCHITECTURE=$(getconf LONG_BIT)
CPU_FREQUENCY=$(get_cpu_frequency)
TITLE="PiKISS (Pi Keeping It Simple, Stupid!) ${VERSION} | ${ARCHITECTURE} Bits | ${IP} | ${MODEL} ${PI_VERSION_NUMBER} (${CPU_FREQUENCY} Mhz)"
CHK_UPDATE=0
CHK_PIKISS_UPDATE=0
NOINTERNETCHECK=0
wHEIGHT=20
wWIDTH=90
check_board
check_temperature
make_desktop_entry
remove_unneeded_helper
usage() {
echo -e "$TITLE\n\nScript designed to config or install apps on Raspberry Pi easier for everyone.\n"
echo -e "Usage: ./piKiss.sh [Arguments]\n\nArguments:\n"
echo "-h | --help : This help."
echo "-nu | --no-update : No check if repositories are updated."
echo "-nup | --no-update-pikiss : No check if PiKISS are updated."
echo "-ni | --noinet : No check if internet connection is available."
echo
echo "For trouble, ideas or technical support please visit https://github.com/jmcerrejon/PiKISS"
}
#
# Initial checks
#
# Arguments
while [ "$1" != "" ]; do
case $1 in
-nu | --no_update)
export CHK_UPDATE=1
;;
-nup | --no_update-pikiss)
export CHK_PIKISS_UPDATE=1
;;
-ni | --noinet)
export NOINTERNETCHECK=1
;;
-h | --help)
usage
exit
;;
*)
usage
exit 1
;;
esac
shift
done
is_missing_dialog_pkg
check_internet_available
check_update_pikiss
#
# Menus
#
smInfo() {
cmd=(dialog --clear --backtitle "$TITLE" --title "[ Info ]" --menu "Select an option from the list:" "$wHEIGHT" "$wWIDTH" "$wHEIGHT")
options=(
Back "Back to main menu"
Weather "Weather info from your country"
Chkimg "Check some distros images to know if they are updated"
Webmin "Monitoring tool"
Bmark "Benchmark RPi (CPU, MEM, SD Card...)"
Lynis "Lynis is a security auditing tool."
TestInet "Test Internet bandwidth"
WebMonitor "Web monitor to your RPi"
)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
for choice in $choices; do
case $choice in
Back) break ;;
Chkimg) ./scripts/info/check_lastmod_img.sh ;;
Webmin) ./scripts/info/webmin.sh ;;
Weather) ./scripts/info/weather.sh ;;
Bmark) ./scripts/info/bmark.sh ;;
Lynis) ./scripts/info/lynis.sh ;;
TestInet) ./scripts/info/test_inet.sh ;;
WebMonitor) ./scripts/info/web_monitor.sh ;;
esac
done
}
smTweaks() {
cmd=(dialog --clear --backtitle "$TITLE" --title "[ Tweaks ]" --menu "Select a tweak from the list:" "$wHEIGHT" "$wWIDTH" "$wHEIGHT")
options=(
Back "Back to main menu"
Others "CPU performance, disable Ethernet and so on"
Packages "Programs you don't use (maybe) to free space"
Daemons "Disable useless services"
ZRAM "Enable/Disable ZRAM"
)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
for choice in $choices; do
case $choice in
Back) break ;;
Others) ./scripts/tweaks/others.sh ;;
Packages) ./scripts/tweaks/removepkg.sh ;;
Daemons) ./scripts/tweaks/services.sh ;;
ZRAM) ./scripts/tweaks/zram.sh ;;
esac
done
}
smGames() {
if is_userspace_64_bits; then
show_dialog_only_32_bits "Abbaye, AVP, Arx, Blood, Blake Stone, Carmageddon, Doom_engine, DX-Rebirth, EDuke32, Fallout 2, GTA, GemRB, Half Life, Hexen 2, OpenClaw, Portal, Quake I-II-III, RVGL (Re-Volt), SMario64, Serious Sam, OpenXCom, Unreal Tournament, WipeOut"
fi
cmd=(dialog --clear --backtitle "$TITLE" --title "[ Games ]" --menu "Select game from the list:" "$wHEIGHT" "$wWIDTH" "$wHEIGHT")
options=(
Back "Back to main menu"
Abbaye "L’Abbaye des Morts is a retro puzzle platformer by Locomalito"
AVP "Aliens versus Predator is a 1999 SF fps published by Fox Interactive"
Arx "Arx Fatalis is a fps RPG set on a world whose sun has failed"
Blood "Blood is a fps game developed by Monolith Productions"
BStone "Robert W. Stone III, AKA Blake Stone must eliminate Dr. Pyrus Goldfire"
CaptainS "Save Seville from the evil Torrebruno"
Carmageddon "Carmageddon is a vehicular combat game"
Doom_engine "Zendronum or Crispy engine to play Doom, Heretic, Hexen..."
DX-Rebirth "Descent I/II improved engine"
Dune2 "Dune 2 Legacy"
Diablo "Take control of a lone hero battling to rid the world of Diablo"
Diablo2 "Diablo 2 Lord of Destruction"
Eduke32 "Duke Nukem 3D is a fps game developed by 3D Realms"
Fallout "Fallout 2 is a post-apocalyptic RPG"
GTA "GTA III/Vice City are open worlds video games part of the GTA franchise"
GemRB "Engine for games like Baldur's Gate"
HalfLife "Gordon Freeman must exit Black Mesa after it's invaded by aliens"
Heroes2 "Free implementation of Heroes of Might and Magic II engine"
Heroes3 "Open-source engine for Heroes of Might and Magic III"
Hermes "Jump'n' Run game with plenty of bad taste humour"
Hexen2 "Hexen II is a dark fantasy 1st shooter and RPG"
Hurrican "Jump and shoot game based on the Turrican game series"
Morrowind "The Elder Scrolls III: Morrowind is an open-world RPG"
OpenBor "OpenBOR is the open source continuation of Beats of Rage"
OpenClaw "Platform 2D Captain Claw (1997) reimplementation"
OpenJK "Engine for Star Wars Jedi Knight: Jedi Academy (SP & MP)"
OpenRCT2 "Open Source re-implementation of RollerCoaster Tycoon 2"
OpenSPlex "OpenSupaplex reimplementation of the original 90's game"
OpenXCom "Open-source clone of UFO: Enemy Unknown"
Prince "port/conversion of the DOS game Prince of Persia"
Portal "Players must solve puzzles by opening portals and moving objects"
Quake "Enhanced clients for ID Software's Quake saga"
ReturnC "The dark reich's closing in. The time to act is now"
RVGL "Re-Volt is a radio control car racing themed video game"
SWarrior "FPS developed by 3D Realms and released on 1997 by GT Interactive"
SMario64 "Super Mario 64 EX native OpenGL ES"
SMarioWar "The game centers on players fighting each other"
SpelunkyHD "Spelunky is a cave exploration/treasure-hunting game"
Sqrxz4 "Sqrxz 4: Difficult platform game"
Srb2 "3D platformer fangame based on the Sonic the Hedgehog series"
SSam12 "Serious Sam I & II. Kill all walking monster"
StarCraft "Expansion pack for the real-time strategy video game StarCraft"
StepMania "StepMania is a free dance and rhythm game"
Temptations "Platform game made exclusively for MSX computers"
UT99 "Unreal Tournament 99 is a fps using Unreal Engine"
VVVVVV "Minimalist platformer: instead of jumping, you need to reverse gravity"
WipeOut "re-implementation of the 1995 PSX game wipEout"
Xump "Xump: Simple multi-platform puzzler"
)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
for choice in $choices; do
case $choice in
Back) break ;;
Abbaye) ./scripts/games/abbaye.sh ;;
AVP) ./scripts/games/avp.sh ;;
Arx) ./scripts/games/arx.sh ;;
Blood) ./scripts/games/blood.sh ;;
BStone) ./scripts/games/bstone.sh ;;
CaptainS) ./scripts/games/captains.sh ;;
Carmageddon) ./scripts/games/carmageddon.sh ;;
Doom_engine) ./scripts/games/cdoom.sh ;;
DX-Rebirth) ./scripts/games/descent.sh ;;
Dune2) ./scripts/games/dune2.sh ;;
Diablo) ./scripts/games/diablo.sh ;;
Diablo2) ./scripts/games/diablo2.sh ;;
Eduke32) ./scripts/games/eduke32.sh ;;
Fallout) ./scripts/games/fallout.sh ;;
GTA) ./scripts/games/gta.sh ;;
GemRB) ./scripts/games/gemrb.sh ;;
HalfLife) ./scripts/games/half-life.sh ;;
Heroes2) ./scripts/games/heroes2.sh ;;
Heroes3) ./scripts/games/heroes3.sh ;;
Hermes) ./scripts/games/hermes.sh ;;
Hexen2) ./scripts/games/hexen2.sh ;;
Hurrican) ./scripts/games/hurrican.sh ;;
Morrowind) ./scripts/games/openmw.sh ;;
OpenBor) ./scripts/games/openbor.sh ;;
OpenClaw) ./scripts/games/openclaw.sh ;;
OpenJK) ./scripts/games/openjk.sh ;;
OpenRCT2) ./scripts/games/openrct2.sh ;;
OpenSPlex) ./scripts/games/supaplex.sh ;;
OpenXCom) ./scripts/games/openxcom.sh ;;
Prince) ./scripts/games/princeofp.sh ;;
Portal) ./scripts/games/portal.sh ;;
Quake) ./scripts/games/quake.sh ;;
ReturnC) ./scripts/games/rwolf.sh ;;
RVGL) ./scripts/games/rvgl.sh ;;
SWarrior) ./scripts/games/swarrior.sh ;;
SMario64) ./scripts/games/smario64.sh ;;
SMarioWar) ./scripts/games/smariowar.sh ;;
SpelunkyHD) ./scripts/games/spelunky.sh ;;
Sqrxz4) ./scripts/games/sqrxz4.sh ;;
Srb2) ./scripts/games/srb2.sh ;;
SSam12) ./scripts/games/ssam.sh ;;
StarCraft) ./scripts/games/starcraft.sh ;;
StepMania) ./scripts/games/stepmania.sh ;;
Temptations) ./scripts/games/temptations.sh ;;
UT99) ./scripts/games/unrealt.sh ;;
VVVVVV) ./scripts/games/vvvvvv.sh ;;
WipeOut) ./scripts/games/wipeout.sh ;;
Xump) ./scripts/games/xump.sh ;;
esac
done
}
smEmulators() {
if is_userspace_64_bits; then
show_dialog_only_32_bits "Amiga, Box86/64, Dolphin, Flycast, DOSBox, Mame, mGBA, PCem, PS1, PS2, PSP, RetroArch, Redream, ScummVM, USP (Spectrum), VICE"
fi
cmd=(dialog --clear --backtitle "$TITLE" --title "[ Emulators ]" --menu "Select emulator from the list:" "$wHEIGHT" "$wWIDTH" "$wHEIGHT")
options=(
Back "Back to main menu"
Amiga "Amiberry is the best Amiga emulator"
Amstrad "Amstrad CPC with Caprice32"
Box86-64 "Let's you run x86/64 Linux programs on non-x86/64 Linux"
Dolphin "Dolphin is a Wii & Gamecube emulator"
DOSBox "DOSBox-X is a DOS emulator with GUI"
Flycast "Sega Dreamcast,Naomi,Naomi 2 and Atomiswave emu"
mGBA "Gameboy Advance (mgba)"
Genesis "Genesis Megadrive Emulator (picodrive)"
Mednafen "Portable multi-system emulator (Mednafen)"
Mame "MAME is a multi-system emulator"
MSX "OpenMSX"
NES "Nestopia UE is an accurate NES emulator"
Pifba "Emulates old arcade games using CPS1, CPS2,..."
PCem "PCem is an emulator for old XT/AT-class PCs"
PS1 "DuckStation - PlayStation 1, aka. PSX Emulator"
PS2 "AetherSX2 is an emulator of the PS Two console"
PSP "PPSSPP can run your PSP games on your RPi in full HD resolution"
ResidualVM "Cross-platform 3D game interpreter to play some games"
RetroArch "Open source frontend for emulators & game/video engines"
Redream "Redream is a Dreamcast emulator"
ScummVM "Allow gamers to play point-and-click adventure games"
Snes "SNES Emulator Snes9X or Bsnes"
VICE "Commodore 64 emulator"
USP "Speccy (USP) is a ZX-Spectrum emulator"
)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
for choice in $choices; do
case $choice in
Back) break ;;
Amiga) ./scripts/emus/amiga.sh ;;
Box86-64) ./scripts/emus/box86_64.sh ;;
Amstrad) ./scripts/emus/amstrad.sh ;;
Dolphin) ./scripts/emus/dolphin.sh ;;
Flycast) ./scripts/emus/flycast.sh ;;
DOSBox) ./scripts/emus/msdos.sh ;;
mGBA) ./scripts/emus/gba.sh ;;
Genesis) ./scripts/emus/genesis.sh ;;
Mednafen) ./scripts/emus/mednafen.sh ;;
Mame) ./scripts/emus/mame.sh ;;
MSX) ./scripts/emus/openmsx.sh ;;
NES) ./scripts/emus/nes.sh ;;
PS1) ./scripts/emus/psx.sh ;;
PS2) ./scripts/emus/ps2.sh ;;
PSP) ./scripts/emus/psp.sh ;;
Pifba) ./scripts/emus/pifba.sh ;;
PCem) ./scripts/emus/pcem.sh ;;
ResidualVM) ./scripts/emus/residual.sh ;;
RetroArch) ./scripts/emus/retroarch.sh ;;
Redream) ./scripts/emus/redream.sh ;;
ScummVM) ./scripts/emus/scummvm.sh ;;
Snes) ./scripts/emus/snes.sh ;;
USP) ./scripts/emus/speccy.sh ;;
VICE) ./scripts/emus/commodore.sh ;;
esac
done
}
smMultimedia() {
if is_userspace_64_bits; then
show_dialog_only_32_bits "OBS"
fi
cmd=(dialog --clear --backtitle "$TITLE" --title "[ Multimedia ]" --menu "Select a script from the list:" "$wHEIGHT" "$wWIDTH" "$wHEIGHT")
options=(
Back "Back to main menu"
JELLYFIN "Stream media to any device from your own server"
Kodi "Kodi is a free media player that is designed to look great on your TV but is just as home on a small screen."
Kiosk "Image slideshow"
Moonlight "Moonlight PC is an open source implementation of NVIDIA's GameStream"
Spotube "Spotify clone"
TV "CLI TV Player: Spain and International"
OBS "Free & open source software 4 video recording and streaming"
)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
for choice in $choices; do
case $choice in
Back) break ;;
JELLYFIN) ./scripts/mmedia/jellyfin.sh ;;
Kodi) ./scripts/mmedia/xbmc.sh ;;
Kiosk) ./scripts/mmedia/kiosk.sh ;;
Moonlight) ./scripts/mmedia/moonlight-qt.sh ;;
Spotube) ./scripts/mmedia/spotube.sh ;;
TV) ./scripts/mmedia/tvplayer.sh ;;
OBS) ./scripts/mmedia/obs.sh ;;
esac
done
}
smConfigure() {
cmd=(dialog --clear --backtitle "$TITLE" --title "[ Configure ]" --menu "Select to configure your distro:" "$wHEIGHT" "$wWIDTH" "$wHEIGHT")
options=(
Back "Back to main menu"
Vulkan "Compile/update Vulkan Mesa driver"
SSIDCfg "Configure SSID (WPA/WPA2 with PSK)"
Joypad "Configure WII, XBox360 controller"
Backup "Simple backup dir to run daily"
# Applekeyb "Bluetooth keyboard"
Netcfg "Configure static IP"
Monitorcfg "Configure your TV resolution"
)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
for choice in $choices; do
case $choice in
Back) break ;;
Vulkan) ./scripts/config/vulkan.sh ;;
SSIDCfg) ./scripts/config/ssidcfg.sh ;;
Joypad) ./scripts/config/jpad.sh ;;
Backup) ./scripts/config/backup.sh ;;
Applekeyb) ./scripts/config/applekeyb.sh ;;
Netcfg) ./scripts/config/netconfig.sh ;;
Monitorcfg) ./scripts/config/monitorcfg.sh ;;
esac
done
}
smInternet() {
cmd=(dialog --clear --backtitle "$TITLE" --title "[ Internet ]" --menu "Select an option from the list:" "$wHEIGHT" "$wWIDTH" "$wHEIGHT")
options=(
Back "Back to main menu"
Plowshare "Direct download from hosters like uploaded,..."
SyncTERM "BBS terminal program"
nChat "Use WhatsApp/Telegram on Terminal"
Zoom "i386 version of software platform used for teleconferencing using Box86"
)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
for choice in $choices; do
case $choice in
Back) break ;;
Plowshare) ./scripts/inet/ddown.sh ;;
SyncTERM) ./scripts/inet/syncterm.sh ;;
nChat) ./scripts/inet/nchat.sh ;;
Zoom) ./scripts/inet/zoom.sh ;;
esac
done
}
smServer() {
cmd=(dialog --clear --backtitle "$TITLE" --title "[ Server ]" --menu "Select to configure your distro as a server:" "$wHEIGHT" "$wWIDTH" "$wHEIGHT")
options=(
Back "Back to main menu"
AdBlock "Turn Raspberry Pi into an Ad blocker with Pi-Hole"
BlockIPs "Block access attempts to your Pi connected to the Internet"
Cups "Printer server (cups)"
DB "Install MariaDB"
FTP "Simple FTP Server with vsftpd"
FWork "WordPress, Node.js among others"
GitServer "Use your RPi as a Git Server"
Jenkins "Jenkins is a free and open source automation server"
LEMP "Stack stands for Linux+NGinx+MariaDB+PHP"
Minidlna "Install/Compile UPnP/DLNA Minidlna"
Nagios "Nagios is a network host and service monitoring"
OctoPrint "Control your 3D-Printer"
RDesktop "Connect to your Raspberry Pi throught VNC,..."
Smtp "SMTP Config to send e-mail"
SMB "Share files with SAMBA"
Upd "keep Debian patched with latest security updates"
VPNServer "OpenVPN setup and config thanks to pivpn.io"
Web "Web server"
WebDAV "WebDAV to share local content with Apache"
)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
for choice in $choices; do
case $choice in
Back) break ;;
AdBlock) ./scripts/server/adblock.sh ;;
BlockIPs) sudo ./scripts/server/block-ips.sh ;;
Cups) ./scripts/server/printer.sh ;;
DB) ./scripts/server/db.sh ;;
FTP) ./scripts/server/ftp.sh ;;
FWork) ./scripts/server/fwork.sh ;;
GitServer) ./scripts/server/gitserver.sh ;;
Jenkins) ./scripts/server/jenkins.sh ;;
LEMP) ./scripts/server/lemp.sh ;;
Minidlna) ./scripts/server/mediaserver.sh ;;
Nagios) ./scripts/server/nagios.sh ;;
OctoPrint) ./scripts/server/octoprint.sh ;;
RDesktop) ./scripts/server/rdesktop.sh ;;
Smtp) ./scripts/server/smtp.sh ;;
SMB) ./scripts/server/fileserver.sh ;;
Upd) ./scripts/server/auto-upd.sh ;;
VPNServer) ./scripts/server/openvpn.sh ;;
Web) ./scripts/server/web.sh ;;
WebDAV) ./scripts/server/webdav.sh ;;
esac
done
}
smDevs() {
cmd=(dialog --clear --backtitle "$TITLE" --title "[ Developers ]" --menu "Select to configure some apps for development:" "$wHEIGHT" "$wWIDTH" "$wHEIGHT")
options=(
Back "Back to main menu"
Docker "Docker use OS-level virtualization to deliver containers"
QT5 "Free and open-source toolkit for creating GUI cross-platform apps"
SQLiteStudio "SQLiteStudio is a SQLite database manager"
TIC80 "TIC-80 is a free fantasy computer for making, playing tiny games"
VSCode/ium "Powerful source code editor developed by Microsoft"
)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
for choice in $choices; do
case $choice in
Back) break ;;
Docker) ./scripts/devs/docker.sh ;;
QT5) ./scripts/devs/qt5.sh ;;
SQLiteStudio) ./scripts/devs/sqlitestudio.sh ;;
TIC80) ./scripts/devs/tic-80.sh ;;
VSCode/ium) ./scripts/devs/vscode.sh ;;
esac
done
}
smOthers() {
cmd=(dialog --clear --backtitle "$TITLE" --title "[ Others ]" --menu "Another scripts uncategorized:" "$wHEIGHT" "$wWIDTH" "$wHEIGHT")
options=(
Back "Back to main menu"
Aircrack "Compile Aircrack-NG suite easily"
Alacritty "Fastest terminal emulator using GPU for rendering and Wayland compatible"
BootLoader "Update your RPi boot loader"
Fixes "Fix some problems with the Raspberry Pi OS"
GL4ES "Compile GL4ES - OpenGL for GLES Hardware"
Metasploit "The world’s most used penetration testing framework"
Part "Check issues & fix SD corruptions"
Scrcpy "Display and control of Android devices connected on USB"
SDL2 "Compile SDL2 + Libraries"
ShaderToy "Render over 100+ OpenGL ES 3.0 shaders"
Synergy "Allow you to share keyboard and mouse to computers on LAN"
Uninstall "Uninstall PiKISS :_("
UxPlay "An open-source implementation of an AirPlay mirroring server"
Wine "Wine is a compatibility layer capable of running Windows apps"
Zsh "Install Z Shell"
)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
for choice in $choices; do
case $choice in
Back) break ;;
Aircrack) ./scripts/others/aircrack.sh ;;
Alacritty) ./scripts/others/alacritty.sh ;;
BootLoader) ./scripts/others/update-bootloader.sh ;;
Fixes) ./scripts/others/fixes.sh ;;
GL4ES) ./scripts/others/gl4es.sh ;;
Metasploit) ./scripts/others/metasploit.sh ;;
Part) ./scripts/others/checkpart.sh ;;
Scrcpy) ./scripts/others/scrcpy.sh ;;
SDL2) ./scripts/others/sdl2.sh ;;
ShaderToy) ./scripts/others/shadertoy.sh ;;
Synergy) ./scripts/others/synergy.sh ;;
Uninstall) uninstall_pikiss ;;
UxPlay) ./scripts/others/uxplay.sh ;;
Wine) ./scripts/others/wine86.sh ;;
Zsh) ./scripts/others/zsh.sh ;;
esac
done
}
show_dialog_only_32_bits() {
local MESSAGE="This section has partial 64-Bit support.\nScripts availables: $1."
if [[ -z "$1" ]]; then
MESSAGE='Apologies!. PiKISS only works on 32 Bits OS.\n64 Bits support in progress...'
fi
dialog --title "[ 64BIT OS DETECTED! ]" --msgbox "$MESSAGE" 10 52
}
#
# Main menu
#
while true; do
cmd=(dialog --clear --backtitle "$TITLE" --title " [ M A I N - M E N U ] " --menu "You can use the UP/DOWN arrow keys, the first letter of the choice as a hot key, or the number keys 1-9 to choose an option:" "$wHEIGHT" "$wWIDTH" "$wHEIGHT")
options=(
Tweaks "Push your distro to the limit"
Games "Install games easily"
Emulation "Install emulators"
Info "Info about the Pi or related"
Multimedia "Install apps like XBMC"
Configure "Installations are piece of cake now"
Internet "Tweaks related to internet"
Server "Use your distro as a server"
Devs "Tools for making your own apps"
Others "Scripts with others thematics"
Exit "Exit to the shell"
)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
for choice in $choices; do
case $choice in
Tweaks) smTweaks ;;
Games) smGames ;;
Emulation) smEmulators ;;
Info) smInfo ;;
Multimedia) smMultimedia ;;
Configure) smConfigure ;;
Internet) smInternet ;;
Server) smServer ;;
Devs) smDevs ;;
Others) smOthers ;;
Exit) clear && exit_pikiss ;;
1)
echo -e "\nCancel pressed." && exit
;;
255)
echo -e "\nESC pressed." && exit
;;
esac
done
done