[SOLVED] Moving drivers from MacOSX to linux (ddwrt) router using Terminal (SSH).
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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Then I put this script into both the "Commands" tab of the router's web GUI and into Terminal.app to be safe. In the router's GUI, I hit "Run Commands" in the GUI, then "Save Startup".
1) I have no experience with using command lines, and I feel that my "move" commands are the problem. The project that I've been following used wget to retrieve files from a website, and since I cannot connect to the internet while doing this, I have been left on my own sort of.
Are you trying to copy files from one machine to the other by using "mv"? Surely this is giving you a very clear error message about the file you want to move not existing. You can't do that any more than me putting that command into my computer would copy the file from your machine. You need to transfer the files to the DD-WRT machine over the network through one of the supported file transfer protocols.
Since you are logging in with SSH, you should have access to SCP. The following command would move the kernel modules from your machine to the destination router:
It gave me no error message at all. It wasn't until I attempted to install ser2net that I got "File Not Found". But in the case of the drivers, I would execute the code and get no error messages. I knew it wasn't working when I tried to list the drivers and saw nothing new.
Thank you for posting the code. On another forum I was told using wget was wrong, but not given any answer or direction. This is how I wound up using mv.
No, you are still having the same problem as before. You can't log into the router and then expect it to know how to get files from a completely different machine. There is no connection between the router and the desktop to make this possible, you are asking it to move files which is has no access to. It would be like if I asked you to reach into my pocket and get out my wallet from where you are sitting right now, it's impossible.
The SCP commands need to be run on the machine that has the files. SCP is "Secure Copy", you are copying the files from the local machine to the device at username@IPADDRESS. You have to give your computer the IP address of the router so it knows where to send the files to.
You don't need to change any settings on the computer, in fact, that is probably the last thing you want to do since you may end up inadvertently disabling something.