§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 sddm (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 gdm3, 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
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
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
```bash
# 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