Orange_Pi_PC安装Armbian并启用默认桌面

orange_pi_armbian 专栏收录该内容
3 篇文章 0 订阅
实验基本条件:

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
root@192.168.1.146'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' (1920x1080@60Hz DVI)
    'h3disp -m 720i' (1280x720@30Hz 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 进入如下界面


选择System


选择Display,然后选择合适的分辨率输出,,选择输出类型

系统会提示重启。

正常情况下,显示屏会有画面看的了。


如果显示屏一直是白屏,请检查:

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/


  • 2
    点赞
  • 0
    评论
  • 8
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值