transfer files to device (scp or mount device as USB drive and copy locally) ... then ssh to device or use serial console to login ... extract files and edit configuration files to suit your needs...
...if you need more details - let me know which step is a problem for you...
|