There is great video about installing debian with btrfs file structure The essential commands on video. In order to enter to busybox Ctrl+Alt+F2
$ df -h
$ umount /target/boot/efi
$ umount /target
$ mount /dev/sda2 /mnt
$ cd /mnt
$ ls
$ mv @rootfs @
$ btrfs su cr @home
$ mount -o noatime,space_cache=v2,compress=zstd,ssd,discard=async,subvol=@ /dev/sda2 /target
$ mkdir -p /target/boot/efi
$ mkdir -p /target/home
$ mount -o noatime,space_cache=v2,compress=zstd,ssd,discard=async,subvol=@home /dev/sda2 /target/home
$ mount /dev/sda1 /target/boot/efi
$ cd /target/etc/
$ nano fstab
And change defaults to this lines.
/ noatime,space_cache=v2,compress=zstd,ssd,discard=async,subvol=@
/home noatime,space_cache=v2,compress=zstd,ssd,discard=async,subvol=@home
In order to go out of busybox Ctrl+Alt+F1
I am connecting with my phone. NetworkConfiguration, WiFi, NetworkManager
$ ifconfig -a
$ ifconfig usb0 up && dhclient usb0
Then give sudo for normal user if you didn't do that.
$ apt install sudo
$ adduser username sudo
$ exit
And first install nala package manager.
$ sudo apt install nala
$ sudo nala install \
$ firmware-iwlwifi \
$ network-manager \
$ firefox \
$ kitty \
$ sway
$ mkdir ~/.config/sway
$ cp /etc/sway/config ~/.config/sway/config
Configure keyboard.
$ swaymsg -t get_inputs
Add this lines to your config file
$ echo "input - xkb_layout 'us,tr,ru' \
input - xkb_options 'grp:win_space_toggle'" >> ~/.config/sway/config
Install other sway packages.
$ sudo nala install \
$ sway-backgrounds \
$ swayidle \
$ swaylock \
$ xdg-desktop-portal-wlr
Configure Wayland
$ sudo nala install \
$ qtwayland5 \
$ libreoffice-gtk3
Add environment variables in order to apps to work on wayland.
$ echo "GDK_BACKEND=wayland #for GTK apps \n
$ CLUTTER_BACKEND=wayland #for clutter apps \n
$ QT_QPA_PLATFORM=wayland;xcb #for QT apps \n
$ SDL_VIDEODRIVER=wayland #for SDL2 apps \n
$ MOZ_ENABLE_WAYLAND=1 #for Firefox \n
$ SAL_USE_VCLPLUGIN=gtk3 #for libreoffice \n
$ _JAVA_AWT_WM_NONREPARENTING=1 #for JAVA apps \n
$ ELM_DISPLAY=wl #for EFL apps" >> .profile
For Chromium run program with
--ozone-platform=wayland
Also if you want to run some apps on xwayland install this.
$ sudo nala install xwayland
pulseaudio-utils - installed for controlling volume keys.
I am not yet figured out how to configure it with native pipwire tools.
$ sudo nala install wireplumber \
$ pipewire-audio-client-libraries \
$ pipewire-pulse \
$ libspa-0.2-jack \
$ pulseaudio-utils
$
$ systemctl --user --now enable wireplumber.service
$ systemctl --user --now enable pipewire-pulse.service
$ sudo reboot
After reboot see what does show pactl.
$ LANG=C pactl info | grep '^Server Name'
$ sudo cp /usr/share/doc/pipewire/examples/alsa.conf.d/99-pipewire-default.conf /etc/alsa/conf.d/
$ sudo cp cp /usr/share/doc/pipewire/examples/ld.so.conf.d/pipewire-jack-*.conf /etc/ld.so.conf.d/
$ sudo ldconfig
As a pairing software install one of these
- gnome-bluetooth (for GNOME)
- bluedevil (for KDE)
- blueman (Gtk2) Bluetooth, Audio on bluetooth
$ sudo nala install \
$ libspa-0.2-bluetooth \
$ bluetooth \
$ blueman
$ service bluetoth start
$ sudo nala install \
$ firmware-linux \
$ intel-microcode \
$ brightnessctl \
$ tlp \
$ pcmanfm \
$ ntfs-3g \
$ btrfs-progs \
$ audacity \
$ geany \
$ wofi \
$ waybar \
$ vim \
$ git
Install fonts
$ sudo nala install \
$ ttf-mscorefonts-installer \
$ fonts-crosextra-carlito \
$ fonts-crosextra-caladea \
$ fonts-font-awesome \
$ fonts-jetbrains-mono \
Install some codecs
$ sudo nala install \
$ libavcodec-extra