
Orange Pi User Manual
Shenzhen Xunlong Software Co., Ltd.
www.orangepi.org
26
www.xunlong.tv
# Install desktop version, it would take a little long time, please keep the network smooth.
# It would be Server version if do not execute
apt install ubuntu-desktop
# Add user and set password
useradd -s '/bin/bash' -m -G adm,sudo orangepi
# Set password for user orangepi
passwd orangepi
# Set password for rootpasswd root
# exit Rootfs
exit
4
.
Make Rootfs Image
# Generate spare image file
dd if=/dev/zero of=ubuntu-desktop.img bs=1M count=2048
# Format image file into ext4 format
sudo mkfs.ext4 ubuntu-desktop.img
# Load image file to ubuntu-desktop folder
mkdir ubuntu-desktop
sudo mount ubuntu-desktop.img ubuntu-desktop/
# copy the generated rootfs contents into folder which image loaded
sudo cp -rfp rootfs/* ubuntu-desktop/
# Unmount
sudo umount ubuntu-desktop/
# Check the correctness of the file system
e2fsck -p -f ubuntu-desktop.img
# Automatically adjust the size of the partition
resize2fs -M ubuntu-desktop.img