- initial import
This commit is contained in:
5
config/README.md
Normal file
5
config/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
Various config files.
|
||||
|
||||
- subdirectory mc/ - helper config file for MidnightCommander. Provides dark mode. I just like it.
|
||||
- systemd/ - config file for systemd to allow autostart on boot
|
||||
- agent.in.yaml - main config file for QualTest agent
|
||||
49
config/agent.in.yaml
Normal file
49
config/agent.in.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
# Backend URL
|
||||
backend: http://89.184.187.247:8080
|
||||
|
||||
# Phone / instance name
|
||||
name:
|
||||
|
||||
# Task name used to answer calls. Required for answerers only.
|
||||
task:
|
||||
|
||||
# Exit from script after number of calls. Usually systemd restarts script after.
|
||||
task_limit: 1
|
||||
|
||||
# Should we force first task in the list ? It will run immediately
|
||||
force_task: no
|
||||
|
||||
# Use lite speech_detector instead of silence_eraser
|
||||
speech_detector: yes
|
||||
|
||||
audio:
|
||||
# Audio device used to play audio
|
||||
play_device: "hw:2,0"
|
||||
|
||||
# Audio device used to record audio
|
||||
record_device: "hw:2,0"
|
||||
|
||||
# Use native audio utilities from alsa-utils package instead of PyAudio based implementation
|
||||
ALSA: yes
|
||||
|
||||
# Use samplerate
|
||||
samplerate: 48000
|
||||
|
||||
bluetooth: no
|
||||
bluetooth_mac: ""
|
||||
|
||||
log:
|
||||
# Log file path (otherwise log will be sent to syslog)
|
||||
path:
|
||||
|
||||
# Verbose logging
|
||||
verbose: yes
|
||||
|
||||
# Log ADB output
|
||||
adb: yes
|
||||
|
||||
# Upload full audio recordings
|
||||
audio: yes
|
||||
|
||||
# Where to keep audio
|
||||
audio_dir: /dev/shm
|
||||
64
config/agent.yaml
Normal file
64
config/agent.yaml
Normal file
@@ -0,0 +1,64 @@
|
||||
# Backend URL
|
||||
backend: $BACKEND
|
||||
|
||||
# Phone / instance name
|
||||
name: $PHONE_NAME
|
||||
|
||||
# Task name used to answer calls. Required for answerers only.
|
||||
task: $TASK_NAME
|
||||
|
||||
# Exit from script after number of calls. Usually systemd restarts script after.
|
||||
task_limit: 1
|
||||
|
||||
# Should we force first task in the list ? It will run immediately
|
||||
force_task: no
|
||||
|
||||
# Use lite speech_detector instead of silence_eraser
|
||||
speech_detector: yes
|
||||
|
||||
# Reboot the phone on start
|
||||
reboot_on_start: no
|
||||
|
||||
# adb watchdog check interval
|
||||
phone_watchdog_interval: 180
|
||||
|
||||
# RabbitMQ related settings
|
||||
rabbitmq:
|
||||
url:
|
||||
exchange:
|
||||
queue:
|
||||
|
||||
audio:
|
||||
# Audio device used to play audio
|
||||
play_device: "auto"
|
||||
|
||||
# Audio device used to record audio
|
||||
record_device: "auto"
|
||||
|
||||
# Use native audio utilities from alsa-utils package instead of PyAudio based implementation
|
||||
ALSA: yes
|
||||
|
||||
# Use samplerate
|
||||
samplerate: 48000
|
||||
|
||||
# Silence prefix & suffix lengths (in seconds)
|
||||
silence_prefix: 30
|
||||
silence_suffix: 30
|
||||
|
||||
# Should we start play with call established notification ? This is actual for caller nodes only
|
||||
wait_for_notify: no
|
||||
|
||||
|
||||
log:
|
||||
# Log file path (otherwise log will be sent to syslog)
|
||||
path:
|
||||
|
||||
# Verbose logging
|
||||
verbose: yes
|
||||
|
||||
# Log ADB output
|
||||
adb: yes
|
||||
|
||||
# Upload full audio recordings
|
||||
audio: yes
|
||||
|
||||
143
config/mc/ini
Normal file
143
config/mc/ini
Normal file
@@ -0,0 +1,143 @@
|
||||
[Midnight-Commander]
|
||||
verbose=true
|
||||
shell_patterns=true
|
||||
auto_save_setup=true
|
||||
preallocate_space=false
|
||||
auto_menu=false
|
||||
use_internal_view=true
|
||||
use_internal_edit=false
|
||||
clear_before_exec=true
|
||||
confirm_delete=true
|
||||
confirm_overwrite=true
|
||||
confirm_execute=false
|
||||
confirm_history_cleanup=true
|
||||
confirm_exit=false
|
||||
confirm_directory_hotlist_delete=false
|
||||
confirm_view_dir=false
|
||||
safe_delete=false
|
||||
safe_overwrite=false
|
||||
use_8th_bit_as_meta=false
|
||||
mouse_move_pages_viewer=true
|
||||
mouse_close_dialog=false
|
||||
fast_refresh=false
|
||||
drop_menus=false
|
||||
wrap_mode=true
|
||||
old_esc_mode=true
|
||||
cd_symlinks=true
|
||||
show_all_if_ambiguous=false
|
||||
use_file_to_guess_type=true
|
||||
alternate_plus_minus=false
|
||||
only_leading_plus_minus=true
|
||||
show_output_starts_shell=false
|
||||
xtree_mode=false
|
||||
file_op_compute_totals=true
|
||||
classic_progressbar=true
|
||||
use_netrc=true
|
||||
ftpfs_always_use_proxy=false
|
||||
ftpfs_use_passive_connections=true
|
||||
ftpfs_use_passive_connections_over_proxy=false
|
||||
ftpfs_use_unix_list_options=true
|
||||
ftpfs_first_cd_then_ls=true
|
||||
ignore_ftp_chattr_errors=true
|
||||
editor_fill_tabs_with_spaces=false
|
||||
editor_return_does_auto_indent=false
|
||||
editor_backspace_through_tabs=false
|
||||
editor_fake_half_tabs=true
|
||||
editor_option_save_position=true
|
||||
editor_option_auto_para_formatting=false
|
||||
editor_option_typewriter_wrap=false
|
||||
editor_edit_confirm_save=true
|
||||
editor_syntax_highlighting=true
|
||||
editor_persistent_selections=true
|
||||
editor_drop_selection_on_copy=true
|
||||
editor_cursor_beyond_eol=false
|
||||
editor_cursor_after_inserted_block=false
|
||||
editor_visible_tabs=true
|
||||
editor_visible_spaces=true
|
||||
editor_line_state=false
|
||||
editor_simple_statusbar=false
|
||||
editor_check_new_line=false
|
||||
editor_show_right_margin=false
|
||||
editor_group_undo=true
|
||||
editor_state_full_filename=true
|
||||
editor_ask_filename_before_edit=false
|
||||
nice_rotating_dash=true
|
||||
mcview_remember_file_position=false
|
||||
auto_fill_mkdir_name=true
|
||||
copymove_persistent_attr=true
|
||||
pause_after_run=1
|
||||
mouse_repeat_rate=100
|
||||
double_click_speed=250
|
||||
old_esc_mode_timeout=1000000
|
||||
max_dirt_limit=10
|
||||
num_history_items_recorded=60
|
||||
vfs_timeout=60
|
||||
ftpfs_directory_timeout=900
|
||||
ftpfs_retry_seconds=30
|
||||
fish_directory_timeout=900
|
||||
editor_tab_spacing=8
|
||||
editor_word_wrap_line_length=72
|
||||
editor_option_save_mode=0
|
||||
editor_backup_extension=~
|
||||
editor_filesize_threshold=64M
|
||||
editor_stop_format_chars=-+*\\,.;:&>
|
||||
mcview_eof=
|
||||
skin=default
|
||||
|
||||
[Layout]
|
||||
message_visible=1
|
||||
keybar_visible=1
|
||||
xterm_title=1
|
||||
output_lines=0
|
||||
command_prompt=1
|
||||
menubar_visible=1
|
||||
free_space=1
|
||||
horizontal_split=0
|
||||
vertical_equal=1
|
||||
left_panel_size=94
|
||||
horizontal_equal=1
|
||||
top_panel_size=1
|
||||
|
||||
[Misc]
|
||||
timeformat_recent=%b %e %H:%M
|
||||
timeformat_old=%b %e %Y
|
||||
ftp_proxy_host=gate
|
||||
ftpfs_password=anonymous@
|
||||
display_codepage=UTF-8
|
||||
source_codepage=Other_8_bit
|
||||
autodetect_codeset=
|
||||
spell_language=en
|
||||
clipboard_store=
|
||||
clipboard_paste=
|
||||
|
||||
[Colors]
|
||||
base_color=linux:normal=gray,black:marked=yellow,black:input=,green:menu=black:menusel=gray:menuhot=red,:menuhotsel=black,red:dfocus=gray,black:dhotnormal=gray,black:dhotfocus=gray,black:executable=,black:directory=gray,black:link=gray,black:device=gray,black:special=gray,black:core=,black:stalelink=red,black:editnormal=gray,black
|
||||
xterm-256color=
|
||||
color_terminals=
|
||||
|
||||
[Panels]
|
||||
show_mini_info=true
|
||||
kilobyte_si=false
|
||||
mix_all_files=false
|
||||
show_backups=true
|
||||
show_dot_files=true
|
||||
fast_reload=false
|
||||
fast_reload_msg_shown=false
|
||||
mark_moves_down=true
|
||||
reverse_files_only=true
|
||||
auto_save_setup_panels=false
|
||||
navigate_with_arrows=false
|
||||
panel_scroll_pages=true
|
||||
panel_scroll_center=false
|
||||
mouse_move_pages=true
|
||||
filetype_mode=true
|
||||
permission_mode=false
|
||||
torben_fj_mode=false
|
||||
quick_search_mode=2
|
||||
select_flags=6
|
||||
|
||||
[Panelize]
|
||||
Find *.orig after patching=find . -name \\*.orig -print
|
||||
Find SUID and SGID programs=find . \\( \\( -perm -04000 -a -perm /011 \\) -o \\( -perm -02000 -a -perm /01 \\) \\) -print
|
||||
Find rejects after patching=find . -name \\*.rej -print
|
||||
Modified git files=git ls-files --modified
|
||||
31
config/systemd/agent_gsm.in.service
Normal file
31
config/systemd/agent_gsm.in.service
Normal file
@@ -0,0 +1,31 @@
|
||||
[Unit]
|
||||
Description=QualTest GSM node
|
||||
ConditionPathExists=ABSOLUTE_INSTALL_DIR/run_node.sh
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=pi
|
||||
Group=pi
|
||||
LimitNOFILE=1024
|
||||
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
# startLimitIntervalSec=60
|
||||
|
||||
WorkingDirectory=ABSOLUTE_INSTALL_DIR
|
||||
ExecStart=/bin/bash ABSOLUTE_INSTALL_DIR/run_node.sh --check-pid-file
|
||||
KillSignal=SIGQUIT
|
||||
|
||||
# make sure log directory exists and owned by syslog
|
||||
PermissionsStartOnly=true
|
||||
ExecStartPre=/usr/bin/rm -f ABSOLUTE_INSTALL_DIR/qualtest.pid
|
||||
|
||||
#ExecStartPre=/bin/chown syslog:adm /var/log/sleepservice
|
||||
#ExecStartPre=/bin/chmod 755 /var/log/sleepservice
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
SyslogIdentifier=agent_gsm
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
13
config/systemd/tunnel.service
Normal file
13
config/systemd/tunnel.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Tunnel to jumpbox
|
||||
Wants=network-online.target
|
||||
After=network.target network-online.target
|
||||
|
||||
[Service]
|
||||
User=pi
|
||||
Restart=always
|
||||
RestartSec=60
|
||||
ExecStart=/bin/bash /home/pi/create_tunnel.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
11
config/systemd/vpn.service
Normal file
11
config/systemd/vpn.service
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=VPN to backend
|
||||
Wants=network-online.target
|
||||
After=network.target network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/home/pi/create_vpn.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user