Monday, January 3, 2011

Coupling together DC and SSH: Detailed Procedure

This post will detail the procedure to connect to your DC client via SSH. I am publishing this because even though the automation has not been set up, Linux users having access to CSE lab machines can use them for accessing DC by following this procedure.

OK, first of all, you need 2 computers for this. One in the CSE labs, and the other your personal computer at your hostel. Ensure that both the machines are running Linux. Now make sure that the following packages are installed in these machines:

For the CSE lab machine:
  • ssh
  • openssh-server
  • sshfs
  • eiskaltdcpp-gtk
For your personal computer:
  • ssh
  • openssh-server
Now follow these steps:
  1. From your personal computer, establish an SSH connection to the lab machine. You know how to do this.
    $ ssh -Y username@lab_comp
    Enter your password and log in.
  2. Now this is a one time step only. "cd" to the directory ~/.ssh and open the file "config" in your favorite editor. If it does not exist create it. Add the following lines to it.
    Host *
    ServerAliveInterval 240
  3. Setup the downloads and shared folders using sshfs.
    $ sshfs username@personal_comp: personal_comp_dir lab_comp_mount_point
  4. Now run eiskaltdcpp-gtk.
    $ eiskaltdcpp-gtk
    Now remember that eiskaltdcpp comes with 2 frontends: GTK and QT. I recommend GTK as it is lighter and faster over SSH connection.
  5. Go to preferences and setup shared and download folders according to the mount points you used in step 3. Also, setup the "Incomplete Downloads" directory to be the same as the Downloads directory.
  6. Now, enjoy the normal use of EiskaltDC++.
Now that this is explained, I am still looking for volunteers who would like to help me with the shell scripting.

    No comments:

    Post a Comment