天天看點

Orange_Pi_PC安裝Armbian并啟用預設桌面

實驗基本條件:

Orange_Pi_PC *1(含5V3A電源,32G高速卡)

參考資料:

http://www.orangepi.cn/orangepipc/index_cn.html

7英寸TFT液晶顯示屏

參考資料:

https://www.aliexpress.com/item/7inch-TFT-LCD-Screen-for-Orange-Pi-H3-chip-Boards/32831758014.html

系統:Armbian Xenial For Orange_Pi_PC

參考資料:

https://www.armbian.com/orange-pi-pc/

燒錄工具:SDFormatter ,Win32DiskImager

PS:順便吐槽一下,在某寶上購買以上産品不帶任何配件,即所有電源,信号線都要獨立購買。切記!!!

Step1:

從Armbian官網上下載下傳Armbian Xenial版本的鏡像,然後解壓得到Armbian_5.38_Orangepipc_Ubuntu_xenial_default_3.4.113_desktop.img檔案

然後将TF卡裝到SD卡套上,插入筆記本的SD卡槽,啟動SDFormatter,并将TF卡格式化。

格式化完成後,關閉SDFormatter,并打開Win32DiskImager,選擇剛才解壓的鏡像,選擇正确的TF卡盤符,點選write即可燒錄。

燒錄完成後,安全彈出SD卡,并将TF卡插到Orange_Pi_PC的TF卡槽。

正确連接配接液晶顯示屏驅動闆,驅動闆與Pi_PC之間用HDMI線連接配接,Pi_PC接上區域網路,區域網路啟用DHCP。

确認信号線連接配接好之後,就可以上電了,液晶顯示屏的驅動闆也是要獨立供電的。

Step2:

上電後,網絡接口會閃爍,如果網絡接口沒反應的或,應該檢查系統是不是沒刷好,還是TF卡沒裝對。

如果一切正常的話,大概2分鐘左右,網絡接口的燈就常亮了。這時就可以通過SSH遠端連接配接了,如果不知道IP的話,可以上路由器檢視線上客戶,或者用arp -a查找。

首次登陸系統需要修改預設root的密碼(預設密碼是:1234)

login as: root
[email protected]'s password:
You are required to change your password immediately (root enforced)
  ___                               ____  _   ____   ____
 / _ \ _ __ __ _ _ __   __ _  ___  |  _ \(_) |  _ \ / ___|
| | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | | |_) | |
| |_| | | | (_| | | | | (_| |  __/ |  __/| | |  __/| |___
 \___/|_|  \__,_|_| |_|\__, |\___| |_|   |_| |_|    \____|
                       |___/


Welcome to ARMBIAN 5.38 stable Ubuntu 16.04.3 LTS 3.4.113-sun8i
System load:   0.01 0.21 0.14   Up time:       5 min
Memory usage:  4 % of 1000MB    IP:            192.168.1.146
CPU temp:      35°C
Usage of /:    75% of 2.9G


Warning: a reboot is needed to finish resizing the filesystem
Please reboot the system as soon as possible
New to Armbian? Check the documentation first: https://docs.armbian.com

Changing password for root.

#修改root的密碼,需要先輸入原來的預設密碼才能更改新密碼

(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:

Thank you for choosing Armbian! Support: www.armbian.com

Creating a new user account. Press <Ctrl-C> to abort
Desktop environment will not be enabled if you abort the new user creation
           

#建立一個使用者

Please provide a username (eg. your forename): kwan
Trying to add user kwan
Adding user `kwan' ...
Adding new group `kwan' (1000) ...
Adding new user `kwan' (1000) with group `kwan' ...
Creating home directory `/home/kwan' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for kwan
Enter the new value, or press ENTER for the default
        Full Name []:
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n] y


Dear kwan, your account kwan has been created and is sudo enabled.
Please use this account for your daily work from now on.
           

#這時,系統會檢測到顯示屏,并提示修改顯示參數

Your display settings are currently 720p (1280x720). To change this use the
h3disp utility. Do you want to change display settings now? [nY] y

Usage: h3disp [-h/-H] -m [video mode] [-d] [-c [0-2]]

############################################################################

 This is a tool to set the display resolution of your Orange
 Pi by patching script.bin.

 In case you use an HDMI-to-DVI converter please use the -d switch.

 The resolution can be set using the -m switch. The following resolutions
 are currently supported:

    480i        use "-m 480i" or "-m 0"
    576i        use "-m 576i" or "-m 1"
    480p        use "-m 480p" or "-m 2"
    576p        use "-m 576p" or "-m 3"
    720p50      use "-m 720p50" or "-m 4"
    720p60      use "-m 720p60" or "-m 5"
    1080i50     use "-m 1080i50" or "-m 6"
    1080i60     use "-m 1080i60" or "-m 7"
    1080p24     use "-m 1080p24" or "-m 8"
    1080p50     use "-m 1080p50" or "-m 9"
    1080p60     use "-m 1080p60" or "-m 10"
    1080p25     use "-m 1080p25" or "-m 11"
    1080p30     use "-m 1080p30" or "-m 12"
    1080p24_3d  use "-m 1080p24_3d" or "-m 13"
    720p50_3d   use "-m 720p50_3d" or "-m 14"
    720p60_3d   use "-m 720p60_3d" or "-m 15"
    1080p24_3d  use "-m 1080p24_3d" or "-m 23"
    720p50_3d   use "-m 720p50_3d" or "-m 24"
    720p60_3d   use "-m 720p60_3d" or "-m 25"
    1080p25     use "-m 1080p25" or "-m 26"
    1080p30     use "-m 1080p30" or "-m 27"
    4kp30       use "-m 4kp30" or "-m 28"
    4kp25       use "-m 4kp25" or "-m 29"
    800x480     use "-m 800x480" or "-m 31"
    1024x768    use "-m 1024x768" or "-m 32"
    1280x1024   use "-m 1280x1024" or "-m 33"
    1360x768    use "-m 1360x768" or "-m 34"
    1440x900    use "-m 1440x900" or "-m 35"
    1680x1050   use "-m 1680x1050" or "-m 36"
    2048x1536   use "-m 2048x1536" or "-m 37"

 Two examples:

    'h3disp -m 1080p60 -d' ([email protected] DVI)
    'h3disp -m 720i' ([email protected] HDMI)

 You can also specify the colour-range for your HDMI-display with the -c switch.

 The following values for -c are currently supported:

    0 -- RGB range 16-255 (Default, use "-c 0")
    1 -- RGB range 0-255 (Full range, use "-c 1")
    2 -- RGB range 16-235 (Limited video, "-c 2")

############################################################################
           

推薦:h3disp -m 1024x768

修改後會提示:Now trying to patch script.bin with your settings. Successfully finished. Please reboot for changes to take effect 必須重新開機才能使配置生效。

如果現在不修改的話也可以,稍後可以通過armbian-config工具來配置。

修改IP位址,使Pi_PC可以上網更新,并運作apt update,apt upgrade來更新。

更新完之後,運作 sudo timedatectl set-timezone Asia/Shanghai 更新時區。

運作 sudo armbian-config 進入如下界面

Orange_Pi_PC安裝Armbian并啟用預設桌面

選擇System

Orange_Pi_PC安裝Armbian并啟用預設桌面

選擇Display,然後選擇合适的分辨率輸出,,選擇輸出類型

Orange_Pi_PC安裝Armbian并啟用預設桌面

系統會提示重新開機。

正常情況下,顯示屏會有畫面看的了。

Orange_Pi_PC安裝Armbian并啟用預設桌面

如果顯示屏一直是白屏,請檢查:

1、顯示屏是否正常工作,試試連接配接其他HDMI輸出裝置。

2、HDMI連接配接線是否松動。

3、分辨率是否正确,desktop_service是否關閉。

4、重新安裝lightdm (sudo apt install lightdm),并修改預設自登陸賬戶(sudo vi /etc/default/nodm)

參考:https://docs.armbian.com/User-Guide_Getting-Started/

繼續閱讀