Results 1 to 8 of 8

Thread: Linux DC++

  1. #1
    Join Date
    Aug 2005
    Location
    USA
    Beans
    369
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Linux DC++

    Hey I'm trying to do the same thing as This User but I dont know if the patch worked correctly since there wasnt any output. I navigated to the directory of linuxdcpp, applied the patch with patch -p0 < ruxan.patch, then ran scons to compile it.

    Everything compiled successfully yet I still cant connect to the hub this is really annoying considering that most people on the hub wont help you with anything, ive tried asking before and I get the typical a$$hole responses such as "who cares its the end of the semester"

  2. #2
    Join Date
    Apr 2008
    Location
    NJ
    Beans
    15
    Distro
    Hardy Heron (Ubuntu Development)

    Re: Linux DC++

    What where the steps you took to patch linuxdcpp? I'm not sure which file to patch and not sure what to do when you speak of scons.

    Thanks.

  3. #3
    Join Date
    Aug 2005
    Location
    USA
    Beans
    369
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: Linux DC++

    i extracted the tar ball and placed the patch in the main directory of it and executed

    patch -p0 < ruxan.patch

    and it just brought me back to my bash prompt, i tried placing the patch in the linux directory and patched it again with the same results. scons is a program that will configure and compile the program. it takes the place of ./configure and make.

  4. #4
    Join Date
    Apr 2008
    Location
    NJ
    Beans
    15
    Distro
    Hardy Heron (Ubuntu Development)

    Re: Linux DC++

    Every time I used the "patch -p0 < filename.patch" command I was presented with error messages at 2 specific lines, it then asked me which file I would like to patch and I wasn't which file it was. However whichever file I tried seemed to fail. I think the two files I tried were DC++.xml and LinuxDCPP.xml (those file names may be different as I'm not on my linux computer).

  5. #5
    Join Date
    Aug 2005
    Location
    USA
    Beans
    369
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: Linux DC++

    what are the errors youre getting? i didnt get any output at all

    from reading the patch i can tell that we need version 1.0.0 of linuxdcpp and the files that it is trying to patch are linuxdcpp-1.0.0/client/NmdcHub.cpp and linuxdcpp-1.0.0/client/version.h

    i examined the file a little more and this is what i found:

    the patch adds this into nmdchub.cpp: ">$ $LAN(T3)\x01$" + fromUtf8(escape(SETTING(EMAIL))) + '$';
    and deletes this from nmdchub.cpp (?): ">$ $" + SETTING(UPLOAD_SPEED) + "\x01$" + fromUtf8(escape(SETTING(EMAIL))) + '$';

    and the patch changes this in version.h:
    #define VERSIONSTRING "0.698" to #define VERSIONSTRING "0.674"
    #define VERSIONFLOAT "0.698" to #define VERSIONFLOAT "0.674"

    im going to try the patch again and if it doesnt work im going to try and change it manually then compile it
    Last edited by Brando569; September 22nd, 2008 at 08:12 PM.

  6. #6
    Join Date
    Aug 2005
    Location
    USA
    Beans
    369
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: Linux DC++

    I finally got it to work, go download Valknut and DcLib and compile and install them. execute valknut and in the settings change the upload slots to the normal 3, share whatever you want, and change your connection mode to active and do it by interface and select eth0

    mine kept on telling me that i had invalid settings, then it would tell me i didnt have enough slots open and that i had invalid settings, then it would tell me i had invalid settings and kick me off, then it retried and im on.

    edit:

    i was talking about this in the chat and the guy that made the patch messaged me and told me that there was a new version and told me how to do everything. heres what i did:

    1.downloaded version 1.0.2 and extracted it
    2.applied the new patch with sudo patch -p1 < linuxdcpp-1.0.2-ruxan.patch
    3.compiled it with the command "scons" (no quotes)
    4.then sudo scons install
    5.run linuxdcpp

    heres the new patch
    Code:
    diff -ur linuxdcpp-1.0.2/client/NmdcHub.cpp patched/linuxdcpp-1.0.2/client/NmdcHub.cpp
    --- linuxdcpp-1.0.2/client/NmdcHub.cpp	2008-07-02 23:54:12.000000000 -0400
    +++ patched/linuxdcpp-1.0.2/client/NmdcHub.cpp	2008-08-31 20:02:46.000000000 -0400
    @@ -800,7 +800,7 @@
     	string myInfoA =
     		"$MyINFO $ALL " + fromUtf8(getMyNick()) + " " + fromUtf8(escape(getCurrentDescription())) +
     		tmp1 + VERSIONSTRING + tmp2 + modeChar + tmp3 + getCounts() + tmp4 + Util::toString(SETTING(SLOTS)) + uMin +
    -		">$ $" + SETTING(UPLOAD_SPEED) + "\x01$" + fromUtf8(escape(SETTING(EMAIL))) + '$';
    +		">$ $LAN(T3)\x01$" + fromUtf8(escape(SETTING(EMAIL))) + '$';
     	string myInfoB = ShareManager::getInstance()->getShareSizeString() + "$|";
      
      	if(lastMyInfoA != myInfoA || alwaysSend || (lastMyInfoB != myInfoB && lastUpdate + 15*60*1000 < GET_TICK()) ){
    diff -ur linuxdcpp-1.0.2/client/ShareManager.h patched/linuxdcpp-1.0.2/client/ShareManager.h
    --- linuxdcpp-1.0.2/client/ShareManager.h	2008-05-04 14:55:25.000000000 -0400
    +++ patched/linuxdcpp-1.0.2/client/ShareManager.h	2008-08-31 20:05:10.000000000 -0400
    @@ -39,6 +39,8 @@
     
     #include <memory>
     
    +#include <memory>
    +
     STANDARD_EXCEPTION(ShareException);
     
     class SimpleXML;
    diff -ur linuxdcpp-1.0.2/client/version.h patched/linuxdcpp-1.0.2/client/version.h
    --- linuxdcpp-1.0.2/client/version.h	2008-05-27 02:56:56.000000000 -0400
    +++ patched/linuxdcpp-1.0.2/client/version.h	2008-08-31 20:03:54.000000000 -0400
    @@ -16,8 +16,8 @@
      * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
      */
     
    -#define APPNAME "LinuxDC++"
    -#define VERSIONSTRING "0.698"
    -#define VERSIONFLOAT 0.698
    +#define APPNAME "DC++"
    +#define VERSIONSTRING "0.674"
    +#define VERSIONFLOAT 0.674
     
     /* Update the .rc file as well... */
    Last edited by Brando569; October 4th, 2008 at 09:08 AM.

  7. #7
    Join Date
    Mar 2006
    Beans
    133
    Distro
    Ubuntu 6.06

    Re: Linux DC++

    Hmmm....let me guess. It's probably an OpenDC hub v0.7.1.4? If so, you could've just changed your upload speed to 5 and it would let you in. If they have an additional check on version <= 0.674 then you would still need to modify the code though.

  8. #8
    Join Date
    Aug 2005
    Location
    USA
    Beans
    369
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: Linux DC++

    yep

    <Hub-Security> This hub is running version 0.7.14 of Open DC Hub.
    good to know

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •