LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2011, 10:34 PM   #1
igsen
Member
 
Registered: Mar 2009
Location: Phil. Is.
Distribution: Ubuntu 18.04
Posts: 80

Rep: Reputation: 15
How to access another desktop via router.


I have 2 desktop computers. One with ubuntu 11.04 and the other with debian 6.0.
They are both connected to dsl modem thru router.Is it possible to connect one from the other using the same router. If so, what package should I install to each one of them.
 
Old 09-09-2011, 01:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Nothing to do with networking. Moved to Linux - newbie.

Try the free version of nx from nomachine.org
 
Old 09-09-2011, 03:22 AM   #3
kasl33
Member
 
Registered: Oct 2004
Location: USA
Distribution: Ubuntu-Server, Mac OS X, Arch Linux
Posts: 356

Rep: Reputation: 48
Samba, smbclient, and smbnetfs for file sharing.

TightVNC and rdesktop for remote desktop acces.

You can also use TeamViewer from teamviewer.com
 
Old 09-09-2011, 04:51 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
wtf?? samba for sharing between linux systems??
 
1 members found this post helpful.
Old 09-09-2011, 05:19 AM   #5
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
try to establish NFS, network-filesharing on both machines, google shall help you a lot.
 
1 members found this post helpful.
Old 09-09-2011, 08:27 AM   #6
kasl33
Member
 
Registered: Oct 2004
Location: USA
Distribution: Ubuntu-Server, Mac OS X, Arch Linux
Posts: 356

Rep: Reputation: 48
Quote:
Originally Posted by acid_kewpie View Post
wtf?? samba for sharing between linux systems??
Why not? When the "normal" person or company adds their Windows machine to the network, they will be set up. Linux is greatg and all, but at this point, there is typically no getting away from Windows.

Sure NFS would work too, but then, if Windows is added to the network, there's more work to do and even more daemons running.

Plan ahead.
 
Old 09-09-2011, 11:18 AM   #7
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by kasl_33 View Post
Why not? When the "normal" person or company adds their Windows machine to the network, they will be set up. Linux is greatg and all, but at this point, there is typically no getting away from Windows.

Sure NFS would work too, but then, if Windows is added to the network, there's more work to do and even more daemons running.

Plan ahead.
I would personally have to disagree with that, you don't use a hammer to put in screws or a screwdriver to pound in nails. Until someone ACTUALLY puts a windows machine on the network NFS is far more efficient for Linux -> Linux sharing and when they DO add a windows machine that needs samba, the extra processor load of the extra daemon especially on machines from this day and age is minimal, that and NFS is a LOT easier to configure than samba, trust me I've configured both NFS servers AND samba servers as well as netatalk and NFS was the easiest by far to get running.
Oh yes, on a side note, supposedly modern versions of Mac OS also support NFS, so if someone adds a mac to your network you're covered by NFS as well.

Last edited by frieza; 09-09-2011 at 11:22 AM.
 
2 members found this post helpful.
Old 09-09-2011, 12:13 PM   #8
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
Hello igsen,

To get back to your question...
Quote:
Is it possible to connect one from the other using the same router.
The answer is of course yes. Each PC will be assigned an IP address by the router. To determine what the PC's IP address is - open a terminal and type
Quote:
ken@taylor12:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:25:64:e8:18:2c
inet addr:192.168.0.112 Bcast:192.168.0.255 Mask:255.255.255.0
So on my PC the IP address is 192.168.0.112. Do the same thing on the other PC. It will have a different address. While you are at the second PC use the address of the first PC in the ping command. Here is my example
Quote:
ken@taylor13:~$ ping 192.168.0.112
PING 192.168.0.112 (192.168.0.112) 56(84) bytes of data.
64 bytes from 192.168.0.112: icmp_seq=1 ttl=64 time=6.08 ms
64 bytes from 192.168.0.112: icmp_seq=2 ttl=64 time=0.254 ms
64 bytes from 192.168.0.112: icmp_seq=3 ttl=64 time=0.313 ms
The ping command shows that the second PC can touch my first PC. At this point we know that the two PCs are "connected". So what do you want to do next?

