Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@localhost:~# wget -O - https://dev2day.de/pms/dev2day-pms.gpg.key | apt-key add -
- --2016-05-10 19:08:20-- https://dev2day.de/pms/dev2day-pms.gpg.key
- Resolving dev2day.de (dev2day.de)... 144.76.172.47, 2a01:4f8:200:502e::2
- Connecting to dev2day.de (dev2day.de)|144.76.172.47|:443... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 1646 (1.6K) [application/pgp-keys]
- Saving to: 'STDOUT'
- - 100%[=================================================>] 1.61K --.-KB/s in 0.04s
- 2016-05-10 19:08:29 (39.3 KB/s) - written to stdout [1646/1646]
- OK
- root@localhost:~# apt-get update
- Hit:1 http://ports.ubuntu.com xenial InRelease
- Get:2 http://ports.ubuntu.com xenial-updates InRelease [94.5 kB]
- Get:3 http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu xenial InRelease [17.6 kB]
- Get:4 http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu xenial/main arm64 Packages [2412 B]
- Get:5 http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu xenial/main Translation-en [1044 B]
- Get:6 http://ports.ubuntu.com xenial-security InRelease [93.3 kB]
- Hit:7 http://ports.ubuntu.com xenial-backports InRelease
- Get:8 http://ports.ubuntu.com xenial-updates/main Sources [20.9 kB]
- Get:9 http://ports.ubuntu.com xenial-updates/universe Sources [5464 B]
- Get:10 http://ports.ubuntu.com xenial-updates/main arm64 Packages [41.6 kB]
- Get:11 http://ports.ubuntu.com xenial-updates/main Translation-en [25.9 kB]
- Get:12 http://ports.ubuntu.com xenial-updates/universe arm64 Packages [15.1 kB]
- Get:13 http://ports.ubuntu.com xenial-updates/universe Translation-en [11.7 kB]
- Get:14 http://ports.ubuntu.com xenial-security/main Sources [11.6 kB]
- Get:15 http://ports.ubuntu.com xenial-security/universe Sources [3176 B]
- Get:16 http://ports.ubuntu.com xenial-security/main arm64 Packages [27.6 kB]
- Get:17 http://ports.ubuntu.com xenial-security/main Translation-en [17.9 kB]
- Get:18 http://ports.ubuntu.com xenial-security/universe arm64 Packages [6420 B]
- Get:19 http://ports.ubuntu.com xenial-security/universe Translation-en [5212 B]
- Fetched 401 kB in 19s (20.8 kB/s)
- Reading package lists... Done
- root@localhost:~# ethtool -s eth0 speed 100 duplex full
- -bash: ethtool: command not found
- root@localhost:~# apt-get install ethtool
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following package was automatically installed and is no longer required:
- libnih1
- Use 'apt autoremove' to remove it.
- The following NEW packages will be installed:
- ethtool
- 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
- Need to get 90.4 kB of archives.
- After this operation, 310 kB of additional disk space will be used.
- Get:1 http://ports.ubuntu.com xenial/main arm64 ethtool arm64 1:4.5-1 [90.4 kB]
- Fetched 90.4 kB in 17s (5286 B/s)
- Selecting previously unselected package ethtool.
- (Reading database ... 15489 files and directories currently installed.)
- Preparing to unpack .../ethtool_1%3a4.5-1_arm64.deb ...
- Unpacking ethtool (1:4.5-1) ...
- Setting up ethtool (1:4.5-1) ...
- root@localhost:~# ethtool -s eth0 speed 100 duplex full
- root@localhost:~#
- root@localhost:~#
- root@localhost:~#
- root@localhost:~# apt-get update
- Hit:1 http://ports.ubuntu.com xenial InRelease
- Hit:2 http://ports.ubuntu.com xenial-updates InRelease
- Hit:3 http://ports.ubuntu.com xenial-security InRelease
- Hit:4 http://ports.ubuntu.com xenial-backports InRelease
- Hit:5 http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu xenial InRelease
- Reading package lists... Done
- root@localhost:~# resize_rootfs.sh
- + DEVICE=/dev/mmcblk0
- + PART=2
- + resize
- + fdisk -l /dev/mmcblk0
- + grep /dev/mmcblk0p2
- + awk {print $2}
- + start=143360
- + echo 143360
- 143360
- + set +e
- + fdisk /dev/mmcblk0
- Welcome to fdisk (util-linux 2.27.1).
- Changes will remain in memory only, until you decide to write them.
- Be careful before using the write command.
- Command (m for help): Disk /dev/mmcblk0: 59.6 GiB, 64021856256 bytes, 125042688 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0x808ac36f
- Device Boot Start End Sectors Size Id Type
- /dev/mmcblk0p1 40960 143359 102400 50M c W95 FAT32 (LBA)
- /dev/mmcblk0p2 143360 7577599 7434240 3.6G 83 Linux
- Command (m for help): Partition number (1,2, default 2):
- Partition 2 has been deleted.
- Command (m for help): Partition type
- p primary (1 primary, 0 extended, 3 free)
- e extended (container for logical partitions)
- 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):
- Created a new partition 2 of type 'Linux' and of size 59.6 GiB.
- Command (m for help): The partition table has been altered.
- Calling ioctl() to re-read partition table.
- Re-reading the partition table failed.: Device or resource busy
- 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).
- + set -e
- + partx -u /dev/mmcblk0
- + resize2fs /dev/mmcblk0p2
- resize2fs 1.42.13 (17-May-2015)
- Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
- old_desc_blocks = 1, new_desc_blocks = 4
- The filesystem on /dev/mmcblk0p2 is now 15612416 (4k) blocks long.
- + echo Done!
- Done!
- root@localhost:~# df -h
- Filesystem Size Used Avail Use% Mounted on
- /dev/mmcblk0p2 59G 704M 56G 2% /
- devtmpfs 962M 0 962M 0% /dev
- tmpfs 995M 0 995M 0% /dev/shm
- tmpfs 995M 17M 979M 2% /run
- tmpfs 5.0M 0 5.0M 0% /run/lock
- tmpfs 995M 0 995M 0% /sys/fs/cgroup
- /dev/mmcblk0p1 50M 12M 39M 24% /boot
- root@localhost:~# !wge
- wget -O - https://dev2day.de/pms/dev2day-pms.gpg.key | apt-key add -
- --2016-05-10 19:10:40-- https://dev2day.de/pms/dev2day-pms.gpg.key
- Resolving dev2day.de (dev2day.de)... 144.76.172.47, 2a01:4f8:200:502e::2
- Connecting to dev2day.de (dev2day.de)|144.76.172.47|:443... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 1646 (1.6K) [application/pgp-keys]
- Saving to: 'STDOUT'
- - 100%[=================================================>] 1.61K --.-KB/s in 0s
- 2016-05-10 19:10:40 (31.1 MB/s) - written to stdout [1646/1646]
- OK
- root@localhost:~# echo "deb https://dev2day.de/pms/ jessie main" >/etc/apt/sources.list.d/pms.list
- root@localhost:~# dpkg --add-architecture armhf
- root@localhost:~# apt-get update
- Hit:1 http://ports.ubuntu.com xenial InRelease
- Hit:2 http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu xenial InRelease
- Hit:3 http://ports.ubuntu.com xenial-updates InRelease
- Hit:4 http://ports.ubuntu.com xenial-security InRelease
- Hit:5 http://ports.ubuntu.com xenial-backports InRelease
- Get:6 http://ports.ubuntu.com xenial/main armhf Packages [1145 kB]
- Get:7 http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu xenial/main armhf Packages [464 B]
- Get:8 http://ports.ubuntu.com xenial/restricted armhf Packages [5072 B]
- Get:9 http://ports.ubuntu.com xenial/universe armhf Packages [7301 kB]
- Get:10 http://ports.ubuntu.com xenial/multiverse armhf Packages [123 kB]
- Get:11 http://ports.ubuntu.com xenial-updates/main armhf Packages [56.5 kB]
- Get:12 http://ports.ubuntu.com xenial-updates/restricted armhf Packages [64 B]
- Get:13 http://ports.ubuntu.com xenial-updates/universe armhf Packages [16.0 kB]
- Get:14 http://ports.ubuntu.com xenial-updates/multiverse armhf Packages [64 B]
- Get:15 http://ports.ubuntu.com xenial-security/main armhf Packages [41.8 kB]
- Get:16 http://ports.ubuntu.com xenial-security/restricted armhf Packages [64 B]
- Get:17 http://ports.ubuntu.com xenial-security/universe armhf Packages [7132 B]
- Get:18 http://ports.ubuntu.com xenial-security/multiverse armhf Packages [64 B]
- Get:19 http://ports.ubuntu.com xenial-backports/main armhf Packages [28 B]
- Get:20 http://ports.ubuntu.com xenial-backports/restricted armhf Packages [28 B]
- Get:21 http://ports.ubuntu.com xenial-backports/universe armhf Packages [28 B]
- Get:22 http://ports.ubuntu.com xenial-backports/multiverse armhf Packages [28 B]
- Fetched 8696 kB in 24s (360 kB/s)
- Reading package lists... Done
- E: The method driver /usr/lib/apt/methods/https could not be found.
- N: Is the package apt-transport-https installed?
- E: Failed to fetch https://dev2day.de/pms/dists/jessie/InRelease
- E: Some index files failed to download. They have been ignored, or old ones used instead.
- root@localhost:~# apt-get install apt-transport-https
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following package was automatically installed and is no longer required:
- libnih1
- Use 'apt autoremove' to remove it.
- The following NEW packages will be installed:
- apt-transport-https
- 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
- Need to get 24.0 kB of archives.
- After this operation, 207 kB of additional disk space will be used.
- Get:1 http://ports.ubuntu.com xenial/main arm64 apt-transport-https arm64 1.2.10ubuntu1 [24.0 kB]
- Fetched 24.0 kB in 0s (108 kB/s)
- Selecting previously unselected package apt-transport-https.
- (Reading database ... 15500 files and directories currently installed.)
- Preparing to unpack .../apt-transport-https_1.2.10ubuntu1_arm64.deb ...
- Unpacking apt-transport-https (1.2.10ubuntu1) ...
- Setting up apt-transport-https (1.2.10ubuntu1) ...
- root@localhost:~# apt-get update
- Hit:1 http://ports.ubuntu.com xenial InRelease
- Hit:2 http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu xenial InRelease
- Hit:3 http://ports.ubuntu.com xenial-updates InRelease
- Hit:4 http://ports.ubuntu.com xenial-security InRelease
- Hit:5 http://ports.ubuntu.com xenial-backports InRelease
- Get:6 https://dev2day.de/pms jessie InRelease [1789 B]
- Get:7 https://dev2day.de/pms jessie/main armhf Packages [885 B]
- Fetched 2674 B in 1s (1419 B/s)
- Reading package lists... Done
- 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