§2024-04-03
¶ Using MicroSD
-
- Orangepi5plus_1.0.8_debian_bookworm_desktop_xfce_linux6.1.43.7z
- Orangepi5plus_1.0.8_debian_bookworm_server_linux6.1.43.7z
- unzip with Unzip One from apple store
-
Burn with BalenaEther
-
boot up the default user is orangepi, passwd orangepi. change root passwd to b23nnnnnn
-
'sudo apt update && sudo apt -y upgrade', 'sudo apt install xfsprogs'
¶Using NVMe device(PciSSD devices)
- reformat /dev/nvme0n1 devices
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
mtdblock0
mmcblk1
├─mmcblk1p1 vfat FAT32 opi_boot FFDB-9F73 917.5M 10% /boot
└─mmcblk1p2 ext4 1.0 opi_root a79d9bb8-8f47-4477-bd10-b62f6c349c6e 25.7G 7% /var/log.hdd
/
zram0 [SWAP]
zram1 165.8M 4% /var/log
nvme0n1
├─nvme0n1p1 ext4 1.0 30a22a01-8a38-4783-93a1-133e49bd7027
├─nvme0n1p2 swap 1 6fa3809e-2a9b-4f6d-a075-9a32ac7f5469
├─nvme0n1p3 ext4 1.0 64df1f16-1035-47bf-90b8-eebe20392771
└─nvme0n1p4 xfs 23223e51-8059-43aa-a78a-e4d1c4756a87
- mount the partion to /mnt /dev/nvme0n1p1 --> boot /dev/nvme0np3 ---> /
rsync -avrp --progress /boot/* /mnt/ <-- has to use /boot/* ???
# ls -l /mnt
total 103712
-rwxr-xr-x 1 root root 230456 Feb 3 04:16 boot.bmp
-rwxr-xr-x 1 root root 3339 Feb 3 04:15 boot.cmd
-rwxr-xr-x 1 root root 3411 Feb 3 04:26 boot.scr
-rwxr-xr-x 1 root root 230274 Feb 3 00:04 config-6.1.43-rockchip-rk3588
drwxr-xr-x 3 root root 4096 Feb 3 04:15 dtb
drwxr-xr-x 3 root root 4096 Feb 3 04:15 dtb-6.1.43-rockchip-rk3588
-rwxr-xr-x 1 root root 40577536 Feb 3 00:04 Image
-rwxr-xr-x 1 root root 8589423 Apr 4 13:28 initrd.img-6.1.43-rockchip-rk3588
-rwxr-xr-x 1 root root 1152056 Feb 3 04:16 logo.bmp
-rwxr-xr-x 1 root root 227 Feb 3 04:16 orangepiEnv.txt
-rwxr-xr-x 1 root root 1542 Feb 3 04:25 orangepi_first_run.txt.template
-rwxr-xr-x 1 root root 6207122 Feb 3 00:04 System.map-6.1.43-rockchip-rk3588
-rwxr-xr-x 1 root root 8589487 Apr 4 13:28 uInitrd
-rwxr-xr-x 1 root root 40577536 Feb 3 00:04 vmlinuz-6.1.43-rockchip-rk3588
$ cd /mnt and edit orangepiENV.txt, boot.cmd(setenv rootdev "/dev/nvme0n1p3")
# mkimage -C none -A arm -T script -d boot.cmd boot.scr
rsync -avrp --progress --exclude /mnt / /mnt/
mkimage -C none -A arm -T script -d boot.cmd boot.scr
§2023-06-20
Using Dedian bullseye server image, and make it into a desktop
- update and upgrade system
sudo apt update
&&sudo apt -y upgrade
- add alexlai as sudo user,
sudo useradd -m -G sudo -u 1026 alexlai
- or archlinux
sudo useradd -m -d /opt/xfs/home/alexlai -G wheel -u 1026 -s /bin/bash alexlai
- or debian
# /sbin/useradd -m -G sudo,tty,disk,dialout,audio,video,plugdev,games,users,systemd-journal,input,netdev,docker -u 1026 -s /bin/bash alexlai root@orangepi5plus:/home/orangepi# id alexlai uid=1026(alexlai) gid=1026(alexlai) groups=1026(alexlai),5(tty),6(disk),20(dialout),27(sudo),29(audio),44(video),46(plugdev),60(games),100(users),999(systemd-journal),102(input),107(netdev),996(docker) i
- change alexlai shell
$ sudo chsh -s /bin/bash alexlai
- set localtime
sudo ln -sf /usr/share/zoneinfo/Asia/Taipei /etc/localtime
- generate locale
sudo nano /etc/locale.gen, ucomment en_US.UTF-8, ja_JP.UTF-8, zh_TW.UTF-8
sudo locale-gen
- set locale
sudo localectl set-locale LANG=en_US.UTF-8
- change hostname to pi5PlusBullseye
- install adobe asian fonts
-
sudo apt update
-
sudo apt install -y ttf-mscorefonts-installer fonts-noto-cjk fonts-noto-cjk-extra fonts-ipafont fonts-ipaexfont
-
for archlinux
sudo pacman -S adobe-source-han-sans-jp-fonts adobe-source-han-serif-tw-fonts
-
- install budgie desktop
- `sudo apt install --install-recommends -y budgie-desktop tilix fcitx5 fcitx5-mozc fcitx5-config-qt chromium xfsprogs gdm3
Configuration file '/etc/pulse/client.conf' ==> File on system created by you or by a script. ==> File also in package provided by package maintainer. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** client.conf (Y/I/N/O/D/Z) [default=N] ?
(lightdm, gdm3 not working)` `--install-suggests` --> works again, and it it more modern like
- reconfigure desktop manager `sudo dpkg-reconfigure gdm3`
- I had troubles with sddm, but sddm seems to work better!!
- archlinux please install `sudo pacman -S lightdm lightdm-gtk-greeter`
- sudo nano /etc/lightdm/lightdm.conf, greeter-session=lightdm-gtk-greeter
```bash
Configuration file '/etc/pulse/client.conf'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** client.conf (Y/I/N/O/D/Z) [default=N] ?
```
- gdm3, lxdm, lightdm desktop manager is not working
- `sudo apt install sddm tilix firefox-esr` else no terminal application
```bash
Jun 20 16:02:03 pi5PlusBullseye gnome-session-c[2444]: cannot open display: :0
Jun 20 16:02:03 pi5PlusBullseye gnome-session[2445]: Unable to init server: Could not connect: Connection refused
Jun 20 16:02:03 pi5PlusBullseye gnome-session-c[2445]: cannot open display: :0
Jun 20 16:02:03 pi5PlusBullseye gnome-session[2425]: gnome-session-binary[2425]: WARNING: software acceleration check failed: Child process exited with code 1
Jun 20 16:02:03 pi5PlusBullseye gnome-session-binary[2425]: WARNING: software acceleration check failed: Child process exited with code 1
Jun 20 16:02:03 pi5PlusBullseye gnome-session[2446]: Unable to init server: Could not connect: Connection refused
Jun 20 16:02:03 pi5PlusBullseye gnome-session-f[2446]: Cannot open display:
-
install kde-plasma
sudo apt install tasksel
sudo tasksel
- hang at
Preparing to configure pulseaudio (arm64)
about 78% finished!
-
install fcitx5, tilix
sudo apt install fcitx5 fcitx5-mozc fcitx5-config-qt fcitx5-gtk fcitx5-configtool
fcitx5-gtk is required for chromium$ sudo pacman -S fcitx5 fcitx5-mozc fcitx5-config-qt fcitx5-gtk fcitx5-configtool
- nano ~/.bashrc
# fcitx5
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
# fix tilix error
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
source /etc/profile.d/vte.sh
fi
- install developer package
- archlinux `sudo pacman -S base-devel
- debian
sudo apt install build-essential
¶Uknown issues:
- you can not presshrinking the root partition, you have to let the boot prosess to expand it then you can shrink. Why?? <-- not true