manjaro 使用攻略

yay

pkg 构建目录

`~/.cache/yay/pkg/`

安装过程有时会出现问题,手工介入,解决速度会快不少。先前装drawio的时候经常下载一般旧挂了,浏览器下载完后 copy到目录 重新yay 可以继续往后执行。

安装过程修改 PKGBUILD

需要联公司VPN,本来琢磨 openconnect 应该能解决问题,没想到某服自己单独玩了一套。安装EeasyConnect时,官方提供的最新的包版本号没有变,但是 md5 发生了变化,不知道他们在搞什么鬼。

着急用,需要修改PKGBUILD 尝试了两个没有效果的解决方案 yay --editmenu --save yay -G <pkgname>,直接进入构建目录后,手动修改构建脚本快,改完后编译、安装一分钟不到解决问题

1
2
3
cd .cache/yay/easyconnect
md5sum
makepkg -si

清缓存

1
2
3
4
5
yay -Sc

pacman -Qqtd| sudo pacman -Rs -

paru -Sc

跑了有一年多了前段时间看硬盘不足二十个G了,清清缓存节约了 80G

1
2
[2020-11-04T19:24:07+0800] [ALPM] running 'update-mime-database.hook'...
[2020-11-04T19:28:49+0800] [PACMAN] Running 'pacman -Syyu'

backup

系统引导修复

1
2
3
4
5
6
lsblk -f
vim /etc/fstab
mkinitcpio -P

grub-install --target=x86_64-efi --efi-directory=/boot/efi --removable --recheck --force
update-grub

VirtualBox

VirtualBox – Cannot register the hard disk 解决办法 [1]

File -> Virtual Media Manager -> Removed existing images (note, I removed them only from the registry).

压缩 vdi 磁盘大小

vmdk 格式不支持,vdi 压缩前,需要先进入虚拟机中 把没有使用的磁盘位置填充 0

windows 工具:[2]

https://docs.microsoft.com/en-us/sysinternals/downloads/sdelete
1
sdelete64.exe -z c:  # 对 C 盘剩余空间写零,适合虚拟磁盘优化

Linux 工具:

1
dd if=/dev/zero of=./1.img bs=102400 status=progress 

Manjaro 宿主机中执行如下压缩指令

1
VBoxManage modifymedium  docs.vdi --compact

vmware

Wayland

wayland[3][4][5][6]

fcitx5

1
2
3
4
#/etc/profile
export GTK_IM_MODULE=fcitx5
export QT_IM_MODULE=fcitx5
export XMODIFIERS="@im=fcitx5"

Firefox thunderbird

1
MOZ_ENABLE_WAYLAND=1

chromium

--ozone-platform-hint=auto

vivaldi-stable --ozone-platform-hint=auto

QT

 QT_QPA_PLATFORM="wayland;xcb"

Emacs

./configure --enable-largefile --with-all --with-json --with-imagemagick --with-threads --with-pgtk --with-native-compilation --with-native-image-api

Ref

  1. https://stackoverflow.com/questions/44114854/virtualbox-cannot-register-the-hard-disk-already-exists ↩︎
  2. https://www.appinn.com/sdelete-for-windows/ ↩︎
  3. https://bbs.archlinuxcn.org/viewtopic.php?id=11294 ↩︎
  4. https://fcitx-im.org/wiki/Setup_Fcitx_5 ↩︎
  5. https://wiki.archlinux.org/title/wayland#Qt ↩︎
  6. https://batsov.com/articles/2021/12/19/building-emacs-from-source-with-pgtk/ ↩︎

manjaro 使用攻略
http://blog.soul11201.com/2022/03/18/manjaro/
作者
soul11201
发布于
2022年3月18日
许可协议