GrabDuck

compile corrade from source [debian 64bit]

:

based on:
http://grimore.org/secondlife/scripted_agents/corrade/compiling_corrade
http://grimore.org/secondlife/scripted_agents/corrade/api/conservative

simply get the compiled version:
wget http://grimore.org/_media/secondlife/scripted_agents/corrade-7.122.zip

install dependencies:
sudo apt-get install subversion

clone the sources:
cd ~
svn checkout http://svn.grimore.org/corrade-conservative
#git clone https://github.com/SeanDevin/corrade.git
#wget -m -np http://svn.grimore.org/compiling_corrade/

compile it:
cd ~/corrade-conservative/
xbuild Corrade.sln /p:Configuration=Release

edit in Corrade.ini the following lines:
nano ~/corrade-conservative/Corrade/bin/Release/Corrade.ini

<firstname>Test</firstname>
<lastname>User</lastname>
.
.
<password>$1$e1b849f9631ffc1829b2e31402373e3c</password>
.
.
<LoginURL>http://localhost:9000</LoginURL>
.
.
<tosaccepted>true</tosaccepted>

corrade reduce lag:
range 16
remove decyption
remove filters
remove ailm # cause it lags(also in descption mentioned)
and disable all other functions you do not use

create some extra folder that are used for the logs:
cd ~/corrade-conservative/Corrade/bin/Release/
mkdir databases
mkdir logs
cd logs/
mkdir im
mkdir local
mkdir region
mkdir groupchat

start corrade:
cd ~/corrade-conservative/Corrade/bin/Release && mono-service -l:Corrade.exe.lock Corrade.exe

shutdown corrade:
kill $(sudo cat /home/xxfreddyxx/corrade-conservative/Corrade/bin/Release/Corrade.exe.lock)

sometimes something went wrong and you have a left behinde Corrade.exe.lock file, so delete it:
rm ~/corrade-conservative/Corrade/bin/Release/Corrade.exe.lock

create a launcher to start corrade:
cd ~/.local/share/icons
wget -O corrade.jpg https://slm-assets1.secondlife.com/assets/10613142/regular/corradestore_icon.jpg?1439695702
cd ~/.local/share/applications
nano corrade.desktop

[Desktop Entry]
Name=corrade
Comment=start corrade
Exec=sh -c 'cd /home/xxUserxx/corrade-conservative/Corrade/bin/Release/;sh /usr/bin/mono-service -l:Corrade.exe.lock Corrade.exe'
Icon=/home/xxUserxx/.local/share/icons/corrade.jpg
Terminal=false
Type=Application
Categories=Application;Network;Internet;
StartupNotify=true

use the correct username in starter:
cd ~/.local/share/applications
sed -i 's/xxUserxx/'$USER'/' corrade.desktop

create a launcher to kill corrade:
dependencies:
sudo apt-get install gksu

create a kill script:
touch ~/corrade-conservative/Corrade/bin/Release/kill-corrade
chmod +x ~/corrade-conservative/Corrade/bin/Release/kill-corrade
nano ~/corrade-conservative/Corrade/bin/Release/kill-corrade

#! /bin/bash
sh -c 'kill $(cat /home/xxfreddyxx/corrade-conservative/Corrade/bin/Release/Corrade.exe.lock)'

create the launcher to run teh script:
cd ~/.local/share/icons
wget https://github.com/encharm/Font-Awesome-SVG-PNG/raw/master/black/svg/plug.svg
cd ~/.local/share/applications
nano corrade-kill.desktop

[Desktop Entry]
Name=corrade-kill
Comment=kill corrade process
Exec=gksu /home/xxfreddyxx/corrade-conservative/Corrade/bin/Release/kill-corrade
Icon=/home/xxfreddyxx/.local/share/icons/plug.svg
Terminal=false
Type=Application
Categories=Application;Network;Internet;
StartupNotify=true

if you run corrade on a server:
based on:
http://grimore.org/secondlife/scripted_agents/corrade/install_guides/raspberry_pi#modified_init_script

install monit:
sudo apt-get install monit

get the MyFirstBot init.d file:
cd /etc/init.d
sudo wget -O MyFirstBot http://grimore.org/_export/code/secondlife/scripted_agents/corrade/install_guides/raspberry_pi?codeblock=22

change bot path:
sudo nano /etc/init.d/MyFirstBot
BOT_PATH=”Corrade"

change permissions and .. + update defaults
sudo chmod +x /etc/init.d/MyFirstBot
sudo chown root:root /etc/init.d/MyFirstBot
sudo update-rc.d MyFirstBot defaults

create a monit-file:
sudo nano /etc/monit/conf.d/MyFirstBot

check process MyFirstBot with pidfile /home/corrade/CorradeBots/MyFirstBot/Corrade.exe.lock
   start program = "/etc/init.d/MyFirstBot start"
   stop program = "/etc/init.d/MyFirstBot stop"
#   if 5 restarts within 5 cycles then timeout

mono is now licensed with “MIT”