-
Notifications
You must be signed in to change notification settings - Fork 26
/
vsetup-debug.sh
25 lines (24 loc) · 1.22 KB
/
vsetup-debug.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
#!/bin/bash
# First time install and setup for coredump debugging on freeciv server executable
# ./vdebug-setup.sh: VAGRANT version. Sets up gdb deubugger and coredumps
# to /tmp/core_filename for first time vagrant installations.
# ***********************************************************************************
printf "\n\n"
printf "***********************************************************************\n"
printf "./vdebug-setup.sh: VAGRANT version. Sets up gdb debugger and coredumps\n"
printf "* and misc alias commands *********************************************\n"
printf "***********************************************************************\n\n"
printf "READ CAREFULLY. After running this script, copy-paste the following\n"
printf "commands to the terminal command line:\n"
printf "***********************************************************************\n"
printf "\nsudo -i\n"
echo "echo \"/tmp/core/core.%e.%p.%t\" > /proc/sys/kernel/core_pattern"
printf "ulimit -c unlimited\n"
printf "exit\n"
printf "\n\n"
printf "***********************************************************************\n\n"
echo "==== Setting up coredump debug configuration ===="
ulimit -c unlimited
echo "==== Installng gdb ===="
sudo apt install gdb
exit