Difference between revisions of "DC"

From lensowiki
Jump to: navigation, search
(rv, false alarm)
 
(21 intermediate revisions by 12 users not shown)
Line 1: Line 1:
 
'''DC++''' is an open-source file-sharing protocol mainly differentiated from other protocols by the fact that users share ''complete'' files and download the entire file from a single user by means of a direct connection. Some clients actually defy this and allow you to download the same file from multiple users, but they are in the minority. For a more complete overview of the protocol itself, see the [[w:DC plus plus|wikipedia article]] on the subject.
 
'''DC++''' is an open-source file-sharing protocol mainly differentiated from other protocols by the fact that users share ''complete'' files and download the entire file from a single user by means of a direct connection. Some clients actually defy this and allow you to download the same file from multiple users, but they are in the minority. For a more complete overview of the protocol itself, see the [[w:DC plus plus|wikipedia article]] on the subject.
  
There are multiple DC++ hubs around the world. The Cal hub is special because all the users are on the Berkeley network, and as a result, the data transferred does ''not'' count against a user's weekly bandwidth allowance.
+
There are multiple DC++ hubs around the world. The Cal hub is special because all the users are on the Berkeley network, and as a result, the data transferred does ''not'' count against a [http://calwiki.byethost24.com/Bandwidth user's weekly bandwidth allowance].
  
 
==Getting a client==
 
==Getting a client==
 
First, download a DC++ client.
 
First, download a DC++ client.
*[http://dcpp.net/download/ Official Windows client]
+
*[http://sourceforge.net/project/showfiles.php?group_id=40287&package_id=70036 Official Windows client]
 
*[http://sourceforge.net/project/showfiles.php?group_id=106156&package_id=151823 Shakespeer – probably the only Mac OS X client that's still actively developed]<br>Note that if you're using a Mac OS earlier than 10.4, you will need to download [http://prdownloads.sourceforge.net/shakespeer/ShakesPeer-0.8.5.dmg?download version 0.8.5] and '''not''' the latest version.
 
*[http://sourceforge.net/project/showfiles.php?group_id=106156&package_id=151823 Shakespeer – probably the only Mac OS X client that's still actively developed]<br>Note that if you're using a Mac OS earlier than 10.4, you will need to download [http://prdownloads.sourceforge.net/shakespeer/ShakesPeer-0.8.5.dmg?download version 0.8.5] and '''not''' the latest version.
  
 
==Setting up==
 
==Setting up==
 
Once you've downloaded your client, you need to set it up to connect to the Cal network. The basic settings are:
 
Once you've downloaded your client, you need to set it up to connect to the Cal network. The basic settings are:
  Hub address: caldchub.no-ip.com
+
  Hub address: caldchub.no-ip.biz
 
  Username: anything you want
 
  Username: anything you want
 
  Password: ''leave blank''
 
  Password: ''leave blank''
Line 20: Line 20:
  
 
[[Image:DC Settings downloads.gif|left|framed|Choose a location to hold your downloaded files. The two directories can be identical.]]
 
[[Image:DC Settings downloads.gif|left|framed|Choose a location to hold your downloaded files. The two directories can be identical.]]
[[Image:DC Settings sharing.gif|left|framed|(a) Choose the folders you would like to share. First and foremost, your download directory should be here so that files you download are shared.<br/>(b) Set the upload slots to '''3''' or '''4''' <small>(this controls how many users can download from you at the same time)</small>]]
+
[[Image:DC Settings sharing.gif|left|framed|(a) Choose the folders you would like to share. First and foremost, your download directory should be here so that files you download are shared.<br/>(b) Set the upload slots to '''4''' <small>(this controls how many users can download from you at the same time)</small>]]
 
<br clear=all />
 
<br clear=all />
 
Now click OK to save the settings. Immediately after you add shared folders, DC++ will [[w:hash list|hash]] the files in it so that they can be shared. In order to connect to the Cal hub, you must have at least 1 GB of hashed files.
 
Now click OK to save the settings. Immediately after you add shared folders, DC++ will [[w:hash list|hash]] the files in it so that they can be shared. In order to connect to the Cal hub, you must have at least 1 GB of hashed files.
Line 26: Line 26:
 
The last thing you need to do is add the hub to your "Favorite hubs" list. To do this, click on the Add new Favorite hub toolbar button and fill in the following info:
 
The last thing you need to do is add the hub to your "Favorite hubs" list. To do this, click on the Add new Favorite hub toolbar button and fill in the following info:
 
  Name: Berkeley Hub
 
  Name: Berkeley Hub
  Address: caldchub.no-ip.com
+
  Address: caldchub.no-ip.biz
Then, click OK, then click the CHECKBOX next to the Berkeley Hub
+
Then, click OK, then click the CHECKBOX next to the Berkeley Hub.
  
 
===Mac OS===
 
===Mac OS===
Line 36: Line 36:
 
*Choose the download folders. They can be identical.
 
*Choose the download folders. They can be identical.
 
*Add folders to share. One of them should also be the downloads folder.
 
*Add folders to share. One of them should also be the downloads folder.
*Set '''Upload slots''' to be 3 or 4
+
*Set '''Upload slots''' to be 4
 
*Close the Preferences window
 
*Close the Preferences window
 
*Click on '''Bookmarks''' in the '''Navigation''' pane
 
*Click on '''Bookmarks''' in the '''Navigation''' pane
*Click '''New''' at the bottom of the window. Enter <code>caldchub.no-ip.com</code> as the address. '''Check''' the box next to the address you just filled in.
+
*Click '''New''' at the bottom of the window. Enter <code>caldchub.no-ip.biz</code> as the address. '''Check''' the box next to the address you just filled in.
 
*It will take some time for Shakespeer to [[w:hash list|hash]] your files. You can check the progress at any time by going to '''Window'''→'''Show Server Messages'''; when hashing is done, '''finished hashing all files''' will be displayed there. Note that in order to connect to the Cal hub, you must have at least 1 GB of hashed files.
 
*It will take some time for Shakespeer to [[w:hash list|hash]] your files. You can check the progress at any time by going to '''Window'''→'''Show Server Messages'''; when hashing is done, '''finished hashing all files''' will be displayed there. Note that in order to connect to the Cal hub, you must have at least 1 GB of hashed files.
 +
;If you're having trouble downloading files, chances are you have a firewall that is blocking the connection.
 +
First off, head over to '''Shakespeer'''→'''Preferences...'''→'''Network''' and make sure that the '''Connection mode''' selected is ''Active mode''. Also check which port is being used by Shakespeer. Then,
 +
*open ''System'' Preferences
 +
*go to '''Sharing'''→'''Firewall'''
 +
*click '''New...''', choose '''Other''' in the drop-down menu, enter the port number from Shakespeer's preferences (such as '''1416''') for ''both'' UDP and TCP ports, enter '''DC++''' (or whatever else you want) for the description, and click OK
 +
*lastly, make sure there's a checkbox next to the newly-created rule
 +
Restart Shakespeer, you should have no problems connecting now.
  
 
===Linux===
 
===Linux===
 +
Check your distribution's repository and automatic install system (e.g. synaptic for Ubuntu, yum for Fedora, etc.) for a pre-compiled binary version, and install it if it exists (it should for most distros).
 +
 +
If it doesn't, you'll need to build it from source code yourself, as follows:
 +
 
Type this into a terminal:
 
Type this into a terminal:
 
  cvs -d:pserver:anonymous@cvs.linuxdcpp.berlios.de:/cvsroot/linuxdcpp login
 
  cvs -d:pserver:anonymous@cvs.linuxdcpp.berlios.de:/cvsroot/linuxdcpp login
  (leave the password blank)
+
  (leave the password blank, press Enter)
 
  cvs -z3 -d:pserver:anonymous@cvs.linuxdcpp.berlios.de:/cvsroot/linuxdcpp co linuxdcpp
 
  cvs -z3 -d:pserver:anonymous@cvs.linuxdcpp.berlios.de:/cvsroot/linuxdcpp co linuxdcpp
Now you will have the current CVS checkout of the Linux DC++ client. It uses <tt>scons</tt> as its build system, not <tt>make</tt>, so you will probably need to install that (<tt>apt-get install scons</tt> or what have you). To  build it, you just issue this command:
+
Now you will have the current CVS checkout of the Linux DC++ client. It uses <tt>scons</tt> as its build system, not <tt>make</tt>, so you will probably need to install that (for example, using <tt>apt-get install scons</tt> or whatever other package manager you use). To  build it, just issue this command:
 
  scons
 
  scons
It will require a lot of development libraries. Big ones are the GTK+ header files, glade header files, and bzip2 header files. Normally for your distro this will be the package name with a <tt>-dev</tt> or <tt>-devel</tt> appended. For example, in Fedora Core (my distro of choice) I needed to install <tt>gtk2-devel</tt> to get the GTK+ header files. As listed in the readme file, the dependencies are:
+
It will require a lot of development libraries. Big ones are the <tt>GTK+</tt>, <tt>glade</tt>, and <tt>bzip2</tt> header files. Normally for your distro this will be the package name with a <tt>-dev</tt> or <tt>-devel</tt> appended. For example, in Fedora Core, you would install the package <tt>gtk2-devel</tt> to get the GTK+ header files. As listed in the readme file, the dependencies are:
 
  scons >= 0.96
 
  scons >= 0.96
 
  pkg-config
 
  pkg-config
Line 61: Line 72:
 
Of course, the names of the packages will be different for your distro. If you need help finding out the names, try asking politely on IRC.
 
Of course, the names of the packages will be different for your distro. If you need help finding out the names, try asking politely on IRC.
  
After build the package you will have an executable named <tt>linuxdcpp</tt> in your current working directory. Run it (e.g. with <tt>./linuxdcpp</tt>) and enjoy.
+
After building the package, there will be an executable named <tt>linuxdcpp</tt> in your current working directory. Run it (e.g. with <tt>./linuxdcpp</tt>) and enjoy.
  
 
==Unofficial Advice from Rescomp==
 
==Unofficial Advice from Rescomp==
Hi. I am an RCC in one of the units and want to give some unofficial advice to residents using the Cal hub. First of all, the disclaimer you see after connecting about section 431.322.12 of the Internet Privacy Act is bogus. If you are sharing copyrighted files you can be sued, no matter what anyone else says. This particular gem has been floating around the net for a while, Google it if you want to find out more.
+
Hi. I am an RCC in one of the units and want to give some unofficial advice to residents using the Cal hub. First of all, the disclaimer you see after connecting about section [[w:Internet Privacy Act|431.322.12 of the Internet Privacy Act is bogus]]. If you are sharing copyrighted files you can be sued, no matter what anyone else says. This particular gem has been floating around the net for a while, Google it if you want to find out more.
  
Second of all, please, please do not connect to public hubs, using DC++ or any other file transfer program, especially BitTorrent. The way our security system works is that certain IP addresses are blacklisted by SNS, and if your computer makes any sort of connection to a blacklisted IP address you will be automatically kicked off the Berkeley network, and you will have to talk to an RCC about it. For example, if you are downloading a torrent and one of the peers is some computer that we have identified as being part of a botnet, then you could get a SCUNC (security) tag and be temporarily kicked off the network.
+
Second of all, please, please do not connect to public hubs, using DC++ or any other file transfer program, especially [[w:BitTorrent]]. The way our security system works is that certain IP addresses are blacklisted by SNS, and if your computer makes any sort of connection to a blacklisted IP address you will be automatically kicked off the Berkeley network, and you will have to talk to an RCC about it. For example, if you are downloading a torrent and one of the peers is some computer that we have identified as being part of a botnet, then you could get a SCUNC (security) tag and be temporarily kicked off the network.
  
As others have mentioned, bandwidth does not count against you when it is on the same subet. Actually, this is not limited only to the Berkeley network. UCB only pays for commercial bandwidth, so any bandwidth directed to other academic/research institutions that doesn't have to travel over commercial backbones will (probably) not count against you. (Note to the hub admins: traffic to and from other Berkeley networks, e.g. Airbears does not count against bandwidth, and there is no reason to block those IPs, hint hint.)
+
As others have mentioned, bandwidth does not count against you when it is on the same subet. Actually, this is not limited only to the Berkeley network. UCB only pays for commercial bandwidth, so any bandwidth directed to other academic/research institutions that doesn't have to travel over commercial backbones will (probably) not count against you.
  
Again, this is not official Rescomp advice, but sharing files on DC++ is pretty safe. Unlike BitTorrent, Kazaa, or whatever you kids are using these days, traffic on the Cal hub does not get routed outside our network. That means that you cannot be passively monitored for file sharing. In theory, at a later date Rescomp could be subpoenaed and we would have to let the RIAA/MPAA or whoever onto the Berkeley network, but this is a fairly unlikely possibility. If you are going to download files, please do not use these public file transfer programs. The copyright list here gets about a dozen or so emails a day for people with copyright violations. If that happens to you your internet connection will be temporarily revoked, and  
+
Again, this is not official Rescomp advice, but sharing files on DC++ is pretty safe. Unlike BitTorrent, Kazaa, or whatever you kids are using these days, traffic on the Cal hub does not get routed outside our network. That means that you cannot be passively monitored for file sharing. In theory, at a later date Rescomp could be subpoenaed and we would have to let the RIAA/MPAA or whoever onto the Berkeley network, but this is a fairly unlikely possibility. If you are going to download files, please do not use these public file transfer programs. The copyright list here gets about a dozen or so emails a day for people with copyright violations. If that happens to you your internet connection will be temporarily revoked, and ...
  
 
Please do not ask RCCs for help sharing files. We cannot and will not help you.
 
Please do not ask RCCs for help sharing files. We cannot and will not help you.

Latest revision as of 05:45, 20 February 2008

DC++ is an open-source file-sharing protocol mainly differentiated from other protocols by the fact that users share complete files and download the entire file from a single user by means of a direct connection. Some clients actually defy this and allow you to download the same file from multiple users, but they are in the minority. For a more complete overview of the protocol itself, see the wikipedia article on the subject.

There are multiple DC++ hubs around the world. The Cal hub is special because all the users are on the Berkeley network, and as a result, the data transferred does not count against a user's weekly bandwidth allowance.

Getting a client

First, download a DC++ client.

Setting up

Once you've downloaded your client, you need to set it up to connect to the Cal network. The basic settings are:

Hub address: caldchub.no-ip.biz
Username: anything you want
Password: leave blank

More detailed instructions are below.

Windows

Click on File, then Settings... in the DC++ menubar
Under Personal Information, fill out your nick (required) and other information if you want
Choose a location to hold your downloaded files. The two directories can be identical.
(a) Choose the folders you would like to share. First and foremost, your download directory should be here so that files you download are shared.
(b) Set the upload slots to 4 (this controls how many users can download from you at the same time)


Now click OK to save the settings. Immediately after you add shared folders, DC++ will hash the files in it so that they can be shared. In order to connect to the Cal hub, you must have at least 1 GB of hashed files.

The last thing you need to do is add the hub to your "Favorite hubs" list. To do this, click on the Add new Favorite hub toolbar button and fill in the following info:

Name: Berkeley Hub
Address: caldchub.no-ip.biz

Then, click OK, then click the CHECKBOX next to the Berkeley Hub.

Mac OS

After downloading Shakespeer, open the program.

  • Go to ShakespeerPreferences...
  • Fill out the fields to your pleasing
  • Click on Share
  • Choose the download folders. They can be identical.
  • Add folders to share. One of them should also be the downloads folder.
  • Set Upload slots to be 4
  • Close the Preferences window
  • Click on Bookmarks in the Navigation pane
  • Click New at the bottom of the window. Enter caldchub.no-ip.biz as the address. Check the box next to the address you just filled in.
  • It will take some time for Shakespeer to hash your files. You can check the progress at any time by going to WindowShow Server Messages; when hashing is done, finished hashing all files will be displayed there. Note that in order to connect to the Cal hub, you must have at least 1 GB of hashed files.
If you're having trouble downloading files, chances are you have a firewall that is blocking the connection.

First off, head over to ShakespeerPreferences...Network and make sure that the Connection mode selected is Active mode. Also check which port is being used by Shakespeer. Then,

  • open System Preferences
  • go to SharingFirewall
  • click New..., choose Other in the drop-down menu, enter the port number from Shakespeer's preferences (such as 1416) for both UDP and TCP ports, enter DC++ (or whatever else you want) for the description, and click OK
  • lastly, make sure there's a checkbox next to the newly-created rule

Restart Shakespeer, you should have no problems connecting now.

Linux

Check your distribution's repository and automatic install system (e.g. synaptic for Ubuntu, yum for Fedora, etc.) for a pre-compiled binary version, and install it if it exists (it should for most distros).

If it doesn't, you'll need to build it from source code yourself, as follows:

Type this into a terminal:

cvs -d:pserver:anonymous@cvs.linuxdcpp.berlios.de:/cvsroot/linuxdcpp login
(leave the password blank, press Enter)
cvs -z3 -d:pserver:anonymous@cvs.linuxdcpp.berlios.de:/cvsroot/linuxdcpp co linuxdcpp

Now you will have the current CVS checkout of the Linux DC++ client. It uses scons as its build system, not make, so you will probably need to install that (for example, using apt-get install scons or whatever other package manager you use). To build it, just issue this command:

scons

It will require a lot of development libraries. Big ones are the GTK+, glade, and bzip2 header files. Normally for your distro this will be the package name with a -dev or -devel appended. For example, in Fedora Core, you would install the package gtk2-devel to get the GTK+ header files. As listed in the readme file, the dependencies are:

scons >= 0.96
pkg-config
g++ >= 3.4
gtk+-2.0 >= 2.6
gthread-2.0 >= 2.4
libglade-2.0 >= 2.4
pthread
zlib
libbz2

Of course, the names of the packages will be different for your distro. If you need help finding out the names, try asking politely on IRC.

After building the package, there will be an executable named linuxdcpp in your current working directory. Run it (e.g. with ./linuxdcpp) and enjoy.

Unofficial Advice from Rescomp

Hi. I am an RCC in one of the units and want to give some unofficial advice to residents using the Cal hub. First of all, the disclaimer you see after connecting about section 431.322.12 of the Internet Privacy Act is bogus. If you are sharing copyrighted files you can be sued, no matter what anyone else says. This particular gem has been floating around the net for a while, Google it if you want to find out more.

Second of all, please, please do not connect to public hubs, using DC++ or any other file transfer program, especially w:BitTorrent. The way our security system works is that certain IP addresses are blacklisted by SNS, and if your computer makes any sort of connection to a blacklisted IP address you will be automatically kicked off the Berkeley network, and you will have to talk to an RCC about it. For example, if you are downloading a torrent and one of the peers is some computer that we have identified as being part of a botnet, then you could get a SCUNC (security) tag and be temporarily kicked off the network.

As others have mentioned, bandwidth does not count against you when it is on the same subet. Actually, this is not limited only to the Berkeley network. UCB only pays for commercial bandwidth, so any bandwidth directed to other academic/research institutions that doesn't have to travel over commercial backbones will (probably) not count against you.

Again, this is not official Rescomp advice, but sharing files on DC++ is pretty safe. Unlike BitTorrent, Kazaa, or whatever you kids are using these days, traffic on the Cal hub does not get routed outside our network. That means that you cannot be passively monitored for file sharing. In theory, at a later date Rescomp could be subpoenaed and we would have to let the RIAA/MPAA or whoever onto the Berkeley network, but this is a fairly unlikely possibility. If you are going to download files, please do not use these public file transfer programs. The copyright list here gets about a dozen or so emails a day for people with copyright violations. If that happens to you your internet connection will be temporarily revoked, and ...

Please do not ask RCCs for help sharing files. We cannot and will not help you.

External links