修改默认启动项配置(MX-23 升级要点)
VMware 共享文件夹问题
安装 MX-23 VMware tools时,可能需要安装如下的补丁:vmware-tools-patches
MX-23.1 mini 版在 VMware 17中无法安装的解决办法:手动分区
-------------------------------------------------------------
要点:
本文是安装 minimal 版本时,才需要。
如果安装官方 xface之类的完整版本,应该不需要了吧?此时仅作为参考而已。
1. debian 可以同时安装多种不同的桌面,然后,再进行切换。
MX 目前好像还不能进行桌面切换?只能下载指定桌面的不同版本来使用?
有时,为什么需要安装多个不同的桌面呢?由于同业竞争的原因,有些 Linux 应用软件,只能在其所绑定的桌面场景中,才能安装。
说明:
MX-23.0 的官方软件包的 Gui 安装界面(mx package installer ),似乎做得不好。当网络不佳时,安装界面进入假死状态。
-------------------------------------------------------------
关联参考:
MX-linux 21中文版安装的补充依赖包 (**) ( mxlinux mx linux ) https://blog.csdn.net/ken2232/article/details/129433575
MX-linux 21使用问题集 (**) ( mxlinux mx linux ) https://blog.csdn.net/ken2232/article/details/131611265
MX Snapshot 的用法:克隆系统备份、可安装 Live CD制作 (**) mxlinux mx linux https://blog.csdn.net/ken2232/article/details/134056431
linux:fstab 文件格式检查 https://blog.csdn.net/ken2232/article/details/136106660
===================================
修改默认启动项配置(MX-23 升级要点)
重要说明:
1. Sysvinit 更古老,Systemd 更先进。Debian 默认早就使用 Systemd 启动管理器了。
2. 目前一般 deb app 都是以适配 Debian 官方版本为基准,有些 app需要使用到 Systemd 的启动命令等。
问题是:Sysvinit 与 Systemd 的命令名称不同,格式也有所区别。导致有些 app 在 Sysvinit 下无法正常运行。
更古老的 app也许只能在 Sysvinit 下运行吧?但现在新软件一般都在适配 Systemd。
参考:错误信息
System has not been booted with systemd as init system (PID 1). Can‘t operate https://blog.csdn.net/ken2232/article/details/132529761
参见:注 x1
3. 从 MX-23 开始,最好是使用 systemd来作为启动管理器。
至少从 MX-23 开始,systemd 已经与 MX tool (包括 systemd 在过去版本中不兼容的 snapshot and the live usb persistence features)。
mxlinux supported systemd
https://mxlinux.org/blog/mx-23-libretto-now-available/
[SOLVED] MX 19.3: switch from SysVinit to Systemd
https://forum.mxlinux.org/viewtopic.php?t=62026
方法一 (** 首选 **)
MX-tools自带工具:Boot Options
方法二 (优选 1)
修改/etc/default/grub, 系统将默认启动上次选择的内核版本
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
说明:最方便;第一次需要自己操作一遍,这种方式再次恢复上次启动方式也方便
方法三 (优选 2)
sudo apt-get install grub-customizer
通过下拉菜单,选择自己想要的项目来启动 :
以上两种办法,各有各的好处。
其他方法:
有历史遗留下来的,有其他的,似乎都没有上面 两种方便?
参考:Linux grub菜单 默认启动项配置 (**) https://blog.csdn.net/ken2232/article/details/133974621
VMware 的复制与粘贴问题,安装 VMware tools
首先需要设置系统启动方式,为:Systemd(系统和服务管理器)
在 MX-tools自带工具:Boot Options 中进行设置。
否则,可能在运行 sudo apt install open-vm-* 的过程中,会出现错误?
方法一 (简单)
sudo apt install open-vm-*
注 x1:似乎需要以 Systemd作为启动管理器,才能无错误地安装?
方法二 (比方法一要麻烦一些)
直接安装官方默认的 tools
VMware 共享文件夹问题
1. Linux 需要手动挂载, NG;<< 缺少了什么包?
注:在 Systemd 下安装。好像没有问题的?
2. Windows 可以直接挂载, OK。如下图:
参考:VMware 共享文件夹失败问题 (***)
https://blog.csdn.net/ken2232/article/details/132492667
vmware linux 挂载共享文件夹 (*全面*)(已验证) https://blog.csdn.net/ken2232/article/details/134007111
步骤一
## 首先,确定共享文件夹的名称。OK
$ vmware-hgfsclient
my-shared-folder
注:应该是安装了 sudo apt install open-vm-* 之后,才有 vmware-hgfsclient 命令?
步骤二(1) (临时挂载法)
## 其次,挂载。 OK
$ sudo vmhgfs-fuse .host:/my-shared-folder /mnt/hgfs/ -o allow_other -o uid=1000## 或者
$ sudo vmhgfs-fuse .host:/ /home/abc/share-folder -o allow_other
步骤二(2)(永久挂载法)
fstab自动挂载:
vi /etc/fstab
# 增加挂载
.host:/ /mnt/hgfs #将在宿主机中,所有共享文件夹挂载到/mnt/hgfs
#将在宿主机中,名称为sharedfolder的共享文件夹挂载到/mnt/hgfs
.host:/sharedfolder /mnt/hgfs fuse.vmhgfs-fuse allow_other,defaults 0 0
sudo mkdir /mnt/hgfs
#对文件或目录设置777权限意味着它将对所有用户都是可读、可写和可执行的,并且可能会带来巨大的安全风险。
sudo chmod -R 777 /mnt/hgfs
featherpad /etc/fstab
sudo vi /etc/fstab #或者
sudo featherpad /etc/fstab #或者
sudo nano /etc/fstab
# 增加挂载
.host:/ /mnt/hgfs #将所有共享文件夹挂载到/mnt/hgfs << 原出处:NG ? 改为下句。
# 下句 OK
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other,defaults 0 0
# 将名称为sharedfolder的共享文件夹挂载到/mnt/hgfs
.host:/sharedfolder /mnt/hgfs fuse.vmhgfs-fuse allow_other,defaults 0 0
# 不一定要名为 hgfs,自己觉得什么名称好,好就怎样。
HGFS(Host Guest File System)
翻译过来应该是:
主机-客户机 文件系统
说明:
在共享文件夹中,加入当前用户的共享权限。在 VMware中访问共享文件夹,此时不需要密码。
$ mount -fav
/ : ignored
swap : ignored
mount: (hint) your fstab has been modified, but systemd still uses
the old version; use 'systemctl daemon-reload' to reload.
/mnt/hgfs : successfully mounted#--------------------
$ mount -av
/ : ignored
swap : ignored
fusermount3: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf
mount: (hint) your fstab has been modified, but systemd still uses
the old version; use 'systemctl daemon-reload' to reload.# 注:MX 23.2 需要将 /etc/fuse.conf 中的 'user_allow_other' 有效 ?
#--------------------
$ mount -fav
/ : ignored
swap : ignored
fusermount3: user has no write access to mountpoint /mnt/hgfs
mount: (hint) your fstab has been modified, but systemd still uses
the old version; use 'systemctl daemon-reload' to reload.
参考:
VMware ubuntu共享文件夹自动挂载 https://blog.csdn.net/weixin_45842078/article/details/121319770
安装 MX-23 VMware tools时,可能需要:安装如下的补丁
注:在 Systemd 下安装。好像不需要了?
安装补丁vmware-tools-patches:
$ cd ~/Download
$ git clone https://github.com/rasa/vmware-tools-patches.git
$ cd vmware-tools-patches
$ ./patched-open-vm-tools.sh
然后执行vmhgfs-fuse命令,发现已经能识别:
$ vmhgfs-fuse
fuse: missing mountpoint parameter
MX-23.1 mini版 在 VMware 17中无法安装的解决办法:手动分区
注:MX-23.2 可以直接安装,没有这个烦恼了。
KDE 版不需要
也可以对已经分区的磁盘,进行格式化:
用文件作为Swap分区,可能会更好? https://blog.csdn.net/ken2232/article/details/134062033