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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I realize this is prob a dumb question but I never used FTP/TFTP before and was just wondering if anyone can point me in a direction to properly set it up on my Ubuntu 14.04...I wanted to start messing around with it more and I realize its client/server based but will I need have it setup on both machines to send a file?
I will also be using the TFTP function briefly to send my new binary Mac address after I flash my router with the DD-WRT and sense it will be directly connected to my laptop, I also wasnt sure if I had to setup an TFTP server for that purpose as well?
An ftp server (ftpd) is used only at the server. The clients use an ftp application to attach to that server and then use ftp commands to put/get files.
tftp (meaning "trivial" ftp) is usually a configuration of an ftp server - it has NO authentication used, which makes it relatively easy for client applications to use. This is why tftp has been used to boot diskless nodes. As I recall, it uses UDP or TCP for one-way file transfer (from the server to the client).
Setup for both should be in the documentation for the ftpd server.
So if Im just using FTP/TFTP/SSH to just simply send files between two computers on the network, I wont need to setup the server side of it and I can just use the client by itself? Everything I see says to setup both the client and server so thats what was confusing me the most.
tftp and ftp are separate protocols and usually separate servers. For servers, tftpd or ftpd,vspftd, proftpd etc. The client needs a client application which is tftp for tftp. ftp or lftp for command line ftp clients, GUI can be the file browser or filezilla for a couple of examples.
In most cases the default Ubuntu configuration will work as is. You will also need to configure the firewall to allow traffic on the server for whatever servers you are running. I've never used tftp for DD-WRT so I have not looked at the detailed instructions. I don't know if the router is the server or the client.
Since you mentioned ssh in post #3 it works the same as the others, sshd for the server and ssh/sftp/scp for a command line client or the file browser / filezilla as GUI clients.
Ok thanks for the comment...I think Im starting to get it but not all the way there yet lol I found a good article that explained you need both client and server in order to pull/put files so just need to read up. Also ended up downloading both client/server software today for FTP and SSH so can start messing around after I configure everything.
In the middle of flashing my old Linksys wrt54g router with the DD-WRT so can get more out of it and would like to see how good the repeater function is on it after. They say to use the TFTP at the end to send the new binary mac address and never used it before so didnt want to fuck it up.
Awesome. Thanks for that article. I was just going off what they said to do for my router on the DD-WRT wiki but they weren't too clear on the whole process to tell ya the truth. I know that I have to use the GUI to initially flash the router with the firmware but Im not sure if they have a GUI for the mac address, think its more like cloning a mac address like they have in Ubuntu. I appreciate the feed back though.
You don't have to use gui. It is suggested as the preferred way. I suggest that you do use it instead of tftp.
Some old timers have configured switches a lot so they use tftp.
Are you talking about this passage?
"
Do not forget to make note of your current settings, especially if you have static IP addresses. A quick way of doing this is to take screenshots of your current configuration screens (which can be found on your web GUI, or online router interface - clock).
It can be essential to record your current WAN MAC address. Some ISPs do not allow an immediate change of the routing hardware and changing the firmware changes the MAC address. (You may also find these on your web GUI - clock). "
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.