I use LinuxDC++ a lot, and I am not allowed to share certain stuff on the private servers that I am on. So I thought that I could have 2 clients with 2 different configurations at once, but apparently LinuxDC++ is hard coded to only have one specific configuration folder. So I made some minor quick changes to the source to make it work like I want to.
Anyway, let's get started ...
Start with opening a terminal and download the latest LinuxDC++ source at
Code: Select all
https://code.launchpad.net/linuxdcpp
Code: Select all
cd /home/$USER/Desktop
Code: Select all
wget http://code.launchpad.net/linuxdcpp/1.0/1.0.3/+download/linuxdcpp-1.0.3.tar.bz2
Code: Select all
tar jxf linuxdcpp-1.0.3.tar.bz2
Code: Select all
cd linuxdcpp-1.0.3/client
Code: Select all
nano Util.cpp
Code: Select all
#else
systemPath = "/etc/";
char* home = getenv("HOME");
configPath = home ? Text::toUtf8(home) + "/.dc++/" : "/tmp/";
dataPath = configPath; // dataPath in linux is usually prefix + /share/app_name, so we can't represent it here
Code: Select all
#else
systemPath = ".";
//char* home = getenv("HOME");
configPath = "."; //home ? Text::toUtf8(home) + "/.dc++/" : "/tmp/";
dataPath = configPath; // dataPath in linux is usually prefix + /share/app_name, so we can't represent it here
Now you have to edit another file, so navigate to the "linux" folder which is located one step back from your current position in the folder tree (cd ../linux).
You have to open up the file "WulforUtil.cc" and goto row 309, it should look like this
Code: Select all
string configPath = home ? string(home) + "/.dc++/" : "/tmp/";
string profileLockingFile = configPath + "profile.lck";
Code: Select all
string configPath = ".";//home ? string(home) + "/.dc++/" : "/tmp/";
string profileLockingFile = configPath + "profile.lck";
Now, to install you have to make sure you have a bunch of libraries, and that you have "scons". If you do not have scons, you have to install it, and if you have Debian/Ubuntu you can do so by issuing "apt-get install scons".
Now you need to make sure you meet the following requirements:
When you meet these requirements, you can start the compilation by typingscons >= 0.96
pkg-config
g++ >= 3.4
gtk+-2.0 >= 2.10
gthread-2.0 >= 2.4
libglade-2.0 >= 2.4
pthread
zlib
libbz2
libssl
Code: Select all
scons /path/to/install
Code: Select all
scons /home/$USER/Desktop/LinuxDC0
Code: Select all
scons install