Advertisement
Guest User

Untitled

a guest
May 10th, 2016
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.67 KB | None | 0 0
  1. root@localhost:~# wget -O - https://dev2day.de/pms/dev2day-pms.gpg.key | apt-key add -
  2. --2016-05-10 19:08:20-- https://dev2day.de/pms/dev2day-pms.gpg.key
  3. Resolving dev2day.de (dev2day.de)... 144.76.172.47, 2a01:4f8:200:502e::2
  4. Connecting to dev2day.de (dev2day.de)|144.76.172.47|:443... connected.
  5. HTTP request sent, awaiting response... 200 OK
  6. Length: 1646 (1.6K) [application/pgp-keys]
  7. Saving to: 'STDOUT'
  8.  
  9. - 100%[=================================================>] 1.61K --.-KB/s in 0.04s
  10.  
  11. 2016-05-10 19:08:29 (39.3 KB/s) - written to stdout [1646/1646]
  12.  
  13. OK
  14. root@localhost:~# apt-get update
  15. Hit:1 http://ports.ubuntu.com xenial InRelease
  16. Get:2 http://ports.ubuntu.com xenial-updates InRelease [94.5 kB]
  17. Get:3 http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu xenial InRelease [17.6 kB]
  18. Get:4 http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu xenial/main arm64 Packages [2412 B]
  19. Get:5 http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu xenial/main Translation-en [1044 B]
  20. Get:6 http://ports.ubuntu.com xenial-security InRelease [93.3 kB]
  21. Hit:7 http://ports.ubuntu.com xenial-backports InRelease
  22. Get:8 http://ports.ubuntu.com xenial-updates/main Sources [20.9 kB]
  23. Get:9 http://ports.ubuntu.com xenial-updates/universe Sources [5464 B]
  24. Get:10 http://ports.ubuntu.com xenial-updates/main arm64 Packages [41.6 kB]
  25. Get:11 http://ports.ubuntu.com xenial-updates/main Translation-en [25.9 kB]
  26. Get:12 http://ports.ubuntu.com xenial-updates/universe arm64 Packages [15.1 kB]
  27. Get:13 http://ports.ubuntu.com xenial-updates/universe Translation-en [11.7 kB]
  28. Get:14 http://ports.ubuntu.com xenial-security/main Sources [11.6 kB]
  29. Get:15 http://ports.ubuntu.com xenial-security/universe Sources [3176 B]
  30. Get:16 http://ports.ubuntu.com xenial-security/main arm64 Packages [27.6 kB]
  31. Get:17 http://ports.ubuntu.com xenial-security/main Translation-en [17.9 kB]
  32. Get:18 http://ports.ubuntu.com xenial-security/universe arm64 Packages [6420 B]
  33. Get:19 http://ports.ubuntu.com xenial-security/universe Translation-en [5212 B]
  34. Fetched 401 kB in 19s (20.8 kB/s)
  35. Reading package lists... Done
  36. root@localhost:~# ethtool -s eth0 speed 100 duplex full
  37. -bash: ethtool: command not found
  38. root@localhost:~# apt-get install ethtool
  39. Reading package lists... Done
  40. Building dependency tree
  41. Reading state information... Done
  42. The following package was automatically installed and is no longer required:
  43. libnih1
  44. Use 'apt autoremove' to remove it.
  45. The following NEW packages will be installed:
  46. ethtool
  47. 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
  48. Need to get 90.4 kB of archives.
  49. After this operation, 310 kB of additional disk space will be used.
  50. Get:1 http://ports.ubuntu.com xenial/main arm64 ethtool arm64 1:4.5-1 [90.4 kB]
  51. Fetched 90.4 kB in 17s (5286 B/s)
  52. Selecting previously unselected package ethtool.
  53. (Reading database ... 15489 files and directories currently installed.)
  54. Preparing to unpack .../ethtool_1%3a4.5-1_arm64.deb ...
  55. Unpacking ethtool (1:4.5-1) ...
  56. Setting up ethtool (1:4.5-1) ...
  57. root@localhost:~# ethtool -s eth0 speed 100 duplex full
  58. root@localhost:~#
  59. root@localhost:~#
  60. root@localhost:~#
  61. root@localhost:~# apt-get update
  62. Hit:1 http://ports.ubuntu.com xenial InRelease
  63. Hit:2 http://ports.ubuntu.com xenial-updates InRelease
  64. Hit:3 http://ports.ubuntu.com xenial-security InRelease
  65. Hit:4 http://ports.ubuntu.com xenial-backports InRelease
  66. Hit:5 http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu xenial InRelease
  67. Reading package lists... Done
  68. root@localhost:~# resize_rootfs.sh
  69. + DEVICE=/dev/mmcblk0
  70. + PART=2
  71. + resize
  72. + fdisk -l /dev/mmcblk0
  73. + grep /dev/mmcblk0p2
  74. + awk {print $2}
  75. + start=143360
  76. + echo 143360
  77. 143360
  78. + set +e
  79. + fdisk /dev/mmcblk0
  80.  
  81. Welcome to fdisk (util-linux 2.27.1).
  82. Changes will remain in memory only, until you decide to write them.
  83. Be careful before using the write command.
  84.  
  85.  
  86. Command (m for help): Disk /dev/mmcblk0: 59.6 GiB, 64021856256 bytes, 125042688 sectors
  87. Units: sectors of 1 * 512 = 512 bytes
  88. Sector size (logical/physical): 512 bytes / 512 bytes
  89. I/O size (minimum/optimal): 512 bytes / 512 bytes
  90. Disklabel type: dos
  91. Disk identifier: 0x808ac36f
  92.  
  93. Device Boot Start End Sectors Size Id Type
  94. /dev/mmcblk0p1 40960 143359 102400 50M c W95 FAT32 (LBA)
  95. /dev/mmcblk0p2 143360 7577599 7434240 3.6G 83 Linux
  96.  
  97. Command (m for help): Partition number (1,2, default 2):
  98. Partition 2 has been deleted.
  99.  
  100. Command (m for help): Partition type
  101. p primary (1 primary, 0 extended, 3 free)
  102. e extended (container for logical partitions)
  103. Select (default p): Partition number (2-4, default 2): First sector (2048-125042687, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (143360-125042687, default 125042687):
  104. Created a new partition 2 of type 'Linux' and of size 59.6 GiB.
  105.  
  106. Command (m for help): The partition table has been altered.
  107. Calling ioctl() to re-read partition table.
  108. Re-reading the partition table failed.: Device or resource busy
  109.  
  110. The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
  111.  
  112. + set -e
  113. + partx -u /dev/mmcblk0
  114. + resize2fs /dev/mmcblk0p2
  115. resize2fs 1.42.13 (17-May-2015)
  116. Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
  117. old_desc_blocks = 1, new_desc_blocks = 4
  118. The filesystem on /dev/mmcblk0p2 is now 15612416 (4k) blocks long.
  119.  
  120. + echo Done!
  121. Done!
  122. root@localhost:~# df -h
  123. Filesystem Size Used Avail Use% Mounted on
  124. /dev/mmcblk0p2 59G 704M 56G 2% /
  125. devtmpfs 962M 0 962M 0% /dev
  126. tmpfs 995M 0 995M 0% /dev/shm
  127. tmpfs 995M 17M 979M 2% /run
  128. tmpfs 5.0M 0 5.0M 0% /run/lock
  129. tmpfs 995M 0 995M 0% /sys/fs/cgroup
  130. /dev/mmcblk0p1 50M 12M 39M 24% /boot
  131. root@localhost:~# !wge
  132. wget -O - https://dev2day.de/pms/dev2day-pms.gpg.key | apt-key add -
  133. --2016-05-10 19:10:40-- https://dev2day.de/pms/dev2day-pms.gpg.key
  134. Resolving dev2day.de (dev2day.de)... 144.76.172.47, 2a01:4f8:200:502e::2
  135. Connecting to dev2day.de (dev2day.de)|144.76.172.47|:443... connected.
  136. HTTP request sent, awaiting response... 200 OK
  137. Length: 1646 (1.6K) [application/pgp-keys]
  138. Saving to: 'STDOUT'
  139.  
  140. - 100%[=================================================>] 1.61K --.-KB/s in 0s
  141.  
  142. 2016-05-10 19:10:40 (31.1 MB/s) - written to stdout [1646/1646]
  143.  
  144. OK
  145. root@localhost:~# echo "deb https://dev2day.de/pms/ jessie main" >/etc/apt/sources.list.d/pms.list
  146. root@localhost:~# dpkg --add-architecture armhf
  147. root@localhost:~# apt-get update
  148. Hit:1 http://ports.ubuntu.com xenial InRelease
  149. Hit:2 http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu xenial InRelease
  150. Hit:3 http://ports.ubuntu.com xenial-updates InRelease
  151. Hit:4 http://ports.ubuntu.com xenial-security InRelease
  152. Hit:5 http://ports.ubuntu.com xenial-backports InRelease
  153. Get:6 http://ports.ubuntu.com xenial/main armhf Packages [1145 kB]
  154. Get:7 http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu xenial/main armhf Packages [464 B]
  155. Get:8 http://ports.ubuntu.com xenial/restricted armhf Packages [5072 B]
  156. Get:9 http://ports.ubuntu.com xenial/universe armhf Packages [7301 kB]
  157. Get:10 http://ports.ubuntu.com xenial/multiverse armhf Packages [123 kB]
  158. Get:11 http://ports.ubuntu.com xenial-updates/main armhf Packages [56.5 kB]
  159. Get:12 http://ports.ubuntu.com xenial-updates/restricted armhf Packages [64 B]
  160. Get:13 http://ports.ubuntu.com xenial-updates/universe armhf Packages [16.0 kB]
  161. Get:14 http://ports.ubuntu.com xenial-updates/multiverse armhf Packages [64 B]
  162. Get:15 http://ports.ubuntu.com xenial-security/main armhf Packages [41.8 kB]
  163. Get:16 http://ports.ubuntu.com xenial-security/restricted armhf Packages [64 B]
  164. Get:17 http://ports.ubuntu.com xenial-security/universe armhf Packages [7132 B]
  165. Get:18 http://ports.ubuntu.com xenial-security/multiverse armhf Packages [64 B]
  166. Get:19 http://ports.ubuntu.com xenial-backports/main armhf Packages [28 B]
  167. Get:20 http://ports.ubuntu.com xenial-backports/restricted armhf Packages [28 B]
  168. Get:21 http://ports.ubuntu.com xenial-backports/universe armhf Packages [28 B]
  169. Get:22 http://ports.ubuntu.com xenial-backports/multiverse armhf Packages [28 B]
  170. Fetched 8696 kB in 24s (360 kB/s)
  171. Reading package lists... Done
  172. E: The method driver /usr/lib/apt/methods/https could not be found.
  173. N: Is the package apt-transport-https installed?
  174. E: Failed to fetch https://dev2day.de/pms/dists/jessie/InRelease
  175. E: Some index files failed to download. They have been ignored, or old ones used instead.
  176. root@localhost:~# apt-get install apt-transport-https
  177. Reading package lists... Done
  178. Building dependency tree
  179. Reading state information... Done
  180. The following package was automatically installed and is no longer required:
  181. libnih1
  182. Use 'apt autoremove' to remove it.
  183. The following NEW packages will be installed:
  184. apt-transport-https
  185. 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
  186. Need to get 24.0 kB of archives.
  187. After this operation, 207 kB of additional disk space will be used.
  188. Get:1 http://ports.ubuntu.com xenial/main arm64 apt-transport-https arm64 1.2.10ubuntu1 [24.0 kB]
  189. Fetched 24.0 kB in 0s (108 kB/s)
  190. Selecting previously unselected package apt-transport-https.
  191. (Reading database ... 15500 files and directories currently installed.)
  192. Preparing to unpack .../apt-transport-https_1.2.10ubuntu1_arm64.deb ...
  193. Unpacking apt-transport-https (1.2.10ubuntu1) ...
  194. Setting up apt-transport-https (1.2.10ubuntu1) ...
  195. root@localhost:~# apt-get update
  196. Hit:1 http://ports.ubuntu.com xenial InRelease
  197. Hit:2 http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu xenial InRelease
  198. Hit:3 http://ports.ubuntu.com xenial-updates InRelease
  199. Hit:4 http://ports.ubuntu.com xenial-security InRelease
  200. Hit:5 http://ports.ubuntu.com xenial-backports InRelease
  201. Get:6 https://dev2day.de/pms jessie InRelease [1789 B]
  202. Get:7 https://dev2day.de/pms jessie/main armhf Packages [885 B]
  203. Fetched 2674 B in 1s (1419 B/s)
  204. Reading package lists... Done
  205. N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'https://dev2day.de/pms jessie InRelease' doesn't support architecture 'arm64'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement