270 | | == 3.1.a Moving files to N9 with rsync == |
| 270 | == 3.1.a Transfer files to N9 with rsync == |
| 271 | |
| 272 | With rsync you can deploy the files to the device. |
| 273 | |
| 274 | Required storage: |
| 275 | * (ext4)/home/user - 1GB |
| 276 | * (vfat)/home/user/MyDocs - 4.3GB |
| 277 | |
| 278 | Download rsync for N9 |
| 279 | * [http://repo.pub.meego.com/home:/rzr:/harmattan/MeeGo_1.2_Harmattan_Maemo.org_MeeGo_1.2_Harmattan_standard/armel/rsync_3.0.9-1.0%7erzr1_armel.deb |
| 280 | |
| 281 | Scp rsync installer to N9 as root: |
| 282 | {{{ |
| 283 | $ scp rsync_3.0.9-1.0~rzr1_armel.deb root@device:./ |
| 284 | $ ssh root@device |
| 285 | RM696-40-4_PR_001:~# dpkg -i rsync_3.0.9-1.0~rzr1_armel.deb |
| 286 | RM696-40-4_PR_001:~# exit |
| 287 | $ |
| 288 | }}} |
| 289 | |
| 290 | Create public key for ssh connection, if you don't have it already: |
| 291 | {{{ |
| 292 | $ ssh-keygen -t rsa |
| 293 | }}} |
| 294 | Copy public key to N9: |
| 295 | {{{ |
| 296 | $ ssh user@device "mkdir .ssh" |
| 297 | $ scp ~/.ssh/id_rsa.pub user@device:./.ssh/authorized_keys |
| 298 | }}} |
| 299 | Now, you don't have to enter password for 'user' when you connect to N9. |
| 300 | |
| 301 | Download [https://sed.hu/projects/webkit/attachment/wiki/Build%20Qt5%20and%20WebKit2%20for%20N9%20%28Resworb%20Scripts%29/rsync-scripts.tar.gz?format=raw rsync-scripts.tar.gz] and extract it to ~/swork. |
| 302 | |
| 303 | Initialize directory tree for Qt and WebKit files: |
| 304 | {{{ |
| 305 | ~/swork/rsync-scripts$ init-rsync.sh |
| 306 | }}} |
| 307 | |
| 308 | Sync files to device: |
| 309 | {{{ |
| 310 | ~/swork/rsync-scripts$ ./all-rsync.sh |
| 311 | }}} |
| 312 | This script will execute ./testfonts-rsync.sh, ./qt5-rsync.sh, ./webkit-tests-rsync.sh and ./webkit-build-rsync.sh. This can take some time on first run, so get some coffee or have a lunch. |
| 313 | |
| 314 | If you don't want to transfer LayoutTests to N9, then you should use '''./all-rsync.sh --no-layout-tests'''. Without this argument rsync always does re-transfer on LayoutTests because of the vfat filesystem's limitation. |
| 315 | |