how Do I transfer files between two Linux PCs on same network?
I am trying to transfer files from my Linux laptop to both my linux PC and also my aios media player ( which seems to be sometype of linuxon it)that I need to transfer files to and from but I am not sure which linux software I need to do this.
Ideally I would like to be able to use my Laptop to download and save it on my other linux PC or medi player. If I look on the network I don't see either my other Linux PC or media player . |
This really isn't about a Linux to Linux transfer. You should actually read the vendor documentation for the media player. Whilst it might run Linux, it's rarely appropriate to treat it as a linux server. There appears to be all sorts of info available if you look - http://support.pivosforums.com/article/13218/21114/[GUIDE-AIOS]-Access-FTP
|
if the device supports it i would use ssh with keys (which runs on the same protocol as scp/sftp/sshfs).
|
dude, easiest way is to put both HDD in the same machine and do it like that, unless this is a usual transfer thing...
|
I always run an SSH server on my desktop so that I can access its files on my netbook. Once I've set up keys so there's no password I can just either scp or use Thunar (the file manager in XFCE) to transfer files between them. Of course this means that I can only initiate transfers on my netbook as the PC runs the server but it suits my needs and is fairly straightforward and secure.
|
Create a share on the desktop, then browse it from your laptop. You didnt mentioned what OS you have other than Linux. Each distro does it differently. In OpenSUSE you can do that through YaST.
|
well I have files on my laptop ( opensuse)which is linux that I want to be able to transfer to my PC which is using linux mint .
the thing is I cannot see any of them on my network to do this. on my windows gaming PC I can see my media player so I just drag and drop the files to it isn't there something like that for linux? like how to see other network connected devices so that I can transfer files and do backups to other machines |
ok so I am trying remote desktop sharing from my laptop ( opensuse) to my PC (linuxmint)I can ping my desktop using network tools but I cannot connect it asks for a password I type in the password but I get permission denied,
so to see if it works at all I turned off the pass word and tryied it with out a password same thing, wha tam I doing wrong? |
Linux as a general rule does not do quite as much work as Windows in setting things up for you. As TroN-0074 stated, you can set up shares (either NFS or CIFS) on your desktop or laptop and then mount those shares on the other device. If your media player presents a CIFS share on the network, you can mount it in the same way.
If you just want to do occasional transfers of back-up files, I'd recommend just using scp. Edit: I just saw your last post. You need to provide a few more details. I presume desktop sharing is using VNC, which is not at all the same as file sharing. You should have picked out a password when you enavled VNC, and you would use thar when trying to connect to the VNC server. |
ok so which is the easiest and lease hassle to use ?
when it comes to moving files ( mostly media files) around on linux I am totally lost |
e.g.:
Code:
[schneidz@hyper Videos]$ scp athf-87-last-last-one-forever-and-ever.avi schneidz@xbmc:Videos e.g.: Code:
[schneidz@hyper ~]$ mkdir xbmc-dir nfs is also an option but in my opinion more complex. |
You could create a samba share. That's what I did and I can access the filter from any computer on my network. Samba will work with windows too
|
Quote:
|
hmm so I installed sshfs but I am not sure where it is and how t oload it up, dam linux networking is so anoying to me right now .
|
Quote:
|
Quote:
Code:
ssh user@ip-address Code:
[schneidz@hyper ~]$ ifconfig |
with samba I am lost are you all telling me that I have to go through this whole hassle just so I can move files from one PC to another or to my media player I could have totally removed my harddrive and transfered file that way faster and I still have know clue as to what I am doing.
I opened up a terminal and typed in sshfs then the ip address which then I found out I had to type in sshfs -h to find help which doesn't help me at all because I don't understand the help file grrr I ama very close to just giving up on linux I have know clue as to how I lasted over a year jusst using linux a few years back. I have forgotten every thing it seems. |
ok so Ityped in ssh then the ip which then asked for a password which I thought was right but recieved a connection refused after trying a couple of passwords I and getting the same message "Permission denied (publickey,password)"I went to my other PC and try to go from there to my laptop which just timed out.
|
does your desktop have a blue tooth dongle?
that is the usual way I do it also did you not want to do the moving of the HDD like I suggested earlier? you could also do FTP, or E-mail |
ssh is a protocol which allows you to log into another pc remotely:
Code:
ssh username@ip-address the username and password should be for the remote machine. once logged in, any command you run will be executed on the remote machine (although the results will show up in your local terminal screen). there is also a way to set it so that it looks at an encrypted key to log you in automatically but lets concentrate on this first step. various transfer utilities (scp/sftp/sshfs) run on top of this protocol; once we log you in successfully you'll be able to attempt to transfer files. Quote:
i dont know opensuse much but i found this: Quote:
or maybe its the firewall blocking the connection: Quote:
|
in Linux Mint right click on the folder you want to share, and thik the option share this folder, allow the permissions you want, to be able to copy and paste files to that directory.
In OpenSUSE go into YaST, open up your firewall to allow that computer to connect to other computer, also allow your samba to star during boot. re start your laptop and check on network again |
To the OP:
I'm not sure how much this will help, but if your media server is set up to export a CIFS share, you should be able to mount it on your Linux machine by issuing the following: mount -t cifs -o user=<username> //<IP of media server>/<sharename> /mnt You will be prompted for the password, and the contents of the CIFS share should be available under /mnt (you can mount them to any different directory that you want). Note that this command must be run as root, and the files will be owned and may only be readable/writable by root. To change that, use the uid and gid options to mount to set them to belong to your primary user. You can find out your user's id and group id (gid) by using the "id" cinnabd. Suppose your user id is 1000 and group id is also 1000 and the user name on the media server is "foobar" -- the command would look like: mount -t cifs -o user=foobar,uid=1000,gid=1000 //<IP of media server>/<sharename> /mnt In principle mounting any CIFS share works more or less the same way. |
Quote:
Code:
to host 192.168.0.14 port 22: Connection refused when I try to share a folder in linux mint I recieve Quote:
|
Crap ok so now if I type in ssh lap@192.168.0.14 I think I am connected to my linuxmint machine because after I type in the pw I get "Last login: Sun Feb 2 11:58:32 2014 from 192.168.0.14
Have a lot of fun... " so now what what are the commands so that I can see the dir I want to look at or move files to? I am going to say that I am a terrible typer and do allot of typing mistakes |
Quote:
The authenticity key warning happens every time you attempt to log into a new host. |
Quote:
Code:
sftp://lap@192.168.0.14/home/lap That's how I use SSH to transfer files most of the time though I have also set up passwordless login which can be a bit confusing to set up but saves typing a password when wanting to access the other machine. |
Quote:
Code:
uname -a -m -p |
Quote:
Code:
lap@suse:~> uname -a -m -p Code:
mediapc@mediapc-desktop ~ $ uname -a -m -p |
oh wow ok I have it figured out ow to connect to my inux mint using filezilla.
but how do I link a folder from linuxmint PC to my opensuse pc and vice versa? |
Quote:
|
Quote:
|
Code:
mkdir /whatever/floats/your/boat |
I have 3 computers in the house, all linux in my case. I set up samba on my server, created a samba share folder and figured out how to modify the fstab file on my laptop so the shared folder auto mounts on my desktop. So now all of my computers have the same shared directory on the desktop and I just drop files in there and have access from all computers and also from my android phone.
It did take me some trial and error as I'm still a bit of a newb but now that it's set up it makes life simple. If you google setting up linux samba shares there are a lot of tutorials on the subject |
Quote:
Code:
lap@suse:~> sshfs mediapc@192.168.0.11:/Home/mediapc/TVVideos /home/lap/Videos/mediaplayervids Quote:
Butr right now I justr want to figure out how to do this between my laptop and my Linux mint media PC hehe. |
Samba is the way to go.
|
Quote:
So, I suggest doing whatever is easy for you now but don't give up and think you can't do it a better way. Samba is pretty easy to set up and there are plenty of tutorials that will pretty much let you copy and paste commands into the terminal to get everything set up. Get is set up the easiest way and then go back and figure out samba set up at your lesiure |
I have know problems learning it is jus tit irks me when one minute I can ssh 192.168.0.11 then later on I cannot, at first I thought that maybe the pc went to sleep so i had to walk all the way to the other room to see and it was running .
ok so after I drank half a pot of morning coffee and triedthe exact same thing it all works so thank you all for the help I will opefulling now be able to do the same with connections between my pivos media player and my pc and laptop but tis is pretty much solved for the most part. |
Where did 192.168.0.11 come from? I thought the server resided at 192.168.0.14?
|
All times are GMT -5. The time now is 09:24 PM. |