LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-25-2010, 03:37 AM   #1
GJQ
Member
 
Registered: Jun 2009
Location: Malaysia
Distribution: Ubuntu 11.04
Posts: 99

Rep: Reputation: 17
Unhappy File Sharing Between Ubuntu 9.10 and 10.04 LTS


Dear LQ member,
I have got 2 machines.One install with ubuntu 9.10 and another with 10.04LTS.I wanted to have file sharing between the 2 system that is on the same network connected through Lan.Have tried installing Samba on the system with 9.10 but I got no ways of trying to access the share file from the 10.04 LTS system.Can anyone point me to the correct solution please?

Thanks
 
Old 07-25-2010, 03:46 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,412

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
If it's just between *nix systems, i think you'll find NFS simpler than Samba. You can use Samba, but it's primarily for *nix to MS sharing.
See Chap 18 http://www.linuxtopia.org/online_boo...ion/index.html and ignore the autofs stuff to start with.

Last edited by chrism01; 07-25-2010 at 03:48 AM.
 
Old 07-25-2010, 04:17 AM   #3
messere
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
take a look before decide:

Analysis of SMB vs. NFS performance for the PCH:

www . networkedmediatank.com/showthread.php?tid=4006
 
Old 07-25-2010, 05:05 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
This is really easy. You do not need samba (which is for windows machines).

1] Install ssh on both machines, if it is not already installed:
Code:
sudo apt-get install ssh
2] In nautilus (your file manager) enter:
Code:
sftp://username@LAN.IP.OF.OTHERCOMPUTER/
Eg sftp://gjq@192.168.0.3/

Drag & drop files between the two machines.
 
1 members found this post helpful.
Old 07-30-2010, 09:10 AM   #5
GJQ
Member
 
Registered: Jun 2009
Location: Malaysia
Distribution: Ubuntu 11.04
Posts: 99

Original Poster
Rep: Reputation: 17
Hi tredegar,
Thanks for the solution.Everything is now working well.
 
Old 12-06-2010, 09:34 AM   #6
GJQ
Member
 
Registered: Jun 2009
Location: Malaysia
Distribution: Ubuntu 11.04
Posts: 99

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by tredegar View Post
This is really easy. You do not need samba (which is for windows machines).

1] Install ssh on both machines, if it is not already installed:
Code:
sudo apt-get install ssh
2] In nautilus (your file manager) enter:
Code:
sftp://username@LAN.IP.OF.OTHERCOMPUTER/
Eg sftp://gjq@192.168.0.3/

Drag & drop files between the two machines.
I have Linux Mint 10 install on 2 machines and install ssh as above for the 2 machine but after installation,I cannot drag file between the 2 machines.Previously things are all working well in Mint 9.Does mint 10 block the file sharing features or it has been disable?Just do not understand why it is not working in Mint 10.

Appreciate all help render
Thank you.
 
Old 12-06-2010, 12:57 PM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
I am not running mint, but suggest you go back to basics (and the command line) to find out what is not working:

1] Please confirm your network connectivity - can each machine ping the other?
Code:
ping -c2 hostname
2] What happens when you ssh from each machine to the other?
Code:
ssh username@hostname
Code:
ssh -vvv username@hostname
will give you very very verbose error messages if you cannot, and may help with diagnosing the problem.

3 What happens if you try scp from the command line?
Code:
scp  filename  user@hostname:/home/user
4] Remember that root is usually not allowed to make an ssh connection as root, so if you are trying this as root, try it as yourself.

Hope this helps.
 
Old 12-07-2010, 03:19 AM   #8
GJQ
Member
 
Registered: Jun 2009
Location: Malaysia
Distribution: Ubuntu 11.04
Posts: 99

Original Poster
Rep: Reputation: 17
Hi tredegar
Pls found result as below as per your advise instruction.Things is not working either.Pls see which part I did wrong.

dell@dell-Vostro-200 ~ $ ping -c2 hostname
PING hostname (67.215.65.132) 56(84) bytes of data.
64 bytes from hit-nxdomain.opendns.com (67.215.65.132): icmp_req=1 ttl=54 time=84.5 ms
64 bytes from hit-nxdomain.opendns.com (67.215.65.132): icmp_req=2 ttl=54 time=88.3 ms

--- hostname ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 84.560/86.438/88.316/1.878 ms
dell@dell-Vostro-200 ~ $ sudo apt-get install ssh
[sudo] password for dell:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
openssh-server
Suggested packages:
rssh molly-guard openssh-blacklist openssh-blacklist-extra
The following NEW packages will be installed:
openssh-server ssh
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 303kB of archives.
After this operation, 860kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ maverick/main openssh-server i386 1:5.5p1-4ubuntu4 [302kB]
Get:2 http://archive.ubuntu.com/ubuntu/ maverick/main ssh all 1:5.5p1-4ubuntu4 [1,286B]
Fetched 303kB in 6s (46.4kB/s)
Preconfiguring packages ...
Selecting previously deselected package openssh-server.
(Reading database ... 116900 files and directories currently installed.)
Unpacking openssh-server (from .../openssh-server_1%3a5.5p1-4ubuntu4_i386.deb) ...
Selecting previously deselected package ssh.
Unpacking ssh (from .../ssh_1%3a5.5p1-4ubuntu4_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw ...
Setting up openssh-server (1:5.5p1-4ubuntu4) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
* Stopping OpenBSD Secure Shell server sshd [ OK ]
ssh start/running, process 4518
Setting up ssh (1:5.5p1-4ubuntu4) ...
dell@dell-Vostro-200 ~ $ ping -c2 hostname
PING hostname (67.215.65.132) 56(84) bytes of data.
64 bytes from hit-nxdomain.opendns.com (67.215.65.132): icmp_req=1 ttl=54 time=75.3 ms
64 bytes from hit-nxdomain.opendns.com (67.215.65.132): icmp_req=2 ttl=54 time=78.2 ms

--- hostname ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 75.301/76.791/78.282/1.516 ms
dell@dell-Vostro-200 ~ $ ssh oem-desktop.local(name of the other machine)@hostname
ssh: connect to host hostname port 22: Connection timed out
dell@dell-Vostro-200 ~ $ ssh 180.73.12.12(This is the IP address of the other machine)@hostname
ssh: connect to host hostname port 22: Connection timed out
dell@dell-Vostro-200 ~ $ scp filename user@hostname:/home/user
ssh: connect to host hostname port 22: Connection timed out
lost connection

Attach information is what I get after enable remote access in Mint 10 for the Dell Vostro 200 system

Thank you.
Attached Thumbnails
Click image for larger version

Name:	Screenshot-Untitled Window.png
Views:	3
Size:	43.4 KB
ID:	5410  

Last edited by GJQ; 12-07-2010 at 03:32 AM. Reason: Test Result for Dell Vostro
 
Old 12-07-2010, 03:31 AM   #9
GJQ
Member
 
Registered: Jun 2009
Location: Malaysia
Distribution: Ubuntu 11.04
Posts: 99

Original Poster
Rep: Reputation: 17
Hi tredegar,
This is the 2nd result done on the other pc(OEM).Pls see which part I did wrong.

oem@oem-desktop ~ $ sudo apt-get install ssh
[sudo] password for oem:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
openssh-server
Suggested packages:
rssh molly-guard openssh-blacklist openssh-blacklist-extra
The following NEW packages will be installed:
openssh-server ssh
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 303kB of archives.
After this operation, 860kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ maverick/main openssh-server i386 1:5.5p1-4ubuntu4 [302kB]
Get:2 http://archive.ubuntu.com/ubuntu/ maverick/main ssh all 1:5.5p1-4ubuntu4 [1,286B]
Fetched 303kB in 6s (46.6kB/s)
Preconfiguring packages ...
Selecting previously deselected package openssh-server.
(Reading database ... 115856 files and directories currently installed.)
Unpacking openssh-server (from .../openssh-server_1%3a5.5p1-4ubuntu4_i386.deb) ...
Selecting previously deselected package ssh.
Unpacking ssh (from .../ssh_1%3a5.5p1-4ubuntu4_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw ...
Setting up openssh-server (1:5.5p1-4ubuntu4) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
* Stopping OpenBSD Secure Shell server sshd [ OK ]
ssh start/running, process 8404
Setting up ssh (1:5.5p1-4ubuntu4) ...
oem@oem-desktop ~ $ ping -c2 hostname
PING hostname (67.215.65.132) 56(84) bytes of data.
64 bytes from hit-nxdomain.opendns.com (67.215.65.132): icmp_req=1 ttl=54 time=244 ms
64 bytes from hit-nxdomain.opendns.com (67.215.65.132): icmp_req=2 ttl=54 time=84.5 ms

--- hostname ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 84.512/164.462/244.412/79.950 ms
oem@oem-desktop ~ $ ssh dell-Vostro-200.local(Name of the Dell PC)@hostname
ssh: connect to host hostname port 22: Connection timed out
oem@oem-desktop ~ $ ssh -vvv dell-Vostro-200.local@hostname
OpenSSH_5.5p1 Debian-4ubuntu4, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to hostname [67.215.65.132] port 22.
debug1: connect to address 67.215.65.132 port 22: Connection timed out
ssh: connect to host hostname port 22: Connection timed out
oem@oem-desktop ~ $

Attach is information of the pc after enable remote access in the oem pc.

Sorry for the long message.I only hope to get it to work.

Thank you and Sorry once again.
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	4
Size:	253.2 KB
ID:	5411  

Last edited by GJQ; 12-07-2010 at 03:32 AM. Reason: Test Result for OEM PC
 
Old 12-07-2010, 08:21 AM   #10
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
You appear to be trying to make a connection to opendns.com which seems to be an organisation offering DNS, web-content filtering and "Integrated Security".

Note On their support page: "OpenDNS cannot resolve names that are on private networks".

As this is a service I have no experience of, I suggest that you contact them for support.

If your two PCs are not on the same network, and connected to the same router, then you may have to open port22 in your router (but please be aware of the security implications of this), and forward it to the LAN IP of your PC. If this is also running a firewall, you will have to open port22 on that as well.

You could try this:
On PC1 go to http://whatismyip.com and make a note of your PC1 modem/router's IP
On PC2 go to http://whatismyip.com and make a note of your PC2 modem/router's IP
On PC1 try ssh pc2s_username@PC2.modem.router.IP
On PC2 try ssh pc1s_username@PC1.modem.router.IP
If this doesn't work, you need to sort out your firewalls.
 
Old 12-08-2010, 12:05 AM   #11
GJQ
Member
 
Registered: Jun 2009
Location: Malaysia
Distribution: Ubuntu 11.04
Posts: 99

Original Poster
Rep: Reputation: 17
Hi tredegar,
I am using opendns the free dns server 208.67.222.222 and 208.67.220.220.Both the pc is on the lan connection and is connected using the same router.There is no firewall enabled on both system.By the way,I have configure Port Forwarding in my router for use with Gnump3d music streaming.Will it have any effect?

I will try and update again.

Thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
No enough space error when trying upgrade ubuntu from 8.04 lts to 10.04 lts flik shen Ubuntu 5 06-15-2010 01:44 PM
Ubuntu 10.04 LTS General Sharing Issues mbonwick Linux - Server 2 06-14-2010 04:05 PM
how can I write in to a file on Ubuntu 8.04 LTS squirtmph Ubuntu 5 12-22-2009 12:27 AM
LXer: I update Ubuntu 6.06 LTS and 8.04 LTS ... one has SSH issues, one does not LXer Syndicated Linux News 0 05-20-2008 08:30 AM
file sharing between OSX and Ubuntu Super20 Linux - Newbie 2 11-01-2005 01:12 AM

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

All times are GMT -5. The time now is 06:49 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration