Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Since you encourage me to post it will be only you to blame !
I am a completely computer illiterate and I ask to be excused if my questions seem outrageous.
Here is one: I want to move files from a hdd of computer 'a' to a hdd of computer 'b'. The machines are phisically independed, they share though the same web line. They are near each other, so I thought to ask if it is feasible to connect them with a usb cable and proceed with the cp or dd command, or since this is not very likely, if I could dismount one of the hdd and connect it temporarily on the other machine and proceed thus.
Will the host machine recognize the visitor and behave, or will it swear and misbehave at everybody ? the files are videos about 30GB.
There are a ton of ways you can accomplish this task. If you have a gigabit/100 base T router/switch you could always copy it over the network through either scp or rsync.
The method you are talking about using should work fine as long as the drives are setup properly. Obviously the drive you place in the other computer would need to be a slave and you could just mount the drive and copy the files using a standard cp.
When you say they share the same web line, does that mean that they are networked somehow? A better explanation of how thing are physically set up would be useful
Here is some more information re my machines: I have a "ADSL Bridge/Router make microcom AD 2636 DSL ACT 100M/ACT" connected to my telephone line from one side and hence to ISP I believe, to the other side to a "5 Port 10/100M Switch" where my two machines are pluged, Ethernet RJ45, one, the host in this case, in Port 1 and the receiver in Post3. The other 3 Ports are empty.
I had a look at man pages for scp and rsync, finding the first simpler. The problem now is in scp how to specify each machine. Knowing roughly that my rooter allocates an IP address to each computer at boot and that presently the host has 10.0.0.10 and the receiver 10.0.0.14 should I go: scp /etho_10.0.0.10/dev/hdb8/home/jv/movies/miro(space) /etho_10.0.0.14/dev/hdb6/home/jv/movies/miro ?
Or something like that ?
Afraid to give it a try lest I break up something, I will wait for instructions. Use $ or # ?
I am pretty sure scp uses ssh so you'll need the ssh daemon to be both installed and running on the destination computer or it will not be "listening" for a connection.
So usually you would run this command from the machine you are actually moving the files TO. Again, like stated above, you will want to make sure you have ssh on both machines.
make sure your permissions on those files are for the user trying to grab the files otherwise you will get an error.
It may be installed, but you need it to be running (as a "System Service")
To find out if it is running:
Code:
ps -Al | grep sshd
If you see the sshd process there, it's running.
If not, start it like this (you'll need to be root, or you'll get "Permission Denied")
Code:
/etc/init.d/ssh start
[Edit:]If this gives you "-bash: /etc/init.d/ssh: No such file or directory"
Then it's not installed, and you'll need to do that before you can go further. If you tell us your distro (Ubuntu, PcLinuxOS, Debian etc) someone will be able to tell you how.
It is a good idea to list your distribution in your profile anyway (See mine, at the left?) [/Edit]
You could install and setup a very plain FTP server on one of the machines (or both of them), so you could use a graphical FTP client to move files comfortably back and forth. Or if you run KDE then open the other location in Konqueror using the 'fish' protocol (a variation of SSH access).
@seraphim172
Yes, he could install an ftp server. As usual with linux, there are many ways to achieve what is required. But borgibo is new, so shall we just try to concentrate on one way to achieve what he wants? That is to move some files between two (probably, "badly" networked computers).
We are trying to help him move the files (with his PCs addressed by LAN IP numbers if necessary). Once his goal is achieved, he might be interested in making life easier for himself.
When he has manged to move his files, perhaps he'll be interested in learning about some of the other neat things he can do with linux.
Quote:
Or if you run KDE then open the other location in Konqueror using the 'fish' protocol (a variation of SSH access)
Indeed, he could use fish://name@hostname with konqueror, and a very neat protocol it is too, but fish:// isn't going to work until he has ssh sorted out. Which he hasn't. He doesn't even know if it is installed, or running, or configured properly.
We haven't even touched on security, public/private key encryption, passwordless authentication etc.
So, whilst your enthusiasm is laudable, one step at a time for newbies please.
Give the OP a break.
Yeah, stick to basic ssh, its usually installed by default on most distros (if only to discourage use of telnet etc).
Good idea to start with a test file.
rsync is way overkill for a one time copy.
I checked as informed and I have in both host (10.0.0.10) and receiver machine (10.0.0.14) ssh installed and running.
Both machines run Sidux, the host, everything installed in /root, the receiver has "/" plus "/home".
I gave the following command:
jv@siduxbox:~$ scp -r jv@10.0.0.10:/dev/hdb8/home/jv/miro /dev/hda14/home/jv/movies/miro
jv@10.0.0.10's password:
scp: /dev/hdb8/home/jv/miro: No such file or directory
jv@siduxbox:~$
The first line is the host machine or where the files are, the second is machine 10.0.0.14 from where I give the command and where I want the files copied to.
Am I doing something wrong? The path to the host file is correct. Early this morning though when I first tried the command I made a mistake in the path of the host defining the last part as: /movies/miro the correct being only /miro. Did this cause the problem ? I did reboot after that as I could not print my screen as well.
Many many thanks for your interest and persistance. I fail to answer more quickly as I get excausted trying to understand 'computer affairs' and react accordingly. I am sorry for that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.