LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-13-2011, 05:16 AM   #1
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Rep: Reputation: Disabled
Unhappy Should I create an FTP home Server?


Here is the story. I am doing a graphical simulation project and the software files are very big, probably several GBs. It will be a hassle to transfer these files from school to home and vice versa.

So it is advisable for me to create a home FTP server or is there any other alternative?

If my home laptop becomes a server, does it have to be left on so that I can access it from school? This will be a waste of resources.

Stupid question but I dont know the answer.

If my Ip address change frequently, how do I ensure that I can log in successfully?

Are there any links I should read. I am new to linux so please pardon me.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 09-13-2011, 08:04 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,751

Rep: Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929
I need to transfer files (lots of small ones) between several systems that are not on a LAN and so end up carrying a flash drive. IMHO not really much of a hassle these days.

Your laptop will probably have to stay on. With a dynamic IP site like dyndns.com you can get a URL which automatically is updated when your IP changes. Be sure to check on your school's security policy.

Transferring files over ssh is a better idea then FTP.
 
2 members found this post helpful.
Old 09-13-2011, 09:49 AM   #3
SL00b
Member
 
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 112Reputation: 112
I concur with the above post, in that in certain situations, SneakerNet is a really efficient solution, and this sounds like one of them. Depending on how big and how many files you'd need, a USB stick or an external HDD would do the trick.

Otherwise, rather than running FTP transfers that would run forever, I'd say it makes a lot more sense to dedicate one machine to be the app server, which you then remote into from the other. So if the home machine is going to be the server, set that up so you can ssh into it from school. Though to be honest, I'd think a good school ought to be offering some server space, which you can then remote into from both your home and school clients, so that might be worth checking into.
 
Old 09-13-2011, 04:33 PM   #4
tblu
LQ Newbie
 
Registered: Sep 2011
Location: USA
Distribution: Debian, Tiny Core
Posts: 15

Rep: Reputation: Disabled
As an alternative to FTP, you may want to consider rsync or one of the variants to mirror the data between your sites. Once the initial seed is mirrored, it will only have to transfer over changed portions and can be pretty efficient. If configured properly, this can be far more secure than FTP, also.

Last edited by tblu; 09-13-2011 at 04:34 PM. Reason: typo
 
Old 09-13-2011, 05:09 PM   #5
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 45
Wink

All the above is good.

The easy way may be a external HD.
 
Old 09-13-2011, 05:11 PM   #6
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 572

Rep: Reputation: 120Reputation: 120
Well if your filesizes are several gb then my main concern would be bandwidth speed.
 
Old 09-13-2011, 07:34 PM   #7
redw0lfx
LQ Newbie
 
Registered: Aug 2011
Distribution: FreeBSD 8, Arch Linux, Debian, CentOS 5.4, CentOS 6, Fedora
Posts: 10

Rep: Reputation: Disabled
Transferring several GBs of data over ftp wouldn't be advisable, mainly due to the bandwidth that you will need and the really long time it will take to transfer those files. You would need a really fast connection and there is a change the ftp session would get interrupted.

Your better bet is using a USB Pen drive or an external hard drive that you would carry around.

If you still go with the ftp server route, you will need to have your laptop on all the time, and you will need to use dyndns.org to be able to reach your laptop (since your public ip will be changing). You will also need to setup your router to allow incoming connections to your ftp server.
 
1 members found this post helpful.
Old 09-13-2011, 07:41 PM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by hitmen View Post
...
So it is advisable for me to create a home FTP server or is there any other alternative?
no, use scp (which runs over ssh)
Quote:
Originally Posted by hitmen View Post
If my home laptop becomes a server, does it have to be left on so that I can access it from school? This will be a waste of resources.
yes, if the site is down, then nothing would be able to access it.
Quote:
Originally Posted by hitmen View Post
If my Ip address change frequently, how do I ensure that I can log in successfully?
dyndns.com is a pretty good service.
 
Old 09-14-2011, 12:00 PM   #9
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
In summary ssh
sneakernet
school server
rsync
scp

Any particular resources for these?
 
Old 09-14-2011, 12:13 PM   #10
Aberrix
LQ Newbie
 
Registered: Sep 2011
Distribution: RHEL, AIX
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by devnull10 View Post
Well if your filesizes are several gb then my main concern would be bandwidth speed.
agreed, best bet is to just use a usb thumb drive like others have suggested.
 
Old 09-14-2011, 01:31 PM   #11
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by hitmen View Post
In summary ssh
sneakernet
school server
rsync
scp

Any particular resources for these?
not really.
not sure, what distro you are using... assuming fedora:
Code:
sudo yum -y install sshfs
 
Old 09-14-2011, 01:51 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,751

Rep: Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929
Are you using Windows or linux at school?
Nautilus has a built in sftp client which allows you to copy files via ssh.
WinSCP is a windows SFTP client.
rsync allows you to synchronize files between locations while min file transfer.
Unison is similar to rsync but can run on both windows and linux.
 
Old 09-15-2011, 10:33 PM   #13
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
I am using linux at home but the school runs windows obviously. so wad is your recommendations?
 
Old 09-15-2011, 10:52 PM   #14
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 794

Rep: Reputation: 56
For this situation, a big thumb drive or external hard drive would probably be the easiest method of transferring those files. Just keep them on the thumb drive, and MAKE SURE you actually do the "Safely Remove" option before unplugging the drive. It's rare, but I have had thumb drives get corrupt because I didn't properly unmount them before unplugging them.

The amount of bandwidth necessary to download files of several GB though would be crazy, at least if you want to download them in a reasonable amount of time. On top of that, most commercial internet services have pretty slow upload speeds. You may have 20 Mbps download, but your upload will probably only be 3-4 Mbps, so anything downloaded from your server from outside your house would be capped at your allotted upload speed. You'd spend most of your class time downloading the files. Also, to answer one question, yes, the laptop would have to be left on in order for its FTP service to remain available. You would also have to make sure that the ports (default 21) were forwarded to the laptop from your router.

If you want to run an FTP server though, the server OS you run doesn't really matter. FTP is a pretty standard protocol across all systems. If you're going to set up a server and you want to do it with Linux, I recommend using the latest stable version of Debian (www.debian.org). It's got a pretty straight-forward installation, it stays pretty stable because the guys at Debian use "testing" and "unstable" versions for all of their bleeding edge stuff, and leave the "stable" release alone except for thoroughly tested updates, and they don't do major OS upgrades every 6 months. During the install there's even a checklist for things you want to install. If you pick "FTP Server" it installs proftpd. You can then install the package gadmin-proftpd to make managing the server stupid simple.

Attached is a screenshot of gadmin-proftpd. I do most of my server management over SSH, even when I'm at home. The server is actually tucked away and hidden in the bottom of my entertainment center,
Attached Thumbnails
Click image for larger version

Name:	Screenshot-2.jpg
Views:	13
Size:	222.0 KB
ID:	7993  

Last edited by dudeman41465; 09-15-2011 at 10:54 PM. Reason: wording
 
  


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
ftp user can't create a directory on ftp server bharatlalgupta Red Hat 4 01-27-2010 01:58 PM
Ftp-server on home computer makowka Linux - Server 3 10-11-2009 01:06 PM
to create public ftp server ARsenthil Linux - Newbie 2 01-30-2008 02:23 PM
create ftp user for vsftpd server without home directory cccc Linux - Networking 2 07-30-2005 06:32 AM

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

All times are GMT -5. The time now is 08:34 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
Open Source Consulting | Domain Registration