-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbbq
More file actions
executable file
·365 lines (350 loc) · 7.12 KB
/
bbq
File metadata and controls
executable file
·365 lines (350 loc) · 7.12 KB
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
#!/bin/bash
# The BBQ CLI Menu
# May-July 2013 <bacon@linuxbbq.org>
# this time only depending on dialog
# set fancy colors
# using .dialogrc
# set var
INPUT=/tmp/menu.sh.$$
# set function for upgrade warning
function upgrade(){
#wget http://linuxbbq.org/feed_format.txt -O /tmp/feed_format.txt
#dialog --backtitle "LinuxBBQ - Bork Your Own" --title "Upgrade warnings" --textbox /tmp/feed_format.txt 0 0
#rm /tmp/feed_format.txt
newsbeuter
}
# bbq system hospital
function bbqfix(){
dialog --backtitle "LinuxBBQ - Start" --title "System Hospital" --menu " \n" 0 0 0 \
1 "Configure network" \
2 "Install APT listbugs" \
3 "Update and Upgrade" \
a "Set timezone" \
k "Set keymap" \
l "Set localization" \
c "Reset and fix soundcard" \
C "Fix Maestro and ESS soundcards" \
d "Edit sources.list" \
e "Update GRUB2" \
f "Repair GRUB" \
g "Remove unused kernels" \
A "Get kernels" \
B "Frenchmaid System Cleaner" \
i "Reconfigure all packages through dpkg" \
j "Update application alternatives" \
m "Configure and check network" \
n "Edit HOSTS file" \
o "Add adblocking to HOSTS file" \
p "Run testdisk to repair hard drives" \
r "Install nVidia drivers" \
s "Edit Sources List" \
t "Edit GRUB file" \
u "Change Distro Defaults" \
v "Install localepurge and remove unused locales" \
w "Remove orphaned packages" \
S "Create a snapshot of the running system" \
b "Back to Main" \
x "Exit BBQ Menu" 2>"${INPUT}"
menuitem=$(<"${INPUT}")
case $menuitem in
2) sudo apt-get update && sudo apt-get install apt-listbugs ;;
3) sudo apt-get update && sudo apt-get dist-upgrade ;;
A) get-kernel ;;
B) frenchmaid ;;
D) sudo chkrootkit && read ;;
S) sudo bbqsnapshot;;
1) sudo ceni;;
w) sudo orphaner;;
v) sudo apt-get install localepurge && sudo localepurge;;
h) bbqcups;;
i) sudo dpkg-reconfigure --all;;
j) sudo update-alternatives --all;;
k) sudo dpkg-reconfigure keyboard-configuration;;
l) sudo dpkg-reconfigure locales;;
m) sudo service networking restart && service network-manager restart;;
n) sudo nano /etc/hosts;;
o) sudo adblock-host;;
p) sudo testdisk;;
q) bbqasian;;
r) sudo bbqnvidia;;
s) sudo nano /etc/apt/sources.list.d/bbq.list;;
t) sudo nano /etc/default/grub;;
u) sudo bbq-distro-defaults;;
a) sudo dpkg-reconfigure tzdata;;
b) sudo ntpdate 0.nl.pool.ntp.org;;
c) fixsnd;;
C) fixess;;
d) sudo nano /etc/apt/sources.list.d/bbq.list;;
e) sudo update-grub;;
f) sudo grubrepair;;
g) sudo kernel-remover -F text;;
b) main;;
x) exit 0;;
esac
bbqfix
}
# set function for the office menu
function office(){
dialog --backtitle "LinuxBBQ - Start" --title "Office" --menu " \n" 0 0 0 \
W "Word Processor" \
S "Spreadsheet" \
N "Newsreader" \
a "Address Book" \
d "Calendar" \
c "Calculator" \
t "To Do" \
p "Personal Information Manager" \
b "Back to Main" \
x "Exit BBQ Menu" 2>"${INPUT}"
menuitem=$(<"${INPUT}")
case $menuitem in
W) mcedit;;
S) sc;;
E) mutt;;
N) newsbeuter;;
A) alsamixer;;
r) bbqradio;;
m) mocp -T slob;;
T) tv;;
l) shell-fm;;
a) abook;;
c) bc;;
t) calcurse;;
p) tina;;
d) wyrd;;
b) main;;
x) exit 0;;
esac
office
}
# media menu
function media(){
dialog --backtitle "LinuxBBQ - Start" --title "Multimedia" --menu " \n" 0 0 0 \
A "Alsamixer" \
r "Radio" \
R "Raffles Radio Player" \
c "CPlay" \
p "PMS" \
b "Back to Main" \
x "Exit BBQ Menu" 2>"${INPUT}"
menuitem=$(<"${INPUT}")
case $menuitem in
p) pms;;
R) raffles;;
A) alsamixer;;
r) bbqradio;;
c) cplay;;
T) tv;;
b) main;;
x) exit 0;;
esac
media
}
# Network Menu
function network(){
dialog --backtitle "LinuxBBQ - Start" --title "Network" --menu " \n" 0 0 0 \
d "Network Usage Monitor" \
o "ctorrent" \
w "Browser" \
i "IRC Client" \
n "Newsreader" \
t "iftop NIC Viewer" \
b "Back to Main" \
x "Exit BBQ Menu" 2>"${INPUT}"
menuitem=$(<"${INPUT}")
case $menuitem in
o) man ctorrent;;
w) links2 www.startpage.com ;;
i) irssi;;
t) sudo iftop;;
c) centerim;;
e) mutt;;
n) newsbeuter;;
b) main;;
x) exit 0;;
d) nload;;
esac
network
}
function secsys(){
dialog --backtitle "LinuxBBQ - Start" --title "Security and System" --menu " \n" 0 0 0 \
p "passwux" \
S "bbqsnapshot" \
I "bbqinstaller !!!run in LIVE session ONLY!!!" \
b "Back to Main" \
x "Exit BBQ Menu" 2>"${INPUT}"
menuitem=$(<"${INPUT}")
case $menuitem in
p) passwux && read n ;;
S) sudo bbqsnapshot;;
I) sudo bbqinstaller;;
c) cpm;;
a) man aircrack-ng;;
j) man john;;
s) man sucrack;;
b) main;;
x) exit 0;;
esac
secsys
}
function hobby(){
dialog --backtitle "LinuxBBQ - Start" --title "Hobby" --menu " \n" 0 0 0 \
n "nut nutrition" \
h "notebook" \
c "piano reference" \
d "Debian Administrators Handbook" \
b "Back to Main" \
x "Exit BBQ Menu" 2>"${INPUT}"
menuitem=$(<"${INPUT}")
case $menuitem in
d) links2 http://debian-handbook.info;;
c) chords;;
n) nut-nutrition;;
h) hnb;;
b) main;;
x) exit 0;;
esac
hobby
}
# accessories
function acc(){
dialog --backtitle "LinuxBBQ - Start" --title "Accessories" --menu " \n" 0 0 0 \
B "bbqqit Grillers Hub" \
m "Midnight Commander" \
r "Ranger" \
p "Powertop" \
h "htop Process Monitor"\
t "Multitail Log Viewer" \
d "Disk Usage" \
b "Back to Main" \
x "Exit BBQ Menu" 2>"${INPUT}"
menuitem=$(<"${INPUT}")
case $menuitem in
B) bbqgit;;
u) hexcurse;;
j) joe;;
f) vifm;;
p) sudo powertop;;
t) multitail;;
m) mc;;
g) glances;;
r) ranger;;
v) vi;;
e) nano;;
h) htop;;
d) ncdu;;
b) main;;
x) exit 0;;
esac
acc
}
# games
function games(){
dialog --backtitle "LinuxBBQ - Start" --title "Games" --menu " \n" 0 0 0 \
G "Curse of War" \
b "Cavez Of Phear" \
C "Scribble" \
a "bastet" \
A "empire" \
F "rogue" \
c "ninvaders" \
d "freesweep"\
e "pacman" \
f "adventure" \
g "phantasia" \
h "worm" \
i "cribbage" \
j "snake" \
k "wargames" \
l "sail" \
m "robots" \
n monop \
o boggle \
p hangman \
q hack \
r backgammon \
s mille \
t canfield \
u wump \
v tetris \
w gomoku \
y trek \
z battlestar \
B "Back to Main" \
x "Exit BBQ Menu" 2>"${INPUT}"
menuitem=$(<"${INPUT}")
case $menuitem in
G) curseofwar;;
C) scribble;;
b) phear;;
a) bastet;;
F) rogue;;
A) empire;;
c) ninvaders;;
d) freesweep;;
e) pacman;;
f) adventure;;
g) phantasia;;
h) worm;;
i) cribbage;;
j) snake;;
k) clear && wargames && read ;;
l) sail;;
m) robots;;
n) monop;;
o) boggle;;
p) hangman;;
q) hack;;
r) backgammon;;
s) mille;;
t) canfield;;
u) wump;;
v) tetris;;
w) gomoku;;
y) trek;;
z) battlestar;;
B) main;;
x) exit 0;;
esac
games
}
# main selection
function main(){
dialog --backtitle "LinuxBBQ - Start" --title "Main Menu" --menu " \n" 0 0 0 \
f "Fix your system" \
u "Upgrade Warnings" \
a "Accessories" \
n "Network and Chat" \
o "Office" \
m "Multimedia" \
h "Hobby" \
s "Security and System" \
l "Screensaver" \
9 "Reboot" \
0 "Power off" \
x "Exit BBQ Menu" 2>"${INPUT}"
menuitem=$(<"${INPUT}")
case $menuitem in
r) clear && cat /etc/motd | dialog --programbox 40 80;;
s) secsys;;
e) emu;;
l) termsaver sysmon;;
p) programming;;
f) bbqfix;;
u) upgrade ;;
a) acc ;;
n) network;;
o) office;;
m) media;;
h) hobby;;
g) games;;
9) systemctl reboot;;
0) systemctl poweroff;;
q) clear &&exit 0;;
x) clear &&exit 0;;
esac
main
}
main
clear &&
exit 0