티스토리 뷰

728x90

출처

Ubuntu (2019-4-30 update BPI-M2 Zero & BPI-P2 Zero Ubuntu Server 16.04)

기본 계정

pi / bananapi

ssh 데몬 실행 오류

서비스 오류 확인

$ sudo systemctl status ssh.service
● ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enab
   Active: failed (Result: start-limit-hit) since Sun 2019-09-01 17:32:59 CST; 7
  Process: 5219 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255)
 
Sep 01 17:32:59 bpi-iot-ros-ai systemd[1]: Failed to start OpenBSD Secure Shell 
Sep 01 17:32:59 bpi-iot-ros-ai systemd[1]: ssh.service: Unit entered failed stat
Sep 01 17:32:59 bpi-iot-ros-ai systemd[1]: ssh.service: Failed with result 'exit
Sep 01 17:32:59 bpi-iot-ros-ai systemd[1]: ssh.service: Service hold-off time ov
Sep 01 17:32:59 bpi-iot-ros-ai systemd[1]: Stopped OpenBSD Secure Shell server.
Sep 01 17:32:59 bpi-iot-ros-ai systemd[1]: ssh.service: Start request repeated t
Sep 01 17:32:59 bpi-iot-ros-ai systemd[1]: Failed to start OpenBSD Secure Shell 
Sep 01 17:32:59 bpi-iot-ros-ai systemd[1]: ssh.service: Unit entered failed stat
Sep 01 17:32:59 bpi-iot-ros-ai systemd[1]: ssh.service: Failed with result 'star

ssh 데몬 실행 오류 확인 (-t 옵션 : 테스트 실행)

/var/run/sshd 디렉토리가 없어서 실행이 되지 않는 오류 확인

$ sudo /usr/sbin/sshd -t
Missing privilege separation directory: /var/run/sshd

디렉토리 생성

$ sudo mkdir /var/run/sshd

ssh 데몬 재시작

$ sudo systemctl restart ssh.service

서비스 실행 상태 확인

$ sudo systemctl status ssh.service
● ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enab
   Active: active (running) since Sun 2019-09-01 17:36:49 CST; 4s ago
  Process: 6551 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
 Main PID: 6553 (sshd)
   CGroup: /system.slice/ssh.service
           └─6553 /usr/sbin/sshd -D
 
Sep 01 17:36:49 bpi-iot-ros-ai systemd[1]: Starting OpenBSD Secure Shell server.
Sep 01 17:36:49 bpi-iot-ros-ai sshd[6553]: Server listening on 0.0.0.0 port 2222
Sep 01 17:36:49 bpi-iot-ros-ai sshd[6553]: Server listening on :: port 2222.
Sep 01 17:36:49 bpi-iot-ros-ai systemd[1]: Started OpenBSD Secure Shell server.

BLE

BLE 목록 조회

$ sudo hcitool lescan
LE Scan ...
75:01:72:87:F2:E0 (unknown)
C0:48:E6:BA:45:33 (unknown)

SD 확장

SD 확장전 용량확인

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            181M     0  181M   0% /dev
tmpfs            50M  5.5M   45M  11% /run
/dev/mmcblk0p2  6.7G  6.3G   75M  99% /
tmpfs           248M  408K  248M   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           248M     0  248M   0% /sys/fs/cgroup
tmpfs            50M   40K   50M   1% /run/user/1000
/dev/mmcblk0p1  256M   21M  235M   9% /media/pi/BPI-BOOT

SD FDisk

pi@bpi-iot-ros-ai:~$ sudo 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): p
Disk /dev/mmcblk0: 29.8 GiB, 32010928128 bytes, 62521344 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: 0xaf896935

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1      204800   729087   524288  256M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      729088 14940159 14211072  6.8G 83 Linux

Command (m for help): d
Partition number (1,2, default 2): 2

Partition 2 has been deleted.

Command (m for help): n
Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (2-4, default 2): 2
First sector (2048-62521343, default 2048): 729088
Last sector, +sectors or +size{K,M,G,T,P} (729088-62521343, default 62521343): 

Created a new partition 2 of type 'Linux' and of size 29.5 GiB.

Command (m for help): w
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).

pi@bpi-iot-ros-ai:~$ sudo shutdown -r now

SD 확장

$ sudo 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 = 2
The filesystem on /dev/mmcblk0p2 is now 7724032 (4k) blocks long.

SD 확장 확인

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            181M     0  181M   0% /dev
tmpfs            50M  2.3M   48M   5% /run
/dev/mmcblk0p2   30G  6.3G   22G  23% /
tmpfs           248M  436K  248M   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           248M     0  248M   0% /sys/fs/cgroup
tmpfs            50M   24K   50M   1% /run/user/1000
/dev/mmcblk0p1  256M   21M  235M   9% /media/pi/BPI-BOOT

GPU 테스트

$ glmark2-es2
=======================================================
    glmark2 2014.03+git20150611.fa71af2d
=======================================================
    OpenGL Information
    GL_VENDOR:     ARM
    GL_RENDERER:   Mali-400 MP
    GL_VERSION:    OpenGL ES 2.0
=======================================================
[build] use-vbo=false: FPS: 64 FrameTime: 15.625 ms
[build] use-vbo=true: FPS: 70 FrameTime: 14.286 ms
[texture] texture-filter=nearest: FPS: 71 FrameTime: 14.085 ms
[texture] texture-filter=linear: FPS: 69 FrameTime: 14.493 ms
[texture] texture-filter=mipmap: FPS: 71 FrameTime: 14.085 ms
[shading] shading=gouraud: FPS: 64 FrameTime: 15.625 ms
[shading] shading=blinn-phong-inf: FPS: 63 FrameTime: 15.873 ms
[shading] shading=phong: FPS: 61 FrameTime: 16.393 ms
[shading] shading=cel: FPS: 53 FrameTime: 18.868 ms
[bump] bump-render=high-poly: FPS: 50 FrameTime: 20.000 ms
[bump] bump-render=normals: FPS: 72 FrameTime: 13.889 ms
[bump] bump-render=height: FPS: 70 FrameTime: 14.286 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 23 FrameTime: 43.478 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 15 FrameTime: 66.667 ms
[pulsar] light=false:quads=5:texture=false: FPS: 72 FrameTime: 13.889 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 11 FrameTime: 90.909 ms
[desktop] effect=shadow:windows=4: FPS: 35 FrameTime: 28.571 ms
Error: Requested MapBuffer VBO update method but GL_OES_mapbuffer is not supported!
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: Unsupported
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 31 FrameTime: 32.258 ms
Error: Requested MapBuffer VBO update method but GL_OES_mapbuffer is not supported!
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: Unsupported
[ideas] speed=duration: FPS: 60 FrameTime: 16.667 ms
[jellyfish] : FPS: 30 FrameTime: 33.333 ms
Error: SceneTerrain requires Vertex Texture Fetch support, but GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS is 0
[terrain] : Unsupported
[shadow] : FPS: 18 FrameTime: 55.556 ms
[refract] : FPS: 11 FrameTime: 90.909 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 69 FrameTime: 14.493 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 46 FrameTime: 21.739 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 71 FrameTime: 14.085 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 59 FrameTime: 16.949 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 34 FrameTime: 29.412 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 59 FrameTime: 16.949 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 59 FrameTime: 16.949 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 59 FrameTime: 16.949 ms
=======================================================
                                  glmark2 Score: 51 
=======================================================

댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/03   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함