LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-20-2006, 01:25 PM   #1
b18b
Member
 
Registered: Nov 2005
Distribution: PCLinuxOS .92
Posts: 80

Rep: Reputation: 15
How to Move Files from Windows to Linux


Ok - I have been fighting with a 500 error on several CGI scripts that I have on a recently configured server. Here -> http://www.linuxquestions.org/questi...d.php?t=420995

Well I tried something, I set up a FTP server and copied a few files over to the new apache server (in ASCII) mode. Gave permissions and all worked.

Now the problem that I have is this was not straight forward and FTP'ing will take forever because of directory structure. It can be done, but I would prefere to just zip and unzip if possible.

Is there a way to just copy the files over and maintain their structure (I guess it's the returns that I am having problems with).

Any suggestions? Thanks.
 
Old 03-20-2006, 02:10 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,790
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
You need to look into running a Samba server on your Linux box. That would allow you to mount the Linux box on Windows as if it were a network drive and copy files directly.
 
Old 03-20-2006, 02:42 PM   #3
b18b
Member
 
Registered: Nov 2005
Distribution: PCLinuxOS .92
Posts: 80

Original Poster
Rep: Reputation: 15
Thanks. Will this keep the ascii files intact as if they were ftp'ed? I tried zipping the entire directory and unzipping on the server but they broke.

If samba will do that, if I can get through the network (other issues), I can give it a try.

Right now I have gone into the windows server and from a prompt putting the files on the new server, but it is taking a long time. I suppose I can install a ftp client, but I am working from a winxp machine, terminal clienting into a win2003 server, then vnc'ing into win2k server, opening a command prompt and ftp'ing into the linux box. Works but graphically slow.

Last edited by b18b; 03-20-2006 at 02:49 PM.
 
Old 03-20-2006, 03:27 PM   #4
bluelightning
Member
 
Registered: Mar 2006
Location: Redmond, WA
Distribution: FC4, WinXP Pro
Posts: 37

Rep: Reputation: 15
You may find setting up samba to be rather confusing the first time. Another option is to install an ssh client on your windows machine and use scp (comes with ssh) to copy the files back to the Linux computer. The PuTTy and OpenSSH versions of scp have syntax very similar to the cp command. The official SSH client has a windows explorer like GUI interface.
 
Old 03-20-2006, 03:32 PM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,790
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
Samba should make the whole transfer transparent. It should act just like a drive attached to the computer and files shouldn't be affected by copying. Samba can be a bit of a pain to set up, but there are plenty of how-to's out there including this one in the Linux Tutorial section.
Quote:
but I am working from a winxp machine, terminal clienting into a win2003 server, then vnc'ing into win2k server, opening a command prompt and ftp'ing into the linux box. Works but graphically slow.
That is hands down the most convoluted way of transferring a file I have ever seen. No wonder stuff broke. Can I as why you can't ftp directly from the XP box to the linux box?
 
Old 03-20-2006, 03:33 PM   #6
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 48
I recommend WinSCP, a very good and powerful open-source graphical SFTP/SCP client for Windows. SFTP/SCP Is the most common way to transfer files to and from *nix systems.
 
Old 03-20-2006, 05:08 PM   #7
b18b
Member
 
Registered: Nov 2005
Distribution: PCLinuxOS .92
Posts: 80

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Hangdog42
Samba should make the whole transfer transparent. It should act just like a drive attached to the computer and files shouldn't be affected by copying. Samba can be a bit of a pain to set up, but there are plenty of how-to's out there including this one in the Linux Tutorial section.


That is hands down the most convoluted way of transferring a file I have ever seen. No wonder stuff broke. Can I as why you can't ftp directly from the XP box to the linux box?
Actually it's not breaking, it's how I am getting it to work. Originally I just copied the files via a USB drive and it was broke, then I zipped them, transferred them via USB drive and they were broke, and then I tried FTP'ing from windows explorer and it was broke them.

I will look into Samba and connecting in. On my home network I have this working without any problems, but don't know about breaking the CGI files.
 
Old 03-20-2006, 05:15 PM   #8
b18b
Member
 
Registered: Nov 2005
Distribution: PCLinuxOS .92
Posts: 80

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by b18b
Right now I have gone into the windows server and from a prompt putting the files on the new server, but it is taking a long time. I suppose I can install a ftp client, but I am working from a winxp machine, terminal clienting into a win2003 server, then vnc'ing into win2k server, opening a command prompt and ftp'ing into the linux box. Works but graphically slow.
The worst part of this is that the Linux box is sharing a KVM with the XP client that I am working from. The win2k machine is in another building along with the win2003 server. The win2k is on a different domain than the XP client and win2003 terminal server and the linux box is NOT on either domain and has a completely different IP range.

Crazy I know
 
Old 03-20-2006, 06:03 PM   #9
b18b
Member
 
Registered: Nov 2005
Distribution: PCLinuxOS .92
Posts: 80

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by spooon
I recommend WinSCP, a very good and powerful open-source graphical SFTP/SCP client for Windows. SFTP/SCP Is the most common way to transfer files to and from *nix systems.
Looks like a good option. Will give it a look in some detail Tuesday. Thanks for the suggestion.
 
  


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
cannot using FTP move command to move files adrianmak Linux - Networking 4 04-21-2009 12:01 PM
Move files from vsftpd to Windows Share rjeeves33 Linux - Networking 2 07-26-2005 07:49 PM
how do i move files from my windows partion to my linux partion awesome_man Linux - Newbie 2 01-30-2004 12:51 PM
possible to move files from linux -> pc through usb bridge? kitmui Linux - Hardware 1 12-03-2003 12:38 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration