http://klaus.ede.ase.au.dk/index.php?title=PB:Transfer_of_files_to_and_from_PB&feed=atom&action=historyPB:Transfer of files to and from PB - Revision history2024-03-29T14:02:14ZRevision history for this page on the wikiMediaWiki 1.23.13http://klaus.ede.ase.au.dk/index.php?title=PB:Transfer_of_files_to_and_from_PB&diff=2275&oldid=prevKlaus at 10:21, 6 March 20192019-03-06T10:21:40Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 10:21, 6 March 2019</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 39:</td>
<td colspan="2" class="diff-lineno">Line 39:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div></source></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div></source></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>and the file will be dropped in current directory (.).</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>and the file will be dropped in current directory (.).</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">===Final Notes===</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Remember the scp command can be used to copy files from anywhere to anywhere. Do have a look in the man pages for scp.</ins></div></td></tr>
</table>Klaushttp://klaus.ede.ase.au.dk/index.php?title=PB:Transfer_of_files_to_and_from_PB&diff=2274&oldid=prevKlaus: Created page with "Often one might want to copy some files from the BeagleBoard to the development host. If you are using the Centos Development host there are two solutions to the problem: ===..."2019-03-06T10:19:14Z<p>Created page with "Often one might want to copy some files from the BeagleBoard to the development host. If you are using the Centos Development host there are two solutions to the problem: ===..."</p>
<p><b>New page</b></p><div>Often one might want to copy some files from the BeagleBoard to the development host. If you are using the Centos Development host there are two solutions to the problem:<br />
<br />
===Pack before copying===<br />
Often it is a good idea to pack the files into one package before copying.<br />
<br />
There are several options here: '''tar''' and '''gzip''' just to mention a few.<br />
<br />
<source lang=bash><br />
] $ tar czvf <archivename>.tgz <file(s)><br />
</source><br />
<br />
===Copying initiated at PocketBeagle===<br />
First you have to ensure that the firewall on the development host allows trafic on port 22 (the SSH port). Open the firewall application from the menu and check that ssh is ticked. Check that you have a tick both in '''Runtime''' and '''Permanent''' settings.<br />
<br />
[[File:Firewall.png|400px]]<br />
<br />
Next thing to check is if the '''sshd''' is running.<br />
<br />
<source lang=bash><br />
] $ sudo systemctl status sshd.service<br />
</source><br />
<br />
If it is not enabled and running issue the commands shown below:<br />
<br />
[[File:Enabling sshd.png|500px]]<br />
<br />
Now the '''scp''' command can be used to copy files from PocketBeagle to Development host.<br />
<br />
<source lang=bash><br />
] $ scp <sourcefile(s)> <user>@<ip address>:<destination path><br />
</source><br />
where ''<sourcefile(s)>'' are the files that you want to be copied to the development host. ''<user>'' is the user name on the development host, ''<ip address>'' is the IP address of the development host, typically 192.168.6.1 or 192.168.7.1 and ''<destiantion path>'' is the path on the development host where the file(s) shall be delivered to.<br />
<br />
<br />
===Copying initiated at the Development Host===<br />
If you have an archive made on the PocketBeagle then you can get it without any troubles directly from the Development Host by issuing:<br />
<source lang=bash><br />
] $ scp <user>@<ip address>:<path>/<filename> .<br />
</source><br />
and the file will be dropped in current directory (.).</div>Klaus