LMLPHP后院

Archlinux Gnome 折腾技术

maybe yes 发表于 2023-01-11 12:05

这次或许是最后一次,因为低配置的电脑已经运行不了了,既然不行,就没有使用 Linux UI 的必要了。很悲伤,很多东西走着走着都是作死。屠龙者终成恶龙!

(1126/1127) upgrading zita-resampler                                                       [#####################################################] 100%
New optional dependencies for zita-resampler
    libsndfile: for zresample and zretune [installed]
(1127/1127) upgrading zsh                                                                  [#####################################################] 100%
error: hook /usr/share/libalpm/hooks/gvfsd.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-update.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-udev-reload.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/40-fontconfig-config.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/fontconfig.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-update-mime-database.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/60-mkinitcpio-remove.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gdk-pixbuf-query-loaders.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gtk-update-icon-cache.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/texinfo-remove.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-daemon-reload.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/60-depmod.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/xorg-mkfontscale.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/update-desktop-database.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/90-update-appstream-cache.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/dconf-update.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/dbus-reload.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/20-systemd-sysusers.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gtk-query-immodules-3.0.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-sysctl.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/glib-compile-schemas.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/detect-old-perl-modules.hook line 4: invalid value Path
error: hook /usr/share/libalpm/hooks/90-mkinitcpio-install.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-catalog.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-hwdb.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/update-vlc-plugin-cache.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gtk-query-immodules-2.0.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/vimdoc.hook line 5: invalid value Path
error: hook /usr/share/libalpm/hooks/texinfo-install.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-tmpfiles.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/40-update-ca-trust.hook line 5: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-binfmt.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gtk4-querymodules.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gio-querymodules.hook line 2: invalid value Path

➜  bak pacman -Qi pacman
Name            : pacman
Version         : 6.0.2-5
Description     : A library-based package manager with dependency support
Architecture    : x86_64
URL             : https://www.archlinux.org/pacman/
Licenses        : GPL
Groups          : base-devel
Provides        : libalpm.so=13-64
Depends On      : bash  glibc  libarchive  curl  gpgme  pacman-mirrorlist  gettext  gawk  coreutils  gnupg  grep
Optional Deps   : perl-locale-gettext: translation support in makepkg-template
Required By     : appstream-glib  arch-install-scripts  archlinux-keyring  package-query  yaourt
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 4.72 MiB
Packager        : Felix Yan <[email protected]>
Build Date      : Tue 01 Nov 2022 08:44:59 PM CST
Install Date    : Thu 22 Dec 2022 08:56:43 PM CST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

➜  bak sudo pacman -Syu                                                         
[sudo] password for lin: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 archlinuxfr is up to date
:: Starting full system upgrade...
 there is nothing to do




error: key "KEY$" could not be looked up remotely
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.



# sudo pacman -S archlinux-keyring  && sudo pacman -Syu
this also worked for me
thanks a lot



https://blog.yasking.org/a/easyscreencast.html


gnome screenrecorder 

➜  ~ gsettings get org.gnome.settings-daemon.plugins.media-keys max-screencast-length
uint32 30
➜  ~ gsettings set org.gnome.settings-daemon.plugins.media-keys max-screencast-length 0
➜  ~ gsettings get org.gnome.settings-daemon.plugins.media-keys max-screencast-length  
uint32 0

Ctrl+Alt+Shift+R



Xorg cleanup requires manual intervention
2019-12-20 - Andreas Radke

In the process of Xorg cleanup the update requires manual intervention when you hit this message:

:: installing xorgproto (2019.2-2) breaks dependency 'inputproto' required by lib32-libxi
:: installing xorgproto (2019.2-2) breaks dependency 'dmxproto' required by libdmx
:: installing xorgproto (2019.2-2) breaks dependency 'xf86dgaproto' required by libxxf86dga
:: installing xorgproto (2019.2-2) breaks dependency 'xf86miscproto' required by libxxf86misc
when updating, use: pacman -Rdd libdmx libxxf86dga libxxf86misc && pacman -Syu to perform the upgrade.

css big event gray how to achieve技术

maybe yes 发表于 2022-11-30 20:01

针对大事件灰色效果,CSS 的工作量可谓不小,可 CSS3 来了,只需一行代码搞定,其实就是这么简单,无需做什么准备。

.big-event-gray {
    filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
    /* -webkit-filter: grayscale(100%); */
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    /* filter: grayscale(100%); */
    filter: gray;
}

bing 是一个伟大的搜索引擎技术

maybe yes 发表于 2022-11-28 20:38

我遇到一个问题,使用最大的那个搜索引擎,搜不出任何相关的标题内容,点进去看了几个,完全没有找到相似点。

于是 bing 之。

结果,第一个就找到了答案,并且是标题完全相同。

大公司,转一个弯,几年都不一定做得到,只能是越陷越深。

我的问题是“/etc/rc.common: line 1: /data/clash: Permission denied”。

找到了两个有用的链接: https://github.com/juewuy/ShellClash/issues/246。https://github.com/juewuy/ShellClash/issues/226#issue-1373105062。

于是,感概下。

夜神模拟器安装系统根证书技术

maybe yes 发表于 2022-11-25 16:07

安卓7.0之后,更加严格,这将导致一个结果,就是,你的手机,只是一个手机而已,而你几乎无法控制它。

其实作为一个开源的系统,真的不应该这样,因为,你是开源的,总会有办法。

其实,7.0 之后的安卓,用户证书变的没有意义。而目前的抓包工具,不论是 Charles 或者 是 Fiddler 几乎都是不能用的节奏。

下面讲一讲 Charles 抓取 https 数据接口。

Help -> SSL proxying -> Save Charles Root Certificate。下载完成后。点击 Install Charles Root Certificate On a Mobile Device or Remote Browser,在这个弹出窗能看到代理的 ip 和 port。

badblocks 命令要慎用了技术

maybe yes 发表于 2022-11-22 13:56

这个时间问题,要考虑好。

badblocks 真的要慎用啊,耗时约 72 小时,三天啊!

$ sudo badblocks -sw -v /dev/sda > badsectors.txt
Checking for bad blocks in read-write mode
From block 0 to 3907018583
Testing with pattern 0xaa: done
Reading and comparing: done
Testing with pattern 0x55: done
Reading and comparing: done
Testing with pattern 0xff: done
Reading and comparing: done                                                  (0/0/0 errors)s)
Testing with pattern 0x00: done
Reading and comparing: done
Pass completed, 0 bad blocks found. (0/0/0 errors)
2024-11-19 04:20:22 1731961222 0.007696