Multi-boot and common folders for various distributions.
This question was rejected as a common MX Linux question, since i use currently the MX 21 KDE version (up to date). And running fine!
I was directed to post my questions in this topic about MX-21 KDE RC1.
So i would like to ask my two questions over here, but i am not sure if this really is the right place to post these questions.
#1 Post by gsm ยป Thu Oct 14, 2021 10:46 pm (Software Configuration).
Currently i am running MX 21-KDE, Manjaro and Deepin 20.4, with multi boot on one system.
I created Documents and Pictures folders at one ext4 partition on a separate hard disk and mount that partition /dev/sdb1 to a folder /media/DATA.
So Documents and Pictures are folders created on the new partition and should be common for each distribution.
Steps are:
1) Create a DATA folder to be used as mount point.
Code: Select all
Sudo mkdir /media/DATA
sudo chown $USER /media/DATA
2) Edit fstab to mount the partition to /media/DATA.
Code: Select all
sudo echo "UUID=$(lsblk -no UUID /dev/sdb1) /media/DATA $(lsblk -no FSTYPE /dev/sdb1) defaults,noatime 0 2" >> /etc/fstab
3) Create symbolic links after moving the folders Documents and Pictures to a backup folder old-files.
Code: Select all
cd ~
mkdir old-files
mv Documents old-files
mv Pictures old-files
ln -s /media/DATA/Documents Documents
ln -s /media/DATA/Pictures Pictures
For Manjaro and MX 21 it works as expected, but not for Deepin 20.4.
My questions are:
1) Do i use a correct method for MX Linux ( in this case MX 21 KDE RC1) to achieve my goal of common folders for all distributions, or should that be done differently?
2) The XDG standard is said to be more precise implemented by Deepin Linux. Is that really true and is users-dirs.dirs used by MX Linux anyway?
So Deepin 20.4 is different and it is not possible to move the folders to the old-files folder (step 3).
A copy is made but the original folders Documents and Pictures stay present in the Home directory.
The method to make this working with Deepin, is simply to modify the ~/.config/user-dirs.dirs file as follows:
Code: Select all
# This file is created by dde.
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/.Templates"
XDG_PUBLICSHARE_DIR="$HOME/.Public"
# XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_DOCUMENTS_DIR="/media/DATA/Documents"
XDG_MUSIC_DIR="$HOME/Music"
# XDG_PICTURES_DIR="$HOME/Pictures"
XDG_PICTURES_DIR="/media/DATA/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
This works instantly without having symbolic links, when using Deepin 20.4 and seems to be according a XDG standard.
It does not work this way with MX Linux (21) and with Manjaro.
Also the Deepin folders are in fact not renamed to the local language when using a different language.
They will show up renamed in the File Manager, but not when using a terminal.
In a terminal window the MX 21 folders and Manjaro folders are renamed to the local language.
I have read somewhere that the Deepin approach would be more in line with XDG standards.
System info
Code: Select all
System:
Host: <filter> Kernel: 5.10.0-9-amd64 x86_64 bits: 64 compiler: N/A
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-9-amd64
root=UUID=<filter> ro quiet splash
Desktop: KDE Plasma 5.20.5 wm: kwin_x11 dm: SDDM
Distro: MX-21_KDE_beta2_x64 Wildflower September 4 2021
base: Debian GNU/Linux 11 (bullseye)
Machine:
Type: Desktop System: Gigabyte product: GA-MA770-DS3 v: N/A
serial: <filter> Chassis: type: 3 serial: <filter>
Mobo: Gigabyte model: GA-MA770-DS3 serial: <filter> BIOS: Award v: F8f
date: 12/15/2009
Battery:
Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M185
serial: <filter> charge: 55% (should be ignored) rechargeable: yes
status: Discharging
CPU:
Topology: Quad Core model: AMD Phenom II X4 920 bits: 64 type: MCP
arch: K10 family: 10 (16) model-id: 4 stepping: 2 microcode: 10000DB
L2 cache: 2048 KiB
flags: lm nx pae sse sse2 sse3 sse4a svm bogomips: 22502
Speed: 800 MHz min/max: 800/2800 MHz Core speeds (MHz): 1: 800 2: 800
3: 800 4: 1600
Vulnerabilities: Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass status: Not affected
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2
mitigation: Full AMD retpoline, STIBP: disabled, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Pitcairn XT [Radeon HD 7870 GHz Edition]
vendor: PC Partner Limited driver: radeon v: kernel bus ID: 01:00.0
chip ID: 1002:6818
Display: x11 server: X.Org 1.20.13 driver: ati,radeon
unloaded: fbdev,modesetting,vesa compositor: kwin_x11
resolution: 1920x1080~60Hz
OpenGL: renderer: AMD PITCAIRN (DRM 2.50.0 5.10.0-9-amd64 LLVM 12.0.1)
v: 4.5 Mesa 21.2.2 direct render: Yes
Audio:
Device-1: AMD SBx00 Azalia vendor: Gigabyte driver: snd_hda_intel
v: kernel bus ID: 00:14.2 chip ID: 1002:4383
Device-2: AMD Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD
7000 Series]
vendor: PC Partner Limited driver: snd_hda_intel v: kernel
bus ID: 01:00.1 chip ID: 1002:aab0
Sound Server: ALSA v: k5.10.0-9-amd64
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Gigabyte driver: r8169 v: kernel port: ee00 bus ID: 02:00.0
chip ID: 10ec:8168
IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
Local Storage: total: 1.36 TiB used: 39.88 GiB (2.9%)
ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 500GB
size: 465.76 GiB block size: physical: 512 B logical: 512 B
speed: 3.0 Gb/s serial: <filter> rev: 3B6Q scheme: MBR
ID-2: /dev/sdb vendor: Western Digital model: WD10EARS-00Y5B1
size: 931.51 GiB block size: physical: 512 B logical: 512 B
speed: 3.0 Gb/s serial: <filter> rev: 0A80 scheme: MBR
Partition:
ID-1: / raw size: 112.30 GiB size: 109.54 GiB (97.54%)
used: 9.07 GiB (8.3%) fs: ext4 dev: /dev/sda4
Sensors:
Message: No sensors data was found. Is sensors configured?
Repos:
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
Active apt repos in: /etc/apt/sources.list.d/debian.list
1: deb http://deb.debian.org/debian bullseye main contrib non-free
2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
Active apt repos in: /etc/apt/sources.list.d/mx.list
1: deb http://nl.mxrepo.com/mx/repo/ bullseye main non-free
2: deb http://nl.mxrepo.com/mx/repo/ bullseye ahs
Info:
Processes: 205 Uptime: 2h 02m Memory: 7.77 GiB used: 1.85 GiB (23.8%)
Init: SysVinit v: 2.96 runlevel: 5 default: 5 Compilers: gcc: 10.2.1
alt: 10 Shell: quick-system-in running in: quick-system-in inxi: 3.0.36