|
@@ -39,6 +39,9 @@ fi
|
39
|
39
|
MESH_CLIENT_INSTALL=
|
40
|
40
|
ENABLE_MONKEYSPHERE=
|
41
|
41
|
|
|
42
|
+# setup for a specific app
|
|
43
|
+SETUP_CLIENT_APP_NAME=
|
|
44
|
+
|
42
|
45
|
# Version number of this script
|
43
|
46
|
VERSION="1.01"
|
44
|
47
|
|
|
@@ -202,6 +205,61 @@ function show_help {
|
202
|
205
|
exit 0
|
203
|
206
|
}
|
204
|
207
|
|
|
208
|
+function setup_client_app_irc {
|
|
209
|
+ echo $'Setting up hexchat'
|
|
210
|
+ if [ ! -f /usr/bin/pacman ]; then
|
|
211
|
+ sudo apt-get -yq install tor hexchat tor
|
|
212
|
+ else
|
|
213
|
+ sudo pacman -S --noconfirm hexchat tor
|
|
214
|
+ fi
|
|
215
|
+ if [ ! -d /home/$CURR_USER/.config/hexchat ]; then
|
|
216
|
+ mkdir -p /home/$CURR_USER/.config/hexchat
|
|
217
|
+ fi
|
|
218
|
+ echo 'net_proxy_host = 127.0.0.1' > /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
219
|
+ echo 'net_proxy_port = 9050' >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
220
|
+ echo 'net_proxy_type = 3' >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
221
|
+ echo 'net_proxy_use = 0' >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
222
|
+
|
|
223
|
+ echo 'net_proxy_auth = 1' >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
224
|
+ echo 'net_proxy_pass = HexChat' >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
225
|
+ echo 'net_proxy_user = HexChat' >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
226
|
+
|
|
227
|
+ echo 'dcc_auto_chat = 0' >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
228
|
+ echo 'dcc_auto_resume = 0' >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
229
|
+ echo 'dcc_auto_send = 0' >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
230
|
+ echo 'irc_hide_version = 1' >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
231
|
+ echo 'identd = 0' >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
232
|
+
|
|
233
|
+ echo 'away_reason =' >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
234
|
+ echo 'irc_part_reason =' >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
235
|
+ echo 'irc_quit_reason =' >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
236
|
+
|
|
237
|
+ echo "irc_real_name = ${USER}" >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
238
|
+ echo "irc_user_name = ${USER}" >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
239
|
+ echo "irc_nick1 = ${USER}" >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
240
|
+ echo "irc_nick2 = ${USER}_" >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
241
|
+ echo "irc_nick3 = ${USER}__" >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
242
|
+
|
|
243
|
+ echo 'completion_suffix = :' >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
244
|
+
|
|
245
|
+ echo 'gui_slist_skip = 1' >> /home/$CURR_USER/.config/hexchat/hexchat.conf
|
|
246
|
+
|
|
247
|
+ echo $'hexchat configured'
|
|
248
|
+}
|
|
249
|
+
|
|
250
|
+function setup_client_app {
|
|
251
|
+ if [ ! $SETUP_CLIENT_APP_NAME ]; then
|
|
252
|
+ return
|
|
253
|
+ fi
|
|
254
|
+
|
|
255
|
+ case $SETUP_CLIENT_APP_NAME in
|
|
256
|
+ hexchat|xchat|irc)
|
|
257
|
+ setup_client_app_irc
|
|
258
|
+ ;;
|
|
259
|
+ esac
|
|
260
|
+ exit 0
|
|
261
|
+}
|
|
262
|
+
|
205
|
263
|
while [[ $# > 1 ]]
|
206
|
264
|
do
|
207
|
265
|
key="$1"
|
|
@@ -218,6 +276,10 @@ do
|
218
|
276
|
shift
|
219
|
277
|
WIFI_CHANNEL=${1}
|
220
|
278
|
;;
|
|
279
|
+ -s|--setup)
|
|
280
|
+ shift
|
|
281
|
+ SETUP_CLIENT_APP_NAME=${1}
|
|
282
|
+ ;;
|
221
|
283
|
-m|--mesh)
|
222
|
284
|
shift
|
223
|
285
|
MESH_CLIENT_INSTALL=${1}
|
|
@@ -234,6 +296,7 @@ do
|
234
|
296
|
done
|
235
|
297
|
|
236
|
298
|
echo $'Configuring client'
|
|
299
|
+setup_client_app
|
237
|
300
|
refresh_gpg_keys
|
238
|
301
|
configure_ssh_client
|
239
|
302
|
global_rate_limit
|