Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Connect two ubuntu PC's?

  1. #1
    Join Date
    Feb 2009
    Beans
    43
    Distro
    Ubuntu 9.10 Karmic Koala

    Connect two ubuntu PC's?

    Hi

    I'm looking for some general direction / thoughts towards methods access one ubuntu PC from another.

    Here's the background: before switching to linux I loaded up linux on an old PC a friend had given me. Because that was so much fun I loaded linux on my new PC. Now I would like to access the old via my home network (wired connection).

    While the more immediate desire is to simply transfer some files I downloaded, in the future I'd like to use the older PC as sandbox, etc. Ideally, I'd like to be able to connect to the old PC as though the keyboard and monitor were directly attached, and I was using old PC desktop (i.e., more than command line access).

    I'm guessing I need to install and setup some sort of server on the old PC and then connect via a client from my new one. Perhaps this is processing / bandwidth problem, not sure?

    Last, any precautions regarding security / internet are welcome. My intent is that this would only be a local (i.e., no internet) connnection between the two PCs.

    I'm all ears!

    Thanks,
    Ian.
    Learning Linux, one mistake at a time

  2. #2
    Join Date
    Aug 2008
    Beans
    1,835
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Connect two ubuntu PC's?

    Quote Originally Posted by ian2112 View Post
    Hi

    I'm looking for some general direction / thoughts towards methods access one ubuntu PC from another.

    Here's the background: before switching to linux I loaded up linux on an old PC a friend had given me. Because that was so much fun I loaded linux on my new PC. Now I would like to access the old via my home network (wired connection).

    While the more immediate desire is to simply transfer some files I downloaded, in the future I'd like to use the older PC as sandbox, etc. Ideally, I'd like to be able to connect to the old PC as though the keyboard and monitor were directly attached, and I was using old PC desktop (i.e., more than command line access).

    I'm guessing I need to install and setup some sort of server on the old PC and then connect via a client from my new one. Perhaps this is processing / bandwidth problem, not sure?

    Last, any precautions regarding security / internet are welcome. My intent is that this would only be a local (i.e., no internet) connnection between the two PCs.

    I'm all ears!

    Thanks,
    Ian.
    Command line access use ssh or install an ssh gui client such as putty.

    Graphical access - VNC might suit your needs.

    File access. Probably the easiest is to use samba as it caters for Windows file sharing as well.

  3. #3
    Join Date
    May 2009
    Beans
    236

    Re: Connect two ubuntu PC's?

    Using nautilus through ssh, its simply a matter of dragging and dropping files.

    Are you using KDE or Gnome?

  4. #4
    Join Date
    Jul 2006
    Beans
    809
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Connect two ubuntu PC's?

    If you want to just copy some files every now and then, but not have a network share, use ssh and scp. If you want a network share use samba.

  5. #5
    Join Date
    Jan 2009
    Beans
    Hidden!

    Re: Connect two ubuntu PC's?

    for file transfer:

    first install ssh.

    Code:
    sudo aptitude install ssh
    then install filezilla
    Code:
    sudo aptitude install filezilla
    and use it to connect to the other pc.

    note: you'll need to install these on both the computers.

  6. #6
    Join Date
    Jan 2008
    Location
    UK
    Beans
    1,783
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Connect two ubuntu PC's?

    Hi Ian

    so, i guess what you want is file sharing between two linux boxes - there is NO WINDOWS involved. I only state this because the solution that i am thinking of writing down here will NOT WORK to access windows machines.

    I also do not know if there is a simpler way - this is the simplest way i know.

    1.) Make sure the openssh-server is installed on both machines. You can check in Places>Connect to Server and make sure SSH is an option in the service type drop down box. If it isn't installed then type this command in both computers Terminal and let them run through.

    Code:
    sudo apt-get install openssh-server
    2.) find out the IP addresses of your computer this is important to address the computers. use the following command to obtain your computers IP-Address

    Code:
    ifconfig
    this should give you an output just like this one

    eth0 Link encap:Ethernet HWaddr 00:50:da:e0:67:74
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
    Interrupt:9 Base address:0xc000

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:27 errors:0 dropped:0 overruns:0 frame:0
    TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:1732 (1.7 KB) TX bytes:1732 (1.7 KB)

    wlan0 Link encap:Ethernet HWaddr 00:11:50:dd:a9:16
    inet addr:192.168.1.68 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::211:50ff:fedd:a916/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:1769 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1639 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1661090 (1.6 MB) TX bytes:342426 (342.4 KB)

    wmaster0 Link encap:UNSPEC HWaddr 00-11-50-DD-A9-16-39-31-00-00-00-00-00-00-00-00
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
    your output can differ quite a bit, but the imporant information is just the bold bit. These four numbers are the address of the machine (do not use the 127.0.0.1 address - there must always be a second).
    so, in my case the address would be 192.168.1.68

    3.) Access the other computer
    Now, when you want to access a computer from the other, go to places -> connection to server.
    - Choose SSH as the at the service type
    - the server is the IP of the other computer (the one you want to access)
    - the port can be left blank (this means it assumes port 22)
    - the folder you should put in is /home - but you can leave it blank in which case you will access the other machine at "/" level and then navigate to /home/username
    - the username *must* be specified. This would be the user you use to log into the other computer.
    - also, enable the bookmark and choose a name for it. This means this connection will always reappear in your places menu and in the sidebar(left) in your filebrowser

    Most imporant - click ok
    you will then be asked for the password of the user of the other machine. Put it in, and if you do not want to be bothered by this anymore - choose always remember.

    Now a folder should open with the folder on the other machine.

    From this folder you will be able to browse the other machine and transfer files back and forth.

    Bandwidth and external security should not be an issue because you are deploying your local network and not going out over the internet. Also, ssh is Secure Shell which is designed to be just that i.e. secure.

    The above will get your file sharing sorted quickly. For more advanced file sharing and taking remote control over the other machine then "EDIT - reference to Remobo removed" Yuuguu have been suggested to me. I had a problem installing Remobo but I think that was my fault. I successfully installed Yuuguu yesterday but haven't had a chance to work with it yet

    Hope this helps.

    Mark

    UPDATE - I've had it confirmed from another forum member (more experienced than me) that the problem I had with Remobo was not just me. scorp123 has had the same issue. Remobo uses an out of date protocol. scorp123 recommends leave it alone.
    Last edited by mapes12; August 10th, 2009 at 05:25 PM.
    Keep Ubuntu free! Donate any amount you like – just use the PayPal donation address donations@ubuntu.com

  7. #7
    Join Date
    Nov 2007
    Location
    Okieville, USA
    Beans
    3,178
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Connect two ubuntu PC's?

    I've got 2 PCs connected to my router and transfer files over the network, I use 1 Monitor, Keyboard, Mouse via an A/B switch I picked up at Radio Shack.
    MCP, A+/Linux+ Certified IT Technician
    System Specs | Dress up your "Super Button" FREE
    "If sometimes you can't be good, then be VERY good at being naughty!"

  8. #8
    Join Date
    Mar 2009
    Beans
    109

    Re: Connect two ubuntu PC's?

    Quote Originally Posted by alphacrucis2 View Post
    Graphical access - VNC might suit your needs.
    Depends on the situation but in most cases X forwarding via SSH is IMO a much better option.

    File copy, many ways to skin the cat but I would also recommend the methods lvleph already mentioned: Samba and scp. Easy to setup and use.

  9. #9
    Join Date
    Feb 2009
    Beans
    43
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Connect two ubuntu PC's?

    Everyone,

    Thank-you for all the ideas! I'll see what I can get working over the next day or so. Very much appreciated.

    Ian.
    Learning Linux, one mistake at a time

  10. #10
    Join Date
    Jun 2008
    Location
    Singapore
    Beans
    160

    Re: Connect two ubuntu PC's?

    Quote Originally Posted by mapes12 View Post
    Hi Ian

    so, i guess what you want is file sharing between two linux boxes - there is NO WINDOWS involved. I only state this because the solution that i am thinking of writing down here will NOT WORK to access windows machines.

    I also do not know if there is a simpler way - this is the simplest way i know.

    1.) Make sure the openssh-server is installed on both machines. You can check in Places>Connect to Server and make sure SSH is an option in the service type drop down box. If it isn't installed then type this command in both computers Terminal and let them run through.

    Code:
    sudo apt-get install openssh-server
    2.) find out the IP addresses of your computer this is important to address the computers. use the following command to obtain your computers IP-Address

    Code:
    ifconfig
    this should give you an output just like this one


    your output can differ quite a bit, but the imporant information is just the bold bit. These four numbers are the address of the machine (do not use the 127.0.0.1 address - there must always be a second).
    so, in my case the address would be 192.168.1.68

    3.) Access the other computer
    Now, when you want to access a computer from the other, go to places -> connection to server.
    - Choose SSH as the at the service type
    - the server is the IP of the other computer (the one you want to access)
    - the port can be left blank (this means it assumes port 22)
    - the folder you should put in is /home - but you can leave it blank in which case you will access the other machine at "/" level and then navigate to /home/username
    - the username *must* be specified. This would be the user you use to log into the other computer.
    - also, enable the bookmark and choose a name for it. This means this connection will always reappear in your places menu and in the sidebar(left) in your filebrowser

    Most imporant - click ok
    you will then be asked for the password of the user of the other machine. Put it in, and if you do not want to be bothered by this anymore - choose always remember.

    Now a folder should open with the folder on the other machine.

    From this folder you will be able to browse the other machine and transfer files back and forth.

    Bandwidth and external security should not be an issue because you are deploying your local network and not going out over the internet. Also, ssh is Secure Shell which is designed to be just that i.e. secure.

    The above will get your file sharing sorted quickly. For more advanced file sharing and taking remote control over the other machine then both Remobo and Yuuguu have been suggested to me. I had a problem installing Remobo but I think that was my fault. I successfully installed Yuuguu yesterday but haven't had a chance to work with it yet

    Hope this helps.

    Mark
    This works great. Thanks

    Mike

Page 1 of 2 12 LastLast

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
  •