The easiest thing is to make a secure shell connection between the PCs. To do this install openssh-server on each PC. This can be done with the Ubuntu Software Center, Synaptic package manager or apt-get whichever you are comfortable with. Synaptic or apt-get on the Debian PC. When this is done open a terminal on one PC and issue the ssh command with the IP address of the other PC. You will be prompted for your password on the other PC. My example
Quote:
ken@taylor13:~$ ssh 192.168.0.112
ken@192.168.0.112's password:
Linux taylor12 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:07:13 UTC 2011 x86_64 GNU/Linux
Ubuntu 10.04.3 LTS

Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/

Last login: Wed Sep 7 16:07:54 2011 from taylor13wd
ken@taylor12:~$
I am now able to enter commands on my PC at 192.168.0.112 (which is called taylor12).

You can transfer files between the PCs several ways. The easiest is probably to select from the menu Places; Connect to server... and the fill in the data. In my case from the second PC I would enter:

Service Type: SSH
Server: 192.168.0.112
User Name: ken
perhaps [X] Add bookmark - so I do not have to enter this again
and then Connect. I am prompted for ken's password on the first PC. The first PC acts just like another directory in the Nautilus file manager.

Finally you may want to access the desktop of the other PC. Ubuntu (perhaps Debian I don't know for sure) has this built in. On one PC select System; Preferences; Remote Desktop and [X] Allow other users to view your desktop. I always require a password. On the other PC launch the Remote Desktop Viewer (under Applications; Internet on Ubuntu) and click Connect. Enter data:
Protocol: VNC
Host: IP address of the other PC
and then press Connect.

There are some limitations to the way Ubuntu has set this up. You have to be logged in to the remote PC first. The connection is not secure but for a home network behind a router it is not too bad. If you want to make a fancier connection TightVNC might be the way to go. However, it is more involved to setup.

Please try some of these things and post any problems you encounter.

Regards,

Ken
 
2 members found this post helpful.
Old 09-09-2011, 12:57 PM   #9
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
I would suggest sshfs (that's what I use). I have ssh daemons running on all machines and they're setup so I can log in without a password. With sshfs it's trivial to mount a folder on the remote machine on the local machine then I can just drag and drop files from one folder to the other, edit files on the remote machine, play music or films. It's very convenient and secure if you're using wireless. Last time I used gnome nautilus could use ssh with little trouble. Have a look at sshfs
 
1 members found this post helpful.
Old 09-09-2011, 02:32 PM   #10
jake3988
Member
 
Registered: Mar 2005
Location: Ohio
Distribution: Freebsd and Ubuntu
Posts: 69

Rep: Reputation: 17
In order to answer the question, we have to determine what you mean by 'connecting' two computers.

That could mean a lot of things.

If you want to PHYSICALLY connect them, you can do that as a cluster. (Don't do it with DSL. Too slow.).
If you want to merely access the other computer's files, use ftp. And connect through the internal ip address of that computer (192.168.1.#). You can also use the external IP, which you'd use to connect from outside your local network, but you'd need to go into the router and port-forward the ftp port to that computer. Since you're staying in-network, you can simply use the internal ip and then you don't have to bother with anything else.
If you want to physically logon to that computer from another computer, telnet or ssh would work for that purpose.

And none of these require any installation of any programs unless you want a GUI. Just launch the appropriate daemon (ftpd, telnetd, or sshd) from the host computer and then go to the other computer and login!
 
Old 09-09-2011, 03:00 PM   #11
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
on second thought another relatively easy way to share files between two Linux boxes is fuse SSHfs. I use that extensively to mount a directory on my company's virtual hosting server on my workstation at my office.

Last edited by frieza; 09-09-2011 at 03:01 PM.
 
Old 09-10-2011, 05:07 AM   #12
igsen
Member
 
Registered: Mar 2009
Location: Phil. Is.
Distribution: Ubuntu 18.04
Posts: 80

Original Poster
Rep: Reputation: 15
Thank you very much Ken (Taylorkh) for your very helpful post.
I just encounter one problem on the Ubuntu side. I can't make Ubuntu's nautilus see the Debian machine,that is, I am limited to terminal of remote desktop viewer.In my Ubuntu I have no menu>Places>Connect to server. Can I do this on Ubuntu?
 
Old 09-10-2011, 08:16 AM   #13
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
I am glad I was able to help. You say that you are running Ubuntu 11.04. I am guessing that you have the "Unity" interface installed. The long string of icons up and down the left side of the screen. If so, it appears that this is a known "feature". You have some options:

1 - You can disable Unity and use the "old fashion" Ubuntu classic interface. Personally I despise the Unity interface. I don't have a Unity machine available at the moment. I believe the choice to disable Unity is just before you login to the PC.

2 - There are some fixes described on the Internet which may do the trick. I have not yet tried them. Here is a link http://www.google.com/search?client=...utf-8&oe=utf-8 The lifehacker.com article is well written. There is even a video of the fix being applied.

3 - Just run nautilus from the All Programs search window. Under the nautilus menu File you should see Connect to server. You can also add a launcher for nautilus to the column of buttons (or whatever Unity calls it). I do not use Unity so I cannot tell you the steps. Do a search and I am sure you will find detailed instructions.

Please let me know how this works for you. Copying and sharing files between PCs is one of the main reason to network your home PCs - second to sharing an Internet connection of course.

Ken
 
Old 09-10-2011, 06:08 PM   #14
igsen
Member
 
Registered: Mar 2009
Location: Phil. Is.
Distribution: Ubuntu 18.04
Posts: 80

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by taylorkh View Post
I am glad I was able to help. You say that you are running Ubuntu 11.04. I am guessing that you have the "Unity" interface installed. The long string of icons up and down the left side of the screen. If so, it appears that this is a known "feature". You have some options:

1 - You can disable Unity and use the "old fashion" Ubuntu classic interface. Personally I despise the Unity interface. I don't have a Unity machine available at the moment. I believe the choice to disable Unity is just before you login to the PC.

2 - There are some fixes described on the Internet which may do the trick. I have not yet tried them. Here is a link http://www.google.com/search?client=...utf-8&oe=utf-8 The lifehacker.com article is well written. There is even a video of the fix being applied.

3 - Just run nautilus from the All Programs search window. Under the nautilus menu File you should see Connect to server. You can also add a launcher for nautilus to the column of buttons (or whatever Unity calls it). I do not use Unity so I cannot tell you the steps. Do a search and I am sure you will find detailed instructions.

Please let me know how this works for you. Copying and sharing files between PCs is one of the main reason to network your home PCs - second to sharing an Internet connection of course.

Ken
Number 3 did the trick for me. Nautilu's menu in the top panel is in autohide mode that is why I was not able to see it.I moved the mouse cursor there and the 'File > Connect to server' menu appeared.
 
Old 09-11-2011, 07:59 AM   #15
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
Glad it worked for you. Option 1 works for me I installed 11.04 with Unity on an old test PC. And I remember why I HATE it. Nautilus does not seem to be available in Unity. It is installed and can be launched from a terminal. Why it will not run from the programs window - I have no idea. Unity is supposed to be easy to use. Having to edit configuration files to
create a launcher does not fit in with that philosophy.

You can switch to the old interface and back to Unity without breaking anything. Just click on your name at the login screen. At the bottom of the screen will be menu titled Ubuntu. Click on it and it will provide the choices to login to Unity (called just Ubuntu), Ubuntu classic etc. You can change the interface each time you login.

Ken
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot ping wireless router or access router settings. wireless works, wired doesn't mattca Linux - Networking 1 06-09-2010 09:28 PM
CentoOS router/firewall prob - local network works but router can't access Internet elementalvoid Linux - Networking 6 12-12-2006 03:39 PM
Debian Woody: Can't access internet through router, but can access network computers marales314 Linux - Networking 3 06-09-2006 12:33 PM
I can access router settings but no internet access overclock Linux - Wireless Networking 7 12-13-2005 07:59 PM
WIFI WLAN / Cannot access internet but can access the router configuration page?SUSE thomas939 Linux - Wireless Networking 12 12-13-2005 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration