当前位置:   article > 正文

arm64 ubuntu18.04桌面文件系统制作_ubuntu arm desktop

ubuntu arm desktop

适用于RK3568,亲测有效


1、下载ARM64根文件系统 ubuntu-base-18.04.5-base-arm64.tar.gz

http://cdimage.ubuntu.com/ubuntu-base/releases/18.04/release/​​​​​​​

mkdir ubuntu_rootfs
tax xvf ubuntu-base-18.04.5-base-arm64.tar.gz -C ubuntu_rootfs

2、进入base系统

mount -t proc /proc ./ubuntu_rootfs/proc
mount -t sysfs /sys ./ubuntu_rootfs/sys
mount -o bind /dev ./ubuntu_rootfs/dev
mount -o bind /dev/pts ./ubuntu_rootfs/dev/pts
chroot ubuntu_rootfs
echo "nameserver 114.114.114.114" > /etc/resolv.conf

3、修改下载源
/etc/apt/source.list,修改内容如下

  1. deb http://mirrors.huaweicloud.com/ubuntu-ports/ bionic main multiverse restricted universe
  2. deb http://mirrors.huaweicloud.com/ubuntu-ports/ bionic-backports main multiverse restricted universe
  3. deb http://mirrors.huaweicloud.com/ubuntu-ports/ bionic-proposed main multiverse restricted universe
  4. deb http://mirrors.huaweicloud.com/ubuntu-ports/ bionic-security main multiverse restricted universe
  5. deb http://mirrors.huaweicloud.com/ubuntu-ports/ bionic-updates main multiverse restricted universe
  6. deb-src http://mirrors.huaweicloud.com/ubuntu-ports/ bionic main multiverse restricted universe
  7. deb-src http://mirrors.huaweicloud.com/ubuntu-ports/ bionic-backports main multiverse restricted universe
  8. deb-src http://mirrors.huaweicloud.com/ubuntu-ports/ bionic-proposed main multiverse restricted universe
  9. deb-src http://mirrors.huaweicloud.com/ubuntu-ports/ bionic-security main multiverse restricted universe
  10. deb-src http://mirrors.huaweicloud.com/ubuntu-ports/ bionic-updates main multiverse restricted universe

4、安装桌面系统

apt-get update
apt install net-tools  #ifconfig
apt-get install inetutils-ping  #ping
apt-get install  language-pack-en-base  sudo  ssh  net-tools  ethtool  wireless-tools  ifupdown  network-manager iputils-ping  rsyslog  bash-completion  htop
apt-get install ubuntu-desktop

5、制作根文件系统

  1. dd if=/dev/zero of=linuxroot.img bs=1M count=1024
  2. mkfs.ext4 linuxroot.img
  3. mkdir  hyrootfs
  4. mount linuxroot.img hyrootfs/
  5. cp -rfp ubuntu_rootfs/*  hyrootfs/
  6. umount hyrootfs/
  7. e2fsck -p -f linuxroot.img
  8. resize2fs  -M linuxroot.img

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/294377
推荐阅读
相关标签
  

闽ICP备14008679号